aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <[email protected]>2017-07-06 15:03:15 +0200
committerMaarten Lankhorst <[email protected]>2017-07-17 16:34:51 +0200
commit8038e09be5a3ac061118bd80c7a505829920b50f (patch)
tree8855386457a0b84cfd111e7a37f5798401981724 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parenteb42ea6d0b8ed9ca8e73cc24fa801f0d8ab28905 (diff)
drm/crc: Only open CRC on atomic drivers when the CRTC is active.
Commit e8fa5671183c ("drm: crc: Wait for a frame before returning from open()") adds a wait for CRC frame, but with the CRTC off this will never be generated. For atomic drivers we know if a CRTC is active through crtc_state->active, so when inactive reject the open with -EIO. Just like with the previous patch changing debugfs opening semantics, this patch has been tested against igt. Signed-off-by: Maarten Lankhorst <[email protected]> Fixes: e8fa5671183c ("drm: crc: Wait for a frame before returning from open()") Testcase: debugfs_test.read_all_entries Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions