Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4034724pxu; Mon, 12 Oct 2020 07:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziAeHXOJ/NKjVJISmlBd95S59mNYZBv6Zhqo1v5vcBNWM/T+WLin3aLYRbhA22s/Eqm0qO X-Received: by 2002:a17:906:513:: with SMTP id j19mr29015198eja.129.1602514446349; Mon, 12 Oct 2020 07:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602514446; cv=none; d=google.com; s=arc-20160816; b=IdR+b/jsPFK7EcvGUbNcb+hLaYFUi3dQosR6HloKlhQH0zaed3hfiOq1bv1rx/Immb tT3bqyGiXB5T7s3+kiNVQMV+Oy4Lomksd7rOo1b12ldnKS+T6trbCxlzRXtq/VmncNa3 sCOFmtOUhdVvFckJJWUEBkahaUFHk6bz25bKh/fxUomN/q6h/Il+jOeP32nzLnXwyyjL NqZKmCvqLzDMSxZmmmd5j55YqBGlaW33LIOQvBeevuRKCA4BJqyCor/Rcc2OR+DMomH4 X4MuFLz5YlXeR33dBIuC63y0i/i2ndy4tZ7lrAndSFAVzfqaOTxRJzZPgEV9a2oI9B4q KXxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:dkim-signature; bh=ojqtMNSWNFmnltVcI19y4PgDx4/GZSD7LUPmUdDISPM=; b=aLvGVyrvkcTey06/fFhJluZz7ROC/ZUWp8/+j3mjiFDPrW9/HeX5amTU7b0r3VPeF8 ZGtoIDzgZ489GYkhtuBbt1mwBvaJrF2pWmYUEX4uKzIquEOTEjVc2UqNU/ODs6apHrUm dDVInFwPnOj84Ad/Mf9Bh/AiLoraMNW3BcLYGVAJP8bSNJdmY4XCvYzFiBrtYnCDk4yd GuzjjKNn2hzy/BhkHsmaprOFtCvlMQjgn2Uc2vo4KEoWml56TjwQjt3Z7D/oGIy0D/ax IhdfenXpN4qRXi3zKFYruiaIJz9FoFmChP3gEJtzdVOtJH/tLePX1zYVTGYUUVBICSMf yYzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ab0mjyt6; 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 qn8si12074145ejb.74.2020.10.12.07.53.43; Mon, 12 Oct 2020 07:54:06 -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=ab0mjyt6; 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 S2389556AbgJLOvp (ORCPT + 99 others); Mon, 12 Oct 2020 10:51:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:57488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387930AbgJLOvo (ORCPT ); Mon, 12 Oct 2020 10:51:44 -0400 Received: from [192.168.0.112] (75-58-59-55.lightspeed.rlghnc.sbcglobal.net [75.58.59.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0A3982080A; Mon, 12 Oct 2020 14:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602514303; bh=MqiIO/6MLXuvTKpPmH2MYO7ZOZ7tXD/fVdrsl4Sxio4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ab0mjyt6GjPskoZ3bBXarcCywI9R/YTxaDDDWlwsdaq5jRBDUNjnMrLvHH4gNM1Da Pujbe7UUQgTx60I0z+s0XmsxmB7Jyhwj0PBW+Cmpftvmez29g4Ebj0jv8JdS++Ftla wsFSV7Lc0VBp6m4ype8rPRqRdYnpb6zptW/LGzew= Subject: Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call To: "Kuppuswamy, Sathyanarayanan" , Bjorn Helgaas Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, ashok.raj@intel.com, Jay Vosburgh References: <20200922233333.GA2239404@bjorn-Precision-5520> <1fdcc4a6-53b7-2b5f-8496-f0f09405f561@linux.intel.com> <95e23cb5-f6e1-b121-0de8-a2066d507d9c@linux.intel.com> <65238d0b-0a39-400a-3a18-4f68eb554538@kernel.org> <4ae86061-2182-bcf1-ebd7-485acf2d47b9@linux.intel.com> <8beca800-ffb5-c535-6d43-7e750cbf06d0@linux.intel.com> <44f0cac5-8deb-1169-eb6d-93ac4889fe7e@kernel.org> <3bc0fd23-8ddd-32c5-1dd9-4d5209ea68c3@linux.intel.com> <8a3aeb3c-83c4-8626-601d-360946d55dd8@linux.intel.com> <9b295cad-7302-cf2c-d19d-d27fabcb48be@kernel.org> <93b4015f-df2b-728b-3ef7-ac5aa10f03ed@kernel.org> <0013f3d2-569a-27ba-336e-3d4668834545@linux.intel.com> From: Sinan Kaya Autocrypt: addr=okaya@kernel.org; keydata= mQENBFrnOrUBCADGOL0kF21B6ogpOkuYvz6bUjO7NU99PKhXx1MfK/AzK+SFgxJF7dMluoF6 uT47bU7zb7HqACH6itTgSSiJeSoq86jYoq5s4JOyaj0/18Hf3/YBah7AOuwk6LtV3EftQIhw 9vXqCnBwP/nID6PQ685zl3vH68yzF6FVNwbDagxUz/gMiQh7scHvVCji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ZHdDlz8NFfCI gSb3NHkarnA7uAg8KJuaHUwBMk3kBhv2BGPLcmAknzBIehbZ284W7u3DT9o1Y5g+LDyx8RIi e7pnMcC+bE2IJExCVf2p3PB1tDBBdLEYJoyFz/XpdDjZ8aVls/pIyrq+mqo5LuuhWfZzPPec 9EiM2eXpJw+Rz+vKjSt1YIhg46YbdZrDM2FGrt9ve3YaM5H0lzJgq/JQPKFdbd5MB0X37Qc+ 2m/A9u9SFnOovA42DgXUyC2cSbIJdPWOK9PnzfXqF3sX9Aol2eLUmQuLpThJtq5EHu6FzJ7Y L+s0nPaNMKwv/Xhhm6Y= Message-ID: <95fb03e3-97c0-296f-25ba-5d7ce857ad86@kernel.org> Date: Mon, 12 Oct 2020 10:51:42 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <0013f3d2-569a-27ba-336e-3d4668834545@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/2020 1:13 AM, Kuppuswamy, Sathyanarayanan wrote: > Hi Sinan, > > On 9/28/20 11:32 AM, Kuppuswamy, Sathyanarayanan wrote: >> >> >> On 9/28/20 11:25 AM, Sinan Kaya wrote: >>> On 9/28/2020 2:02 PM, Sinan Kaya wrote: >>>> Since there is no state restoration for FATAL errors, I am wondering >>>> whether >>>> calls to ->error_detected(), ->mmio_enabled() and ->slot_reset() are >>>> required? >>> >>> I also would like to ask someone closer to the spec language double >>> check this. >>> >>> When we recover the link at the end of the DPC handler, what is the >>> expected state of the endpoint? >>> >>> Is it a some kind of a reset like secondary bus reset? (I assumed this >>>   one) >> I think it will be in reset state. >>> >>> Undefined? >>> >>> or just plain link recovery with everything else as intact as it used >>> to be? >>> >> > > Please check the following version. It should fix most of the reset issues > properly. > > https://lore.kernel.org/linux-pci/5c5bca0bdb958e456176fe6ede10ba8f838fbafc.1602263264.git.sathyanarayanan.kuppuswamy@linux.intel.com/T/#t > > Thanks, good stuff.