mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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:
parent
4a9b7d29c1
commit
cd1c9c54c3
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user