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)
commitf8794f31abf33a3b22c72002783670a95e6efc51
tree4b798e60722d1e983dcf290e425bc0eddf1a4f7d
parent6f9eea4392a178af19360694b1db64f985d0b459
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