mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
To: "Konrad Dybcio" <konrad.dybcio@oss.qualcomm.com>,
	"Jingoo Han" <jingoohan1@gmail.com>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Bjorn Helgaas" <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH] PCI: qcom: Add register dump support for PCIe Link Down events
Date: Mon, 24 Aug 2026 12:47:05 +0530	[thread overview]
Message-ID: <f6d14be8-3463-41ed-92f3-f8ea51e798be@oss.qualcomm.com> (raw)
In-Reply-To: <f4f25633-668f-4217-8e64-d77a38e4770d@oss.qualcomm.com>



On 8/19/2026 4:15 PM, Konrad Dybcio wrote:
> On 8/11/26 6:12 PM, Krishna Chaitanya Chundru wrote:
>> When the PCIe link goes down unexpectedly, being able to inspect the
>> state of key controller registers at the time of failure is valuable
>> for root-causing the issue.
> In this current form, does this patch not cause the splats to appear
> for non-fatal linkdowns (e.g. hot-unplug)?
I agree, but there is no way to differentiate, like link down is from the hot
unplug
or actual link down. For actual link down we can use it for debugging.
>> If a storage endpoint is present downstream, the dump is printed
>> directly via dev_err() so it is visible in dmesg immediately, since a
>> devcoredump read from userspace could otherwise race with a storage
>> failure. Otherwise, the buffer is handed to the devcoredump framework
>> so it can be collected from /sys/class/devcoredump/ for offline
>> analysis.
> I think this is a bit too much, a single implementation is enough.
we had a discussion with mani, mani doesn't want to dump these registers
in dmesg, that is why we are using devcoredump. And in case of NVMe or
storage devices and if the rootfs is in that storage, devcoredump may not
work,  that is why we are dumping the regs in dmesg in case of storage
devices.

- Krishna Chaitanya.
>
> Konrad


  reply	other threads:[~2026-08-24  7:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11 16:12 Krishna Chaitanya Chundru
2026-08-19 10:45 ` Konrad Dybcio
2026-08-24  7:17   ` Krishna Chaitanya Chundru [this message]
2026-08-20  5:09 ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f6d14be8-3463-41ed-92f3-f8ea51e798be@oss.qualcomm.com \
    --to=krishna.chundru@oss.qualcomm.com \
    --cc=bhelgaas@google.com \
    --cc=jingoohan1@gmail.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=kwilczynski@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®