Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: disable DRIVER_ATOMIC under SRIOV

Under SRIOV, we need disable DRIVER_ATOMIC.
Otherwise, it will trigger WARN_ON at drm_universal_plane_init.

Signed-off-by: Yintian Tao <yttao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yintian Tao and committed by
Alex Deucher
4cb62b50 36e499b2

+1
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
··· 36 36 /* enable virtual display */ 37 37 adev->mode_info.num_crtc = 1; 38 38 adev->enable_virtual_display = true; 39 + adev->ddev->driver->driver_features &= ~DRIVER_ATOMIC; 39 40 adev->cg_flags = 0; 40 41 adev->pg_flags = 0; 41 42 }