* [PATCH] drm/amd/display: Fix incorrect log message in LTTPR mode selection
@ 2026-02-23 2:51 Hayden Heins
2026-02-24 0:28 ` Claude review: " Claude Code Review Bot
2026-02-24 0:28 ` Claude Code Review Bot
0 siblings, 2 replies; 3+ messages in thread
From: Hayden Heins @ 2026-02-23 2:51 UTC (permalink / raw)
To: harry.wentland, sunpeng.li, siqueira; +Cc: amd-gfx, dri-devel, Hayden Heins
The driver was logging that it chose NON_TRANSPARENT mode while actually
returning TRANSPARENT mode in the case where vbios_lttpr_aware is set
but vbios_lttpr_force_non_transparent is not.This upgades the log message
to match what the code is actually doing.
Signed-off-by: Hayden Heins <hayden.heins@gmail.com>
---
.../amd/display/dc/link/protocols/link_dp_training_8b_10b.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_8b_10b.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_8b_10b.c
index 66d0fb1b9..889c81aba 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_8b_10b.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_8b_10b.c
@@ -166,7 +166,8 @@ enum lttpr_mode dp_decide_8b_10b_lttpr_mode(struct dc_link *link)
DC_LOG_DC("chose LTTPR_MODE_NON_TRANSPARENT due to VBIOS DCE_INFO_CAPS_LTTPR_SUPPORT_ENABLE set to 1.\n");
return LTTPR_MODE_NON_TRANSPARENT;
} else {
- DC_LOG_DC("chose LTTPR_MODE_NON_TRANSPARENT by default due to VBIOS not set DCE_INFO_CAPS_LTTPR_SUPPORT_ENABLE set to 1.\n");
+ DC_LOG_DC("chose LTTPR_MODE_TRANSPARENT by default due to VBIOS not set "
+ "DCE_INFO_CAPS_LTTPR_SUPPORT_ENABLE set to 1.\n");
return LTTPR_MODE_TRANSPARENT;
}
}
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Claude review: drm/amd/display: Fix incorrect log message in LTTPR mode selection
2026-02-23 2:51 [PATCH] drm/amd/display: Fix incorrect log message in LTTPR mode selection Hayden Heins
@ 2026-02-24 0:28 ` Claude Code Review Bot
2026-02-24 0:28 ` Claude Code Review Bot
1 sibling, 0 replies; 3+ messages in thread
From: Claude Code Review Bot @ 2026-02-24 0:28 UTC (permalink / raw)
To: dri-devel-reviews
Overall Series Review
Subject: drm/amd/display: Fix incorrect log message in LTTPR mode selection
Author: Hayden Heins <hayden.heins@gmail.com>
Patches: 1
Reviewed: 2026-02-24T10:28:00.718441
---
This is a single-patch submission that fixes a log message in the AMDGPU display driver's LTTPR (Link Training Tunable PHY Repeater) mode selection for 8b/10b DP link training. The code at line 171 returns `LTTPR_MODE_TRANSPARENT`, but the log message previously said `LTTPR_MODE_NON_TRANSPARENT`. The fix changes the log to say `LTTPR_MODE_TRANSPARENT`, matching the actual return value.
The fix is correct and straightforward. There are no resource management, locking, or UAPI concerns.
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Claude review: drm/amd/display: Fix incorrect log message in LTTPR mode selection
2026-02-23 2:51 [PATCH] drm/amd/display: Fix incorrect log message in LTTPR mode selection Hayden Heins
2026-02-24 0:28 ` Claude review: " Claude Code Review Bot
@ 2026-02-24 0:28 ` Claude Code Review Bot
1 sibling, 0 replies; 3+ messages in thread
From: Claude Code Review Bot @ 2026-02-24 0:28 UTC (permalink / raw)
To: dri-devel-reviews
Patch Review
The bug is real: when `vbios_lttpr_aware` is true but `vbios_lttpr_force_non_transparent` is false, the code returns `LTTPR_MODE_TRANSPARENT` but the old log message said `LTTPR_MODE_NON_TRANSPARENT`. The fix correctly changes the log to match the return value.
> - DC_LOG_DC("chose LTTPR_MODE_NON_TRANSPARENT by default due to VBIOS not set DCE_INFO_CAPS_LTTPR_SUPPORT_ENABLE set to 1.\n");
> + DC_LOG_DC("chose LTTPR_MODE_TRANSPARENT by default due to VBIOS not set "
> + "DCE_INFO_CAPS_LTTPR_SUPPORT_ENABLE set to 1.\n");
> return LTTPR_MODE_TRANSPARENT;
The log text fix is correct. The string split across two lines is fine — the compiler concatenates adjacent string literals.
One minor note: the commit message has a typo — "This upgades the log message" should be "This updates the log message". Also, "upgades" aside, the phrasing is a bit unusual; something like "Fix the log message to match" would be more standard. This doesn't affect the code itself but is worth fixing before applying if the maintainer cares.
No other issues found. The patch is correct and ready to apply (modulo the commit message typo).
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-24 0:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 2:51 [PATCH] drm/amd/display: Fix incorrect log message in LTTPR mode selection Hayden Heins
2026-02-24 0:28 ` Claude review: " Claude Code Review Bot
2026-02-24 0:28 ` Claude Code Review Bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox