Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Unassign does_plane_fit_in_mall function from dcn3.2

[Why]
The hwss function does_plane_fit_in_mall not applicable to dcn3.2 asics.
Using it with dcn3.2 can result in undefined behaviour.

[How]
Assign the function pointer to NULL.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

George Shen and committed by
Alex Deucher
cf76ce68 0c2bfcc3

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_init.c
··· 94 94 .get_vupdate_offset_from_vsync = dcn10_get_vupdate_offset_from_vsync, 95 95 .calc_vupdate_position = dcn10_calc_vupdate_position, 96 96 .apply_idle_power_optimizations = dcn32_apply_idle_power_optimizations, 97 - .does_plane_fit_in_mall = dcn30_does_plane_fit_in_mall, 97 + .does_plane_fit_in_mall = NULL, 98 98 .set_backlight_level = dcn21_set_backlight_level, 99 99 .set_abm_immediate_disable = dcn21_set_abm_immediate_disable, 100 100 .hardware_release = dcn30_hardware_release,