From nobody Fri Jul 29 12:28:02 2022 X-Original-To: freebsd-ppc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LvRct6BFqz4X1cX for ; Fri, 29 Jul 2022 12:28:14 +0000 (UTC) (envelope-from luporl@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LvRct5K6xz43X5 for ; Fri, 29 Jul 2022 12:28:14 +0000 (UTC) (envelope-from luporl@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659097694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Iu7f5NJrYbsTrljGoZktYJrQ30b9h1Ob1Fspo4CeKzE=; b=rpf2aai4vFvVbhVJc63aozIxbUef4u0OsPzrbQeJPcK+8ifHaTEwUlzINd02mZ+hI+qYWm qIjR2SoQrCR2l9+X6GLUWp/kyQfDHVcxDPWWRwrmJsnrHxEtCRMsiY2vL1BmMUJ4aPPsu1 oacHzmCJP8KK4zZW4nFySNUVQtyxpOmbuo1jzjhx3n8G57w98nuBkTbNHrJy4peIH+egD9 T/HqSWq4g+WawkU3+3xJFjdRTBqx/01XP2/Zf6IWAzNLTq+BgDdgP9KGb7c+R47gs90bfZ NeSSlfOedKKPCwiQ4y6Hat9Z3gEZxggRJETPtswKQxfn2DOmFAEl426cWt+Tyg== Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: luporl/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4LvRct48QqzksV for ; Fri, 29 Jul 2022 12:28:14 +0000 (UTC) (envelope-from luporl@freebsd.org) Received: by mail-pl1-f178.google.com with SMTP id x10so3773720plb.3 for ; Fri, 29 Jul 2022 05:28:14 -0700 (PDT) X-Gm-Message-State: ACgBeo0O0a6YDB6xE9Pg7liu3DHGRebEMlXD5aB3y0Lwl2R2YZxRPYd5 lwvPozO4148iTxxzM9SdkrLea6X2LLesUalDKo4= X-Google-Smtp-Source: AA6agR6fIStrieb6u/N9dQGHju6Pcy3vQm7cbTLN6f0f7Lu1YKAfJxwJZXpxnYy6FRKquDirnJwn2yWbaCI2SFr9jB0= X-Received: by 2002:a17:902:c945:b0:16d:d425:324a with SMTP id i5-20020a170902c94500b0016dd425324amr2294555pla.7.1659097693451; Fri, 29 Jul 2022 05:28:13 -0700 (PDT) List-Id: Porting FreeBSD to the PowerPC List-Archive: https://lists.freebsd.org/archives/freebsd-ppc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: luporl Date: Fri, 29 Jul 2022 09:28:02 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: X color issues on PowerMac G5 To: Jasper Vinkenvleugel Cc: "freebsd-ppc@FreeBSD.org" Content-Type: multipart/alternative; boundary="000000000000aa7bde05e4f0c844" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659097694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Iu7f5NJrYbsTrljGoZktYJrQ30b9h1Ob1Fspo4CeKzE=; b=qiYNFD0RiB3lRqBwYV6dksPHLJAVcYczS+IN4RQi7jmJdYq6KEc0W4+ObVRkcog3GVrJDz RwWZ8WL7AX/StdgjjrZY3kq+INOrp4mxAngNpKwZv8tFwW0M0A829WGBVj1QdSNX4n1ltC I0sDFcZX7Y2PRIdKBTqGsnVGmnFCM57NHcdgJaaw6sfWmc6j+22LG4QJnC4wEQt1skuKkj DBvjaJwnso6h5TOpSa+kSKKKsqLd78lPDCwikbp4gF3hYTuf3GzvJ94Sd8xVBohsPZcm7U jEAOJ3iZczRO0tbQ2PYg0XwhnhcebTq6gaJ4lEI4W2RLIosL7MNlI364eQq3wg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659097694; a=rsa-sha256; cv=none; b=vKSDZZ8RE1gBLE3Idd/zdmwgAjdRkNWlNMdaoMBAG7KR4jvMIFw4Z8fRWzIRo+7WNFxggB HBvpegCUeuJT4nkwoYOUmUxJbWjewLWMlciO8/HSZqWLRBXJL3ZhhD5M9oqllX/CPgYeSc Yo/rTNdyoVXDUqoZ/V0OTuECD9J6iy3W1Owh3NgC2u9123mga/YN+mbXcM8HtDcOnPXKW5 6Ks6WxdwH/IdyEvHGlF/fNgLnTEcNl8zQbioEXhlTtyt+/NNYTEuq9oICEo3o98t9AdoL1 vSk8a5zabWJtZEQGsDorigDlcTpp/srpfg43fus62HRmPl5BrapNjxFrlubHJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --000000000000aa7bde05e4f0c844 Content-Type: text/plain; charset="UTF-8" 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 > > > --000000000000aa7bde05e4f0c844 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Jasper,

I'm assuming colors a= re already ok on console, so that's a good=C2=A0start.
The co= lor-related issues you're seeing with X are probably being caused by us= ing a graphics card with a Little-Endian framebuffer on a CPU that is Big-E= ndian.

But indeed, even in this case, colors shoul= d 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 is= sues with Xorg Server (it used to crash in some cases on PPC64 with the col= or fixes in OFWFB and SCFB), if you're using version 1.20.x or older, y= ou may need to patch it and rebuild it from ports.
You'll nee= d to get=C2=A0patch-hw_xfree86_common_xf86Helper.c=C2=A0and=C2=A0patch-rend= er_picture.c from https://people.freebsd.org/~luporl/gfx_patches/xorg-server/<= /a>, copy them the to 'files' directory of xorg-server in ports tre= e, rebuild and reinstall it.


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 run= ning 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 T= alos II with the onboard graphics card and I wonder if similar problems mig= ht be going on here? The only other pointer I can find is 'scfb: LoadPa= lette 0' being spammed in the console.

Kind regards,

Jasper Vinkenvleugel


--000000000000aa7bde05e4f0c844--