drm/amdgpu: create amdgpu_vkms (v4)
authorRyan Taylor <Ryan.Taylor@amd.com>
Mon, 7 Jun 2021 18:53:06 +0000 (11:53 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Aug 2021 01:17:58 +0000 (21:17 -0400)
commit84ec374bd580364a32818c9fc269c19d6e931cab
tree2abe71ea90072fc3bb93db83a229c1a1e3faa9f0
parentd7b5dae099fbb15adaa51b2a39d6d7af36110e7a
drm/amdgpu: create amdgpu_vkms (v4)

Modify the VKMS driver into an api that dce_virtual can use to create
virtual displays that obey drm's atomic modesetting api.

v2: Made local functions static.

v3: Switched vkms_output kzalloc for kcalloc.
    Cleanup patches by moving display mode fixes to this patch.

v4: Update atomic_check and atomic_update to comply with new kms api.

Signed-off-by: Ryan Taylor <Ryan.Taylor@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/dce_virtual.c