Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3297199rwa; Tue, 23 Aug 2022 02:12:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4xUaZVdQlW+GfjHIqdlJ3GWI4r0gJXyt00uG3SpdVtRQ8qth7qkvavXkZo9Jx9GgDzAUDs X-Received: by 2002:a17:907:2bc8:b0:73d:6de9:6fd3 with SMTP id gv8-20020a1709072bc800b0073d6de96fd3mr8368689ejc.752.1661245979055; Tue, 23 Aug 2022 02:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661245979; cv=none; d=google.com; s=arc-20160816; b=oLykINpDhdlgYB725YwlIvLOv4P+3PsUN+n2SraXsdEqNaZNfkM5Z92MKXVWyDp/2W uoS217V6bP+xrOs0CuzY29Rvqc/KwocnWFnj46Q/KxhWiTPa4dYSvLKtMHV4UYK3L/U4 2a6Kp5QDYQ9buBComtyVwCXmgc8+OUdRKZf00qYf1P1tklPkVZFTCX8iKmZ0TphlPAbT 0viW6x1jQRh260DgxwSoJZzJ0fTnw+TWewDvTkkPpX10N3fB98Ks9bZzk7OSAdeku6tP 9rklGS/dK97xwmqF3ZsTjcK0vjSOYYLVFTCqzSgs/5J0T9AXxR7XuZDOdMcMsg3Hu0tm q+Qg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8MT1su1tyu1uA2wyFn2oUzQLjiefAtV9FtVItaixKcs=; b=tbLJv5T6/3Kt5ls9PPHfMgw12i9jh/kpXMH8gtjgmZUUq1J8RCb6q70rgMmDulMzWx FzJnhh/hgU71NeroeaB6BlwXbvb3ONqsLRUhh0vxy63WjgK9HesaIiUg5ZU0ghP5K0nc Klzs9MVPB1Kb7bIfI/o8TCC/kX0xDqNhOiegKQgUf3sxe/e213KA8tEBHDbbwU6LDDup VI8rvjl3Zr1jl5MkUr78WlkYEM3WGMT02avyAMsPqZnfg3J3PKDNDSy6ilD9fQXu4DRc YbhrQKC+ppEfuf8RIkIViXzLAbpQ5E8wYkHiV8+wLu64R7SwDKM+x782vxYOmTd7krT7 HKIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AuMlSnIh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc14-20020a1709078a0e00b0073d7de9711dsi5328972ejc.650.2022.08.23.02.12.33; Tue, 23 Aug 2022 02:12:59 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AuMlSnIh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347904AbiHWJJe (ORCPT + 99 others); Tue, 23 Aug 2022 05:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347750AbiHWJIB (ORCPT ); Tue, 23 Aug 2022 05:08:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E06861F9; Tue, 23 Aug 2022 01:30:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 10DBB612D8; Tue, 23 Aug 2022 08:29:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA06CC433C1; Tue, 23 Aug 2022 08:29:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243382; bh=XoTiZoUVZX4pd9WYhnysuZkslFJxFicRZdPAq2tGTyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AuMlSnIh0tTKuTmiFyG2xz4VXbb1VU6nwWhzLRnukHxGmCzGUXDj5Ulq0svjcBAJR Ru5gQiOasp6qsXFp5t0QK+IwDNIjVacsxBl2NHf+wOFuSfKk14+fD7VZMNwhE+bBbV tQzipcgdWVkdVnERYXJEjstWJDXMmiOoaaHhP7PI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pavan Chebbi , Michael Chan , Bjorn Helgaas , Sasha Levin Subject: [PATCH 5.19 259/365] PCI: Add ACS quirk for Broadcom BCM5750x NICs Date: Tue, 23 Aug 2022 10:02:40 +0200 Message-Id: <20220823080129.032890080@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 From: Pavan Chebbi [ Upstream commit afd306a65cedb9589564bdb23a0c368abc4215fd ] The Broadcom BCM5750x NICs may be multi-function devices. They do not advertise 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 these devices so the functions can be in independent IOMMU groups and attached individually to userspace applications using VFIO. Link: https://lore.kernel.org/r/1654796507-28610-1-git-send-email-michael.chan@broadcom.com Signed-off-by: Pavan Chebbi Signed-off-by: Michael Chan Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/pci/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 41aeaa235132..2e68f50bc7ae 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4924,6 +4924,9 @@ static const struct pci_dev_acs_enabled { { 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, 0x1750, pci_quirk_mf_endpoint_acs }, + { PCI_VENDOR_ID_BROADCOM, 0x1751, pci_quirk_mf_endpoint_acs }, + { PCI_VENDOR_ID_BROADCOM, 0x1752, pci_quirk_mf_endpoint_acs }, { PCI_VENDOR_ID_BROADCOM, 0xD714, pci_quirk_brcm_acs }, /* Amazon Annapurna Labs */ { PCI_VENDOR_ID_AMAZON_ANNAPURNA_LABS, 0x0031, pci_quirk_al_acs }, -- 2.35.1