Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2208120lqo; Mon, 13 May 2024 10:51:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUABqbcpRCLdZZ2eKJcDNgIVUc6icdcS12OHl68QCwrBFcL7EXficlhwsXLdC1OI+QgBzORnmVc478furX7dc0sx8HdR1g6qBYntGrhGg== X-Google-Smtp-Source: AGHT+IH9bfsEdqVoq0pdklqGkdb19sy7gJWU7qyVmdfWdHqMBmWAa0AsYlgPgPANcOiF5FZYNWsO X-Received: by 2002:a50:d496:0:b0:572:42ac:9b19 with SMTP id 4fb4d7f45d1cf-5734d440712mr6931467a12.0.1715622704906; Mon, 13 May 2024 10:51:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715622704; cv=pass; d=google.com; s=arc-20160816; b=bDZSdlf1M75hCLjMLLBVIvFGVhK/AyPhLVCR8uvMSFLv14UguUr1Y2PJJhW5G3zlql Rn4L0Cc6vDlGPcAXmWaXkL1yYpoAGQ6/p+G7VbNB8t1khklRk/rX58xPEEvs0xzhcZHY 1q2N7SJlbNjoeWn/GnozaqiJJkofLwnMAwlnvRWGoq+MT8bbSYAhB9GsUjWYJ101ubYO hMVOnv6VjfSBesWon6h9jV+vgFqHvJ2OfoY7ycZv00xh4lIno+cvArqqaKY+/52cyEdm 6t1Or9VSMndIOfWgmRHA5yNlR4pIaz4NakybOdVO6uqcR2Nqprwn80go+ie5tnaxxXjS fuVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=Vfj5x9URWXQiTIAzbcfEMU35BnpBdSYoXQBZ0Jsf4og=; fh=wbkrK6R0H88d2kz8ypChz4Zbvi8GivhOhlMdHZ2186s=; b=ITz545KtgQB5ULvYSUMS4QuFP36gNbx+rnvrtwPYnzCKuM0moglxTWWAVqGtxTwcP3 RH27g5G9eIZgIw6hB7YW3SqdFqEJlHmubqeJGYJYtK1qQtEX62RMvzgcR33NikFId1rT AazjXM+7RBRKpcROyA3RaGYlG9vsmD1QrgR7ntGBPzZvgrfMPZp9NVdQ+CJnXmgST8kE zmHZamQQBgzHYDyPSf22UHWZF9MgsZLT7XtejNfv4vZyjpB7l5UeI3x4pOJr386yLmDp Bza4ggK74TaBDPiuCQrFd6kOHiAzEeg6MSp1hZv2FEaAdrV1ZEDouYF6C0U7cp6grpnN TTQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OO2MpxNM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c378f32si5272027a12.670.2024.05.13.10.51.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 10:51:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OO2MpxNM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D47871F24038 for ; Mon, 13 May 2024 17:51:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14DF72C19B; Mon, 13 May 2024 17:51:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OO2MpxNM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 307F757C8D; Mon, 13 May 2024 17:51:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715622694; cv=none; b=Wqk6K53/M4FtNgpwdFmE+Lqx7nUZucdXw1pbMfR1IYHwn3QCsag9dV3xlm04ehN2PQria9ZeMg6zk81M0px4hJlbUxcoWMMXJz1r7UjpXq4N7hhYDQw6veZBmxTme3N12F+kb/kKDgpskapQ+BYJVdPrOynOBNN/ltFua/rAj74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715622694; c=relaxed/simple; bh=DA+UD3fsPCm2aGviXf6VM5/MCw3pyuso45xWeS6YsPQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=fjSDVfiR1Re41+Rzdh1hkwp7Ap8WEzTojKcCWgfRgtwiCdcyQVSSUO/2NRc+JSVzzXTCNqD7fjMxsfh+ERZzlacaOVb+YIj7ZiFnqXlLtAGso8AfQy3aYgyXsbhqT1dbjSJTLc5/Rcu1SWrayMxjfNUjb43YxnPANdOeC4r0+oY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OO2MpxNM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F072C113CC; Mon, 13 May 2024 17:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715622693; bh=DA+UD3fsPCm2aGviXf6VM5/MCw3pyuso45xWeS6YsPQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=OO2MpxNMj1H+5IPfIKaI+0XY2q/eDAH6nd5DVELGDFmMSsdww3S0gviR2LYgG4+55 DS/C82prJmvyciUR3FtcWjcQcZ0AFsq+cz/hgzCxsc7hysyZrTBa+LA/6BIYku9Tq0 lXnVs/piTxPAFFh0QiFdLLtMiAxOhWK+6J04cOcFpyHYkChNw0Ow/IUCn9ElJHV6gp rXLqYcDR4WKa72sI8dmfu3P7SqfMCAe6YzslsnyXlRGmQraPjKEWgeNGTvzFgirb11 HdzL7v9Zo3P+bVoUD+mrSyit29r7xxSehPxvi524Ya+R6bOfP+uxjSNBLtRXr2qCp3 viZ+c5otVPfiA== Date: Mon, 13 May 2024 12:51:31 -0500 From: Bjorn Helgaas To: Ajit Khaparde Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, andrew.gospodarek@broadcom.com, michael.chan@broadcom.com, kuba@kernel.org, davem@davemloft.net, Andy Gospodarek Subject: Re: [PATCH] pci: Add ACS quirk for Broadcom BCM5760X NIC Message-ID: <20240513175131.GA1991153@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240510204228.73435-1-ajit.khaparde@broadcom.com> On Fri, May 10, 2024 at 01:42:28PM -0700, Ajit Khaparde wrote: > The Broadcom BCM5760X 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 ok 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. > > Signed-off-by: Ajit Khaparde > Reviewed-by: Andy Gospodarek Looks like this was applied by Krzysztof to pci/acs for v6.10. I'm hoping Broadcom is still working on using the standard ACS so we don't have to add quirks forever: https://lore.kernel.org/all/CACKFLinvohm+jRupNZAV=G+OHg1buXvLDrs0yGgPY3o6NB8biA@mail.gmail.com/#t > --- > drivers/pci/quirks.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index eff7f5df08e2..3d8aa3f709e2 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -5099,6 +5099,10 @@ static const struct pci_dev_acs_enabled { > { 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, 0x1760, pci_quirk_mf_endpoint_acs }, > + { PCI_VENDOR_ID_BROADCOM, 0x1761, pci_quirk_mf_endpoint_acs }, > + { PCI_VENDOR_ID_BROADCOM, 0x1762, pci_quirk_mf_endpoint_acs }, > + { PCI_VENDOR_ID_BROADCOM, 0x1763, 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.39.2 (Apple Git-143) >