drm/radeon/kms: clean up multiple crtc handling for evergreen+ (v2)
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 8 Jul 2011 15:44:56 +0000 (11:44 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jul 2011 17:28:52 +0000 (03:28 +1000)
commitb7eff394670366a42935bfbaef67a6f7185627d7
tree039d6de6280836458dac24450944f2dcc5ebdd87
parent902daf6580cffe04721250fb71b5527a98718b11
drm/radeon/kms: clean up multiple crtc handling for evergreen+ (v2)

evergreen+ asics have 2-6 crtcs.  Don't access crtc registers
for crtc regs that don't exist as they have very high latency
and may cause problems on some asics.  The previous code missed
a few cases and was not fine grained enough (missed the 4 crtc
case for example).

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=38800

v2: fix typo noticed by Chris Bandy <cbandy@jbandy.com>

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Tested-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c