Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3777681pxv; Mon, 28 Jun 2021 12:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHsuZ6c+BBUgA54LvHGb8i0m1hHGad2+EVbqen5S6A/umxcJZigKuq1+3vGmEem12VePMI X-Received: by 2002:a17:907:d03:: with SMTP id gn3mr26094809ejc.516.1624909015367; Mon, 28 Jun 2021 12:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624909015; cv=none; d=google.com; s=arc-20160816; b=BPm4HfEuJ2Ca3MTf3keG09hLNj3Q76UGbMc6y1dbRu4P8vYY7E6dycp+vhdT1Rrjyn FAUPp4gUhuaGgg7O47wX1LstRiJOz489Z+KsH7uOjH3M0vMHFO6xzioHM47Aw/ntN8Cm KB5vBY8vBnNhqrCqZgLSVcrXWBf32Hs43SHZt9xhn62VWspyYz6pE2X0WxjsM+9z+W+5 9xUcsHTb1/Igt9oTRkVtoqBRBjOWV2TUA6rGJBWT2r2Esht0eEnCg0rdibdDZomrMm+u qaLKbVoPUaiiLsT+2LxpKo3TS7pNFKmvPXIoEckS/rOPyhm21HOBFn7RsDG36pQwtvk7 cbrw== 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=YZ9n7bBnklcjV3rsamnST7yQAN1twshCS9QOj/tYdnw=; b=MuAakI7NAPngbaioKLN9ktFSgCBYR0PM1uC4HtuTXufOrR5J+/il4APOwKXF747Ach RTn9QyWDra8NLu+HXoqEW6X+FCuuBQkGrsFCfphmuDlGxL0ST0HGELoWpwtOVyn9o4GI xBMW6w9exs3dUbUGniuZbp6Oobl3j+9l9TVxr+wfv40ex4bbS6QR+sXQcBTIPQUd3Yzq ZWGMHE1aMgBH0615i9dj+IBgW9Em3qkdlgtkbf6GU1TUNWd2793z6COYPiDsYhb7b/JE QxpP4MPcPXvIc3y4z0NgLPhvTdFLtqlA9tNteUGBZWMCUOxEyPEGYRSQqxR1Tir+avvN RsMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s84VNVdW; 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 q18si17868193edi.368.2021.06.28.12.36.32; Mon, 28 Jun 2021 12:36:55 -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=s84VNVdW; 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 S236092AbhF1PAE (ORCPT + 99 others); Mon, 28 Jun 2021 11:00:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:51694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235654AbhF1Op3 (ORCPT ); Mon, 28 Jun 2021 10:45:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31CD761D03; Mon, 28 Jun 2021 14:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624890844; bh=oHWietslQmsL5XcK0i446ow/bSAhGtVpXjqHVJqLVgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s84VNVdWnlrYAEoS9CG7/Druit9ANH4QRWZMQK/GU1oVmDBZALjmr7B3wKfYuvf42 MBkfR4NL/+85TfwwqfQD9FrB40Ad+3BFGvnH8LtHLTyVVWLGJBhravEca/l7P9T+hT 3bxMDWo0dWjF5CCb2xreZgKEZXQWsaoN4Jf8i3n4GYpu0GqrVCgSMjbpNHOEPGVp2M 33EI29f2GdmtVPAqe0M4c13BWjlsGm3xwhbxCbxUoovyaGZSyummamjBQVc61bMWZZ FRcqN3tkXPKSSreGDmSM+IaY9qSwy42HpVGffMafaiy8myOmnUAvOV4hO3vQwH7ekt fg8QKBRMt2jzg== 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.19 066/109] PCI: Add ACS quirk for Broadcom BCM57414 NIC Date: Mon, 28 Jun 2021 10:32:22 -0400 Message-Id: <20210628143305.32978-67-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143305.32978-1-sashal@kernel.org> References: <20210628143305.32978-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.19.196-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.19.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.19.196-rc1 X-KernelTest-Deadline: 2021-06-30T14:32+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 285b361831ec..c5141b0542d1 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4711,6 +4711,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