aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqiang Sun <[email protected]>2021-02-23 09:57:21 -0500
committerAlex Deucher <[email protected]>2021-03-23 23:02:30 -0400
commitd829303c5b7249d1fe1d74b86d28289ce1b34a50 (patch)
treed6f73b0ef4f46872dc138785a791b1086cdf11d3
parent6b66208f0ce031c52afc13d80613e9218c8fe7d3 (diff)
drm/amd/display: Fix dmub trace event not update issue
[Why & How] Reference to read pointer which is incorrect. Change to reference to write pointer. Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Yongqiang Sun <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Eryk Brol <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
index 55ee27defd0f..2522492dcd42 100644
--- a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
+++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
@@ -722,7 +722,7 @@ enum dmub_status dmub_srv_cmd_with_reply_data(struct dmub_srv *dmub,
static inline void dmub_rb_out_trace_buffer_front(struct dmub_rb *rb,
void *entry)
{
- const uint64_t *src = (const uint64_t *)(rb->base_address) + rb->rptr / sizeof(uint64_t);
+ const uint64_t *src = (const uint64_t *)(rb->base_address) + rb->wrpt / sizeof(uint64_t);
uint64_t *dst = (uint64_t *)entry;
uint8_t i;