Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp832962pxk; Wed, 23 Sep 2020 18:18:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9HRRSP48p/qQKWVoWbW3u9VRHj6DQNmz2UApw7XXsjEpLxE0D4xx4iKcH9KWNqH4kWrZ6 X-Received: by 2002:a17:906:368c:: with SMTP id a12mr2307523ejc.423.1600910326780; Wed, 23 Sep 2020 18:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600910326; cv=none; d=google.com; s=arc-20160816; b=ukVp9GRUfIT+4puxU75l6XzybsMqErO62CEud7g1FRHnsPfCSnHSVjCerG+W+Vw0Jo aBgfSt/ilsr8ex9BVHBCpf0dRYW3Go1aywLbECxLEonceGbBe2hfSXDpPo7t7sKEavtC bgyGQqIRW63fDNFvN/mR/XOPTibJlMgKT6IKer7wX878RoHD3KrneyJHFXk+/KCAESOx +vGbW131lAFj+jefXuqSEUXwGlOdiwKugvSznz486Z9nyqOBokkgsKoC86kOuX6/jimw Qln7rQQBjc9I6CE5t6iny/40p+hMIhqJekw4FFMpsMO1qcrevwFtmkKaHs9HZngEwx3D iJeg== 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=CL9HezkdfBu1f18IxP1ZAL2fNl5c8MO3eDnJOKFgTYw=; b=hfOVrHajfi68tiblKNzjBLlCDJGyeJHeuPJRD/q/mIWMgO5nRIb4Ex7JbNsL1+zpu8 DAxPSjMSNczAw3w8VEPL9a7O+izoBhCMT/rQRUl0G+M3aBewougOeRMJ46T6rgDaBlnN xnQwj61MxjGpNg4iCG5gQJm3e0xsjXRYaw+pyWk/gcM4NTKNxa11OyVXXpHsy5QAmSfl I3moMYG0FgjQdGNyTTZrtOoS6WKDNxjgBRv04Qvn8uMtTIwOJGNKSyWJKG9OWDIeaq4b fT1TKucPzXFfx0lK50riWDSjU/8+jZVyxErIeILjfmDpXWTdxnPOjU3fJCD6ecm6rEUx oCEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y508G1MM; 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 q12si971435ejs.146.2020.09.23.18.18.23; Wed, 23 Sep 2020 18:18:46 -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=Y508G1MM; 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 S1726832AbgIXBPN (ORCPT + 99 others); Wed, 23 Sep 2020 21:15:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:36160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbgIXBPM (ORCPT ); Wed, 23 Sep 2020 21:15:12 -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 30E1520702; Thu, 24 Sep 2020 01:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600910111; bh=6VO9dZwnsXlsKXsq0Q9aS8CX2S/ibUxCCgYUgCz+1cI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Y508G1MMUD4YhUuUYF9rcawq9VpUqinyJ3AAw/CQOB0okNc9aC3Kp8gKpUWAFePw0 mxhh2lJHF54imbrwSgqb55GKqvHNxHih7AL2YwJxpIZYjwmd4KfDaCVaJ9Fgp839Du Io+IKAvRKrXOBLVqPtqpwgOWyTmIgzmr+m0U23Rk= 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> <704c39bf-6f0c-bba3-70b8-91de6a445e43@linux.intel.com> From: Sinan Kaya Autocrypt: addr=okaya@kernel.org; keydata= mQENBFrnOrUBCADGOL0kF21B6ogpOkuYvz6bUjO7NU99PKhXx1MfK/AzK+SFgxJF7dMluoF6 uT47bU7zb7HqACH6itTgSSiJeSoq86jYoq5s4JOyaj0/18Hf3/YBah7AOuwk6LtV3EftQIhw 9vXqCnBwP/nID6PQ685zl3vH68yzF6FVNwbDagxUz/gMiQh7scHvVCjiqkJ+qu/36JgtTYYw 8lGWRcto6gr0eTF8Wd8f81wspmUHGsFdN/xPsZPKMw6/on9oOj3AidcR3P9EdLY4qQyjvcNC V9cL9b5I/Ud9ghPwW4QkM7uhYqQDyh3SwgEFudc+/RsDuxjVlg9CFnGhS0nPXR89SaQZABEB AAG0HVNpbmFuIEtheWEgPG9rYXlhQGtlcm5lbC5vcmc+iQFOBBMBCAA4FiEEYdOlMSE+a7/c ckrQvGF4I+4LAFcFAlztcAoCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQvGF4I+4L AFfidAf/VKHInxep0Z96iYkIq42432HTZUrxNzG9IWk4HN7c3vTJKv2W+b9pgvBF1SmkyQSy 8SJ3Zd98CO6FOHA1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:09 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <704c39bf-6f0c-bba3-70b8-91de6a445e43@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 9/22/2020 7:44 PM, Kuppuswamy, Sathyanarayanan wrote: >> here does the restore happen here?  I.e., what function does this? > > DLLSC link down event will remove affected devices/drivers. And link up > event > will re-create all devices. > > on DLLSC link down event > ->pciehp_ist() >   ->pciehp_handle_presence_or_link_change() >     ->pciehp_disable_slot() >       ->__pciehp_disable_slot() >         ->remove_board() >           ->pciehp_unconfigure_device() > > on DLLSC link up event > ->pciehp_ist() >   ->pciehp_handle_presence_or_link_change() >     ->pciehp_enable_slot() >       ->__pciehp_enable_slot() >         ->board_added() >           ->pciehp_configure_device() AFAIK, DLLSC is a requirement not optional. Why is this not supported by non-hotplug ports?