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:35:16 +0000 (13:35 -0500)
commit220c8cc855ce7075a29926533279a8dfefdd8788
treef6275cdb5ff9c317d46f4747cbb36cb4acc01558
parent48fb1ecf9371b649202c85ba6d44f5204e88bfc8
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