Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp852698pxk; Wed, 23 Sep 2020 19:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqEdIU9pa/rBgk6kNz5FOLAeQ5WmyegIJAVMB+KipWCjbtxfRprSyvSyLBGwK0plKJC86Z X-Received: by 2002:a50:d4d8:: with SMTP id e24mr2309285edj.1.1600913190529; Wed, 23 Sep 2020 19:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600913190; cv=none; d=google.com; s=arc-20160816; b=WWF84ezSUZKPxDBi2PbSFWAW2b18TF3M4F+eZBdrQtA5c5uY5A+o61I2CWuGe4btNz oSSEzrAnOOqtuPhiRXThp3LUK2pkcrnEG5XsU7N/dfZ3NYq7Bm8B9fbN4aRdKFFidQQQ OroBdtWn+E/2zQ4WQVWqPa/rolxnWcJ0KR0mZ6ABqawYxUhBuNRKj379AHb3dwbPC7Cv tbN9MyiuwCePEZEAybT0czM9Wi7yugKs0OMNftjWBa7krVEfoDe2FhNl++7sHKrTtUWb G6i1SVl2yMY6P21gK/pyIhYU9yJe6oeZBzfSnChTdIL7blzdJr/pZNDjEuScvUO+kqcZ RSfw== 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:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=quki/tNRMGS6om8yHXIPcVhwq5BxJsPXl4No/ZF8KgA=; b=wbR3qQwa7Q/IxvZNRkUQivX2vuBZXk9yk9XjdmS+V+P1KBpkJi/lTyHCV+DLwd0t6A 8LCTvFnAoW30cLXasvVdYURN2949P5zOAO1V0gcBxsR/9krkY6c548BYb2DcqZcB2hw+ JA1vsCFpqsBZdSLy+nlswatLbo9HTLWrC6f1r+FFs8rG0zU9rznWH/EiTXf95DURZeaJ pvjn7qVIsehIeIEjELOUgojTKWTfmN8vT8xHV9UWAX+bZEP0BwgEDlbudGuvAhqQYpDx kg6yusKHxtWBlM5YVzAE8CTc+4Wqv9k0deZMNUlPL/kVfIjAFWnwbM4cxy3yyWhk6x88 FSew== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si1254252edd.16.2020.09.23.19.06.07; Wed, 23 Sep 2020 19:06:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbgIXCEk (ORCPT + 99 others); Wed, 23 Sep 2020 22:04:40 -0400 Received: from mga07.intel.com ([134.134.136.100]:52288 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725208AbgIXCEk (ORCPT ); Wed, 23 Sep 2020 22:04:40 -0400 IronPort-SDR: SBloBsLui30GihXNSzR1dKJ9Wl7StnB+HpAQJMAfNcwzSlgMYCrlYTDB82U3By/P3D6bPzZBHb Kg3tsdQJ9BQQ== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="225204563" X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="225204563" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2020 19:04:39 -0700 IronPort-SDR: hz/RI71VQEz5S+0FXXacOm2hX8rmBeP1olv5jScvAu/g9sdK3wmEXYWmavhPCcjL5cd+rFH1b6 MjWukxp3Rl3Q== X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="382878614" Received: from jdelagui-mobl.amr.corp.intel.com (HELO [10.255.231.15]) ([10.255.231.15]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2020 19:04:39 -0700 Subject: Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call To: Sinan Kaya , 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> <3d27d0a4-2115-fa72-8990-a84910e4215f@kernel.org> From: "Kuppuswamy, Sathyanarayanan" Message-ID: Date: Wed, 23 Sep 2020 19:04:37 -0700 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: <3d27d0a4-2115-fa72-8990-a84910e4215f@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/23/20 6:15 PM, Sinan Kaya wrote: > 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? Its required for hotplug capable ports. Please check PCIe spec v5.0 sec 6.7.3.3. The Data Link Layer State Changed event provides an indication that the state of the Data Link Layer Link Active bit in the Link Status Register has changed. Support for Data Link Layer State Changed events and software notification of these events are required for hot-plug capable Downstream Ports. > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer