Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2325278rwl; Thu, 30 Mar 2023 08:50:59 -0700 (PDT) X-Google-Smtp-Source: AKy350ZwB+OoHjGojH6Ua6fnmyHJ0lJh0XSMOL7X96lfNJpN8ScCrQM9jaIJr2wYHdArpcyjalke X-Received: by 2002:a05:6402:524e:b0:500:3fd0:25a8 with SMTP id t14-20020a056402524e00b005003fd025a8mr2693453edd.0.1680191458732; Thu, 30 Mar 2023 08:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680191458; cv=none; d=google.com; s=arc-20160816; b=XIGNHwMl+wL/4ply+gJgEzOaVLg/vesqQtygQU7NnmyFPwmqK1HGyoCghnb8cmh0Cl Dz6zPLVVXxSD92v+g0zmLB/S2cKi4XHQBa5ar3tXNf7ob9imL5sFvzjzF299M6y0U3Tm 9C0wRb66bRgZtpsakIbwRFG3OHLxyktRKH+aMBln54RhLQkj79uaNwvc1X53KmcpAbXz THx+s4MIriMfj+rdSEG2/H/lIuPVIp3eu7VU6hmXk2dSkzG9KvBGPktYrjP0pOABrNfy g+L9i9GQ5rTVgk1i6savuruQ3wLLtuFktzvxCGRfM3CSnJFo4x3fcqqK8kQeHgeqcnGB /+rA== 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=M931gqFkhtJc4nMnflVIFqO/hwVodIaR2BV9DZgNyr4=; b=lBz3k7CNvhMxRtERuJZEGixYTLAR3LE15r8hzL7T6FXKxFEUVVub81GWiY/CKWU5zx 737DBcxN3jDqygo4AZOM7Lub7ua0fifldJxJfaIC3jgw3gaXqn955ouMgnmSq1Mr/XyZ 1Y33i1X/mZea5dZ13DwxhSRrsx98NSkFdSjtWrnlzAoBrzCZL5eXDSXs75ATAa1JW3ah VMlMZKFtRntN5gL9vlvM0wJA8DQYcz74bkzXGDashM/B4KkANqsnOJ9f50c0lqcbBnZQ /H0tst60wABeqHqirQPiPZWZ8XySq/CIXpHSORpH8DY6cjotgEKaaFQzI+RBOtuMJlHz neew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bt9YDLGh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020aa7d647000000b004c0abff5545si59218edr.614.2023.03.30.08.50.28; Thu, 30 Mar 2023 08:50:58 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bt9YDLGh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233338AbjC3PuF (ORCPT + 99 others); Thu, 30 Mar 2023 11:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233424AbjC3PuA (ORCPT ); Thu, 30 Mar 2023 11:50:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0DF5CA3D; Thu, 30 Mar 2023 08:49:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D72E7B82775; Thu, 30 Mar 2023 15:49:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D1D8C433EF; Thu, 30 Mar 2023 15:49:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680191368; bh=Z+ICADVJmBYfbkDQNQ16opLmMYhXD1MFGVFUNtdf/Ok=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Bt9YDLGhvOn7KtJymvLKY+lXNZrY0gmLLUXcW9JkpMFDzmKQgv0QKnWR2ryyPogdf pW4stpNRi942rVmHZZvr611dYIsQwwFNgxVSnUErMSb93RsDMRtWHlB3Cn+d085MOA X+tl9u5aphpQkhCrNUcf3o5S+MiWUGv4i91lFrPdl17emPVCFX7dp8PsFJVfPOaO4B gEtAryLRhAJgBDTmm72RnNCQNOHUMafE72upMgPDfjlVQnGOsSksB6PgjrWkoOzsPQ whBd4N4qjQsb//hQAR/sqN64/Va+ii+wBK00VexbZSH+DR8PWvHFfkEIPy+5E3eWWC QRdeuPe8GKb5A== Date: Thu, 30 Mar 2023 10:49:26 -0500 From: Bjorn Helgaas To: Wu Zongyong 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: <20230330154926.GA3150990@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330021016.GA30164@L-PF27918B-1352.localdomain> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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: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. Bjorn