]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: log when amdgpu.dc=1 but ASIC is unsupported
authorSimon Ser <contact@emersion.fr>
Wed, 11 Dec 2019 10:21:01 +0000 (10:21 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Dec 2019 20:22:08 +0000 (15:22 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 95988ff7356d7869b39fb3165ec9b4c6598dc8c1..a979468780248bb4794da4ad469e96c901318eea 100644 (file)
@@ -2636,6 +2636,9 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
                return amdgpu_dc != 0;
 #endif
        default:
+               if (amdgpu_dc > 0)
+                       DRM_INFO("Display Core has been requested via kernel parameter "
+                                        "but isn't supported by ASIC, ignoring\n");
                return false;
        }
 }