From cd1c9c54c34b3a2540fdf49eafd49a61747a6342 Mon Sep 17 00:00:00 2001 From: Michal Wajdeczko Date: Thu, 16 Nov 2023 16:12:40 +0100 Subject: [PATCH] drm/xe/guc: Copy response data from proper registers While copying GuC response from the scratch registers to the buffer, formula to identify next scratch register is broken. Fix it. Signed-off-by: Michal Wajdeczko Reviewed-by: Matthew Brost Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_guc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c index 311c5d539423f..aa4af536c1e98 100644 --- a/drivers/gpu/drm/xe/xe_guc.c +++ b/drivers/gpu/drm/xe/xe_guc.c @@ -703,7 +703,7 @@ proto: response_buf[0] = header; for (i = 1; i < VF_SW_FLAG_COUNT; i++) { - reply_reg.addr += i * sizeof(u32); + reply_reg.addr += sizeof(u32); response_buf[i] = xe_mmio_read32(gt, reply_reg); } } -- 2.30.2