diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-06-03 06:40:14 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-06-05 04:03:08 (GMT) |
commit | d40ee48acde16894fb3b241d7e896d5fa84e0f10 (patch) | |
tree | 5c48870c90fc6357fec259d105a18629095f6642 | |
parent | ea9197cc323839ef3d5280c0453b2c622caa6bc7 (diff) | |
download | linux-fsl-qoriq-d40ee48acde16894fb3b241d7e896d5fa84e0f10.tar.xz |
drm/nv50/kms: use dac loadval from vbios, where it's available
Regression from merging the old nv50/nvd9 code together, and may be
needed to fully fix fdo#64904.
The value is ignored completely by the hardware starting from nva3.
Reported-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 3258873..e843cf8 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -1554,7 +1554,9 @@ nv50_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector) { struct nv50_disp *disp = nv50_disp(encoder->dev); int ret, or = nouveau_encoder(encoder)->or; - u32 load = 0; + u32 load = nouveau_drm(encoder->dev)->vbios.dactestval; + if (load == 0) + load = 340; ret = nv_exec(disp->core, NV50_DISP_DAC_LOAD + or, &load, sizeof(load)); if (ret || load != 7) |