drm/nv50: prevent accidently turning off encoders we're actually using
authorBen Skeggs <bskeggs@redhat.com>
Sun, 17 Jan 2010 22:52:35 +0000 (08:52 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 17 Jan 2010 23:56:27 +0000 (09:56 +1000)
commit58d65b84dee524b0a4a8b747b8eb8bbf2fb16d9d
treede9c4ef82d3c1a51d3fc0267b499e3dfcb02528a
parent134f248bea4bf5c3169b4950eb49c6651b09eb0e
drm/nv50: prevent accidently turning off encoders we're actually using

On most cards the DisplayPort connector is created with 2 encoders sharing
a single SOR (for native DP, and for DVI-over-DP).  The previous logic
for turning off unused encoders didn't take into account that we could
have multiple drm_encoders on a single hw encoder and ended up turning off
encoders that were actually being used still.

This patch fixes that issue.  We probably want to look at something a bit
better later on, and only expose one drm_encoder per hw encoder block.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_crtc.c