Re: radeondrm failure on amd64 but not on i386?

2018-12-20 Thread Daniel Dickman



> On Dec 19, 2018, at 10:22 AM, Andy Bradford 
>  wrote:
> 
> Thus said Daniel Dickman on Fri, 14 Dec 2018 20:45:11 -0500:
> 
>> Try  previous releases  of OpenBSD/amd64  to check  if radeondrm  ever
>> worked for you on amd64.
> 
> That  was a  fruitful suggestion.  I tried  6.3 amd64  and it  works. So
> somewhere after  6.3 a change  was introduced that made  this particular
> Radeon card not work. I'll see if  I can discover which. What's the best
> way to bisect with CVS; update sources by date/time?

It was probably the big update to resync radeondrm with the linux 4.4.x kernel. 
Believe that happened shortly after 6.3 was released. Previous to this, 
radeondrm was synced against the linux 3.8.x kernel.

https://github.com/openbsd/src/commit/7ccd5a2c19d4480fd59ed7bbf02608c8980a7858

If you really wanted to bisect this you can use the github mirror. it would be 
interesting if the drm update is *not* the commit that broke things. anyway 
think you might be able to start with openbsd 6.3, install git package, 
download the git tree from github then bisect and recompile the kernel and 
reboot. (hopefully doesn’t need a full build of base here).

> 
>> If you  diff the dmesgs is  there any other on
>> already been reported?
> 
> I don't believe there were any other significant diffences.

btw I saw a note from kettenis@ that a drm update is being worked on:
https://marc.info/?l=openbsd-bugs=154512499015162=2

just fyi.



Re: radeondrm failure on amd64 but not on i386?

2018-12-19 Thread Andy Bradford
Thus said Daniel Dickman on Fri, 14 Dec 2018 20:45:11 -0500:

> Try  previous releases  of OpenBSD/amd64  to check  if radeondrm  ever
> worked for you on amd64.

That  was a  fruitful suggestion.  I tried  6.3 amd64  and it  works. So
somewhere after  6.3 a change  was introduced that made  this particular
Radeon card not work. I'll see if  I can discover which. What's the best
way to bisect with CVS; update sources by date/time?

> If you  diff the dmesgs is  there any other difference  besides what's
> already been reported?

I don't believe there were any other significant diffences. At any rate,
below is the  diff (hopefully unified strategy is fine)  between 6.3 and
6.4 dmesg for amd64, followed by the full dmesg output:

--- dmesg-63.txtWed Dec 19 08:16:41 2018
+++ dmesg-64.txtWed Dec 19 08:16:41 2018
@@ -1,7 +1,7 @@
-OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
-dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
+OpenBSD 6.4 (GENERIC.MP) #2: Tue Dec 18 13:17:16 CET 2018
+
r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 3739795456 (3566MB)
-avail mem = 3619459072 (3451MB)
+avail mem = 3617239040 (3449MB)
 mpath0 at root
 scsibus0 at mpath0: 256 targets
 mainbus0 at root
@@ -15,7 +15,7 @@
 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, 2992.98 MHz
+cpu0: Intel(R) Pentium(R) D CPU 3.00GHz, 2993.02 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
@@ -23,13 +23,14 @@
 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.59 MHz
+cpu1: Intel(R) Pentium(R) D CPU 3.00GHz, 2992.58 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 to apid 8
-acpimcfg0 at acpi0 addr 0xf000, bus 0-63
+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 5 (PCI4)
 acpiprt1 at acpi0: bus 2 (PCI2)
@@ -41,6 +42,7 @@
 acpicpu0 at acpi0: C1(@1 halt!)
 acpicpu1 at acpi0: C1(@1 halt!)
 acpibtn0 at acpi0: VBTN
+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
@@ -137,8 +139,17 @@
 scsibus6 at vscsi0: 256 targets
 softraid0 at root
 scsibus7 at softraid0: 256 targets
-root on sd0a (0c2217a59fb32e85.a) swap on sd0b dump on sd0b
-radeondrm0: 1680x1050, 32bpp
-wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
+root on sd5a (f2d5da28e9d59e44.a) swap on sd5b dump on sd5b
+initializing kernel modesetting (RV610 0x1002:0x94C1 0x1028:0x0D02).
+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 (std, vt100 emulation)
+wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
+wsmouse0 detached
+ums0 detached
+uhidev2 detached

OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3739795456 (3566MB)
avail mem = 3619459072 (3451MB)
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: rev 2
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, 2992.98 MHz
cpu0: 

Re: radeondrm failure on amd64 but not on i386?

2018-12-17 Thread Allan Streib
Found a cheap card on eBay, dmesg shows it as ATI Radeon HD 7470,
working well in

OpenBSD 6.4-current (GENERIC.MP) #499: Mon Dec 10 11:33:10 MST 2018.

Allan

Allan Streib  writes:

> Still having this issue on -current as of Dec10. machdep.allowaperture=2
> does get me past this, but am seeing weird behavior, some regions of
> screens/terminals not painting or refreshing.
>
> So, as this is a major inconvenience I am looking to update the video
> card.
>
> Any recommendations for a low-profile card that is working on
> 6.4/current?
>
> Thanks,
>
> Allan



Re: radeondrm failure on amd64 but not on i386?

2018-12-14 Thread Daniel Dickman



> On Dec 14, 2018, at 5:41 PM, Andy Bradford 
>  wrote:
> 
> Thus said Allan Streib on Wed, 12 Dec 2018 14:09:06 -0500:
> 
>> Stillhavingthis   issueon-currentas   ofDec10.
>> machdep.allowaperture=2  does   get  me  past  this,   but  am  seeing
>> weird  behavior, some  regions  of screens/terminals  not painting  or
>> refreshing.
> 
> As far as I'm  aware no progress has been made. It seems  to be having a
> problem reading  the ATOM BIOS  and I haven't yet  figured out a  way to
> dump out what it is reading to disk so it can be analyzed. Maybe some of
> the commands  from the  other thread  on bugs@  will lead  to additional
> information.

Try previous releases of OpenBSD/amd64 to check if radeondrm ever worked for 
you on amd64. I wouldn’t check any version older than 6.1, but if any of the 
previous releases work that could give some more clues about where the problem 
could be.

Also would be interesting to uncomment DRMDEBUG and show full dmesg under both 
i386 and amd64 using -current releases. ie. 

https://github.com/openbsd/src/blob/master/sys/dev/pci/drm/drmP.h#L40

If you diff the dmesgs is there any other difference besides what’s already 
been reported?

> 
> Another alternative,  if you  can, is  to use i386  instead of  amd64. I
> found that on i386 it does correctly detect the ATOM BIOS.
> 
> Andy
> -- 
> TAI64 timestamp: 40005c1431b9
> 
> 


Re: radeondrm failure on amd64 but not on i386?

2018-12-14 Thread Andy Bradford
Thus said Allan Streib on Wed, 12 Dec 2018 14:09:06 -0500:

> Stillhavingthis   issueon-currentas   ofDec10.
> machdep.allowaperture=2  does   get  me  past  this,   but  am  seeing
> weird  behavior, some  regions  of screens/terminals  not painting  or
> refreshing.

As far as I'm  aware no progress has been made. It seems  to be having a
problem reading  the ATOM BIOS  and I haven't yet  figured out a  way to
dump out what it is reading to disk so it can be analyzed. Maybe some of
the commands  from the  other thread  on bugs@  will lead  to additional
information.

Another alternative,  if you  can, is  to use i386  instead of  amd64. I
found that on i386 it does correctly detect the ATOM BIOS.

Andy
-- 
TAI64 timestamp: 40005c1431b9




Re: radeondrm failure on amd64 but not on i386?

2018-12-13 Thread 岡本健二
I'm using low profile HD 6450 which is now renamed as R5 230 and selling.
This card has HDMI, DVI and VGA connectors.
If you want to use VGA, you have to use one more card space
for low profile box.

Yes, it works very fine, and cheap.

Kenji


2018年12月13日(木) 4:14 Allan Streib :

> Still having this issue on -current as of Dec10. machdep.allowaperture=2
> does get me past this, but am seeing weird behavior, some regions of
> screens/terminals not painting or refreshing.
>
> So, as this is a major inconvenience I am looking to update the video
> card.
>
> Any recommendations for a low-profile card that is working on
> 6.4/current?
>
> Thanks,
>
> Allan
>
>
> Allan Streib  writes:
>
> > Same issue, also on a Dell machine with ATI Radeon HD 2400 XT.
> >
> > Allan
> >
> > OpenBSD 6.4 (GENERIC.MP) #0: Sat Nov 17 22:15:46 CET 2018
> > r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/
> GENERIC.MP
> > real mem = 4141871104 (3949MB)
> > avail mem = 4007075840 (3821MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
> > bios0: vendor Dell Inc. version "A11" date 01/21/2011
> > bios0: Dell Inc. OptiPlex 960
> > acpi0 at bios0: rev 2
> > acpi0: TCPA checksum error
> > acpi0: sleep states S0 S1 S3 S4 S5
> > acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET TCPA DMAR SLIC
> SSDT SSDT SSDT
> > 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) USB4(S3)
> USB5(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) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.96 MHz, 06-17-0a
> > 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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
> > cpu0: 6MB 64b/line 16-way L2 cache
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 332MHz
> > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.51 MHz, 06-17-0a
> > 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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
> > cpu1: 6MB 64b/line 16-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 0xf800, bus 0-63
> > acpihpet0 at acpi0: 14318179 Hz
> > acpiprt0 at acpi0: bus 4 (PCI4)
> > acpiprt1 at acpi0: bus 2 (PCI2)
> > acpiprt2 at acpi0: bus 3 (PCI3)
> > acpiprt3 at acpi0: bus 1 (PCI1)
> > acpiprt4 at acpi0: bus -1 (PCI5)
> > acpiprt5 at acpi0: bus -1 (PCI6)
> > acpiprt6 at acpi0: bus 0 (PCI0)
> > acpicpu0 at acpi0: C1(1000@1 mwait.1), PSS
> > acpicpu1 at acpi0: C1(1000@1 mwait.1), PSS
> > acpibtn0 at acpi0: VBTN
> > acpicmos0 at acpi0
> > "*pnp0c14" at acpi0 not configured
> > cpu0: Enhanced SpeedStep 2992 MHz: speeds: 3000, 2667, 2333, 2000 MHz
> > pci0 at mainbus0 bus 0
> > pchb0 at pci0 dev 0 function 0 "Intel Q45 Host" rev 0x03
> > ppb0 at pci0 dev 1 function 0 "Intel Q45 PCIE" rev 0x03: 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
> > "Intel Q45 HECI" rev 0x03 at pci0 dev 3 function 0 not configured
> > pciide0 at pci0 dev 3 function 2 "Intel Q45 PT IDER" rev 0x03: DMA
> (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
> > pciide0: using apic 8 int 18 for native-PCI interrupt
> > pciide0: channel 0 ignored (not responding; disabled or no drives?)
> > pciide0: channel 1 ignored (not responding; disabled or no drives?)
> > puc0 at pci0 dev 3 function 3 "Intel Q45 KT" rev 0x03: ports: 16 com
> > com4 at puc0 port 0 apic 8 int 17: ns16550a, 16 byte fifo
> > com4: probed fifo depth: 0 bytes
> > em0 at pci0 dev 25 function 0 "Intel ICH10 D BM LM" rev 0x02: msi,
> address 00:22:19:31:bf:96
> > uhci0 at pci0 dev 26 function 0 "Intel 82801JD USB" rev 0x02: apic 8 int
> 16
> > uhci1 at pci0 dev 26 function 1 "Intel 82801JD USB" rev 0x02: apic 8 int
> 17
> > uhci2 at pci0 dev 26 function 2 "Intel 82801JD USB" rev 0x02: apic 8 int
> 22
> > ehci0 at pci0 dev 26 function 7 "Intel 82801JD USB" rev 0x02: apic 8 int
> 22
> > 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
> > azalia0 at pci0 dev 27 function 0 "Intel 82801JD HD Audio" rev 0x02: msi
> > azalia0: codecs: Analog Devices AD1984A
> > audio0 at azalia0
> > ppb1 at 

Re: radeondrm failure on amd64 but not on i386?

2018-12-12 Thread Allan Streib
Still having this issue on -current as of Dec10. machdep.allowaperture=2
does get me past this, but am seeing weird behavior, some regions of
screens/terminals not painting or refreshing.

So, as this is a major inconvenience I am looking to update the video
card.

Any recommendations for a low-profile card that is working on
6.4/current?

Thanks,

Allan


Allan Streib  writes:

> Same issue, also on a Dell machine with ATI Radeon HD 2400 XT.
>
> Allan
>
> OpenBSD 6.4 (GENERIC.MP) #0: Sat Nov 17 22:15:46 CET 2018
> 
> r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4141871104 (3949MB)
> avail mem = 4007075840 (3821MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
> bios0: vendor Dell Inc. version "A11" date 01/21/2011
> bios0: Dell Inc. OptiPlex 960
> acpi0 at bios0: rev 2
> acpi0: TCPA checksum error
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET TCPA DMAR SLIC SSDT 
> SSDT SSDT
> 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) USB4(S3) USB5(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) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.96 MHz, 06-17-0a
> 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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
> cpu0: 6MB 64b/line 16-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges
> cpu0: apic clock running at 332MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.51 MHz, 06-17-0a
> 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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
> cpu1: 6MB 64b/line 16-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 0xf800, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 4 (PCI4)
> acpiprt1 at acpi0: bus 2 (PCI2)
> acpiprt2 at acpi0: bus 3 (PCI3)
> acpiprt3 at acpi0: bus 1 (PCI1)
> acpiprt4 at acpi0: bus -1 (PCI5)
> acpiprt5 at acpi0: bus -1 (PCI6)
> acpiprt6 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0: C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: C1(1000@1 mwait.1), PSS
> acpibtn0 at acpi0: VBTN
> acpicmos0 at acpi0
> "*pnp0c14" at acpi0 not configured
> cpu0: Enhanced SpeedStep 2992 MHz: speeds: 3000, 2667, 2333, 2000 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Q45 Host" rev 0x03
> ppb0 at pci0 dev 1 function 0 "Intel Q45 PCIE" rev 0x03: 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
> "Intel Q45 HECI" rev 0x03 at pci0 dev 3 function 0 not configured
> pciide0 at pci0 dev 3 function 2 "Intel Q45 PT IDER" rev 0x03: DMA 
> (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
> pciide0: using apic 8 int 18 for native-PCI interrupt
> pciide0: channel 0 ignored (not responding; disabled or no drives?)
> pciide0: channel 1 ignored (not responding; disabled or no drives?)
> puc0 at pci0 dev 3 function 3 "Intel Q45 KT" rev 0x03: ports: 16 com
> com4 at puc0 port 0 apic 8 int 17: ns16550a, 16 byte fifo
> com4: probed fifo depth: 0 bytes
> em0 at pci0 dev 25 function 0 "Intel ICH10 D BM LM" rev 0x02: msi, address 
> 00:22:19:31:bf:96
> uhci0 at pci0 dev 26 function 0 "Intel 82801JD USB" rev 0x02: apic 8 int 16
> uhci1 at pci0 dev 26 function 1 "Intel 82801JD USB" rev 0x02: apic 8 int 17
> uhci2 at pci0 dev 26 function 2 "Intel 82801JD USB" rev 0x02: apic 8 int 22
> ehci0 at pci0 dev 26 function 7 "Intel 82801JD USB" rev 0x02: apic 8 int 22
> 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
> azalia0 at pci0 dev 27 function 0 "Intel 82801JD HD Audio" rev 0x02: msi
> azalia0: codecs: Analog Devices AD1984A
> audio0 at azalia0
> ppb1 at pci0 dev 28 function 0 "Intel 82801JD PCIE" rev 0x02: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 1 "Intel 82801JD PCIE" rev 0x02: msi
> pci3 at ppb2 bus 3
> uhci3 at pci0 dev 29 function 0 "Intel 82801JD USB" rev 0x02: apic 8 int 23
> uhci4 at pci0 dev 29 function 1 "Intel 82801JD USB" rev 0x02: apic 8 int 17
> uhci5 at pci0 dev 29 function 2 "Intel 82801JD USB" rev 0x02: apic 8 int 18
> ehci1 at pci0 dev 29 function 7 "Intel 82801JD USB" rev 0x02: 

Re: radeondrm failure on amd64 but not on i386?

2018-11-28 Thread Andy Bradford
Thus said Allan Streib on Tue, 27 Nov 2018 15:51:57 -0500:

> The issue was also reported here, with no follups but more debug info:
> 
> https://marc.info/?l=openbsd-bugs=153398230416756=2

That seems  to be an identical  problem, but definitely with  more debug
info.

In my system, the card is also in a PCIe slot.

By the way, it  is possible to workaround the problem  to some extent by
just adding to sysctl.conf:

machdep.allowaperture=2

X will then start up, but it won't be using the firmware.

Andy
-- 
TAI64 timestamp: 40005bfeb246




Re: radeondrm failure on amd64 but not on i386?

2018-11-27 Thread Allan Streib
Andy Bradford writes:

> After  Jonathan  suggested  adding   some  printf  debug  statements,  I
> continued to do so and was able to see that the rdev->bios variable that
> is being inspected  at lines 834--840 in radeon_bios.c  has neither ATOM
> nor MOTA in the string at that address for amd64, but has ATOM for i386:
>
>   tmp = rdev->bios_header_start + 4;
>   if (!memcmp(rdev->bios + tmp, "ATOM", 4) ||
>   !memcmp(rdev->bios + tmp, "MOTA", 4)) {
>   rdev->is_atom_bios = true;
>   } else {
>   rdev->is_atom_bios = false;
>   }
>
> I suppose additional debug might  involve writing the entire contents of
> rdev->bios to a file and then hexdump it?

The issue was also reported here, with no follups but more debug info:

https://marc.info/?l=openbsd-bugs=153398230416756=2

Allan



Re: radeondrm failure on amd64 but not on i386?

2018-11-25 Thread Jonathan Gray
On Mon, Nov 19, 2018 at 08:37:01AM -0700, Andy Bradford wrote:
> Thus said Jonathan Gray on Mon, 19 Nov 2018 20:42:46 +1100:
> 
> > > Thanks for the suggestion. Here's the additional output provided by your
> > > patch:
> > > 
> > > radeon_atrm_get_bios false
> > > radeon_acpi_vfct_bios false
> > > igp_read_bios_from_vram false
> > > radeon_read_bios false
> > > radeon_read_disabled_bios true
> > > 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
> > 
> > Thanks, could you also show the i386 output with the patch?
> 
> The output on i386 looks pretty much the same except for the failure:
> 
> initializing kernel modesetting (RV610 0x1002:0x94C1 0x1028:0x0D02).
> radeon_atrm_get_bios false
> radeon_acpi_vfct_bios false
> igp_read_bios_from_vram false
> radeon_read_bios false
> radeon_read_disabled_bios true
> radeondrm0: 1680x1050, 32bpp
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0

r600_read_disabled_bios is just doing register reads/writes it isn't
clear to me why that would be different between amd64 and i386.



Re: radeondrm failure on amd64 but not on i386?

2018-11-25 Thread Andy Bradford
Thus said Allan Streib on Sun, 25 Nov 2018 21:54:45 -0500:

> Same issue, also on a Dell machine with ATI Radeon HD 2400 XT.

After  Jonathan  suggested  adding   some  printf  debug  statements,  I
continued to do so and was able to see that the rdev->bios variable that
is being inspected  at lines 834--840 in radeon_bios.c  has neither ATOM
nor MOTA in the string at that address for amd64, but has ATOM for i386:

tmp = rdev->bios_header_start + 4;
if (!memcmp(rdev->bios + tmp, "ATOM", 4) ||
!memcmp(rdev->bios + tmp, "MOTA", 4)) {
rdev->is_atom_bios = true;
} else {
rdev->is_atom_bios = false;
}

I suppose additional debug might  involve writing the entire contents of
rdev->bios to a file and then hexdump it?

Andy
-- 
TAI64 timestamp: 40005bfb8e86




Re: radeondrm failure on amd64 but not on i386?

2018-11-25 Thread Allan Streib
Same issue, also on a Dell machine with ATI Radeon HD 2400 XT.

Allan

OpenBSD 6.4 (GENERIC.MP) #0: Sat Nov 17 22:15:46 CET 2018

r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4141871104 (3949MB)
avail mem = 4007075840 (3821MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
bios0: vendor Dell Inc. version "A11" date 01/21/2011
bios0: Dell Inc. OptiPlex 960
acpi0 at bios0: rev 2
acpi0: TCPA checksum error
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET TCPA DMAR SLIC SSDT SSDT 
SSDT
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) USB4(S3) USB5(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) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.96 MHz, 06-17-0a
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges
cpu0: apic clock running at 332MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.51 MHz, 06-17-0a
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu1: 6MB 64b/line 16-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 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 4 (PCI4)
acpiprt1 at acpi0: bus 2 (PCI2)
acpiprt2 at acpi0: bus 3 (PCI3)
acpiprt3 at acpi0: bus 1 (PCI1)
acpiprt4 at acpi0: bus -1 (PCI5)
acpiprt5 at acpi0: bus -1 (PCI6)
acpiprt6 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C1(1000@1 mwait.1), PSS
acpibtn0 at acpi0: VBTN
acpicmos0 at acpi0
"*pnp0c14" at acpi0 not configured
cpu0: Enhanced SpeedStep 2992 MHz: speeds: 3000, 2667, 2333, 2000 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Q45 Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel Q45 PCIE" rev 0x03: 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
"Intel Q45 HECI" rev 0x03 at pci0 dev 3 function 0 not configured
pciide0 at pci0 dev 3 function 2 "Intel Q45 PT IDER" rev 0x03: DMA 
(unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 8 int 18 for native-PCI interrupt
pciide0: channel 0 ignored (not responding; disabled or no drives?)
pciide0: channel 1 ignored (not responding; disabled or no drives?)
puc0 at pci0 dev 3 function 3 "Intel Q45 KT" rev 0x03: ports: 16 com
com4 at puc0 port 0 apic 8 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 "Intel ICH10 D BM LM" rev 0x02: msi, address 
00:22:19:31:bf:96
uhci0 at pci0 dev 26 function 0 "Intel 82801JD USB" rev 0x02: apic 8 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801JD USB" rev 0x02: apic 8 int 17
uhci2 at pci0 dev 26 function 2 "Intel 82801JD USB" rev 0x02: apic 8 int 22
ehci0 at pci0 dev 26 function 7 "Intel 82801JD USB" rev 0x02: apic 8 int 22
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
azalia0 at pci0 dev 27 function 0 "Intel 82801JD HD Audio" rev 0x02: msi
azalia0: codecs: Analog Devices AD1984A
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801JD PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 82801JD PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
uhci3 at pci0 dev 29 function 0 "Intel 82801JD USB" rev 0x02: apic 8 int 23
uhci4 at pci0 dev 29 function 1 "Intel 82801JD USB" rev 0x02: apic 8 int 17
uhci5 at pci0 dev 29 function 2 "Intel 82801JD USB" rev 0x02: apic 8 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801JD USB" rev 0x02: apic 8 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa2
pci4 at ppb3 bus 4
pcib0 at pci0 dev 31 function 0 "Intel 82801JDO LPC" rev 0x02
ahci0 at pci0 dev 31 function 2 "Intel 82801JD AHCI" rev 0x02: msi, AHCI 1.2
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: PHY offline on port 2
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3 0/direct 
fixed naa.500a0751094531c8
sd0: 915715MB, 512 

Re: radeondrm failure on amd64 but not on i386?

2018-11-19 Thread Andy Bradford
Thus said Jonathan Gray on Mon, 19 Nov 2018 20:42:46 +1100:

> > Thanks for the suggestion. Here's the additional output provided by your
> > patch:
> > 
> > radeon_atrm_get_bios false
> > radeon_acpi_vfct_bios false
> > igp_read_bios_from_vram false
> > radeon_read_bios false
> > radeon_read_disabled_bios true
> > 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
> 
> Thanks, could you also show the i386 output with the patch?

The output on i386 looks pretty much the same except for the failure:

initializing kernel modesetting (RV610 0x1002:0x94C1 0x1028:0x0D02).
radeon_atrm_get_bios false
radeon_acpi_vfct_bios false
igp_read_bios_from_vram false
radeon_read_bios false
radeon_read_disabled_bios true
radeondrm0: 1680x1050, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0

Thanks,

Andy
-- 
TAI64 timestamp: 40005bf2d8c2




Re: radeondrm failure on amd64 but not on i386?

2018-11-19 Thread Jonathan Gray
On Sun, Nov 18, 2018 at 10:47:10PM -0700, Andy Bradford wrote:
> Thus said Jonathan Gray on Sat, 17 Nov 2018 14:08:53 +1100:
> 
> > There are many  ways of getting an  atom bios it would  be helpfull to
> > know which method is having trouble.
> 
> Thanks for the suggestion. Here's the additional output provided by your
> patch:
> 
> radeon_atrm_get_bios false
> radeon_acpi_vfct_bios false
> igp_read_bios_from_vram false
> radeon_read_bios false
> radeon_read_disabled_bios true
> 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

Thanks, could you also show the i386 output with the patch?
You can build an i386 kernel on amd64 if that helps.



Re: radeondrm failure on amd64 but not on i386?

2018-11-18 Thread Andy Bradford
Thus said Jonathan Gray on Sat, 17 Nov 2018 14:08:53 +1100:

> There are many  ways of getting an  atom bios it would  be helpfull to
> know which method is having trouble.

Thanks for the suggestion. Here's the additional output provided by your
patch:

radeon_atrm_get_bios false
radeon_acpi_vfct_bios false
igp_read_bios_from_vram false
radeon_read_bios false
radeon_read_disabled_bios true
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

Thanks,

Andy
-- 
TAI64 timestamp: 40005bf24e83




Re: radeondrm failure on amd64 but not on i386?

2018-11-16 Thread Jonathan Gray
On Thu, Nov 15, 2018 at 09:15:48PM -0700, Andy Bradford wrote:
> Hello,
> 
> I  recently installed  OpenBSD 6.4  amd64  and radeondrm  fails to  load
> properly. I then  installed OpenBSD 6.4 i386 on the  same hardware (to a
> USB pendrive) and it works fine. Any ideas?

There are many ways of getting an atom bios it would be helpfull to know
which method is having trouble.

Index: sys/dev/pci/drm/radeon/radeon_bios.c
===
RCS file: /cvs/src/sys/dev/pci/drm/radeon/radeon_bios.c,v
retrieving revision 1.14
diff -u -p -r1.14 radeon_bios.c
--- sys/dev/pci/drm/radeon/radeon_bios.c25 Aug 2018 18:42:43 -  
1.14
+++ sys/dev/pci/drm/radeon/radeon_bios.c17 Nov 2018 03:00:34 -
@@ -801,16 +801,27 @@ bool radeon_get_bios(struct radeon_devic
uint16_t tmp;
 
r = radeon_atrm_get_bios(rdev);
-   if (r == false)
+printf("radeon_atrm_get_bios %s\n", r == true ? "true" : "false");
+   if (r == false) {
r = radeon_acpi_vfct_bios(rdev);
-   if (r == false)
+printf("radeon_acpi_vfct_bios %s\n", r == true ? "true" : "false");
+   }
+   if (r == false) {
r = igp_read_bios_from_vram(rdev);
-   if (r == false)
+printf("igp_read_bios_from_vram %s\n", r == true ? "true" : "false");
+   }
+   if (r == false) {
r = radeon_read_bios(rdev);
-   if (r == false)
+printf("radeon_read_bios %s\n", r == true ? "true" : "false");
+   }
+   if (r == false) {
r = radeon_read_disabled_bios(rdev);
-   if (r == false)
+printf("radeon_read_disabled_bios %s\n", r == true ? "true" : "false");
+   }
+   if (r == false) {
r = radeon_read_platform_bios(rdev);
+printf("radeon_read_platform_bios %s\n", r == true ? "true" : "false");
+   }
if (r == false || rdev->bios == NULL) {
DRM_ERROR("Unable to locate a BIOS ROM\n");
rdev->bios = NULL;



radeondrm failure on amd64 but not on i386?

2018-11-16 Thread Andy Bradford
Hello,

I  recently installed  OpenBSD 6.4  amd64  and radeondrm  fails to  load
properly. I then  installed OpenBSD 6.4 i386 on the  same hardware (to a
USB pendrive) and it works fine. Any ideas?

dmesg for both follow:

OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3739795456 (3566MB)
avail mem = 3617247232 (3449MB)
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: rev 2
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, 2992.96 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.58 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 5 (PCI4)
acpiprt1 at acpi0: bus 2 (PCI2)
acpiprt2 at acpi0: bus -1 (PCI3)
acpiprt3 at acpi0: bus 1 (PCI1)
acpiprt4 at acpi0: bus 3 (PCI5)
acpiprt5 at acpi0: bus 4 (PCI6)
acpiprt6 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
acpibtn0 at acpi0: VBTN
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:  ATAPI 5/cdrom 
removable
atapiscsi1 at pciide0 channel 0 drive 1
scsibus2 at atapiscsi1: 2 targets
cd1 at scsibus2 targ 0 lun 0:  ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x01: msi, AHCI 1.1
ahci0: port 0: 3.0Gb/s
ahci0: PHY offline on port 1
ahci0: PHY offline on port 2
ahci0: PHY offline on port 3
scsibus3 at ahci0: 32 targets
sd0 at scsibus3 targ 0 lun 0:  SCSI3 0/direct fixed 
t10.ATA_ST3250824AS_5ND4HD0K
sd0: 238418MB, 512 bytes/sector, 488281250 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 8 int 17
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5
spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5
spdmem2 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity