Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1606946ybh; Thu, 23 Jul 2020 13:13:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4hcUGPVj5NNA+POqKuUi27gSX7lXS7dzLUGkMdjbcvX6hlzM3czJQAgv0UioWktKI0OI4 X-Received: by 2002:aa7:c4d1:: with SMTP id p17mr5569182edr.268.1595535198366; Thu, 23 Jul 2020 13:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595535198; cv=none; d=google.com; s=arc-20160816; b=vylx5QMgzfC7XxjejD7bnUtZ60c+zkpFMDL+gE9zpqdBj0nS8QCBL8PLDZswLHZ1el nreHiv4QCrtDc4OOJZNthc1P9BDk5/RburevuAelRf1OmZxDpHWCTFyrBxIwGSLkvtF6 R10VhKCSRM4P3Kxj4jKR2+fuzuJMEhJNYueOof+CA2PSIBGgElCIjQuItRLdgAgvum1s nKiyNjNJns20a6AcGsbkucNYDYdVy/OMKBvIX1auIb9M9lP+BK9XUw9ckaiyM3bZjHyT bUini7B6FAs/IqBZYezybbYPq1/PGtDY1liIMt2YNVZm1kmjbS9dvLu6g8zjgsq9HKQr /4nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:dkim-signature; bh=v1ayK2JNh09cbcXMchXBkeJUQfzVRgEw+NVUe/9qPvM=; b=lP+cjWCqdqXlmSRvNfCtKFBwOcfvECt3OkygGXxQhHCW0e2sQnYr1iQu+XCeVJFZVW IbIz/DAAVIX03gkVmF3BV5reTz4EvvUoQht2jAKxw20t/5AVdiy1IL/LHn7RZZzdWWuN 42Fb5X9bCposW2qheykkF+fqDXOg8jsJEkIPhAVzIGC8kwgafSWhlymcS6ZCqq3OnK8D SuZxE7cXWwJ8cC7TI6gdOdOTkKcp/wYWo3NSbiGTNIMhxy2qdF88gL1dO/N9+UVwJi5r 9KXrb2ZpfN0REXI6diXzjs4F23foqWb2rmbTrnA8fupv9mRlsif4roudOYVZYDr4sPtn QmrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=F15X1O9w; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c13si2520133ejb.70.2020.07.23.13.12.54; Thu, 23 Jul 2020 13:13:18 -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=fail header.i=@deltatee.com header.s=20200525 header.b=F15X1O9w; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbgGWULA (ORCPT + 99 others); Thu, 23 Jul 2020 16:11:00 -0400 Received: from ale.deltatee.com ([204.191.154.188]:43046 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgGWULA (ORCPT ); Thu, 23 Jul 2020 16:11:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=v1ayK2JNh09cbcXMchXBkeJUQfzVRgEw+NVUe/9qPvM=; b=F15X1O9wGoAqnElKkbPU/X/h7P 0QrI67MnbBQtdFQ06AWBIGKgDvDuXhUWVxuFLEcaI9M8N5cKBVaUIUJYfH2pBLYQSdgebxw/GcSJD twcHe8RmiW7EF923JFIMQZhgKYkv21HvAd1feR5/W6AaC5qM/uyhKzzhJIBh42Ew8WuQldAJWRLta rm7ZCNBtUQcz5FQH80GfIpCxvkJVh21oqcVhNNVoV2tz7V4tpVte9p/dqrIbALLW2FPrwsaIQtKwv /qwlXyK1WuAEQCBuUioWRt2bppy2e6n8qCBtfQD3PGudulEZnZUfv/vHX1VlPQ8lsfTH2PoQgGgq2 GS9x3Lpg==; Received: from s01060023bee90a7d.cg.shawcable.net ([24.64.145.4] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jyhYM-0002SK-JP; Thu, 23 Jul 2020 14:10:55 -0600 To: Bjorn Helgaas , Alex Deucher Cc: LKML , Linux PCI , Bjorn Helgaas , =?UTF-8?Q?Christian_K=c3=b6nig?= , Huang Rui , Andrew Maier , "H. Peter Anvin" References: <20200723195742.GA1447143@bjorn-Precision-5520> From: Logan Gunthorpe Message-ID: <89d853d1-9e45-1ba5-5be7-4bbce79c7fb8@deltatee.com> Date: Thu, 23 Jul 2020 14:10:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200723195742.GA1447143@bjorn-Precision-5520> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 24.64.145.4 X-SA-Exim-Rcpt-To: hpa@zytor.com, andrew.maier@eideticom.com, ray.huang@amd.com, christian.koenig@amd.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, alexdeucher@gmail.com, helgaas@kernel.org X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-9.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH] PCI/P2PDMA: Add AMD Zen 2 root complex to the list of allowed bridges X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-23 1:57 p.m., Bjorn Helgaas wrote: > [+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? Well there was an effort to add capabilities in the PCI spec to describe this but, as far as I know, they never got anywhere, and hardware still doesn't self describe with this. > 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. Yes, it's not ideal. But most of these are adding old devices as people test and care about running on those platforms -- a lot of this is bootstrapping the list. I'd expect this to slow down a bit as by now we have hopefully got a lot of the existing platforms people care about. But we'd still probably expect to be adding a new Intel and AMD devices about once a year as they produce new hardware designs. Unless, the Intel and AMD folks know of a way to detect this, or even to query if a root complex is newer than a certain generation, I'm not sure what else we can do here. Logan