From mboxrd@z Thu Jan 1 00:00:00 1970 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 44FAA7405A; Mon, 6 Jan 2025 15:42:30 +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=1736178150; cv=none; b=mqmBoajIoPDyHMz40FWWFF7jV0PBVgj/VEVfJ7Z3Kc/VBwNyJRTnyeJscC0wiR49+ecU2yUhQq6lq5ja03ZZsBeI6oQ9s4D3aHoEtNlvnjaIslm9hNmGHjRlx2qVpxrbxPeSGzW8lgij3mkoUEcofArpdE0JMeSYDzrYjBjOHb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736178150; c=relaxed/simple; bh=zR3+9y5kDv8uISUm6hKLqTeKlpgJ9LpeHdoiL0nziwM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=A43TaYLw5jiyTcO/oxOu3UIt72xxj+6IlGAfD1MRXWxST3gekMG++PtwCZDZU3bMrxdlRCwpZqzwqNotOsStjrVoOpVOrhghqqKxwTdUYCLfzOV8rW+pOpq3p+AnNQK7NmDzp1sleq2CKXku8BNdFe42VMgYR+wLkCRJQ9RpJjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c+D2h91q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="c+D2h91q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A79D5C4CED2; Mon, 6 Jan 2025 15:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736178150; bh=zR3+9y5kDv8uISUm6hKLqTeKlpgJ9LpeHdoiL0nziwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c+D2h91q7Baqgo2R9+PYK8mnW8ajfgvfe3snib+6CM26LvqPjyyXKeAeh3hLiNCKW 1NCkBrx0hu35wuhSkNNBMh5ycelTH5HudkTwSzzWlZ4offAUmX2FBWKBP1Xxhwc4Uu GBBSPaI3qdFOyZ8Az/hS99ZQKICZ5JymShWisUI0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ajit Khaparde , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Andy Gospodarek , Sasha Levin Subject: [PATCH 5.10 006/138] PCI: Add ACS quirk for Broadcom BCM5760X NIC Date: Mon, 6 Jan 2025 16:15:30 +0100 Message-ID: <20250106151133.457009682@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250106151133.209718681@linuxfoundation.org> References: <20250106151133.209718681@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ajit Khaparde [ Upstream commit 524e057b2d66b61f9b63b6db30467ab7b0bb4796 ] 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. [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/20240510204228.73435-1-ajit.khaparde@broadcom.com Signed-off-by: Ajit Khaparde Signed-off-by: Krzysztof WilczyƄski Signed-off-by: Bjorn Helgaas Reviewed-by: Andy Gospodarek Signed-off-by: Sasha Levin --- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 37cc08d70636..7c65513e55c2 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4956,6 +4956,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.5