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

drm/amdgpu: log when amdgpu.dc=1 but ASIC is unsupported

This makes it easier to figure out whether the kernel parameter has been
taken into account.

Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Simon Ser and committed by
Alex Deucher
93b09a9a aec43402

+3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 2636 2636 return amdgpu_dc != 0; 2637 2637 #endif 2638 2638 default: 2639 + if (amdgpu_dc > 0) 2640 + DRM_INFO("Display Core has been requested via kernel parameter " 2641 + "but isn't supported by ASIC, ignoring\n"); 2639 2642 return false; 2640 2643 } 2641 2644 }