Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2350966pxb; Mon, 20 Sep 2021 19:46:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpBN1XLsFJKPwIEGD8OKCElA7ojVni+tO7YegadQ7rEJRSy/w2h+03Ob6TKex5fN6yaKN5 X-Received: by 2002:a17:906:a04f:: with SMTP id bg15mr34126579ejb.417.1632192389720; Mon, 20 Sep 2021 19:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192389; cv=none; d=google.com; s=arc-20160816; b=JStWe1WL1sGG/V70tGjoaqhXBOi7xsgbM4UeSEAL49ULENzldUZt7EC6ZxKzNWelQ8 yTB15HCoGljv4rykBDjAk0EYU6Ex09+IicH/FsQQYZ0Ip8S4EYdUDpfEQO13LB5U4xjF AdnzUjykmc1kt7yybv6JPuF0vm8PMxMwplyQitRpx8WX5/x17q3G91MRVgfyxJDS15RR XzeZFs2WtY6Qx/kuOqqPlm9/soCLNP7zwTMtFZm4nendjaBOplssA3LfBrxmNF3MLYTE wbtX5k0rC5HOZU68cYpUNu0cVsz2Gf4JMMaEAlQm/UVZMpN47EDwDQ79UL34KyvxKUqo tapg== 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=l4D5t/4grTgaKC3hqf0sJJyP09K4TaQUL3jgaD0/3TQ=; b=Wdcxrd1YBJ3gp16ga/SoZJL2m/p3laPieNK6J41lYu55+3hol5WvGzAROATWZQFbAe X6ijH5v3Ha81rMSKmOjPwJzzJg68ifJXY3WvF2GlnXogc3gpCf6/B2BOFXwwCLV7xy9a X8qqVuZZ87wm6CYoBSYDsDpUZKea3082HFY9Ze9Jh4NBUuXNe55AHQAJyzCY4n6mDBy8 0V64hc54kbWK22KoHTXuryVFLyx6CL3bIx85gQmMI+yNDReMiclbZiZe+FzGJh/Oqtk5 TPlR4f3KNtjad9U2cOARo5qOPVhbE78IkS7HciR1/MbHUBq2c0304oshXCB7TV811+eu 0kYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pThzj25Z; 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 8si1782360eje.191.2021.09.20.19.46.06; Mon, 20 Sep 2021 19:46:29 -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=pThzj25Z; 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 S1377711AbhITS1V (ORCPT + 99 others); Mon, 20 Sep 2021 14:27:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:40566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377714AbhITSUZ (ORCPT ); Mon, 20 Sep 2021 14:20:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0341C632B0; Mon, 20 Sep 2021 17:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158617; bh=NJqq6v/ZSiJFgHNyuGmhk4djZzWzmkKOy5QImzh5YvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pThzj25ZwEUUVu/ywaoMtQg1HXLRkXQUwKZHvYXy96YJYDmHRd6xwwLvCDUspPQpj WRkOnRgpSkQLtjhp8H+aug4n17pbBBZKK7ury3tfnDFldL0WZ4N8QfrDfpT7buLfKX P+Fl++LgSc058Wx4FhPz+aMkOXp5kB9cZRLhe35A= 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.4 239/260] PCI: Add ACS quirks for Cavium multi-function devices Date: Mon, 20 Sep 2021 18:44:17 +0200 Message-Id: <20210920163939.252266166@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 e230a7b5e70a..686298c0f6cd 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4922,6 +4922,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