Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp121477pxk; Tue, 15 Sep 2020 23:05:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1vNaxTdWmuXidbLeTn2W03Ru1VaYA3PNOOEQ3KBTsswYQPG0L6Mxnvp5AEBwxGqzQcxr3 X-Received: by 2002:a05:6402:50f:: with SMTP id m15mr27008572edv.41.1600236333641; Tue, 15 Sep 2020 23:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600236333; cv=none; d=google.com; s=arc-20160816; b=02J9jRsQnda7+JCBcNPIE7+5/KlYMyNRHfCdGcHyPeUgpevb2cjohUPVcPJ4Yra+5/ Gt3wQYg+DOP0UfQKb8ixxnb6b6FoX0o1oBg6rFsIQC4CsnxooezbiJStvvTXxg+Rzv/6 ZY6eQWdn/bsqoqbvWjU7T9rmewioQcO9s6BjlxpfDmPPlROrpcRjiVmQMzS6LyDd3S9M yOmBUqxoOLTCZ/5UrM7axlb6NMKm0RvABbs1zQpN1DKHCAE2ROR683vUe6PgllPfMK4m Fh0Md6DO8Msg3UhcVGTNJQkhXvbDXOQGKn7eFNb23Y+XUwamR7KwTaGDbu4L1gU4R1qt 1Qhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HNkpn8knUQRf75ccabZQOR+WL+blOBg465I1jkNznx4=; b=yonF1vdaJNX0aqYYkJqRK/+g32OUExe605uP4wnpcxejw/3KzzNLwXtxSkaPZHJyJj B8NM53QTsLv7aP8pSqF8BypOAaGy5EEWQepcvu+DlfRHZhURlWDQd8gJ1M1ChLyPH8KS hwRjDSeL8L3JAT21GYr/pY+zx8EFQgeQiDi9PVwRkRXWuBdrhWfHpCs3n7DGkD+9fv33 CWTsa6kQwWv6S1oK/XyUNCb57+7ZYMznrZR7qCK5OsjZUxbR2EBaASp/5IB8hfb+uOar T/iOg/Emnb832C5yspb7XmfuS5C6akDBRq7Eil5WDg21OQbJAtDTKA/hwlGhpWwz95e3 IOGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=MnrTjTd6; 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=ionos.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si12183570edc.112.2020.09.15.23.05.10; Tue, 15 Sep 2020 23:05:33 -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=@cloud.ionos.com header.s=google header.b=MnrTjTd6; 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=ionos.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726128AbgIPGCh (ORCPT + 99 others); Wed, 16 Sep 2020 02:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726093AbgIPGCd (ORCPT ); Wed, 16 Sep 2020 02:02:33 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E255C06174A for ; Tue, 15 Sep 2020 23:02:32 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id r7so8553816ejs.11 for ; Tue, 15 Sep 2020 23:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HNkpn8knUQRf75ccabZQOR+WL+blOBg465I1jkNznx4=; b=MnrTjTd684v+kA7TytUzDqVOH0AP94KL/aLIrgUj3A3/KfbidtssnPAsfSSFiKd6aF 47QNG4fEM/pIwRDzN408QnMz0ldbVrIko5qCRG+nkjqstl1olW4cDNI+4xkeHhn6dynZ kjSxaRoKpyQ5Aln0Qc5Tn+Mr4ec/lyDFgEt+bhsObGpbZFUYlZsmA8lAsCnxBcbLF3fl sln4d2QoQ1nAZQnVFwKwYnPDaedMIW+3KFz5ChD4emRLNIIBxadiVJv9E+jsgNPhqQhI bASmtew/QwgiXuUoIy4MKJNu9l+DOO7hyDkB67Tef7nV4amtIaY/26cqlwrclT14XsXd Mbww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HNkpn8knUQRf75ccabZQOR+WL+blOBg465I1jkNznx4=; b=pPncbx7PuC/uU9kewB2qEfjxoF6cAOD/pU+qa5hs73MvLfbS8YRhTZeOLWNgGucWZK 0O9n8UHwLPcCMjzheAq5eBVaz9FZLiPtA9hMRm3nItHUClssid+l9haSnKkFwlbzqUxQ DJIoytBNnAW1ErUYwPYX00t64bNColCu/joFDruwOyxWDwwrJk2HJDJ++JjemO9aDzrs ZHq47+SeO8vJtDvWZDP/PVpMY9M65h0Mg5WcZ/F1lBhhEPriTHeKVfQbBDUGWywNLTKm pbcPF4kaMSo5eXQYW+b0cgbcoSnPx5XpeBkqFLXehS52C41vyRJsrloYnr5lLYRda5k+ dqtg== X-Gm-Message-State: AOAM53316dbP5bZ2YTwGOE+VSfN02b+Ha+1phdaTT7F8lW6+sc0CtGZ2 KWa4HTn7pBIEwl353aNuePFHGlrTr7ZPGKaooQ+cgA== X-Received: by 2002:a17:906:c154:: with SMTP id dp20mr23280220ejc.115.1600236150808; Tue, 15 Sep 2020 23:02:30 -0700 (PDT) MIME-Version: 1.0 References: <20200916054820.GA853@wunner.de> In-Reply-To: <20200916054820.GA853@wunner.de> From: Jinpu Wang Date: Wed, 16 Sep 2020 08:02:20 +0200 Message-ID: Subject: Re: [RFC] pcie hotplug doesn't work with kernel 4.19 To: Lukas Wunner Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukas, see reply below On Wed, Sep 16, 2020 at 7:48 AM Lukas Wunner wrote: > > On Tue, Sep 15, 2020 at 04:15:15PM +0200, Jinpu Wang wrote: > > We are testing PCIe nvme SSD hotplug, it works out of box with kernel 5.4.62, > > dmesg during the hotplug: > [...] > > But with kernel 4.19.133, pcieport core doesn't print anything, is > > there known problem with kernel 4.19 support for pcie hotplug, do we > > need to backport some fixes from newer kernel to make it work? > > No known problem. Please open a bug on bugzilla.kernel.org and attach > full dmesg output for 5.4.62 and 4.19.133, as well as lspci -vv output. > You may want to add the following to the kernel command line: > > ignore_loglevel log_bug_len=10M "dyndbg=file drivers/pci/* +p" > pciehp.pciehp_debug=1 https://bugzilla.kernel.org/show_bug.cgi?id=209283 I added you as cc. I will gather other logs as suggested, and upload them to bugzilla. > > > > [ 683.218554] pcieport 0000:16:00.0: pciehp: Slot(0-3): Card present > > [ 683.218555] pcieport 0000:16:00.0: pciehp: Slot(0-3): Link Up > > [ 683.271702] pcieport 0000:16:00.0: pciehp: Timeout on hotplug > > command 0x17e1 (issued 73280 msec ago) > > [ 686.301874] pcieport 0000:16:00.0: pciehp: Timeout on hotplug > > command 0x13e1 (issued 3030 msec ago) > > [ 686.361894] pcieport 0000:16:00.0: pciehp: Timeout on hotplug > > command 0x13e1 (issued 3090 msec ago) > > Those timeouts look suspicious. Perhaps the hotplug controller > claims to support Command Completed Support, but in reality does not? > > > > CONFIG_HOTPLUG_PCI=y > > CONFIG_HOTPLUG_PCI_ACPI=y > > CONFIG_HOTPLUG_PCI_ACPI_IBM=m > > CONFIG_HOTPLUG_PCI_CPCI=y > > CONFIG_HOTPLUG_PCI_CPCI_ZT5550=m > > CONFIG_HOTPLUG_PCI_CPCI_GENERIC=m > > CONFIG_HOTPLUG_PCI_SHPC=y > > CONFIG_HOTPLUG_PCI_PCIE=y > > You may not need ACPI_IBM, CPCI, SHPC. will consider this. > > Thanks, > > Lukas Thanks! Jinpu