]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/radeon: make indirect register access concurrency-safe
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 2 Dec 2012 13:06:15 +0000 (14:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Dec 2012 15:45:23 +0000 (10:45 -0500)
commit2c385151ed6db8ded2faa3328f0377e6c5fa1e89
tree3c4d37e3f7d82519964f9fb8e9224815a5d4c0f1
parent2ef9bdfe64079c9d0b98dc89af3af52918b818a0
drm/radeon: make indirect register access concurrency-safe

With the new per-crtc locking mutliple set-cursor calls could happen
in parallel. Out of sheer paranoia I've opted for an irqsave spinlock.
But if there's indeed an access from interrupt contexts to these regs
it's already broken with the old code, so this can likely just be
reduced to a normal spinlock. Otoh the pageflip completion happens
from the vblank irq handler ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c