Re: blank screen after fresh installation of 7.2 in powerpc

2023-09-13 Thread Jonathan Gray
On Wed, Sep 13, 2023 at 04:56:24PM -0400, Nuno Vasconcellos wrote:
> I’m sorry Jonathan, the patch actually didn’t work since I had disabled 
> drmradeon in the kernel so I could get a working screen. Once I re-enabled 
> drmradeon and rebooted, I got the same issue.
> 
> I will let you know once I get it working.
> 
> Taking the opportunity, a question on the side, still related to this 
> subject, I noticed that r200 used to show up in a previous version of OpenBSD 
> but it is not in the 7.3 and reading here and there, I noticed that it is 
> related to Radeon 9200, the video card in my macppc. What this «absence» 
> imply?

As mentioned earlier, support for r200 acceleration was removed from the
main branch of the OpenGL library (Mesa).  Kernel support for
modesetting remains.



Re: blank screen after fresh installation of 7.2 in powerpc

2023-09-13 Thread Nuno Vasconcellos
I’m sorry Jonathan, the patch actually didn’t work since I had disabled 
drmradeon in the kernel so I could get a working screen. Once I re-enabled 
drmradeon and rebooted, I got the same issue.

I will let you know once I get it working.

Taking the opportunity, a question on the side, still related to this subject, 
I noticed that r200 used to show up in a previous version of OpenBSD but it is 
not in the 7.3 and reading here and there, I noticed that it is related to 
Radeon 9200, the video card in my macppc. What this «absence» imply?

> Le 12 sept. 2023 à 22:26 , Jonathan Gray  a écrit :
> 
> On Tue, Sep 12, 2023 at 08:33:38PM -0400, Nuno Vasconcellos wrote:
>> Jonathan, since my eMac is a PowerMac6,4, the solution proposed in the 
>> following link resolved this problem in my case:
>> 
>> https://gitlab.freedesktop.org/drm/amd/-/issues/2844 
>> 
>> 
>> Can this be put as a patch in the current release and become permanent fix 
>> for future releases?
> 
> Yes, committed.  Thanks for reporting it.



Re: blank screen after fresh installation of 7.2 in powerpc

2023-01-09 Thread Nuno Vasconcellos
Yes, the console text shows when the machine is booting, with the background in 
blue, and it goes blank precisely after the following line is shown:

[drm] *ERROR* Unable to locate a BIOS ROM

No, I didn’t agree to xenom when installing. I just hit enter for the answer 
there was [no].

> Le 8 janv. 2023 à 21:08 , Jonathan Gray  a écrit :
> 
> On Sun, Jan 08, 2023 at 07:01:54PM -0500, Nuno Vasconcellos wrote:
>>> Synopsis:  blank screen after fresh installation
>>> Category:  powerpc  
>>> Environment:
>>  System  : OpenBSD 7.2
>>  Details : OpenBSD 7.2-stable (GENERIC) #1: Sun Jan  8 16:55:44 EST 
>> 2023
>>   
>> va...@urca.my.domain:/usr/src/sys/arch/macppc/compile/GENERIC
>> 
>>  Architecture: OpenBSD.macppc
>>  Machine : macppc
>>> Description:
>>After a fresh installation, the system booted with a blank screen.
>>During the installation, it was noticed that fw_update installed 
>> radeondrm.
>>Applicable patches installed.
>>Release notes checked.
>>No newer release found.
>>Changes made between OpenBSD versions checked.
>>Another reboot and still blank screen.
>>Remote access via ssh from another machine.
>>Logs in dmesg.boot and /var/log/Xorg.o.log check.
>>In dmesg.boot log the following line caught my attention:
>>[drm] *ERROR* Unable to locate a BIOS ROM
>>In /var/log/Xorg.O.log file, the following lines also caught my 
>> attention: 
>>[42.182] (EE) AIGLX error: dlopen of 
>> /usr/X11R6/lib/modules/dri/r200_dri.so failed (File not found)
>>[42.182] (EE) AIGLX error: unable to load driver r200
>>The command ls -l /usr/X11R6/lib/modules/dri/ was run and provided 
>> the following:
>>total 128000
>>-r--r--r--  4 root  bin  16549188 Sep 29 15:02 kms_swrast_dri.so
>>-r--r--r--  4 root  bin  16549188 Sep 29 15:02 r300_dri.so
>>-r--r--r--  4 root  bin  16549188 Sep 29 15:02 r600_dri.so
>>-r--r--r--  4 root  bin  16549188 Sep 29 15:02 swrast_dri.so
>>Video card is ATI Radeon 9200 identified with pci bus 0:16:0
>>Machine is an Apple eMac PowerMac6,4
>>> How-To-Repeat:
>>Install using cd72.iso for macppc and following instructions at the 
>> following link:
>>https://ftp.openbsd.org/pub/OpenBSD/7.2/macppc/INSTALL.macppc
>>> Fix:
>>It seems that the fix is to provide the r200_dri.so file noted as not 
>> found in Xorg.O.log (radeondrm needs to be reviewed and updated?)
>> 
> 
> The Mesa "classic" drivers, including r200_dri.so were removed from
> upstream Mesa.  Mesa falls back to software rendering.  The old paths
> are tried as there is a messy way to build them out of another Mesa
> tree.  OpenBSD does not include drivers from the amber tree of Mesa.
> 
> Does the console text show when the machine is booting?  Did you agree
> to xenodm when installing?
> 
>> SENDBUG: dmesg, pcidump, acpidump and usbdevs are attached.
>> SENDBUG: Feel free to delete or use the -D flag if they contain sensitive 
>> information.
>> 
>> dmesg:
>> OpenBSD 7.2-stable (GENERIC) #1: Sun Jan  8 16:55:44 EST 2023
>>va...@urca.my.domain:/usr/src/sys/arch/macppc/compile/GENERIC
>> real mem = 1073741824 (1024MB)
>> avail mem = 1025462272 (977MB)
>> random: good seed from bootblocks
>> mpath0 at root
>> scsibus0 at mpath0: 256 targets
>> mainbus0 at root: model PowerMac6,4
>> cpu0 at mainbus0: 7447A (Revision 0x101): 1249 MHz: 512KB L2 cache
>> mem0 at mainbus0
>> spdmem0 at mem0: 512MB DDR SDRAM non-parity PC3200CL2.5
>> spdmem1 at mem0: 512MB DDR SDRAM non-parity PC3200CL2.5
>> memc0 at mainbus0: uni-n rev 0xd2
>> "hw-clock" at memc0 not configured
>> kiic0 at memc0 offset 0xf8001000
>> iic0 at kiic0
>> mpcpcibr0 at mainbus0 pci: uni-north
>> pci0 at mpcpcibr0 bus 0
>> pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00
>> agp at pchb0 not configured
>> radeondrm0 at pci0 dev 16 function 0 "ATI Radeon 9200" rev 0x01
>> drm0 at radeondrm0
>> radeondrm0: irq 48
>> mpcpcibr1 at mainbus0 pci: uni-north
>> pci1 at mpcpcibr1 bus 0
>> macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00
>> openpic0 at macobio0 offset 0x4: version 0x4614 feature 3f0302 LE
>> macgpio0 at macobio0 offset 0x50
>> "modem-reset" at macgpio0 offset 0x1d not configured
>> "modem-power" at macgpio0 offset 0x1c not configured
>> macgpio1 at macgpio0 offset 0x9: irq 47
>> "programmer-switch" at macgpio0 offset 0x11 not configured
>> "fan" at macgpio0 offset 0x0 not configured
>> "gpio0" at macgpio0 offset 0x6a not configured
>> "gpio5" at macgpio0 offset 0x6f not configured
>> "gpio6" at macgpio0 offset 0x70 not configured
>> "extint-gpio4" at macgpio0 offset 0x5c not configured
>> "gpio11" at macgpio0 offset 0x75 not configured
>> "extint-gpio15" at macgpio0 offset 0x67 not configured
>> "escc-legacy" at macobio0 offset 0x12000 not configured
>> zs0 at macobio0 

Re: blank screen after fresh installation of 7.2 in powerpc

2023-01-08 Thread Jonathan Gray
On Sun, Jan 08, 2023 at 07:01:54PM -0500, Nuno Vasconcellos wrote:
> >Synopsis:  blank screen after fresh installation 
> >Category:  powerpc   
> >Environment:
>   System  : OpenBSD 7.2
>   Details : OpenBSD 7.2-stable (GENERIC) #1: Sun Jan  8 16:55:44 EST 
> 2023
>
> va...@urca.my.domain:/usr/src/sys/arch/macppc/compile/GENERIC
> 
>   Architecture: OpenBSD.macppc
>   Machine : macppc
> >Description:
> After a fresh installation, the system booted with a blank screen.
> During the installation, it was noticed that fw_update installed 
> radeondrm.
> Applicable patches installed.
> Release notes checked.
> No newer release found.
> Changes made between OpenBSD versions checked.
> Another reboot and still blank screen.
> Remote access via ssh from another machine.
> Logs in dmesg.boot and /var/log/Xorg.o.log check.
> In dmesg.boot log the following line caught my attention:
> [drm] *ERROR* Unable to locate a BIOS ROM
> In /var/log/Xorg.O.log file, the following lines also caught my 
> attention: 
> [42.182] (EE) AIGLX error: dlopen of 
> /usr/X11R6/lib/modules/dri/r200_dri.so failed (File not found)
> [42.182] (EE) AIGLX error: unable to load driver r200
> The command ls -l /usr/X11R6/lib/modules/dri/ was run and provided 
> the following:
> total 128000
> -r--r--r--  4 root  bin  16549188 Sep 29 15:02 kms_swrast_dri.so
> -r--r--r--  4 root  bin  16549188 Sep 29 15:02 r300_dri.so
> -r--r--r--  4 root  bin  16549188 Sep 29 15:02 r600_dri.so
> -r--r--r--  4 root  bin  16549188 Sep 29 15:02 swrast_dri.so
> Video card is ATI Radeon 9200 identified with pci bus 0:16:0
> Machine is an Apple eMac PowerMac6,4
> >How-To-Repeat:
> Install using cd72.iso for macppc and following instructions at the 
> following link:
> https://ftp.openbsd.org/pub/OpenBSD/7.2/macppc/INSTALL.macppc
> >Fix:
> It seems that the fix is to provide the r200_dri.so file noted as not 
> found in Xorg.O.log (radeondrm needs to be reviewed and updated?)
> 

The Mesa "classic" drivers, including r200_dri.so were removed from
upstream Mesa.  Mesa falls back to software rendering.  The old paths
are tried as there is a messy way to build them out of another Mesa
tree.  OpenBSD does not include drivers from the amber tree of Mesa.

Does the console text show when the machine is booting?  Did you agree
to xenodm when installing?

> SENDBUG: dmesg, pcidump, acpidump and usbdevs are attached.
> SENDBUG: Feel free to delete or use the -D flag if they contain sensitive 
> information.
> 
> dmesg:
> OpenBSD 7.2-stable (GENERIC) #1: Sun Jan  8 16:55:44 EST 2023
> va...@urca.my.domain:/usr/src/sys/arch/macppc/compile/GENERIC
> real mem = 1073741824 (1024MB)
> avail mem = 1025462272 (977MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root: model PowerMac6,4
> cpu0 at mainbus0: 7447A (Revision 0x101): 1249 MHz: 512KB L2 cache
> mem0 at mainbus0
> spdmem0 at mem0: 512MB DDR SDRAM non-parity PC3200CL2.5
> spdmem1 at mem0: 512MB DDR SDRAM non-parity PC3200CL2.5
> memc0 at mainbus0: uni-n rev 0xd2
> "hw-clock" at memc0 not configured
> kiic0 at memc0 offset 0xf8001000
> iic0 at kiic0
> mpcpcibr0 at mainbus0 pci: uni-north
> pci0 at mpcpcibr0 bus 0
> pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00
> agp at pchb0 not configured
> radeondrm0 at pci0 dev 16 function 0 "ATI Radeon 9200" rev 0x01
> drm0 at radeondrm0
> radeondrm0: irq 48
> mpcpcibr1 at mainbus0 pci: uni-north
> pci1 at mpcpcibr1 bus 0
> macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00
> openpic0 at macobio0 offset 0x4: version 0x4614 feature 3f0302 LE
> macgpio0 at macobio0 offset 0x50
> "modem-reset" at macgpio0 offset 0x1d not configured
> "modem-power" at macgpio0 offset 0x1c not configured
> macgpio1 at macgpio0 offset 0x9: irq 47
> "programmer-switch" at macgpio0 offset 0x11 not configured
> "fan" at macgpio0 offset 0x0 not configured
> "gpio0" at macgpio0 offset 0x6a not configured
> "gpio5" at macgpio0 offset 0x6f not configured
> "gpio6" at macgpio0 offset 0x70 not configured
> "extint-gpio4" at macgpio0 offset 0x5c not configured
> "gpio11" at macgpio0 offset 0x75 not configured
> "extint-gpio15" at macgpio0 offset 0x67 not configured
> "escc-legacy" at macobio0 offset 0x12000 not configured
> zs0 at macobio0 offset 0x13000: irq 22,23
> zstty0 at zs0 channel 0
> zstty1 at zs0 channel 1
> snapper0 at macobio0 offset 0x1: irq 30,1,2
> "timer" at macobio0 offset 0x15000 not configured
> adb0 at macobio0 offset 0x16000
> apm0 at adb0: battery flags 0x9, 0% charged
> piic0 at adb0
> iic1 at piic0
> "ivad-2" at iic1 addr 0x146 not configured
> "ivad-eeprom" at iic1 addr 0x153 not configured
> "ivad-pwm" at iic1 addr 0x14c not configured
>