From: Ben Skeggs Date: Fri, 28 Oct 2011 00:59:45 +0000 (+1000) Subject: drm/nvc1: hacky workaround to fix accel issues X-Git-Tag: upstream/snapshot3+hdmi~8671^2~19^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c5df493eb30089ff0b8d03a50a86293f758a786;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drm/nvc1: hacky workaround to fix accel issues Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 2afd5b1..9a5ab61 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c @@ -579,6 +579,14 @@ nouveau_card_init(struct drm_device *dev) if (ret) goto out_display_early; + /* workaround an odd issue on nvc1 by disabling the device's + * nosnoop capability. hopefully won't cause issues until a + * better fix is found - assuming there is one... + */ + if (dev_priv->chipset == 0xc1) { + nv_mask(dev, 0x00088080, 0x00000800, 0x00000000); + } + nouveau_pm_init(dev); ret = engine->vram.init(dev);