From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 58556] MacBook Pro 5, 1 with nVidia 9400m and 9600m, scrambled screen Date: Fri, 13 Sep 2013 14:35:20 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2022701850==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============2022701850== Content-Type: multipart/alternative; boundary="1379082920.ceaCA03.25929"; charset="us-ascii" --1379082920.ceaCA03.25929 Date: Fri, 13 Sep 2013 14:35:20 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=58556 --- Comment #18 from Pierre Moreau --- It took me some times, but here is a patch correcting commit 20abd1634a6e2eedb84ca977adea56b8aa06cc3e: --------------------------------------------------------------------------------- diff --git a/drivers/gpu/drm/nouveau/nouveau_software.h b/drivers/gpu/drm/nouveau/nouveau_software.h index fe30a8f..7adfcb9 100644 --- a/drivers/gpu/drm/nouveau/nouveau_software.h +++ b/drivers/gpu/drm/nouveau/nouveau_software.h @@ -20,10 +20,10 @@ struct nouveau_software_chan { static inline void nouveau_software_vblank(struct drm_device *dev, int crtc) { - struct nouveau_software_priv *psw = nv_engine(dev, NVOBJ_ENGINE_SW); + struct drm_nouveau_private *dev_priv = dev->dev_private; struct nouveau_software_chan *pch, *tmp; - list_for_each_entry_safe(pch, tmp, &psw->vblank, vblank.list) { + list_for_each_entry_safe(pch, tmp, &dev_priv->vbl_waiting, vblank.list) { if (pch->vblank.head != crtc) continue; --------------------------------------------------------------------------------- (The above empty line is needed) However, the code was later modified, and the patch can't be applied on recent kernel; I'll try to get a new patch for it this week-end. -- You are receiving this mail because: You are the assignee for the bug. --1379082920.ceaCA03.25929 Date: Fri, 13 Sep 2013 14:35:20 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 18 on bug 58556 from
It took me some times, but here is a patch correcting commit
20abd1634a6e2eedb84ca977adea56b8aa06cc3e:
---------------------------------------------------------------------------------
diff --git a/drivers/gpu/drm/nouveau/nouveau_software.h
b/drivers/gpu/drm/nouveau/nouveau_software.h
index fe30a8f..7adfcb9 100644
--- a/drivers/gpu/drm/nouveau/nouveau_software.h
+++ b/drivers/gpu/drm/nouveau/nouveau_software.h
@@ -20,10 +20,10 @@ struct nouveau_software_chan {
 static inline void
 nouveau_software_vblank(struct drm_device *dev, int crtc)
 {
-       struct nouveau_software_priv *psw = nv_engine(dev, NVOBJ_ENGINE_SW);
+       struct drm_nouveau_private *dev_priv = dev->dev_private;
        struct nouveau_software_chan *pch, *tmp;

-       list_for_each_entry_safe(pch, tmp, &psw->vblank, vblank.list) {
+       list_for_each_entry_safe(pch, tmp, &dev_priv->vbl_waiting, vblank.list)
{
                if (pch->vblank.head != crtc)
                        continue;

---------------------------------------------------------------------------------
(The above empty line is needed)

However, the code was later modified, and the patch can't be applied on recent
kernel; I'll try to get a new patch for it this week-end.


You are receiving this mail because:
  • You are the assignee for the bug.
--1379082920.ceaCA03.25929-- --===============2022701850== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============2022701850==--