drm/radeon/kms: r600/r700 don't process IRQ if not initialized
authorJerome Glisse <jglisse@redhat.com>
Fri, 15 Jan 2010 13:44:38 +0000 (14:44 +0100)
committerDave Airlie <airlied@linux.ie>
Wed, 20 Jan 2010 22:43:56 +0000 (08:43 +1000)
commit79c2bbc505751bb5130ac753251fc9a0eb37bb12
tree1249938228d4630b9eeabf0d0619034c9666a3af
parent0c45249f419d8b86abe0e51c6627ca4b085e8c23
drm/radeon/kms: r600/r700 don't process IRQ if not initialized

In some rare case the wptr returned from the hw wasn't 0 and leaded
to trick r600_process_irq that their were irq to process. Add a
check to bail out if irq hasn't been initialized this will avoid
oops provoqued by the rare wptr != 0 on initialization.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/radeon/r600.c