diff options
| author | Daniel Vetter <[email protected]> | 2016-01-21 10:08:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-03-08 16:01:39 +0000 |
| commit | 777e3cbc791f131806d9bf24b3325637c7fc228d (patch) | |
| tree | 170bedf4035a683a5ddfb704d7e9b51c86b8f3c1 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/amdgpu: delete set-but-not-read member has_uvd from amdgpu_device (diff) | |
| download | kernel-777e3cbc791f131806d9bf24b3325637c7fc228d.tar.gz kernel-777e3cbc791f131806d9bf24b3325637c7fc228d.zip | |
drm/radeon: Switch to drm_vblank_on/off
These should be functionally equivalent to the older per/post modeset
functions, except that they block out drm_vblank_get right away.
There's only the clock adjusting code (outside of pageflips) in
readone which uses drm_vblank_get. But that code doesn't synchronize
against concurrent modesets and instead handles any such races by
waiting for the right vblank to arrive with a short timetout.
The longer-term plan here is to switch all kms drivers to
drm_vblank_on/off so that common code like pending event cleanup can
be done there, while drm_vblank_pre/post_modeset will be purely
drm internal for the old UMS ioctl.
Note that with this patch Michel uncovered a bug in the dri3
implementation of the DDX (it does vblank waits when the pipe is off),
which had to be fixed first.
Cc: Michel Dänzer <[email protected]>
Acked-and-tested-by: Michel Dänzer <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
