Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp443101rwl; Thu, 30 Mar 2023 19:17:17 -0700 (PDT) X-Google-Smtp-Source: AKy350bFYa/w87QRMWoXhdlZ+l8azLQsHYCZy3zXEOQGtFZdpGSlf4yf8JtHTiJinNnN/L/puRf0 X-Received: by 2002:a05:6402:34c6:b0:502:92d:4f50 with SMTP id w6-20020a05640234c600b00502092d4f50mr5429179edc.1.1680229036814; Thu, 30 Mar 2023 19:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680229036; cv=none; d=google.com; s=arc-20160816; b=TygLDXGmPOUAOX//uVt4I/cBH7uIobsnejXi1X7ROdAQ5G4pAW7IhXCorxUPn/qQFT tbVD6U4VUwOMEeapHZDP+oXJahJUiUvWnVWN8DV2LcwRR1FNbyjC7bTa7NOZ9TC2Fo2V E93gw59lOZXqstjZFmfC+c6hD0mHQdLVjFSSYPaF47rOh6nxX3C8sBWqX2FnrrE9QqTW IO4/A5ggknUon2FhkaLkjo21SJatbQFJqC6qf25zNQ2sdW+NU9ULzGNhCTQiohNK13tw /Do0f/uXiMYIZrYx905hzbVgawpLk0XgRCOm/9a5qBLe2tJWSN2Xs+gK0kpxAO46LfFO 8CrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date; bh=fwqOCb1ubmy+SGpCg1MNqBEYdaVJqCMQotwFMAqrK4I=; b=VgJvXwZoPO7oXbYdJOd0mGGmyLmsOeEKkdYB0uEumqHFWzWxwPG6QtjP5Ll3UynbGI rSeBgXUY71XuzMopNCncJ5YWa17Ray2Uw5aqeeWUnA4uBA02kRaPQAB33nWF/IjxKqL7 o0uJ3kMat7+fxZ/uiNu3LYMZdSwkv1atYsriSvGsOr9dvVn6LNTF0oKZB2xpE/BySZTh I5Z4fMI1DN452W8VjVwWEcuKqcSwoslFUxYPLG5HN+wX0WJw1+gJwGw2otF/tGUOa0wN PpiTTRil/gNoFIizuHI0hEHYgpzBkXSzqsnTy0HRVNUybMevYBaZHqLuqgQXKYOno7LK ga3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020aa7d74a000000b004fd2b07230esi1026432eds.64.2023.03.30.19.16.50; Thu, 30 Mar 2023 19:17:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbjCaCLV (ORCPT + 99 others); Thu, 30 Mar 2023 22:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjCaCLT (ORCPT ); Thu, 30 Mar 2023 22:11:19 -0400 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD14BDD6; Thu, 30 Mar 2023 19:11:18 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=wuzongyong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Vf0OVtn_1680228674; Received: from localhost(mailfrom:wuzongyong@linux.alibaba.com fp:SMTPD_---0Vf0OVtn_1680228674) by smtp.aliyun-inc.com; Fri, 31 Mar 2023 10:11:15 +0800 Date: Fri, 31 Mar 2023 10:11:15 +0800 From: Wu Zongyong To: Bjorn Helgaas Cc: sdonthineni@nvidia.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, wllenyj@linux.alibaba.com, wutu.xq2@linux.alibaba.com, gerry@linux.alibaba.com Subject: Re: [RFC PATCH] PCI: avoid SBR for NVIDIA T4 Message-ID: <20230331021115.GA435@L-PF27918B-1352.localdomain> Reply-To: Wu Zongyong References: <20230330021016.GA30164@L-PF27918B-1352.localdomain> <20230330154926.GA3150990@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330154926.GA3150990@bhelgaas> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023 at 10:49:26AM -0500, Bjorn Helgaas wrote: > On Thu, Mar 30, 2023 at 10:10:16AM +0800, Wu Zongyong wrote: > > On Wed, Mar 29, 2023 at 12:05:15PM -0500, Bjorn Helgaas wrote: > > > On Wed, Mar 29, 2023 at 07:58:45PM +0800, Wu Zongyong wrote: > > > > Secondary bus reset will fail if NVIDIA T4 card is direct attached to a > > > > root port. > > > > > > Is this only a problem when direct attached to a Root Port? Why would > > > that be? If it's *not* related to being directly under a Root Port, > > > don't mention that at all. > > > > Yes, this problem occurs only when the T4 card is direct attached to a > > Root Port. > > I have test it with a T4 card attached to a PCIe Switch or a PCI Bridge, > > and it works well. > > From an electrical and protocol point of view, the device should not > be able to tell the difference, so Lukas' suggestion that it may be > related to reset delays seems very pertinent. I will test it with the commits mentioned above. But it may take some time since it is not easy to replace kernel in our environment. > > Bjorn