Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2352174pxb; Mon, 20 Sep 2021 19:49:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMqzZF26p2Hv97RRaw7b5jfJ7JhWPMW+L4qXwKwq3h6sJzgHD2ouy1KKwsosOTsVKkwYbh X-Received: by 2002:a02:9204:: with SMTP id x4mr21724967jag.45.1632192546993; Mon, 20 Sep 2021 19:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192546; cv=none; d=google.com; s=arc-20160816; b=PM/L0sfwocN0FZtrXYKk7MjdmVcJC7xTJEAbGoywm0mS/+HZ9sH99M9vX7ZL1+VX+/ qrlIR51Nu4z8egAIhhFvuKiuExal3KWGKWQRcfeYB+E/ohYD48BYXSs1hRe6geRDPnvt kLOachzMvQWqtp30tTACvcveyUipFjweCZt37JXd4G4hprNndtUeke72ePxR8NdT4X/s oktH6/JRe61YxuWX88JpKQpMxuAbAsdY7K5YAsjmzRbbG+59DuJcYzrCjknZ8ek2H/ES QgCZKNIPx+ltIFquZSguIYKvxocnjW+JnvhBC/bEz3EX6PMyrSqM6GKNHrIrawr1YbW5 9X/g== 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=1PfXDxoghpXsY42FzD8yCXaUWa+2+PtMst/EhAAiMCM=; b=qct1jF0ivdl3QeP+LlAO9q3VcWnyukr87kESremXlC6txl4nW4dVpSkCgt2QeVoiJm 4EGjzPn1e8bxj3rkopANdw0h+ZGGjvWM7SM9LEZpAtRCES3c/oqiKXeNl5KrTouVBOIt 7cOXNw7fqka5UuWlZNJjiHPILGzTgvbf/tHRcMEBbfhiM8yWlM4zM4s0M1Lwx1JBvmEa tz8jT4aW9Q+3IPrxDa+iAOnKfqszOEQqsBSVHBbbbpCH+zjNa1IVA9QDXHyAxa8togqZ yxztpD2oAaMgTyj4xD1LNNZeP0VuADzRyM5sylfhbn2nsxOYebmnUgeW4OGraEZViZD6 7gmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A0gf4FKa; 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 g1si14029446jab.92.2021.09.20.19.48.56; Mon, 20 Sep 2021 19:49:06 -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=A0gf4FKa; 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 S1353322AbhITSik (ORCPT + 99 others); Mon, 20 Sep 2021 14:38:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:50466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379738AbhITSaX (ORCPT ); Mon, 20 Sep 2021 14:30:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DFD5F61AA2; Mon, 20 Sep 2021 17:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158815; bh=LRAZICBCUDopvk35HXaaFIpFsajdAv961wccYQcqU5c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A0gf4FKap0Vg+2lJd/S0wrK7DK1OcJTQURDiw0aeYA0Cih08md7WmA5rgDxmGgXHV VgTbcEhdFoOiHQZpLG27y/27zheKqT1SKvcJU9UkU3i03vSgBSJu/A0mcQbD/ygiZb O+wcP7meLfQoTqws5D3g1rcXQT9jP5rEEObJdTCw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, George Cherian , Bjorn Helgaas , Sasha Levin Subject: [PATCH 5.10 069/122] PCI: Add ACS quirks for Cavium multi-function devices Date: Mon, 20 Sep 2021 18:44:01 +0200 Message-Id: <20210920163918.037227330@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@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: George Cherian [ Upstream commit 32837d8a8f63eb95dcb9cd005524a27f06478832 ] Some Cavium endpoints are implemented as multi-function devices without ACS capability, but they actually don't support peer-to-peer transactions. Add ACS quirks to declare DMA isolation for the following devices: - BGX device found on Octeon-TX (8xxx) - CGX device found on Octeon-TX2 (9xxx) - RPM device found on Octeon-TX3 (10xxx) Link: https://lore.kernel.org/r/20210810122425.1115156-1-george.cherian@marvell.com Signed-off-by: George Cherian Signed-off-by: Bjorn Helgaas 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 f2e95944f681..5d2acebc3e96 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4864,6 +4864,10 @@ static const struct pci_dev_acs_enabled { { 0x10df, 0x720, pci_quirk_mf_endpoint_acs }, /* Emulex Skyhawk-R */ /* Cavium ThunderX */ { PCI_VENDOR_ID_CAVIUM, PCI_ANY_ID, pci_quirk_cavium_acs }, + /* Cavium multi-function devices */ + { PCI_VENDOR_ID_CAVIUM, 0xA026, pci_quirk_mf_endpoint_acs }, + { PCI_VENDOR_ID_CAVIUM, 0xA059, pci_quirk_mf_endpoint_acs }, + { PCI_VENDOR_ID_CAVIUM, 0xA060, pci_quirk_mf_endpoint_acs }, /* APM X-Gene */ { PCI_VENDOR_ID_AMCC, 0xE004, pci_quirk_xgene_acs }, /* Ampere Computing */ -- 2.30.2