]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: there is no vbios fb on devices with no display hw (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Nov 2022 17:50:38 +0000 (12:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 18:24:40 +0000 (13:24 -0500)
commite257231b9cd9759e1fcce3af63e2fe3079b35d30
tree4b798e60722d1e983dcf290e425bc0eddf1a4f7d
parentb662bb1d1761b860e6c9f7bee1e893f1599b1f05
drm/amdgpu: there is no vbios fb on devices with no display hw (v2)

If we enable virtual display functionality on parts with
no display hardware we can end up trying to check for and
reserve the vbios FB area on devices where it doesn't exist.
Check if display hardware is actually present on the hardware
before trying to reserve the memory.

v2: move the check into common code

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c