[PATCH 05/14] drm/amd/display: Fix dmub trace event not update issue
Eryk Brol
eryk.brol at amd.com
Fri Mar 5 20:02:52 UTC 2021
From: Yongqiang Sun <yongqiang.sun at amd.com>
[Why & How]
Reference to read pointer which is incorrect.
Change to reference to write pointer.
Signed-off-by: Yongqiang Sun <yongqiang.sun at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Eryk Brol <eryk.brol at amd.com>
---
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.25.1
More information about the amd-gfx
mailing list