From patchwork Wed Jun 7 17:18:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 104643 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp366873vqr; Wed, 7 Jun 2023 10:32:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xOFegC4k0gdAdlJs3lNjaTuubcD8uj0dg8n7azhKh3M6CnJoH2XZon7SrtSyKjAhGp4ik X-Received: by 2002:a05:6a00:15ce:b0:662:7fa5:d318 with SMTP id o14-20020a056a0015ce00b006627fa5d318mr1225632pfu.29.1686159160899; Wed, 07 Jun 2023 10:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686159160; cv=none; d=google.com; s=arc-20160816; b=A37dCB/U4Oan441TkBB0dc4wNVQMklOvJpNxx/X3QKQWA+9imkQ2EcxsU5EhF/6h2V W1MI72cMHV8tk8Ymdr7PziRTx8KUNKssObHk2YOtfHwUY//Clw5Oc3wEfzTCq8HWIqwx XbppSlevSo/B6dqXwdzIPXpU+17GOXa6QIbAprjA2jage97UWRE6PmYEzEaRGW859IH2 0nfuWtiaQ86IaMXu5B6wqq3yofJRhqvTFuQxTiwG3/sU0xduNT6MVd/68OnL81MG0Y8w mDxo7gIsTsJDQGPi2QlmvJzbXlPOtCaNiOjpSXsbeaOSJabPd9ItSBtd7NiRzYHaiK7V 85vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KcJLMskIJK3+NTUoaSzQ5SeG4oWX8Gw/9uJRAls17r0=; b=XOCKv5c/ohvSXOdICDKIIM7CugCNhYUaT+OQ5onmDjfxgIy8005P6fqNMI4Qa4hpdk FfkXf0D18EGFAw+V1sdJUEdRvcW2KQcrYogDP3MGoMM2/Te2X/1EVEpMJgTvxYA/aE7W qq1QuuPy8obpcIUjSu9OiWFyDzN/IRYMD0jjTsbEay8miVAKjTcTlZUxVHrGsRq32hZj sAcS9zo5abwTlGjZglT5Qa/nKaOEeeWBS+xh60sycP8O3gMKB36aO/rNvgumHJQxa/Tl F41NrptiKa6O3c9NqVwGrvn0cgxMtSH0U9s0cIDJViawErRSHsVC0s3NahRDNaXW7Yro yD+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020aa79d09000000b00657e27bd74fsi6396380pfp.253.2023.06.07.10.32.28; Wed, 07 Jun 2023 10:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231458AbjFGRT2 (ORCPT + 99 others); Wed, 7 Jun 2023 13:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbjFGRT1 (ORCPT ); Wed, 7 Jun 2023 13:19:27 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1AE0E192; Wed, 7 Jun 2023 10:19:26 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 230E0AB6; Wed, 7 Jun 2023 10:20:11 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A1B193F71E; Wed, 7 Jun 2023 10:19:24 -0700 (PDT) From: Robin Murphy To: bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, hch@infradead.org, stable@vger.kernel.org, Jason Adriaanse Subject: [PATCH RESEND] PCI: Add function 1 DMA alias quirk for Marvell 88SE9235 Date: Wed, 7 Jun 2023 18:18:47 +0100 Message-Id: <731507e05d70239aec96fcbfab6e65d8ce00edd2.1686157165.git.robin.murphy@arm.com> X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768066028398413997?= X-GMAIL-MSGID: =?utf-8?q?1768066028398413997?= Marvell's own product brief implies the 92xx series are a closely related family, and sure enough it turns out that 9235 seems to need the same quirk as the other three, although possibly only when certain ports are used. CC: stable@vger.kernel.org Reported-by: Jason Adriaanse Link: https://lore.kernel.org/linux-iommu/2a699a99-545c-1324-e052-7d2f41fed1ae@yahoo.co.uk/ Signed-off-by: Robin Murphy Reviewed-by: Christoph Hellwig --- Note that the actual regression which started the thread is a different matter, wherein a particular combination of parameters which used to put intel-iommu into passthrough mode now enables full translation instead. Take #2, hopefully not royally screwing up my email alises this time. Sorry about that... drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index f4e2a88729fd..3186f2c84eab 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4174,6 +4174,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9220, /* https://bugzilla.kernel.org/show_bug.cgi?id=42679#c49 */ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9230, quirk_dma_func1_alias); +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9235, + quirk_dma_func1_alias); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TTI, 0x0642, quirk_dma_func1_alias); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TTI, 0x0645,