Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1597322ybh; Thu, 23 Jul 2020 12:58:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSbIwYVP9+fy32ukJjPE3ZgAl4SAd8iiXrqjmiiKUddsaUXjdPKj3JSydqj1Z2LETvVyqA X-Received: by 2002:a17:906:1402:: with SMTP id p2mr5735885ejc.126.1595534332283; Thu, 23 Jul 2020 12:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595534332; cv=none; d=google.com; s=arc-20160816; b=fLi3e7+PWQoLMfrkzcjG4230ciSuRc4DLsb8t/DBAqOpjM2FzEykoEboWWcdxbfNo4 wRwvx9Y9+cCrXUV2yEEDQX8+O7LepBP6bhStZUG7YqGJUYodQl1lpTErLbaxhtw6dTiV mfkxxweY1gue/sNfPIba9EqifJX5d7J0z+MgZjkpjRFrqYdR5QY2qEaJr0noChGqewyY sXiR1W5gkHP/heAzh5pBuTbZbqINxbjapaCzHVG8yROPY89LUHFd4O8cUBlJF1C/2eLK JQa/01khf16QFlml2HpfsbmetmCHDrIZRNE2prmMua+MWsiDVKNIyaboEcwZESCpHCsS RZCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=Pqp647toGhph/v3DkrvmSzyx8H1BbCLWEGNUfFBEzpc=; b=vQhO+fG9iGkWK8aPALv3+SL6M8qagxmQha1i2oedtomumjn+cjzPCUmH10E5rsI0HV TjsNKgWGQ7lySL+di7rX3k8IeREiJP5FhUDqbsRjeNuOqRCOMAjpE0qZ09eoeM1hAbP4 Aqa2JvjQzRRL77AVECHhvzI0r95nXTBS29Scct1WJG8BlVa0c3oOBzmKZwFLPk3HQ55w ASYiWs/pFx/kMHMNaotQK6eikRxYQ70Bmy2w90cVaVCozL36F0oezfK9+J7+8KOUBUb7 XlJCsQjdK5Aik1m69ZGkvZAZg13oq9qbJJugOkbjVOYjbpJNxh1foHLnyCfkmT+TWbcz 5lhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="L/QfwoU4"; 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 bs1si3004462edb.418.2020.07.23.12.58.29; Thu, 23 Jul 2020 12:58:52 -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=default header.b="L/QfwoU4"; 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 S1726768AbgGWT5q (ORCPT + 99 others); Thu, 23 Jul 2020 15:57:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:55868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgGWT5q (ORCPT ); Thu, 23 Jul 2020 15:57:46 -0400 Received: from localhost (mobile-166-175-191-139.mycingular.net [166.175.191.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3BFF32086A; Thu, 23 Jul 2020 19:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595534265; bh=dRVWMy39tT6wAPfPtn0iZAUMp/DpcR3/2Kj29ElInIQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=L/QfwoU4oC9NCaDNrwHinZeKXeR9zsJSkX6zYFw5RRMbQZXDnUIGf1yV+B8lS1+Ki XjbrFTzYbkCA2/Alu+Ip6PtccBJRk65NnYKP1Jx5Y6TVLywojlIGBO94LhPJMLjsZP k5VchAgtlSvB1CTg3X2ZM1c/6mNemM+n1Y75OsQY= Date: Thu, 23 Jul 2020 14:57:42 -0500 From: Bjorn Helgaas To: Alex Deucher Cc: Logan Gunthorpe , LKML , Linux PCI , Bjorn Helgaas , Christian =?iso-8859-1?Q?K=F6nig?= , Huang Rui , Andrew Maier , Armen Baloyan , "H. Peter Anvin" Subject: Re: [PATCH] PCI/P2PDMA: Add AMD Zen 2 root complex to the list of allowed bridges Message-ID: <20200723195742.GA1447143@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Andrew, Armen, hpa] On Thu, Jul 23, 2020 at 02:01:17PM -0400, Alex Deucher wrote: > On Thu, Jul 23, 2020 at 1:43 PM Logan Gunthorpe wrote: > > > > The AMD Zen 2 root complex (Starship/Matisse) was tested for P2PDMA > > transactions between root ports and found to work. Therefore add it > > to the list. > > > > Signed-off-by: Logan Gunthorpe > > Cc: Bjorn Helgaas > > Cc: Christian K?nig > > Cc: Huang Rui > > Cc: Alex Deucher > > Starting with Zen, all AMD platforms support P2P for reads and writes. What's the plan for getting out of the cycle of "update this list for every new chip"? Any new _DSMs planned, for instance? A continuous trickle of updates like this is not really appealing. So far we have: 7d5b10fcb81e ("PCI/P2PDMA: Add AMD Zen Raven and Renoir Root Ports to whitelist") 7b94b53db34f ("PCI/P2PDMA: Add Intel Sky Lake-E Root Ports B, C, D to the whitelist") bc123a515cb7 ("PCI/P2PDMA: Add Intel SkyLake-E to the whitelist") 494d63b0d5d0 ("PCI/P2PDMA: Whitelist some Intel host bridges") 0f97da831026 ("PCI/P2PDMA: Allow P2P DMA between any devices under AMD ZEN Root Complex") And that's just from the last year, not including this patch. > > --- > > drivers/pci/p2pdma.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c > > index e8e444eeb1cd..3d67a1ee083e 100644 > > --- a/drivers/pci/p2pdma.c > > +++ b/drivers/pci/p2pdma.c > > @@ -284,6 +284,8 @@ static const struct pci_p2pdma_whitelist_entry { > > {PCI_VENDOR_ID_AMD, 0x1450, 0}, > > {PCI_VENDOR_ID_AMD, 0x15d0, 0}, > > {PCI_VENDOR_ID_AMD, 0x1630, 0}, > > + /* AMD ZEN 2 */ > > + {PCI_VENDOR_ID_AMD, 0x1480, 0}, > > > > /* Intel Xeon E5/Core i7 */ > > {PCI_VENDOR_ID_INTEL, 0x3c00, REQ_SAME_HOST_BRIDGE}, > > > > base-commit: ba47d845d715a010f7b51f6f89bae32845e6acb7 > > -- > > 2.20.1 > >