From: Aksh Garg <a-garg7@ti.com>
To: Hans Zhang <18255117159@163.com>, <bhelgaas@google.com>,
<lpieralisi@kernel.org>, <kwilczynski@kernel.org>,
<mani@kernel.org>
Cc: <robh@kernel.org>, <mpillai@cadence.com>, <s-vadapalli@ti.com>,
<linux-pci@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v7 0/3] PCI: cadence: Add LTSSM debugfs
Date: Fri, 12 Jun 2026 15:00:32 +0530 [thread overview]
Message-ID: <d0feedff-b0f6-4a1a-a9df-fae9e2d58abd@ti.com> (raw)
In-Reply-To: <20260611165933.20071-1-18255117159@163.com>
On 11/06/26 22:29, Hans Zhang wrote:
> Hi,
>
> This series adds debugfs support to the Cadence PCIe controller driver,
> allowing users to read the current LTSSM state of the link for debugging
> purposes.
>
> Patch 1 introduces a new flag 'is_hpa' in the cdns_pcie structure to
> distinguish HPA (High Performance Architecture) IP platforms from LGA
> (Legacy Architecture) IP platforms, as they have different register
> layouts for LTSSM status.
>
> Patch 2 implements the debugfs file "ltssm_status" for HPA IP under a
> per-device directory. It reads the LTSSM state from the appropriate
> hardware register based on the 'is_hpa' flag and displays both a
> descriptive string and the raw value.
>
> Patch 3 adds LTSSM debugfs support for LGA IP, utilizing a new callback
> 'get_lga_ltssm' in cdns_pcie_ops to read the LTSSM state from the LGA
> register. The debugfs interface now supports both IP types seamlessly.
>
> =====================
> Test:
> root@orangepi6plus:~# ls -l /sys/kernel/debug/cdns_pcie_a0*
> /sys/kernel/debug/cdns_pcie_a010000.pcie:
> total 0
> -r--r--r-- 1 root root 0 Jan 1 1970 ltssm_status
>
> /sys/kernel/debug/cdns_pcie_a0c0000.pcie:
> total 0
> -r--r--r-- 1 root root 0 Jan 1 1970 ltssm_status
>
> /sys/kernel/debug/cdns_pcie_a0e0000.pcie:
> total 0
> -r--r--r-- 1 root root 0 Jan 1 1970 ltssm_status
> root@orangepi6plus:~#
> root@orangepi6plus:~#
> root@orangepi6plus:~# cat /sys/kernel/debug/cdns_pcie_a0*/ltss*
> L0_STATE (0x29)
> L0_STATE (0x29)
> L0_STATE (0x29)
> root@orangepi6plus:~#
> root@orangepi6plus:~# uname -a
> Linux orangepi6plus 7.1.0-rc3-00007-ge3963f3f4e31 #62 SMP PREEMPT Tue May 19 20:28:24 CST 2026 aarch64 aarch64 aarch64 GNUx
> =====================
>
> ---
Hi,
I have tested the series for LGA IP:
Tested-by: Aksh Garg <a-garg7@ti.com>
Regards,
Aksh Garg
prev parent reply other threads:[~2026-06-12 9:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 16:59 Hans Zhang
2026-06-11 16:59 ` [PATCH v7 1/3] PCI: cadence: Add HPA architecture flag Hans Zhang
2026-06-11 16:59 ` [PATCH v7 2/3] PCI: cadence: Add HPA IP debugfs for LTSSM status Hans Zhang
2026-07-01 5:19 ` Manivannan Sadhasivam
2026-07-01 6:32 ` Hans Zhang
2026-06-11 16:59 ` [PATCH v7 3/3] PCI: cadence: Add LGA " Hans Zhang
2026-06-12 9:30 ` Aksh Garg [this message]
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=d0feedff-b0f6-4a1a-a9df-fae9e2d58abd@ti.com \
--to=a-garg7@ti.com \
--cc=18255117159@163.com \
--cc=bhelgaas@google.com \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=mpillai@cadence.com \
--cc=robh@kernel.org \
--cc=s-vadapalli@ti.com \
/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®