Re: No xenocara for ATI Radeon HD 2400 XT
Thus said Jonathan Gray on Mon, 10 Aug 2020 23:54:54 +1000: > For now we could just skip reading a disabled bios on RV610. Thanks, that tweak seems to have gotten past the problem and now X will start: initializing kernel modesetting (RV610 0x1002:0x94C1 0x1028:0x0D02 0x00). radeondrm0: 1680x1050, 32bpp wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation) I wonder what the difference is between i386 and amd64... Thanks, Andy
Re: No xenocara for ATI Radeon HD 2400 XT
On Sun, Aug 09, 2020 at 10:01:43AM -0600, Andy Bradford wrote: > Thus said Jonathan Gray on Sun, 09 Aug 2020 12:39:36 +1000: > > > When this came up previously running i386 resulted in being able to > > read the atombios. Can you confirm that is the case here? > > Yes, this is the case. I installed OpenBSD 6.7 i386 to the same hardware > and there is no error in dmesg and X starts up without requiring > machdep.allowaperture to be set. > > > The drm code in -current/snapshots has been replaced by a new port of > > the linux 5.7 code so behaviour there may change. > > I tried the amd64 current/snapshot from August 8 and it has the same > problem. > > I guess for now I can reinstall with i386 unless there is something else > that I should try for debugging. I can provide whatever is needed. > > Thanks, > > Andy I can't spot a likely cause for this. For now we could just skip reading a disabled bios on RV610. Both of the reports on this were for Dell machines with RV610. Sebastien with OptiPlex 755 RV610 0x1002:0x94C3 0x1028:0x0402 0x00 and your DXP051 RV610 0x1002:0x94C1 0x1028:0x0D02 0x00 Index: src/sys/dev/pci/drm/radeon/radeon_bios.c === RCS file: /cvs/src/sys/dev/pci/drm/radeon/radeon_bios.c,v retrieving revision 1.17 diff -u -p -r1.17 radeon_bios.c --- src/sys/dev/pci/drm/radeon/radeon_bios.c8 Jun 2020 04:48:15 - 1.17 +++ src/sys/dev/pci/drm/radeon/radeon_bios.c10 Aug 2020 13:41:43 - @@ -524,6 +524,9 @@ static bool r600_read_disabled_bios(stru uint32_t lower_gpio_enable; bool r; + if (rdev->family == CHIP_RV610) + return false; + viph_control = RREG32(RADEON_VIPH_CONTROL); bus_cntl = RREG32(R600_BUS_CNTL); d1vga_control = RREG32(AVIVO_D1VGA_CONTROL);
Re: No xenocara for ATI Radeon HD 2400 XT
Thus said Jonathan Gray on Sun, 09 Aug 2020 12:39:36 +1000: > When this came up previously running i386 resulted in being able to > read the atombios. Can you confirm that is the case here? Yes, this is the case. I installed OpenBSD 6.7 i386 to the same hardware and there is no error in dmesg and X starts up without requiring machdep.allowaperture to be set. > The drm code in -current/snapshots has been replaced by a new port of > the linux 5.7 code so behaviour there may change. I tried the amd64 current/snapshot from August 8 and it has the same problem. I guess for now I can reinstall with i386 unless there is something else that I should try for debugging. I can provide whatever is needed. Thanks, Andy
Re: No xenocara for ATI Radeon HD 2400 XT
On Sat, Aug 08, 2020 at 10:23:13AM -0600, Andy Bradford wrote: > Hello, > > The following is found in dmesg: > > initializing kernel modesetting (RV610 0x1002:0x94C1 0x1028:0x0D02 0x00). > drm:pid0:r600_init *ERROR* Expecting atombios for R600 GPU > drm:pid0:radeondrm_attachhook *ERROR* Fatal error during GPU init > [TTM] Memory type 2 has not been initialized > drm0 detached > radeondrm0 detached > vga1 at pci1 dev 0 function 0 "ATI Radeon HD 2400 XT" rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation), using wskbd0 > wskbd1: connecting to wsdisplay0 > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) I have almost the same hardware: initializing kernel modesetting (RV610 0x1002:0x94C3 0x1028:0x0402 0x00). drm:pid0:r600_init *ERROR* Expecting atombios for R600 GPU drm:pid0:radeondrm_attachhook *ERROR* Fatal error during GPU init [TTM] Memory type 2 has not been initialized drm0 detached radeondrm0 detached vga1 at pci1 dev 0 function 0 "ATI Radeon HD 2400 Pro" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (80x25, vt100 emulation) The modesetting failed, but X11 could still work with mesa. It needs machdep.allowaperture=2 (sysctl) to be set. You should just add "machdep.allowaperture=2" line in /etc/sysctl.conf and reboot (this sysctl setting requires to be set at boot-time). Thanks. -- Sebastien Marie
Re: No xenocara for ATI Radeon HD 2400 XT
On Sat, Aug 08, 2020 at 10:23:13AM -0600, Andy Bradford wrote: > Hello, > > I put OpenBSD 6.7 on an older PC that used to run OpenBSD 6.3 and X just > fine. xenodm refuses to start. Is there something I can do to make this > work (edit sources in xenocara or kernel and recompile), or should I > just email bugs@? > > The following is found in dmesg: > > initializing kernel modesetting (RV610 0x1002:0x94C1 0x1028:0x0D02 0x00). > drm:pid0:r600_init *ERROR* Expecting atombios for R600 GPU > drm:pid0:radeondrm_attachhook *ERROR* Fatal error during GPU init > [TTM] Memory type 2 has not been initialized When this came up previously running i386 resulted in being able to read the atombios. Can you confirm that is the case here? The drm code in -current/snapshots has been replaced by a new port of the linux 5.7 code so behaviour there may change. > drm0 detached > radeondrm0 detached > vga1 at pci1 dev 0 function 0 "ATI Radeon HD 2400 XT" rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation), using wskbd0 > wskbd1: connecting to wsdisplay0 > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > > # fw_update -i > Installed: radeondrm-firmware-20181218 intel-firmware-20200508v0 > > What follows are full dmesg, xenodm.log and Xorg.0.log: > > OpenBSD 6.7 (GENERIC.MP) #5: Tue Jul 21 13:50:07 MDT 2020 > > r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 3739795456 (3566MB) > avail mem = 3613900800 (3446MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0450 (65 entries) > bios0: vendor Dell Inc. version "A04" date 04/19/2006 > bios0: Dell Inc. Dell DXP051 > acpi0 at bios0: ACPI 3.0 > acpi0: sleep states S0 S1 S3 S4 S5 > acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET > acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5) > PCI5(S5) PCI6(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Pentium(R) D CPU 3.00GHz, 2993.07 MHz, 0f-06-04 > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,CNXT-ID,CX16,xTPR,PDCM,NXE,LONG,LAHF,MELTDOWN > cpu0: 2MB 64b/line 8-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 199MHz > cpu0: mwait min=64, max=64 > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Pentium(R) D CPU 3.00GHz, 2992.61 MHz, 0f-06-04 > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,CNXT-ID,CX16,xTPR,PDCM,NXE,LONG,LAHF,MELTDOWN > cpu1: 2MB 64b/line 8-way L2 cache > cpu1: smt 0, core 1, package 0 > ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins, remapped > acpimcfg0 at acpi0 > acpimcfg0: addr 0xf000, bus 0-63 > acpimcfg0: addr 0x0, bus 0-0 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 5 (PCI4) > acpiprt2 at acpi0: bus 2 (PCI2) > acpiprt3 at acpi0: bus -1 (PCI3) > acpiprt4 at acpi0: bus 1 (PCI1) > acpiprt5 at acpi0: bus 3 (PCI5) > acpiprt6 at acpi0: bus 4 (PCI6) > acpicpu0 at acpi0: C1(@1 halt!) > acpicpu1 at acpi0: C1(@1 halt!) > acpibtn0 at acpi0: VBTN > acpipci0 at acpi0 PCI0: _OSC failed > acpicmos0 at acpi0 > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x00 > ppb0 at pci0 dev 1 function 0 "Intel 82945G PCIE" rev 0x00: msi > pci1 at ppb0 bus 1 > radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 2400 XT" rev 0x00 > drm0 at radeondrm0 > radeondrm0: msi > azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi > azalia0: codecs: Sigmatel STAC9220/1 > audio0 at azalia0 > ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: msi > pci2 at ppb1 bus 2 > ppb2 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01: msi > pci3 at ppb2 bus 3 > ppb3 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01: msi > pci4 at ppb3 bus 4 > em0 at pci4 dev 0 function 0 "Intel 82573L" rev 0x01: msi, address > 00:13:72:1a:ed:5c > uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 21 > uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 22 > uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 8 int 18 > uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 8 int 23 > ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 8 int 21 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 > addr 1 > ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1 > pci5 at ppb4 bus 5 > "AT/Lucent FW322 1394" rev 0x61 at pci5 dev 5
No xenocara for ATI Radeon HD 2400 XT
Hello, I put OpenBSD 6.7 on an older PC that used to run OpenBSD 6.3 and X just fine. xenodm refuses to start. Is there something I can do to make this work (edit sources in xenocara or kernel and recompile), or should I just email bugs@? The following is found in dmesg: initializing kernel modesetting (RV610 0x1002:0x94C1 0x1028:0x0D02 0x00). drm:pid0:r600_init *ERROR* Expecting atombios for R600 GPU drm:pid0:radeondrm_attachhook *ERROR* Fatal error during GPU init [TTM] Memory type 2 has not been initialized drm0 detached radeondrm0 detached vga1 at pci1 dev 0 function 0 "ATI Radeon HD 2400 XT" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (80x25, vt100 emulation) # fw_update -i Installed: radeondrm-firmware-20181218 intel-firmware-20200508v0 What follows are full dmesg, xenodm.log and Xorg.0.log: OpenBSD 6.7 (GENERIC.MP) #5: Tue Jul 21 13:50:07 MDT 2020 r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3739795456 (3566MB) avail mem = 3613900800 (3446MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0450 (65 entries) bios0: vendor Dell Inc. version "A04" date 04/19/2006 bios0: Dell Inc. Dell DXP051 acpi0 at bios0: ACPI 3.0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5) PCI5(S5) PCI6(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Pentium(R) D CPU 3.00GHz, 2993.07 MHz, 0f-06-04 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,CNXT-ID,CX16,xTPR,PDCM,NXE,LONG,LAHF,MELTDOWN cpu0: 2MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 199MHz cpu0: mwait min=64, max=64 cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Pentium(R) D CPU 3.00GHz, 2992.61 MHz, 0f-06-04 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,CNXT-ID,CX16,xTPR,PDCM,NXE,LONG,LAHF,MELTDOWN cpu1: 2MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins, remapped acpimcfg0 at acpi0 acpimcfg0: addr 0xf000, bus 0-63 acpimcfg0: addr 0x0, bus 0-0 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (PCI4) acpiprt2 at acpi0: bus 2 (PCI2) acpiprt3 at acpi0: bus -1 (PCI3) acpiprt4 at acpi0: bus 1 (PCI1) acpiprt5 at acpi0: bus 3 (PCI5) acpiprt6 at acpi0: bus 4 (PCI6) acpicpu0 at acpi0: C1(@1 halt!) acpicpu1 at acpi0: C1(@1 halt!) acpibtn0 at acpi0: VBTN acpipci0 at acpi0 PCI0: _OSC failed acpicmos0 at acpi0 pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x00 ppb0 at pci0 dev 1 function 0 "Intel 82945G PCIE" rev 0x00: msi pci1 at ppb0 bus 1 radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 2400 XT" rev 0x00 drm0 at radeondrm0 radeondrm0: msi azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi azalia0: codecs: Sigmatel STAC9220/1 audio0 at azalia0 ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: msi pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01: msi pci3 at ppb2 bus 3 ppb3 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01: msi pci4 at ppb3 bus 4 em0 at pci4 dev 0 function 0 "Intel 82573L" rev 0x01: msi, address 00:13:72:1a:ed:5c uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 21 uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 22 uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 8 int 18 uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 8 int 23 ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 8 int 21 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1 pci5 at ppb4 bus 5 "AT/Lucent FW322 1394" rev 0x61 at pci5 dev 5 function 0 not configured pcib0 at pci0 dev 31 function 0 "Intel 82801GH LPC" rev 0x01 pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: removable atapiscsi1 at pciide0 channel 0 drive 1 scsibus2 at atapiscsi1: 2 targets cd1 at scsibus2 targ 0 lun 0: removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2