drm/radeon: avoid warnings from r600/eg irq handlers on powered off card.
authorDave Airlie <airlied@redhat.com>
Sat, 18 Jun 2011 03:59:51 +0000 (03:59 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 20 Jun 2011 02:01:43 +0000 (12:01 +1000)
commit682f1a54a03513fd6bcede56845f1ba21f48c182
tree03e3dce23297f943e48dbaedee5d7c4d35bbb6d3
parent74d074eecbb4778e5f5ee7d59399da971682c532
drm/radeon: avoid warnings from r600/eg irq handlers on powered off card.

Since we were calling the wptr function before checking if the IH was
even enabled, or the GPU wasn't shutdown, we'd get spam in the logs when
the GPU readback 0xffffffff. This reorders things so we return early
in the no IH and GPU shutdown cases.

Reported-and-tested-by: ManDay on #radeon
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r600.c