]> Git Repo - J-linux.git/commitdiff
drm/xe/guc: Fix arguments passed to relay G2H handlers
authorMichal Wajdeczko <[email protected]>
Fri, 19 Apr 2024 15:03:51 +0000 (17:03 +0200)
committerMichal Wajdeczko <[email protected]>
Mon, 22 Apr 2024 18:08:04 +0000 (20:08 +0200)
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: 26d4481ac23f ("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]
drivers/gpu/drm/xe/xe_guc_ct.c

index ac9324338ccfb66cedc54f8d761606091d4ca4e1..8ac819a7061e146f5ecefa9a8106c4c23992d0ad 100644 (file)
@@ -1058,10 +1058,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;
        case GUC_ACTION_GUC2PF_VF_STATE_NOTIFY:
                ret = xe_gt_sriov_pf_control_process_guc2pf(gt, hxg, hxg_len);
This page took 0.048347 seconds and 4 git commands to generate.