Skip to content

Commit

Permalink
drm/i915: fix build for 6.8.12-1-pve and newer
Browse files Browse the repository at this point in the history
  • Loading branch information
moetayuko committed Aug 10, 2024
1 parent e188c02 commit 0b0a62b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backport-include/backport/backport_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,14 @@
*/
#define BPM_DGLUT_24BIT_MTL_NOT_SUPPORTED

#if LINUX_VERSION_IN_RANGE(6,8,12, 6,8,99) && PVE_RELEASE_VERSION_IS_GEQ(1)
/*
* 5a507b7d2be15f
* drm/mst: Fix NULL pointer dereference at drm_dp_add_payload_part2
*/
#define BPM_DRM_DP_ADD_PAYLOAD_PART2_STATE_ARG_NOT_PRESENT
#endif

#if LINUX_VERSION_IS_LESS(6,8,0) && \
!(LINUX_VERSION_IN_RANGE(6,5,13, 6,5,99) && PVE_RELEASE_VERSION_IS_GEQ(4))
/*
Expand Down
5 changes: 5 additions & 0 deletions drivers/gpu/drm/i915/display/intel_dp_mst.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,13 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state,

wait_for_act_sent(encoder, pipe_config);

#ifdef BPM_DRM_DP_ADD_PAYLOAD_PART2_STATE_ARG_NOT_PRESENT
drm_dp_add_payload_part2(&intel_dp->mst_mgr,
drm_atomic_get_mst_payload_state(mst_state, connector->port));
#else
drm_dp_add_payload_part2(&intel_dp->mst_mgr, &state->base,
drm_atomic_get_mst_payload_state(mst_state, connector->port));
#endif

if (DISPLAY_VER(dev_priv) >= 14 && pipe_config->fec_enable)
intel_de_rmw(dev_priv, MTL_CHICKEN_TRANS(trans), 0,
Expand Down

0 comments on commit 0b0a62b

Please sign in to comment.