]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: enable DCN for navi10 headless SKU
authorTianci.Yin <tianci.yin@amd.com>
Fri, 6 Nov 2020 06:56:35 +0000 (14:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 05:30:05 +0000 (00:30 -0500)
commit7ecea0581565fd616c9c2a755feff46c6e1566b8
tree7c5b55e70f62e7eb1e807c2239c81e9d1debd140
parent4b17fb66b2277055b78d06ddb68027c235e34133
drm/amdgpu: enable DCN for navi10 headless SKU

There is a NULL pointer crash when DCN disabled on headless SKU.
On normal SKU, the variable adev->ddev.mode_config.funcs is
initialized in dm_hw_init(), and it is fine to access it in
amdgpu_device_resume(). But on headless SKU, DCN is disabled,
the funcs variable is not initialized, then crash arises.
Enable DCN to fix this issue.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c