[Nouveau] [PATCH] drm/nouveau: reduce usage of fence spinlock to when absolutely necessary

2010-05-30 Thread Ben Skeggs
From: Ben Skeggs Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_channel.c |2 - drivers/gpu/drm/nouveau/nouveau_drv.h |3 +- drivers/gpu/drm/nouveau/nouveau_fence.c | 31 +--- drivers/gpu/drm/nouveau/nv04_graph.c |3 +- 4 files cha

Re: [Nouveau] [PATCH] drm/nouveau: reduce usage of fence spinlock to when absolutely necessary

2010-05-30 Thread Stephane Marchesin
The update of last_sequence_irq is still racy with this patch... So let me explain: - non-interrupt context starts reading last_sequence_irq - irq happens in the middle (because it is not an atomic read, it's possible, albeit it doesn't happen on x86 so just saying "it works on my x86" isn't enoug

[Nouveau] [PATCH] drm/nouveau: reduce usage of fence spinlock to when absolutely necessary

2010-05-30 Thread Ben Skeggs
From: Ben Skeggs Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_channel.c |2 -- drivers/gpu/drm/nouveau/nouveau_drv.h |1 - drivers/gpu/drm/nouveau/nouveau_fence.c | 28 drivers/gpu/drm/nouveau/nv04_graph.c |1 - 4 files chan