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 <michal.wajdeczko@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
4a9b7d29c1
commit
cd1c9c54c3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user