Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2564452lkm; Mon, 20 Sep 2021 18:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN+etUuG4UlKBbDjMjU9w2OBbhhGfIgge9mv0j3tLqA2pRK5wu3sH1oj9hqZmVrjJcijBV X-Received: by 2002:a05:6638:2589:: with SMTP id s9mr21721956jat.87.1632189016067; Mon, 20 Sep 2021 18:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189016; cv=none; d=google.com; s=arc-20160816; b=jMuxjkxpW/mwhvwTFlNwzzSvcQy1oo+6PRE55l0k4J/+OrAeRTr4C4Ez0shu+hWJnC udnMxDFKmthYePgVf9WT9QpEIZCBlkuhvKEiHpgkZ17ZcNE+lipnhoCwAt9AHlvQdovb jrOgOckND6ZTM6GpS85xm9uh1xBDdpKy2TvLVnm/gL5mqd66rP9U6XTXcp8ezHpul85p +S+GKSiA9MYdpCy2c121XqB1Fs6mUEC+F1Ex/vKzwnrEWsFAq+SJ0YgjK5H1buq/Fiv9 WLDzuC49Mo59oowtjLRLuiX1IYFJsl7u9B5He3SjGLejNjZjhBFsSVuoBbCp6ZXZ8UBJ UTng== 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=sFNKy3lgHmhfKkUtLtnJzPHTSwKxEkPBEZmQszWWE9Q=; b=OCLS4cATCi7LAvgOEhYcSBF//HU0WSh+MiBhvRodP59xif0I5ec1XuRCl6Rwd0oD+v 9dnisKH7FuglgGf8MtGH+Y6oOngUqgM63WJN/eThhkYbwuhHJK2IJKXrPc4f4ZTpVz5D I8pYSAQMaFfDahw4wW9DlNAUV4i9eoZ21SIoYbcRuFHVWDqiVpts8lJwaXyhrSg9GDd5 1OfT4nRK+uHKDd2VYqt2f6t6bhcUN5V1KMtLbcLPEgGzP2Pb7yPe7XTSgNfnq8bSYztY zjSlj40vWTr7kPILAWHv96GAItnAMyBGxYSiHjBn+Ra/9D1w7c+20N8SJsekbbGcuJNO RbaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tQwlbKsx; 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 s10si13729266ioo.6.2021.09.20.18.50.05; Mon, 20 Sep 2021 18:50:16 -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=tQwlbKsx; 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 S1347884AbhITSDp (ORCPT + 99 others); Mon, 20 Sep 2021 14:03:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:54992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355883AbhITR47 (ORCPT ); Mon, 20 Sep 2021 13:56:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 34D6D6320F; Mon, 20 Sep 2021 17:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158077; bh=3DvMnxOJwNlDwQm0Ehk0Wu9nPg2w9XgqSll7I2O3/5s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tQwlbKsxeIo/cckC5PVJUZcEPQZCd65/dpiNldmi9WURTIMhfIlcm9lQkSWZCmpjc NM8GPC5SpEuqbDtJFWgQ4R+D0koGl4HNhD4/aUPxBGKiBFLC2M/3XTI1dskkseP+41 BbyIRpbaAwP89KZ0FDhqDxzXSuGG1qnCXy1M4qiY= 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 4.19 277/293] PCI: Add ACS quirks for Cavium multi-function devices Date: Mon, 20 Sep 2021 18:43:59 +0200 Message-Id: <20210920163942.899934332@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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 48c1fbb17e40..4eb8900b9a5c 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4778,6 +4778,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