Date: Fri, 29 Jul 2022 09:40:02 -0300 From: luporl <luporl@freebsd.org> To: Jasper Vinkenvleugel <j.t.vinkenvleugel@proton.me> Cc: "freebsd-ppc@FreeBSD.org" <freebsd-ppc@freebsd.org> Subject: Re: X color issues on PowerMac G5 Message-ID: <CAC7XEcJdusFTr6Mm6z4Vb2g9JBifHQCHjpw0Q3cwHpYOf0x9uA@mail.gmail.com> In-Reply-To: <CAC7XEc%2Bczoc%2BqFS8jDSS6SifLZM2iM9SvfYRrm=J5Yy-6YGHAg@mail.gmail.com> References: <w5OwKtaH01Zy5d90DZ6ZZeJogilFHy89YRuNJeburRu8RFr92Yn2hyQnhNyi1sUUSUjnLzCn-oGedUJjzxtpUcwQoM9bzfhuHrlA1XJXtaU=@proton.me> <CAC7XEc%2Bczoc%2BqFS8jDSS6SifLZM2iM9SvfYRrm=J5Yy-6YGHAg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000094907d05e4f0f3cf Content-Type: text/plain; charset="UTF-8" I just remembered that one of the fixes of OFWFB driver wasn't backported to 13.1-RELEASE, because it introduced a new ioctl and also changed a struct. So, besides the previous steps, you may also want to try to use a -CURRENT kernel, or apply https://reviews.freebsd.org/D29000 and rebuild 13.1-RELEASE kernel. On Fri, Jul 29, 2022 at 9:28 AM luporl <luporl@freebsd.org> wrote: > Hello Jasper, > > I'm assuming colors are already ok on console, so that's a good start. > The color-related issues you're seeing with X are probably being caused by > using a graphics card with a Little-Endian framebuffer on a CPU that is > Big-Endian. > > But indeed, even in this case, colors should work fine on PowerPC64 > machines, such as Blackbird, Talos II and probably G5, running in > Big-Endian mode. > AFAIK, this was tested only with OFWFB kernel driver. Is this the one > you're using? You can check that with: > dmesg | grep "VT(ofwfb)". > > Next, make sure you are using xf86-video-scfb version 0.0.7, that has the > fix for the color issues. > > Finally, if you have issues with Xorg Server (it used to crash in some > cases on PPC64 with the color fixes in OFWFB and SCFB), if you're using > version 1.20.x or older, you may need to patch it and rebuild it from ports. > You'll need to > get patch-hw_xfree86_common_xf86Helper.c and patch-render_picture.c from > https://people.freebsd.org/~luporl/gfx_patches/xorg-server/, copy them > the to 'files' directory of xorg-server in ports tree, rebuild and > reinstall it. > If you have this last issue, please let us know and we can request these 2 > patch files to be included in FreeBSD's xorg-server port's patches, to make > this easier for other users, while FreeBSD is still using 1.20.x. > > Cheers, > Leandro > > On Fri, Jul 29, 2022 at 4:18 AM Jasper Vinkenvleugel < > j.t.vinkenvleugel@proton.me> wrote: > >> Hello, >> >> Please excuse me if I'm using this mailing list incorrectly. >> >> Recently I bought a PowerMac G5 with the intent of getting FreeBSD >> 13.1-RELEASE powerpc64 running on it. So far so good, but when I want to >> use X on the Nvidia FX 5200 Ultra the colors are completely off. For >> example in TWM all white surfaces are red. On the wiki I read about >> color-related issues with Blackbird and Talos II with the onboard graphics >> card and I wonder if similar problems might be going on here? The only >> other pointer I can find is 'scfb: LoadPalette 0' being spammed in the >> console. >> >> Kind regards, >> >> Jasper Vinkenvleugel >> >> >> --00000000000094907d05e4f0f3cf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I just remembered that one of the fixes of OFWFB driver wa= sn't backported to 13.1-RELEASE, because it introduced a new ioctl and = also changed a struct.<div>So, besides the previous steps, you may also wan= t to try to use a -CURRENT kernel, or apply=C2=A0<a href=3D"https://reviews= .freebsd.org/D29000">https://reviews.freebsd.org/D29000</a> and rebuild 13.= 1-RELEASE kernel.</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr= " class=3D"gmail_attr">On Fri, Jul 29, 2022 at 9:28 AM luporl <<a href= =3D"mailto:luporl@freebsd.org">luporl@freebsd.org</a>> wrote:<br></div><= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hello Jas= per,<div><br></div><div>I'm assuming colors are already ok on console, = so that's a good=C2=A0start.</div><div>The color-related issues you'= ;re seeing with X are probably being caused by using a graphics card with a= Little-Endian framebuffer on a CPU that is Big-Endian.</div><div><br></div= ><div>But indeed, even in this case, colors should work fine on PowerPC64 m= achines, such as Blackbird, Talos II and probably G5, running in Big-Endian= mode.</div><div>AFAIK, this was tested only with OFWFB kernel driver. Is t= his the one you're using? You can check that with:</div><div>dmesg | gr= ep "VT(ofwfb)".</div><div><br></div><div>Next, make sure you are = using xf86-video-scfb version 0.0.7, that has the fix for the color issues.= </div><div><br></div><div>Finally, if you have issues with Xorg Server (it = used to crash in some cases on PPC64 with the color fixes in OFWFB and SCFB= ), if you're using version 1.20.x or older, you may need to patch it an= d rebuild it from ports.</div><div>You'll need to get=C2=A0patch-hw_xfr= ee86_common_xf86Helper.c=C2=A0and=C2=A0patch-render_picture.c from <a href= =3D"https://people.freebsd.org/~luporl/gfx_patches/xorg-server/" target=3D"= _blank">https://people.freebsd.org/~luporl/gfx_patches/xorg-server/</a>, co= py them the to 'files' directory of xorg-server in ports tree, rebu= ild and reinstall it.</div><div>If you have this last issue, please let us = know and we can request these 2 patch files to be included in FreeBSD's= xorg-server port's patches, to make this easier for other users, while= FreeBSD is still using 1.20.x.</div><div><br></div><div>Cheers,</div><div>= Leandro</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D= "gmail_attr">On Fri, Jul 29, 2022 at 4:18 AM Jasper Vinkenvleugel <<a hr= ef=3D"mailto:j.t.vinkenvleugel@proton.me" target=3D"_blank">j.t.vinkenvleug= el@proton.me</a>> wrote:<br></div><blockquote class=3D"gmail_quote" styl= e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin= g-left:1ex"><div style=3D"font-family:Arial;font-size:14px;color:rgb(0,0,0)= ">Hello,</div><div style=3D"font-family:Arial;font-size:14px;color:rgb(0,0,= 0)"><br></div><div style=3D"font-family:Arial;font-size:14px;color:rgb(0,0,= 0)">Please excuse me if I'm using this mailing list incorrectly.<br></d= iv><div style=3D"font-family:Arial;font-size:14px;color:rgb(0,0,0)"><br></d= iv><div style=3D"font-family:Arial;font-size:14px;color:rgb(0,0,0)">Recentl= y I bought a PowerMac G5 with the intent of getting FreeBSD 13.1-RELEASE po= werpc64 running on it. So far so good, but when I want to use X on the Nvid= ia FX 5200 Ultra the colors are completely off. For example in TWM all whit= e surfaces are red. On the wiki I read about color-related issues with Blac= kbird and Talos II with the onboard graphics card and I wonder if similar p= roblems might be going on here? The only other pointer I can find is 's= cfb: LoadPalette 0' being spammed in the console.</div><div style=3D"fo= nt-family:Arial;font-size:14px;color:rgb(0,0,0)"><br></div><div style=3D"fo= nt-family:Arial;font-size:14px;color:rgb(0,0,0)">Kind regards,</div><div st= yle=3D"font-family:Arial;font-size:14px;color:rgb(0,0,0)"><br></div><div st= yle=3D"font-family:Arial;font-size:14px;color:rgb(0,0,0)">Jasper Vinkenvleu= gel<br></div><div style=3D"font-family:Arial;font-size:14px;color:rgb(0,0,0= )"><br></div><div style=3D"font-family:Arial;font-size:14px;color:rgb(0,0,0= )"><br></div></blockquote></div> </blockquote></div> --00000000000094907d05e4f0f3cf--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC7XEcJdusFTr6Mm6z4Vb2g9JBifHQCHjpw0Q3cwHpYOf0x9uA>