Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1794068pxb; Fri, 20 Aug 2021 14:18:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJgoGVScgaEoXTiCWb8nhmHFLu8J/Aj+5oTflLsTgXuHJWbv4iP9ZwH46PgnYJfRBhJE9H X-Received: by 2002:a17:906:fb09:: with SMTP id lz9mr23798837ejb.123.1629494316529; Fri, 20 Aug 2021 14:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629494316; cv=none; d=google.com; s=arc-20160816; b=RxKu1c9WO6C+t41cjOnETdlOTacomnOIoq5F31uP2Uj7GymA5CtN2nsJ1OfQ0ermu4 UVd0DK9P8iVgzjlXJwAbT+zQ8IWVNtYed/nSYNtFBhQgXjjpzPPOnJEEh7PqFWB8gGFn nwpIs/6RvAFPdhveRl38FbFKZMzJteyRuEJ3rgKC0f7iX1YUyAs+iXW/8YD1Oej+D5wd +6vitMkajuV4QpN5XnACthupfupIde2fK1pBL9JvbFC4+SwgUnI6f4NecNCBJQvZPtKq 4wqyB7s5T2Z7uPat+Gu4fwC7Ho7Ho1yEm/poKbwwbM/jk63D4gTmQ0WKIrKspkCnoViQ xuGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=4evw5pl6LxnloD5dojKjAbwL9h36UkxWbdtIk7d70Zs=; b=TBGhkI5+sPjvnOuavUaQxsb/4hCQkFx4UtGz/iZoXBnXY/3HA7o5Kh9qhmxu65hPZ7 2WVqToCVSF73KT9F0grpBHHPz0alAc4if6Rzk529uGbzUdP6c9SAQMJsAsm3h1HHvy2F 9xPKdZcfzefKvpP0Z0Qwr4LcsDjsTSqoHEh4x0Tn5XfBeaJS5HtCa4A+3WtQNcNpa53j RXAavGJZ/uaacxpdwqD7VdEinNGj+4njmOMLACAxCP2bI4yZnwtvqv6oppMslhYHUPX0 M9P5a7ZRiySh/hRQ2padF72rhwIJzsX7MAfHmwa9td0BCtnrG1XnLZhYb52xR4Akxsog 3E+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ix07Xbqp; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si957217ejc.522.2021.08.20.14.18.12; Fri, 20 Aug 2021 14:18:36 -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=@kernel.org header.s=k20201202 header.b=Ix07Xbqp; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240487AbhHTVPE (ORCPT + 99 others); Fri, 20 Aug 2021 17:15:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:56932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239997AbhHTVPB (ORCPT ); Fri, 20 Aug 2021 17:15:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6D79610CC; Fri, 20 Aug 2021 21:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629494062; bh=G6ak4MPoXfP+D+22vDf1POlItZNsAjtB8G/diCkHPtc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Ix07Xbqpe7IECD5DacDTXHLh53szEimduCgkTfoa+U4HfSfAmqIBGGdxaiAAZx0PY HzBSZoZpWWmDdGEE0Yb7TksVYqCC1mbSekhOrgZ1Y5O4A3k3e1JATd+yW6po3h2iUj PN+Xa5uFthnkbiTvbgNJWj5wJdO3jeqhBM0CVRfY3cRSOCSnsVLdpEtp/wAqegvebG RSKpcnrIBjcgGjwA1Hm0+RMbrIteydLTY2109V0bD8QnLIYqICDxepNxZReNvuuMCu LQv+mmRJ2JodNBr1OwxIe0T+xAI6zrIQPjyt7MZp1iplxRhTOJ0aAe7V8IT3AcyT28 g8ejx97j+royg== Date: Fri, 20 Aug 2021 16:14:20 -0500 From: Bjorn Helgaas To: George Cherian Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com Subject: Re: [PATCH] PCI: Add ACS quirk for Cavium multi-function devices Message-ID: <20210820211420.GA3359633@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210810122425.1115156-1-george.cherian@marvell.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 05:54:25PM +0530, George Cherian wrote: > 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. > > Apply te quirk for following devices > 1. BGX device found on Octeon-TX (8xxx) > 2. CGX device found on Octeon-TX2 (9xxx) > 3. RPM device found on Octeon-TX3 (10xxx) > > Signed-off-by: George Cherian Applied to pci/virtualization for v5.15, thanks! > --- > drivers/pci/quirks.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 6d74386eadc2..076932018494 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -4840,6 +4840,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.25.1 >