]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe/guc: Copy response data from proper registers
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 16 Nov 2023 15:12:40 +0000 (16:12 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:44:38 +0000 (11:44 -0500)
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>
drivers/gpu/drm/xe/xe_guc.c

index 311c5d539423fbbc09a6deec90692da0ad53f22f..aa4af536c1e98fdb890ddb0a218a28b8784b0612 100644 (file)
@@ -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);
                }
        }