Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3940964pxj; Mon, 21 Jun 2021 09:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhusxZ1YzkxI88zU4z2G4lPY9DMIVLaWYXlEb1qs4QXDqwTPjGP4COAVkvuBF9ZKg6M0EX X-Received: by 2002:a05:6e02:2142:: with SMTP id d2mr2573538ilv.48.1624294217925; Mon, 21 Jun 2021 09:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624294217; cv=none; d=google.com; s=arc-20160816; b=ZyrZGBlmI5xB/unOVFQmGViqoUaBG4ESUng9cMNLRFiMPc91XwtRxotn9R1ngTwxpS XlrGkMnTsSAG0L1hyzbTFSUOeOETQJq3nxNt1G95qtixgAqYAOPoopsvGBv3vuItljN9 6C7znAJEq8QZNPMn9Z+CMjxcmgPpXttmk0xXxSYjf6da5F7x0U5KQ79M6awbMBO1S1Sf elwIASf47KxZk7e/Nxxixb8H62SImI1vF+3ymWlyqmQUwD7h5UHJZAdp+VK/vyY7nR17 gS3v+O7GhNOzlynyvpoW04pllKCbzDUV2Vw6ZKjknP1fD2gZK80Y8lQhn30/KQL/sfs5 lzZA== 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=OkqvUACF02WrO6CF90Q7Xtx45PFiGXNaVFD7TNPHszg=; b=A388PLf2IqD910Byq7ijcqOQqbrliuD7ml61AC4nnW7NrGshW90xzNBqmQ7g8Ri9op FF91JoLc+zdTHNsIps5K35SJUPoNd9YwA1Za7/cahD4i3EO/kGZcanVWfMlxllE5syYt DQayjwgQ5/Pwkt/UwebM9H0Tp7TbShcdchJBa6U7W4vC33gNh2YAHGkZ3GtPZNdDqn5Z YquP5geR138tl4w4oqijE00sCDs8kmto45+vecsjAfJx4orbpWX0VhHoZwpxNYNhNmZk 28rqGbOfdM44tMYAXpd223pjvmWJXbCMuqFStB2QhOVDkKc+PjHm8vYkL3o85NUchxXa 3OBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vPgsODDy; 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 s4si21708892jat.42.2021.06.21.09.50.05; Mon, 21 Jun 2021 09:50:17 -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=vPgsODDy; 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 S232491AbhFUQvy (ORCPT + 99 others); Mon, 21 Jun 2021 12:51:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:37530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbhFUQr6 (ORCPT ); Mon, 21 Jun 2021 12:47:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 95D9C6141D; Mon, 21 Jun 2021 16:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293233; bh=Us8ej3Dpz7iAYq8Ti6D8ZdHHlSlfCYYhYbReDpONHxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vPgsODDy0C0CNuIE+jURXPAVtA8I9mQrGE0kUXVFzOqGww4/WmfGHetJmJbzrHVFO GkDWtCVKU3Q8k0IL7saXozeckZ2QIosRzQP+vJXWsN2uMLFJKOVT1FdyuaDXN0tR6u d7Px4R43QWI+FXqnSBxlMD1VFc8TsyH9c/3N+MaU= 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.12 130/178] PCI: Add ACS quirk for Broadcom BCM57414 NIC Date: Mon, 21 Jun 2021 18:15:44 +0200 Message-Id: <20210621154927.198140249@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@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 @@ -4786,6 +4786,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 },