drm/xe/guc: Fix arguments passed to relay G2H handlers
By default CT code was passing just payload of the G2H event message, while Relay code expects full G2H message including HXG header which contains DATA0 field. Fix that. Fixes:26d4481ac2
("drm/xe/guc: Start handling GuC Relay event messages") Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240419150351.358-1-michal.wajdeczko@intel.com (cherry picked from commit48c64d495f
) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
This commit is contained in:
parent
f38c4d224a
commit
e3e989522a
|
@ -1054,10 +1054,10 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len)
|
|||
adj_len);
|
||||
break;
|
||||
case XE_GUC_ACTION_GUC2PF_RELAY_FROM_VF:
|
||||
ret = xe_guc_relay_process_guc2pf(&guc->relay, payload, adj_len);
|
||||
ret = xe_guc_relay_process_guc2pf(&guc->relay, hxg, hxg_len);
|
||||
break;
|
||||
case XE_GUC_ACTION_GUC2VF_RELAY_FROM_PF:
|
||||
ret = xe_guc_relay_process_guc2vf(&guc->relay, payload, adj_len);
|
||||
ret = xe_guc_relay_process_guc2vf(&guc->relay, hxg, hxg_len);
|
||||
break;
|
||||
default:
|
||||
drm_err(&xe->drm, "unexpected action 0x%04x\n", action);
|
||||
|
|
Loading…
Reference in New Issue