From: Niklas Cassel <cassel@kernel.org>
To: Shradha Todi <shradha.t@samsung.com>
Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
manivannan.sadhasivam@linaro.org, lpieralisi@kernel.org,
kw@linux.com, robh@kernel.org, bhelgaas@google.com,
jingoohan1@gmail.com, Jonathan.Cameron@huawei.com,
fan.ni@samsung.com, a.manzanares@samsung.com,
pankaj.dubey@samsung.com, quic_nitegupt@quicinc.com,
quic_krichai@quicinc.com, gost.dev@samsung.com
Subject: Re: [PATCH v5 0/4] Add support for RAS DES feature in PCIe DW
Date: Thu, 13 Feb 2025 15:39:16 +0100 [thread overview]
Message-ID: <Z64EFN2QZ2AOF11I@ryzen> (raw)
In-Reply-To: <20250121111421.35437-1-shradha.t@samsung.com>
On Tue, Jan 21, 2025 at 04:44:17PM +0530, Shradha Todi wrote:
> DesignWare controller provides a vendor specific extended capability
> called RASDES as an IP feature. This extended capability provides
> hardware information like:
> - Debug registers to know the state of the link or controller.
> - Error injection mechanisms to inject various PCIe errors including
> sequence number, CRC
> - Statistical counters to know how many times a particular event
> occurred
>
> However, in Linux we do not have any generic or custom support to be
> able to use this feature in an efficient manner. This is the reason we
> are proposing this framework. Debug and bring up time of high-speed IPs
> are highly dependent on costlier hardware analyzers and this solution
> will in some ways help to reduce the HW analyzer usage.
>
> The debugfs entries can be used to get information about underlying
> hardware and can be shared with user space. Separate debugfs entries has
> been created to cater to all the DES hooks provided by the controller.
> The debugfs entries interacts with the RASDES registers in the required
> sequence and provides the meaningful data to the user. This eases the
> effort to understand and use the register information for debugging.
>
> v5:
> - Addressed Fan's comment to split the patches for easier review
> - Addressed Bjorn's comment to fix vendor specific cap search
> - Addressed style related change requests from v4
> - Added rasdes debugfs init call to common designware files for host
> and EP.
>
> v4: https://lore.kernel.org/lkml/20241206074456.17401-1-shradha.t@samsung.com/
> - Addressed comments from Manivannan, Bjorn and Jonathan
> - Addressed style related change requests from v3
> - Added Documentation under Documentation/ABI/testing and kdoc stype
> comments wherever required for better understanding
> - Enhanced error injection to include all possible error groups
> - Removed debugfs init call from common designware file and left it
> up to individual platform drivers to init/deinit as required.
>
> v3: https://lore.kernel.org/all/20240625093813.112555-1-shradha.t@samsung.com/
> - v2 had suggestions about moving this framework to perf/EDAC instead of a
> controller specific debugfs but after discussions we decided to go ahead
> with the same. Rebased and posted v3 with minor style changes.
>
> v2: https://lore.kernel.org/lkml/20231130115044.53512-1-shradha.t@samsung.com/
> - Addressed comments from Krzysztof Wilczyński, Bjorn Helgaas and
> posted v2 with a changed implementation for a better code design
>
> v1: https://lore.kernel.org/all/20210518174618.42089-1-shradha.t@samsung.com/T/
>
> Shradha Todi (4):
> PCI: dwc: Add support for vendor specific capability search
> Add debugfs based silicon debug support in DWC
> Add debugfs based error injection support in DWC
> Add debugfs based statistical counter support in DWC
>
> Documentation/ABI/testing/debugfs-dwc-pcie | 144 +++++
> drivers/pci/controller/dwc/Kconfig | 10 +
> drivers/pci/controller/dwc/Makefile | 1 +
> .../controller/dwc/pcie-designware-debugfs.c | 561 ++++++++++++++++++
> .../pci/controller/dwc/pcie-designware-ep.c | 5 +
> .../pci/controller/dwc/pcie-designware-host.c | 6 +
> drivers/pci/controller/dwc/pcie-designware.c | 19 +
> drivers/pci/controller/dwc/pcie-designware.h | 16 +
> 8 files changed, 762 insertions(+)
> create mode 100644 Documentation/ABI/testing/debugfs-dwc-pcie
> create mode 100644 drivers/pci/controller/dwc/pcie-designware-debugfs.c
>
> --
> 2.17.1
>
Shradha,
Thank you for this awesome feature!
It would be great if we could get it included in v6.15.
Are you intending to send out a v6?
Kind regards,
Niklas
next prev parent reply other threads:[~2025-02-13 14:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250121115157epcas5p15f8b34cd76cbbb3b043763e644469b18@epcas5p1.samsung.com>
2025-01-21 11:14 ` [PATCH v5 0/4] Add support for RAS DES feature in PCIe DW Shradha Todi
2025-01-21 11:14 ` [PATCH v5 1/4] PCI: dwc: Add support for vendor specific capability search Shradha Todi
2025-01-21 11:14 ` [PATCH v5 2/4] Add debugfs based silicon debug support in DWC Shradha Todi
2025-01-22 10:36 ` Niklas Cassel
2025-01-21 11:14 ` [PATCH v5 3/4] Add debugfs based error injection " Shradha Todi
2025-01-21 11:14 ` [PATCH v5 4/4] Add debugfs based statistical counter " Shradha Todi
2025-02-13 14:39 ` Niklas Cassel [this message]
2025-02-13 17:37 ` [PATCH v5 0/4] Add support for RAS DES feature in PCIe DW Shradha Todi
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=Z64EFN2QZ2AOF11I@ryzen \
--to=cassel@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=a.manzanares@samsung.com \
--cc=bhelgaas@google.com \
--cc=fan.ni@samsung.com \
--cc=gost.dev@samsung.com \
--cc=jingoohan1@gmail.com \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=pankaj.dubey@samsung.com \
--cc=quic_krichai@quicinc.com \
--cc=quic_nitegupt@quicinc.com \
--cc=robh@kernel.org \
--cc=shradha.t@samsung.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