Skip to content

Commit 670820c

Browse files
curroBen Skeggs
authored andcommitted
drm/nouveau: Workaround incorrect DCB entry on a GeForce3 Ti 200.
Fixes the DVI-D output on that board (fdo bug 32645). Reported-by: Bryan Quigley <BryanQuigley@Ubuntu.com> Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent 51f73d6 commit 670820c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/gpu/drm/nouveau/nouveau_bios.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6310,6 +6310,9 @@ void merge_like_dcb_entries(struct drm_device *dev, struct dcb_table *dcb)
63106310
static bool
63116311
apply_dcb_encoder_quirks(struct drm_device *dev, int idx, u32 *conn, u32 *conf)
63126312
{
6313+
struct drm_nouveau_private *dev_priv = dev->dev_private;
6314+
struct dcb_table *dcb = &dev_priv->vbios.dcb;
6315+
63136316
/* Dell Precision M6300
63146317
* DCB entry 2: 02025312 00000010
63156318
* DCB entry 3: 02026312 00000020
@@ -6327,6 +6330,18 @@ apply_dcb_encoder_quirks(struct drm_device *dev, int idx, u32 *conn, u32 *conf)
63276330
return false;
63286331
}
63296332

6333+
/* GeForce3 Ti 200
6334+
*
6335+
* DCB reports an LVDS output that should be TMDS:
6336+
* DCB entry 1: f2005014 ffffffff
6337+
*/
6338+
if (nv_match_device(dev, 0x0201, 0x1462, 0x8851)) {
6339+
if (*conn == 0xf2005014 && *conf == 0xffffffff) {
6340+
fabricate_dcb_output(dcb, OUTPUT_TMDS, 1, 1, 1);
6341+
return false;
6342+
}
6343+
}
6344+
63306345
return true;
63316346
}
63326347

0 commit comments

Comments
 (0)