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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: fix missing .is_two_pixels_per_container

Starting from 6.11, AMDGPU driver, while being loaded with amdgpu.dc=1,
due to lack of .is_two_pixels_per_container function in dce60_tg_funcs,
causes a NULL pointer dereference on PCs with old GPUs, such as R9 280X.

So this fix adds missing .is_two_pixels_per_container to dce60_tg_funcs.

Reported-by: Rosen Penev <rosenp@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3942
Fixes: e6a901a00822 ("drm/amd/display: use even ODM slice width for two pixels per container")
Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Aliaksei Urbanski and committed by
Alex Deucher
bd4b125e ba795235

+1
+1
drivers/gpu/drm/amd/display/dc/dce60/dce60_timing_generator.c
··· 239 239 dce60_timing_generator_enable_advanced_request, 240 240 .configure_crc = dce60_configure_crc, 241 241 .get_crc = dce110_get_crc, 242 + .is_two_pixels_per_container = dce110_is_two_pixels_per_container, 242 243 }; 243 244 244 245 void dce60_timing_generator_construct(