From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 92274] nouveau black screen and errors with two
monitors attached
Date: Mon, 05 Oct 2015 20:06:04 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1528351846=="
Return-path:
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Sender: "Nouveau"
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
List-Id: nouveau.vger.kernel.org
--===============1528351846==
Content-Type: multipart/alternative; boundary="1444075564.C1EB02.12786"; charset="UTF-8"
--1444075564.C1EB02.12786
Date: Mon, 5 Oct 2015 20:06:04 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=92274
--- Comment #12 from Ilia Mirkin ---
(In reply to joseph-thommes from comment #10)
> Ok I'm sorry to ask again, but I've got no idea what the methods nvkm_mask,
> read, and wr32 are expecting, returning or doing, so I cannot
> think by myself what to do...
> (By the way in my sources they are just named nv_*.)
> So where can I find documentation about it or where are they defined?
> I'm familiar with (userspace) C, but not in these dimensions
> and I don't know how to locate the definition of a function except for
> looking in all included headers recursively...
> Did I understand you correctly, that I should make the changes like this:
> (again I've got no idea what these functions do, so it might be nonsense)
>
> /* AVI InfoFrame */
>
> u32 foo = nvkm_rd32(device, 0x690000 + hdmi);
> nvkm_wr32(device, 0x690000 + hdmi, foo & ~1);
> nvkm_wr32(device, 0x69000c + hdmi, 0x0000006f);
> nvkm_wr32(device, 0x690010 + hdmi, 0x00000000);
> nvkm_wr32(device, 0x690014 + hdmi, 0x00000000);
> nvkm_wr32(device, 0x690018 + hdmi, 0x00000000);
> nvkm_wr32(device, 0x690000 + hdmi, foo | 1);
>
> /* ??? InfoFrame? */
> u32 foo = nvkm_rd32(device, 0x6900c0 + hdmi);
> nvkm_wr32(device, 0x6900c0 + hdmi, foo & ~1);
> nvkm_wr32(device, 0x6900cc + hdmi, 0x00000010);
> nvkm_wr32(device, 0x6900c0 + hdmi, foo | 1);
Seems right to me, except of course it won't compile since you have two
variables named "foo" being declared in the same scope. Remove the second 'u32'
and you should be good to go.
--
You are receiving this mail because:
You are the assignee for the bug.
--1444075564.C1EB02.12786
Date: Mon, 5 Oct 2015 20:06:04 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 12
on bug 92274
from Ilia Mirkin
(In reply to joseph-thommes from comment #10)
> Ok I'm sorry to ask again, but I've got no idea what the methods nvkm_mask,
> read, and wr32 are expecting, returning or doing, so I cannot
> think by myself what to do...
> (By the way in my sources they are just named nv_*.)
> So where can I find documentation about it or where are they defined?
> I'm familiar with (userspace) C, but not in these dimensions
> and I don't know how to locate the definition of a function except for
> looking in all included headers recursively...
> Did I understand you correctly, that I should make the changes like this:
> (again I've got no idea what these functions do, so it might be nonsense)
>
> /* AVI InfoFrame */
>
> u32 foo = nvkm_rd32(device, 0x690000 + hdmi);
> nvkm_wr32(device, 0x690000 + hdmi, foo & ~1);
> nvkm_wr32(device, 0x69000c + hdmi, 0x0000006f);
> nvkm_wr32(device, 0x690010 + hdmi, 0x00000000);
> nvkm_wr32(device, 0x690014 + hdmi, 0x00000000);
> nvkm_wr32(device, 0x690018 + hdmi, 0x00000000);
> nvkm_wr32(device, 0x690000 + hdmi, foo | 1);
>
> /* ??? InfoFrame? */
> u32 foo = nvkm_rd32(device, 0x6900c0 + hdmi);
> nvkm_wr32(device, 0x6900c0 + hdmi, foo & ~1);
> nvkm_wr32(device, 0x6900cc + hdmi, 0x00000010);
> nvkm_wr32(device, 0x6900c0 + hdmi, foo | 1);
Seems right to me, except of course it won't compile since you have two
variables named "foo" being declared in the same scope. Remove the second 'u32'
and you should be good to go.
You are receiving this mail because:
- You are the assignee for the bug.
--1444075564.C1EB02.12786--
--===============1528351846==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt
YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy
ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK
--===============1528351846==--