diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-04-13 11:22:30 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-04-30 07:55:22 +0200 |
commit | 5206b524c9b4e289ab0565e7bffd503d2e671c6e (patch) | |
tree | 07c03ff6cfae8fabb49ef90966870f8ba19ef1ee /drivers | |
parent | Linux 3.4-rc5 (diff) | |
download | linux-5206b524c9b4e289ab0565e7bffd503d2e671c6e.tar.xz linux-5206b524c9b4e289ab0565e7bffd503d2e671c6e.zip |
drm/nouveau/bios: fix regression on some nv4x board
We started using the connector table on nv4x a while back, and this VBIOS
has bad connector indices which causes the wrong encoders to get paired
with connectors.
Add a quirk to fix this...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bios.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 80963d05b54a..0be4a815e706 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -6156,10 +6156,14 @@ dcb_fake_connectors(struct nvbios *bios) /* heuristic: if we ever get a non-zero connector field, assume * that all the indices are valid and we don't need fake them. + * + * and, as usual, a blacklist of boards with bad bios data.. */ - for (i = 0; i < dcbt->entries; i++) { - if (dcbt->entry[i].connector) - return; + if (!nv_match_device(bios->dev, 0x0392, 0x107d, 0x20a2)) { + for (i = 0; i < dcbt->entries; i++) { + if (dcbt->entry[i].connector) + return; + } } /* no useful connector info available, we need to make it up |