* [PATCH v3 0/3] Fix interrupt log message
@ 2025-06-07 16:01 Hans Zhang
2025-06-07 16:01 ` [PATCH v3 1/3] PCI: rockchip-host: Fix "Unexpected Completion" " Hans Zhang
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Hans Zhang @ 2025-06-07 16:01 UTC (permalink / raw)
To: shawn.lin, lpieralisi, kw, bhelgaas, heiko, mani
Cc: robh, linux-pci, linux-kernel, linux-arm-kernel, linux-rockchip,
Hans Zhang
Dear Maintainers,
Detailed descriptions of interrupts can be seen from RK3399 TRM doc.
I found two errors and cleaned up the driver by the way.
This patch series improves the logging accuracy and code cleanliness of
the Rockchip PCIe host controller driver:
Log Message Clarifications
Patch 1 fixes a misleading debug message for the PCIE_CORE_INT_UCR
interrupt, replacing a duplicated "malformed TLP" message with "Unexpected
Completion" to reflect the actual error condition.
Patch 2 corrects the terminology for non-fatal errors, renaming "no fatal
error" to "non fatal error interrupt received" to align with PCIe interrupt
semantics.
Code Cleanup
Patch 3 removes redundant header includes (e.g., unused clock/reset
headers) to streamline the driver and reduce build dependencies.
These changes enhance debug log reliability, eliminate ambiguity for
developers.
---
Changes for v3:
- Add Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> (Mani's new email address.)
Changes for v2:
- Drop patch [v1 3/4].
- The other patches have not been modified.
---
Hans Zhang (3):
PCI: rockchip-host: Fix "Unexpected Completion" log message
PCI: rockchip-host: Correct non-fatal error log message
PCI: rockchip-host: Remove unused header includes
drivers/pci/controller/pcie-rockchip-host.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
base-commit: ec7714e4947909190ffb3041a03311a975350fe0
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v3 1/3] PCI: rockchip-host: Fix "Unexpected Completion" log message
2025-06-07 16:01 [PATCH v3 0/3] Fix interrupt log message Hans Zhang
@ 2025-06-07 16:01 ` Hans Zhang
2025-06-07 16:02 ` [PATCH v3 2/3] PCI: rockchip-host: Correct non-fatal error " Hans Zhang
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Hans Zhang @ 2025-06-07 16:01 UTC (permalink / raw)
To: shawn.lin, lpieralisi, kw, bhelgaas, heiko, mani
Cc: robh, linux-pci, linux-kernel, linux-arm-kernel, linux-rockchip,
Hans Zhang
Fix the debug message for the PCIE_CORE_INT_UCR interrupt to clearly
indicate "Unexpected Completion" instead of a duplicate "malformed TLP"
message. This improves error log accuracy.
Signed-off-by: Hans Zhang <18255117159@163.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
---
drivers/pci/controller/pcie-rockchip-host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-rockchip-host.c b/drivers/pci/controller/pcie-rockchip-host.c
index 6a46be17aa91..2804980bab86 100644
--- a/drivers/pci/controller/pcie-rockchip-host.c
+++ b/drivers/pci/controller/pcie-rockchip-host.c
@@ -439,7 +439,7 @@ static irqreturn_t rockchip_pcie_subsys_irq_handler(int irq, void *arg)
dev_dbg(dev, "malformed TLP received from the link\n");
if (sub_reg & PCIE_CORE_INT_UCR)
- dev_dbg(dev, "malformed TLP received from the link\n");
+ dev_dbg(dev, "Unexpected Completion received from the link\n");
if (sub_reg & PCIE_CORE_INT_FCE)
dev_dbg(dev, "an error was observed in the flow control advertisements from the other side\n");
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3 2/3] PCI: rockchip-host: Correct non-fatal error log message
2025-06-07 16:01 [PATCH v3 0/3] Fix interrupt log message Hans Zhang
2025-06-07 16:01 ` [PATCH v3 1/3] PCI: rockchip-host: Fix "Unexpected Completion" " Hans Zhang
@ 2025-06-07 16:02 ` Hans Zhang
2025-06-07 16:02 ` [PATCH v3 3/3] PCI: rockchip-host: Remove unused header includes Hans Zhang
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Hans Zhang @ 2025-06-07 16:02 UTC (permalink / raw)
To: shawn.lin, lpieralisi, kw, bhelgaas, heiko, mani
Cc: robh, linux-pci, linux-kernel, linux-arm-kernel, linux-rockchip,
Hans Zhang
Correct the debug message for PCIE_CLIENT_INT_NFATAL_ERR from
"no fatal error" to "non fatal error interrupt received" to match the
actual interrupt semantics. This avoids confusion in log interpretation.
Signed-off-by: Hans Zhang <18255117159@163.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
---
drivers/pci/controller/pcie-rockchip-host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-rockchip-host.c b/drivers/pci/controller/pcie-rockchip-host.c
index 2804980bab86..209eb94ece1b 100644
--- a/drivers/pci/controller/pcie-rockchip-host.c
+++ b/drivers/pci/controller/pcie-rockchip-host.c
@@ -489,7 +489,7 @@ static irqreturn_t rockchip_pcie_client_irq_handler(int irq, void *arg)
dev_dbg(dev, "fatal error interrupt received\n");
if (reg & PCIE_CLIENT_INT_NFATAL_ERR)
- dev_dbg(dev, "no fatal error interrupt received\n");
+ dev_dbg(dev, "non fatal error interrupt received\n");
if (reg & PCIE_CLIENT_INT_CORR_ERR)
dev_dbg(dev, "correctable error interrupt received\n");
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3 3/3] PCI: rockchip-host: Remove unused header includes
2025-06-07 16:01 [PATCH v3 0/3] Fix interrupt log message Hans Zhang
2025-06-07 16:01 ` [PATCH v3 1/3] PCI: rockchip-host: Fix "Unexpected Completion" " Hans Zhang
2025-06-07 16:02 ` [PATCH v3 2/3] PCI: rockchip-host: Correct non-fatal error " Hans Zhang
@ 2025-06-07 16:02 ` Hans Zhang
2025-06-09 9:14 ` [PATCH v3 0/3] Fix interrupt log message Shawn Lin
2025-06-12 13:18 ` Manivannan Sadhasivam
4 siblings, 0 replies; 6+ messages in thread
From: Hans Zhang @ 2025-06-07 16:02 UTC (permalink / raw)
To: shawn.lin, lpieralisi, kw, bhelgaas, heiko, mani
Cc: robh, linux-pci, linux-kernel, linux-arm-kernel, linux-rockchip,
Hans Zhang
Clean up the driver by removing unnecessary header includes
(e.g., <linux/clk.h>, <linux/reset.h>) that are no longer referenced
after refactoring. This improves code readability and build efficiency.
Signed-off-by: Hans Zhang <18255117159@163.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
---
drivers/pci/controller/pcie-rockchip-host.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/pci/controller/pcie-rockchip-host.c b/drivers/pci/controller/pcie-rockchip-host.c
index 209eb94ece1b..ba360ed62afa 100644
--- a/drivers/pci/controller/pcie-rockchip-host.c
+++ b/drivers/pci/controller/pcie-rockchip-host.c
@@ -12,26 +12,17 @@
*/
#include <linux/bitrev.h>
-#include <linux/clk.h>
-#include <linux/delay.h>
#include <linux/gpio/consumer.h>
-#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/iopoll.h>
#include <linux/irq.h>
#include <linux/irqchip/chained_irq.h>
#include <linux/irqdomain.h>
-#include <linux/kernel.h>
-#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_pci.h>
-#include <linux/pci.h>
-#include <linux/pci_ids.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
-#include <linux/reset.h>
-#include <linux/regmap.h>
#include "../pci.h"
#include "pcie-rockchip.h"
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3 0/3] Fix interrupt log message
2025-06-07 16:01 [PATCH v3 0/3] Fix interrupt log message Hans Zhang
` (2 preceding siblings ...)
2025-06-07 16:02 ` [PATCH v3 3/3] PCI: rockchip-host: Remove unused header includes Hans Zhang
@ 2025-06-09 9:14 ` Shawn Lin
2025-06-12 13:18 ` Manivannan Sadhasivam
4 siblings, 0 replies; 6+ messages in thread
From: Shawn Lin @ 2025-06-09 9:14 UTC (permalink / raw)
To: Hans Zhang, lpieralisi, kw, bhelgaas, heiko, mani
Cc: shawn.lin, robh, linux-pci, linux-kernel, linux-arm-kernel,
linux-rockchip
在 2025/06/08 星期日 0:01, Hans Zhang 写道:
> Dear Maintainers,
>
> Detailed descriptions of interrupts can be seen from RK3399 TRM doc.
> I found two errors and cleaned up the driver by the way.
>
> This patch series improves the logging accuracy and code cleanliness of
> the Rockchip PCIe host controller driver:
>
> Log Message Clarifications
>
> Patch 1 fixes a misleading debug message for the PCIE_CORE_INT_UCR
> interrupt, replacing a duplicated "malformed TLP" message with "Unexpected
> Completion" to reflect the actual error condition.
>
> Patch 2 corrects the terminology for non-fatal errors, renaming "no fatal
> error" to "non fatal error interrupt received" to align with PCIe interrupt
> semantics.
>
> Code Cleanup
>
> Patch 3 removes redundant header includes (e.g., unused clock/reset
> headers) to streamline the driver and reduce build dependencies.
>
> These changes enhance debug log reliability, eliminate ambiguity for
> developers.
>
Thanks for your patches.
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
> ---
> Changes for v3:
> - Add Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> (Mani's new email address.)
>
> Changes for v2:
> - Drop patch [v1 3/4].
> - The other patches have not been modified.
> ---
>
> Hans Zhang (3):
> PCI: rockchip-host: Fix "Unexpected Completion" log message
> PCI: rockchip-host: Correct non-fatal error log message
> PCI: rockchip-host: Remove unused header includes
>
> drivers/pci/controller/pcie-rockchip-host.c | 13 ++-----------
> 1 file changed, 2 insertions(+), 11 deletions(-)
>
>
> base-commit: ec7714e4947909190ffb3041a03311a975350fe0
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 0/3] Fix interrupt log message
2025-06-07 16:01 [PATCH v3 0/3] Fix interrupt log message Hans Zhang
` (3 preceding siblings ...)
2025-06-09 9:14 ` [PATCH v3 0/3] Fix interrupt log message Shawn Lin
@ 2025-06-12 13:18 ` Manivannan Sadhasivam
4 siblings, 0 replies; 6+ messages in thread
From: Manivannan Sadhasivam @ 2025-06-12 13:18 UTC (permalink / raw)
To: shawn.lin, lpieralisi, bhelgaas, heiko, Krzysztof Wilczyński,
Hans Zhang
Cc: Manivannan Sadhasivam, robh, linux-pci, linux-kernel,
linux-arm-kernel, linux-rockchip
On Sun, 08 Jun 2025 00:01:58 +0800, Hans Zhang wrote:
> Detailed descriptions of interrupts can be seen from RK3399 TRM doc.
> I found two errors and cleaned up the driver by the way.
>
> This patch series improves the logging accuracy and code cleanliness of
> the Rockchip PCIe host controller driver:
>
> Log Message Clarifications
>
> [...]
Applied, thanks!
[1/3] PCI: rockchip-host: Fix "Unexpected Completion" log message
commit: fcc5f586c4edbcc10de23fb9b8c0972a84e945cd
[2/3] PCI: rockchip-host: Correct non-fatal error log message
commit: 917600e630218ce61aa0551079592cb541391668
[3/3] PCI: rockchip-host: Remove unused header includes
commit: 1fdb13f92388dfc936624b0a0d6abae362b0ace3
Best regards,
--
Manivannan Sadhasivam <mani@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-06-12 13:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-07 16:01 [PATCH v3 0/3] Fix interrupt log message Hans Zhang
2025-06-07 16:01 ` [PATCH v3 1/3] PCI: rockchip-host: Fix "Unexpected Completion" " Hans Zhang
2025-06-07 16:02 ` [PATCH v3 2/3] PCI: rockchip-host: Correct non-fatal error " Hans Zhang
2025-06-07 16:02 ` [PATCH v3 3/3] PCI: rockchip-host: Remove unused header includes Hans Zhang
2025-06-09 9:14 ` [PATCH v3 0/3] Fix interrupt log message Shawn Lin
2025-06-12 13:18 ` Manivannan Sadhasivam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).