Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3813683pxv; Mon, 28 Jun 2021 13:35:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGmX6xAhomfEqVDqIrni2/r5YvRhpG3gnzuuRhyy68xYtgs+dc9CcYoYZuPJ7HPQl0hS/5 X-Received: by 2002:a5d:9acd:: with SMTP id x13mr1027332ion.134.1624912547256; Mon, 28 Jun 2021 13:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624912547; cv=none; d=google.com; s=arc-20160816; b=G9b8HkR8mc3tZ7TOD10mOPXS2RD27WchhYuwAV1Otn9vcBetAhF/FzYwXF5O2IzDGS EQW3aQFbpwuOjcTP4k2vSf0YTnbPbFnB78NIa/n0Zyi/ZhJuM1m7dUc8QmaTqwpfhtF5 5VJHaQRFz1jAT1WHOpjulkGKtOLDGP1udg7uCOxPUhOrnVVswNoXMpYMz1J5Y1TPiJV2 xVBqvxmzopDrUMiPCsxpk+bsu806AYEGAEDSxLmw/Mdi8wZvigg5UB8419T/B9vpaCRE JdFSR51Ckauor51/FogE1BruA7wQDAD/CrNwXn3RToIhhCnwneNSXadd6KQb7fl6b/R3 OkfA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ADNjvuZ3SjefG6diaM+QEJm9SHKiGtNG4/dMQLn1UJg=; b=F99c6M41tP26y3aUELpS2pZTbROauBk+WUJuuGOVfVi821yl7D5IfBMqO6tFto9E+6 gsJhWKFUVUg3tDAy4DIXZ+RN70sdM4rCDVjUHbJUd6XTOPxhObXQjgNMIU0Bz+fANWjn Sd0T3W9yTNocbGfVo0K0RU8a5Ed7NfFImuKFZxRjjHrjr9gi0lxo6UF17x0LeSsS6lFG 1LhRwVcfs1SJbf8a+8LK0cYICB2b+93QDBPPV2x8eqFvH4+3NRt15P/toHHFtkEc9kgG bIv+B7Ci90LJOoiAl7aGqJe7VqtrqP5UvHYzBIA35+MD5o461ax1liGZvAwnKWFXg4vy MfMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eH/jbpPj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si12091264jao.12.2021.06.28.13.35.31; Mon, 28 Jun 2021 13:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eH/jbpPj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234977AbhF1PNU (ORCPT + 99 others); Mon, 28 Jun 2021 11:13:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:55272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233843AbhF1OwE (ORCPT ); Mon, 28 Jun 2021 10:52:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9144D61D33; Mon, 28 Jun 2021 14:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891034; bh=elsntXTpOtuQG0Xo96u6tNv8ea2pMZ5wYhvSnG6sM/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eH/jbpPjJQiJRBpSOcAk6LWu7SFO8rzr7QY+i75Hkj9YeoX8gOH62bwBOiYt7x2UI J9U+20dPwPUxf7gE4dsI1ALJWCv9DfM4gBr7TiyBN2hdlW1k8kwWTgwJnMyoR1rx4e XjxMbfqfNgR8ZebwonbVKFuJG80OU7kmqVsPlRxtXbeEMysssKQouqK0eKTEPXbdwO /TqnPUAhSE1p4UYWUtD4ZWLeNfGSN7x95FS/uh0ZWh/1xgfE1TFzJx2MCyPOGTr9FK kLsODDcqCyIT6ZVCYFrZWe1BPVGhLLWYO1Wp5D9gtVkId6/58DSmozIGgRG9VS8zO0 qRETpvyNjr9Fg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sriharsha Basavapatna , Michael Chan , Bjorn Helgaas , Greg Kroah-Hartman Subject: [PATCH 4.14 51/88] PCI: Add ACS quirk for Broadcom BCM57414 NIC Date: Mon, 28 Jun 2021 10:35:51 -0400 Message-Id: <20210628143628.33342-52-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143628.33342-1-sashal@kernel.org> References: <20210628143628.33342-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.238-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.238-rc1 X-KernelTest-Deadline: 2021-06-30T14:36+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sriharsha Basavapatna commit db2f77e2bd99dbd2fb23ddde58f0fae392fe3338 upstream. The Broadcom BCM57414 NIC may be a multi-function device. While it does not advertise an ACS capability, peer-to-peer transactions are not possible between the individual functions, so it is safe to treat them as fully isolated. Add an ACS quirk for this device so the functions can be in independent IOMMU groups and attached individually to userspace applications using VFIO. [bhelgaas: commit log] Link: https://lore.kernel.org/r/1621645997-16251-1-git-send-email-michael.chan@broadcom.com Signed-off-by: Sriharsha Basavapatna Signed-off-by: Michael Chan Signed-off-by: Bjorn Helgaas Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index de7d65971d7f..3602e967e96a 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4684,6 +4684,8 @@ static const struct pci_dev_acs_enabled { { PCI_VENDOR_ID_AMPERE, 0xE00A, pci_quirk_xgene_acs }, { PCI_VENDOR_ID_AMPERE, 0xE00B, pci_quirk_xgene_acs }, { PCI_VENDOR_ID_AMPERE, 0xE00C, pci_quirk_xgene_acs }, + /* Broadcom multi-function device */ + { PCI_VENDOR_ID_BROADCOM, 0x16D7, pci_quirk_mf_endpoint_acs }, { PCI_VENDOR_ID_BROADCOM, 0xD714, pci_quirk_brcm_acs }, { 0 } }; -- 2.30.2