From: Michal Wajdeczko Date: Thu, 16 Nov 2023 15:12:40 +0000 (+0100) Subject: drm/xe/guc: Copy response data from proper registers X-Git-Tag: Ubuntu-6.8.0-17.17~1697^2~7^2~174 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cd1c9c54c34b3a2540fdf49eafd49a61747a6342;p=mirror_ubuntu-kernels.git 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 --- diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c index 311c5d539423..aa4af536c1e9 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); } }