drm/amdgpu: rework SR-IOV virtual display handling
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Jul 2022 16:13:08 +0000 (12:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 16:51:32 +0000 (11:51 -0500)
commit25263da37693c764e198b31ab4c647934bf80e07
tree41aa43221b2f80a0957e7e7f0a91b3c702458c17
parent96ce96f8773da4814622fd97e5226915a2c30706
drm/amdgpu: rework SR-IOV virtual display handling

virtual display is enabled unconditionally in SR-IOV, but
without specifying the virtual_display module, the number
of crtcs defaults to 0.  Set a single display by default
for SR-IOV if the virtual_display parameter is not set.
Only enable virtual display by default on SR-IOV on asics
which actually have display hardware.

Acked-by: Christian König <christian.koenig@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_discovery.c
drivers/gpu/drm/amd/amdgpu/vi.c