[Intel-xe] [PATCH v2 2/4] drm/xe/guc: Copy response data from proper registers
Michal Wajdeczko
michal.wajdeczko at intel.com
Thu Nov 16 15:12:40 UTC 2023
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 <michal.wajdeczko at intel.com>
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
---
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 311c5d539423..aa4af536c1e9 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -703,7 +703,7 @@ int xe_guc_mmio_send_recv(struct xe_guc *guc, const u32 *request,
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.25.1
More information about the Intel-xe
mailing list