Skip to content

Commit e3e9895

Browse files
mwajdeczlucasdemarchi
authored andcommitted
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: 26d4481 ("drm/xe/guc: Start handling GuC Relay event messages") Signed-off-by: Michal Wajdeczko <[email protected]> Reviewed-by: Piotr Piórkowski <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 48c64d4) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent f38c4d2 commit e3e9895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/xe/xe_guc_ct.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,10 +1054,10 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len)
10541054
adj_len);
10551055
break;
10561056
case XE_GUC_ACTION_GUC2PF_RELAY_FROM_VF:
1057-
ret = xe_guc_relay_process_guc2pf(&guc->relay, payload, adj_len);
1057+
ret = xe_guc_relay_process_guc2pf(&guc->relay, hxg, hxg_len);
10581058
break;
10591059
case XE_GUC_ACTION_GUC2VF_RELAY_FROM_PF:
1060-
ret = xe_guc_relay_process_guc2vf(&guc->relay, payload, adj_len);
1060+
ret = xe_guc_relay_process_guc2vf(&guc->relay, hxg, hxg_len);
10611061
break;
10621062
default:
10631063
drm_err(&xe->drm, "unexpected action 0x%04x\n", action);

0 commit comments

Comments
 (0)