diff options
| author | Alex Deucher <[email protected]> | 2022-07-19 17:15:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-11-15 16:51:36 +0000 |
| commit | a347ca9720335028686b16302bd0d2075880b3d7 (patch) | |
| tree | a94af35fd2353a0fb20ddbe9206354d8c98fae03 /drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | |
| parent | drm/amdgpu: rework SR-IOV virtual display handling (diff) | |
| download | kernel-a347ca9720335028686b16302bd0d2075880b3d7.tar.gz kernel-a347ca9720335028686b16302bd0d2075880b3d7.zip | |
drm/amdgpu: move non-DC vblank handling out of irq code
Move it into the DCE code for each generation. This avoids
confusion with the different display paths.
v2: no need for a hotplug worker for vkms
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c index 9b81b6867db3..7cf99f752e01 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c @@ -511,6 +511,10 @@ static int amdgpu_vkms_sw_init(void *handle) return r; } + r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); + if (r) + return r; + drm_kms_helper_poll_init(adev_to_drm(adev)); adev->mode_info.mode_config_initialized = true; |
