Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3929298pxj; Mon, 21 Jun 2021 09:34:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhe5bqNFhotoLep201lkkacjgkdPJoOV6j/hSvk7RvlLc1ur2VpmonHNoMXAF+jUXp30cR X-Received: by 2002:a02:628b:: with SMTP id d133mr18338900jac.27.1624293298895; Mon, 21 Jun 2021 09:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293298; cv=none; d=google.com; s=arc-20160816; b=IAyi1OkC4qHLjvfg2Wh5CLfnYkHkAZMiDpeWw5iR8mQkInkxHhotgfyn9U4bZi+8h+ 3PU2X52pV26nEA8ublYcVrAseKnTi+EsZLW0RNbzscXgUnNpEHVigK8WKPsrRGmxFyl2 MsCvyjqu8UkJeJIHg1phZcYcrBrNB7bmvJfVXgJAmVLJJ+OQoKJ1bn7QqwAvsQe9KOkL vuqx9NkZpVsixQhmjgNGZhLQO/l4y/MTO2IrfX+eH1LhB3TvhPq83YGTE8f5ZvDJ8C79 MCl2u+Bo2h/w7iUVO/e+PnNHZVPOvyc+5x14+9CX9F0VYDqJAagBwMmYmPb3Yuqs2SwH A7EQ== 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=2r7tzrygUZUccHl+adkkDWrz00BQUmE/boT6XBFYaCg=; b=sCeBzFX0UPUI7q+icvUTvCtrSDrrwjGGAPtHA4mu2MosIoZQz/e1ieBQ7+vT2M/Mye o9JSnnsqda6UFlSsRnB42CTt9+vaSBtcmIhWytJpk4kZhocqyayHQ/3ZM2LqFbmsvEXD DHtMtjAtuoEbVfKQH5yy7Um0i9JJo919DKqY1PmHwY1HtiHAQ/NoH33qIrPI6VJuZoAj fOpdIERIh1KOmzqLh33Tdj9ciwax/kYwKFvPLSNpglPikxAAIi7bCNxOTe+Z30mnyvne YmU05LaTwkwSG/rWvxS5grbZsULVzkNsAR6xvHjPk9jv30Cb23IP6KrJfQW/WkWYU660 dkFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Dx//pkVx"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si14771257ilu.110.2021.06.21.09.34.47; Mon, 21 Jun 2021 09:34:58 -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=@linuxfoundation.org header.s=korg header.b="Dx//pkVx"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232739AbhFUQec (ORCPT + 99 others); Mon, 21 Jun 2021 12:34:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:49624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232387AbhFUQbQ (ORCPT ); Mon, 21 Jun 2021 12:31:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE714613FB; Mon, 21 Jun 2021 16:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292738; bh=HQu66h/En89is9h/gFJMzxhA2BVa/XweqWCPXS/T6k4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dx//pkVxee5mBW4LgPwJ1D+EQ4d2GuNecXKV7jk9pLqINL2Qm0X6bCIKg6nz7rrrf IKDRp00PbTWnMdKUKN2RG85B48wpZpnWAsQW+JQEIvTHBGSmkeGv2TYXNRGDLwIAQx TQrtc5ertRzd0AIMBe9pTBaJUJ8kXskSqB+Oew94= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sriharsha Basavapatna , Michael Chan , Bjorn Helgaas Subject: [PATCH 5.10 110/146] PCI: Add ACS quirk for Broadcom BCM57414 NIC Date: Mon, 21 Jun 2021 18:15:40 +0200 Message-Id: <20210621154918.317779605@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(+) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4785,6 +4785,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 }, /* Amazon Annapurna Labs */ { PCI_VENDOR_ID_AMAZON_ANNAPURNA_LABS, 0x0031, pci_quirk_al_acs },