i386 PAE support (64g physmem)

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

i386 PAE support (64g physmem)

Michael Shalayeff-2
re
here is the diff that does it.
make sure option I686_PAE is in your generic.
there is a little testing trick that limits
the <4g memory to only 512m thus forcing more
of the higher memory usage.
(grep for ^if in machdep.c)

mfs has been known to have troubles currently.
also no apm or pcibios could be used.

current design tries to force all dmable memory
allocations from the 32bit memory thus avoiding
bounce buffering. normal page allocations are
otherwise preferred to be in the higher memory.
seems to work just fine on averagely loaded machine.
last resort is bouncy-bouncy of course...

the diff is in:
http://doorslam.net/pae.gz

please test and/or read. feedback is welcome.
10x
cu

--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Janne Johansson-2
mickey wrote:
> re
> here is the diff that does it.
> make sure option I686_PAE is in your generic.
...
> the diff is in:
> http://doorslam.net/pae.gz
>
> please test and/or read. feedback is welcome.
> 10x
> cu
>

It breaks since the line
#define NKPTP_MAX      (1024 - (KERNBASE/NBPD) - 1)
is removed by your diff, but the try_i586 function in locore.s still
wants to cmp against it.

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Janne Johansson-2
In reply to this post by Michael Shalayeff-2
mickey wrote:
> re
> here is the diff that does it.
> make sure option I686_PAE is in your generic.
...
> the diff is in:
> http://doorslam.net/pae.gz
>
> please test and/or read. feedback is welcome.
> 10x
> cu
>

Bah, probably user error on my part. Ignore the previous post.

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
In reply to this post by Michael Shalayeff-2
On Thu, Jan 12, 2006 at 03:40:17PM +0100, mickey wrote:

> re
> here is the diff that does it.
> make sure option I686_PAE is in your generic.
> there is a little testing trick that limits
> the <4g memory to only 512m thus forcing more
> of the higher memory usage.
> (grep for ^if in machdep.c)
>
> mfs has been known to have troubles currently.
> also no apm or pcibios could be used.
>
> current design tries to force all dmable memory
> allocations from the 32bit memory thus avoiding
> bounce buffering. normal page allocations are
> otherwise preferred to be in the higher memory.
> seems to work just fine on averagely loaded machine.
> last resort is bouncy-bouncy of course...
>
> the diff is in:
> http://doorslam.net/pae.gz

updated diff folks.
fixed to reflect recent commits to -current.
smp is now supported too.

please all retest. reread. refeedback! (:

10x
cu
--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

dimitry (Bugzilla)
mickey wrote:
> updated diff folks.
> fixed to reflect recent commits to -current.
> smp is now supported too.

Tried with both GENERIC and GENERIC.MP.  It now detects 768 MB of my
1.5 GB of memory, instead of 512 as it previously did, so that's at
least some more. :)  Still no xfer DMA map for pciide, and thus only
PIO mode...

Dmesg before:

OpenBSD 3.8-current (GENERIC) #0: Fri Jan 13 18:08:47 CET 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1500 MHz (1116 mV) (not in table)
real mem  = 1600561152 (1563048K)
avail mem = 1452998656 (1418944K)
using 4278 buffers containing 80130048 bytes (78252K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(f6) BIOS, date 09/28/05, BIOS32 rev. 0 @ 0xfd750
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03: aperture at 0xa0080000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 1
bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
vendor "Ricoh", unknown product 0x0822 (class system unknown subclass 0x05, rev 0x13) at pci2 dev 0 function 1 not configured
iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask eff5 netmask eff5 ttymask fff7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ugen0 at uhub2 port 2
ugen0: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
auich0: measured ac97 link rate at 48006 Hz, will use 48000 Hz

Dmesg with PAE patch:

OpenBSD 3.8-current (GENERIC) #0: Sat Jan 14 00:57:06 CET 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1500 MHz (1116 mV) (not in table)
real mem  = 804888576 (786024K)
avail mem = 726269952 (709248K)
using 4256 buffers containing 40345600 bytes (39400K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(34) BIOS, date 09/28/05
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 30102 dobusy 0 doidle 1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03: aperture at 0xa0080000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 4
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
vendor "Ricoh", unknown product 0x0822 (class system unknown subclass 0x05, rev 0x13) at pci2 dev 0 function 1 not configured
iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 5 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
pciide0:0: unable to create xfer DMA map for drive 0, error=12
wd0(pciide0:0:0): using PIO mode 4
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask eff5 netmask eff5 ttymask fff7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ugen0 at uhub2 port 2
ugen0: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Dmesg with PAE patch and MP:

OpenBSD 3.8-current (GENERIC.MP) #0: Sat Jan 14 01:08:00 CET 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 804888576 (786024K)
avail mem = 726220800 (709200K)
using 4256 buffers containing 40345600 bytes (39400K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(19) BIOS, date 09/28/05
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 30102 dobusy 0 doidle 1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1500 MHz (1116 mV) (not in table)
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03: aperture at 0xa0080000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 4
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
vendor "Ricoh", unknown product 0x0822 (class system unknown subclass 0x05, rev 0x13) at pci2 dev 0 function 1 not configured
iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 5 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
pciide0:0: unable to create xfer DMA map for drive 0, error=12
wd0(pciide0:0:0): using PIO mode 4
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask eff5 netmask eff5 ttymask fff7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ugen0 at uhub2 port 2
ugen0: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Cheers,
Dimitry

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
In reply to this post by Michael Shalayeff-2
On Fri, Jan 13, 2006 at 06:53:12PM +0100, mickey wrote:

> On Thu, Jan 12, 2006 at 03:40:17PM +0100, mickey wrote:
> > re
> > here is the diff that does it.
> > make sure option I686_PAE is in your generic.
> >
> > current design tries to force all dmable memory
> > allocations from the 32bit memory thus avoiding
> > bounce buffering. normal page allocations are
> > otherwise preferred to be in the higher memory.
> > seems to work just fine on averagely loaded machine.
> > last resort is bouncy-bouncy of course...
> >
> > the diff is in:
> > http://doorslam.net/pae.gz

now is a good time to  get down on this.
the diff has been updated to -current.
main concern is to test plain kernels w/o any
large memory support.
there are currently problems w/ >8g memory due
to some uvm constraints that can be addressed later.

10x
cu
--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

dimitry (Bugzilla)
mickey wrote:
>>> http://doorslam.net/pae.gz
> now is a good time to  get down on this.
> the diff has been updated to -current.
> main concern is to test plain kernels w/o any
> large memory support.

I still get "pciide0:0: unable to create xfer DMA map for drive 0,
error=12" with this patch.  Also, pcibios0 detects 240 entries for the
IRQ routing table, instead of 13. :)

This is on a ThinkPad X41.

OpenBSD 3.9-current (GENERIC) #0: Wed Mar 29 22:51:12 CEST 2006
    [hidden email]:/usr/src/sys.pae/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1500 MHz (1116 mV): speeds: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 600 MHz
real mem  = 1600548864 (1563036K)
avail mem = 1451433984 (1417416K)
using 4256 buffers containing 80130048 bytes (78252K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(4b) BIOS, date 01/23/06, BIOS32 rev. 0 @ 0xfd750
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/0 (240 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03: aperture at 0xa0080000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 1
bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
"Ricoh 5C822 SD/MMC" rev 0x13 at pci2 dev 0 function 1 not configured
iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
pciide0:0: unable to create xfer DMA map for drive 0, error=12
wd0(pciide0:0:0): using PIO mode 4
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask eff5 netmask eff5 ttymask fff7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ugen0 at uhub2 port 1
ugen0: Broadcom IBM Bluetooth Module, rev 1.10/0.09, addr 2
ugen1 at uhub2 port 2
ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Here's a normal dmesg:

OpenBSD 3.9-current (GENERIC) #0: Sat Mar 25 20:07:58 CET 2006
    [hidden email]:/usr/src/sys.agp2/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1500 MHz (1116 mV): speeds: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 600 MHz
real mem  = 1600548864 (1563036K)
avail mem = 1452974080 (1418920K)
using 4278 buffers containing 80130048 bytes (78252K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(51) BIOS, date 01/23/06, BIOS32 rev. 0 @ 0xfd750
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03
agp0 at vga1: aperture at 0xa0080000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 1
bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
"Ricoh 5C822 SD/MMC" rev 0x13 at pci2 dev 0 function 1 not configured
iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask eff5 netmask eff5 ttymask fff7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ugen0 at uhub2 port 1
ugen0: Broadcom IBM Bluetooth Module, rev 1.10/0.09, addr 2
ugen1 at uhub2 port 2
ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
On Wed, Mar 29, 2006 at 11:01:41PM +0200, Dimitry Andric wrote:

> mickey wrote:
> >>> http://doorslam.net/pae.gz
> > now is a good time to  get down on this.
> > the diff has been updated to -current.
> > main concern is to test plain kernels w/o any
> > large memory support.
>
> I still get "pciide0:0: unable to create xfer DMA map for drive 0,
> error=12" with this patch.  Also, pcibios0 detects 240 entries for the
> IRQ routing table, instead of 13. :)

aha. forgot that bit.
diff updated. should be better now.
as for pcibios and apm there still might be issues
when pae is engaged (working on that).

> This is on a ThinkPad X41.
>
> OpenBSD 3.9-current (GENERIC) #0: Wed Mar 29 22:51:12 CEST 2006
>     [hidden email]:/usr/src/sys.pae/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
> cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
> cpu0: Enhanced SpeedStep 1500 MHz (1116 mV): speeds: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 600 MHz
> real mem  = 1600548864 (1563036K)
> avail mem = 1451433984 (1417416K)
> using 4256 buffers containing 80130048 bytes (78252K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(4b) BIOS, date 01/23/06, BIOS32 rev. 0 @ 0xfd750
> apm0 at bios0: Power Management spec V1.2
> apm0: battery life expectancy 100%
> apm0: AC on, battery charge high
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/0 (240 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #3 is the last bus
> bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
> vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03: aperture at 0xa0080000, size 0x10000000
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> "Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
> ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
> pci1 at ppb0 bus 1
> bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
> brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
> uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
> usb2 at uhci2: USB revision 1.0
> uhub2 at usb2
> uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
> usb3 at uhci3: USB revision 1.0
> uhub3 at usb3
> uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub3: 2 ports with 2 removable, self powered
> ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
> usb4 at ehci0: USB revision 2.0
> uhub4 at usb4
> uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
> uhub4: 8 ports with 8 removable, self powered
> ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
> pci2 at ppb1 bus 2
> cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
> "Ricoh 5C822 SD/MMC" rev 0x13 at pci2 dev 0 function 1 not configured
> iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
> pcmcia0 at cardslot0
> auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
> ac97: codec id 0x41445374 (Analog Devices AD1981B)
> ac97: codec features headphone, 20 bit DAC, No 3D Stereo
> audio0 at auich0
> "Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
> pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
> wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
> pciide0:0: unable to create xfer DMA map for drive 0, error=12
> wd0(pciide0:0:0): using PIO mode 4
> pciide0: channel 1 disabled (no drives)
> ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
> iic0 at ichiic0
> isa0 at ichpcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> aps0 at isa0 port 0x1600/31
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> biomask eff5 netmask eff5 ttymask fff7
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> ugen0 at uhub2 port 1
> ugen0: Broadcom IBM Bluetooth Module, rev 1.10/0.09, addr 2
> ugen1 at uhub2 port 2
> ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
> dkcsum: wd0 matches BIOS drive 0x80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
>
> Here's a normal dmesg:
>
> OpenBSD 3.9-current (GENERIC) #0: Sat Mar 25 20:07:58 CET 2006
>     [hidden email]:/usr/src/sys.agp2/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
> cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
> cpu0: Enhanced SpeedStep 1500 MHz (1116 mV): speeds: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 600 MHz
> real mem  = 1600548864 (1563036K)
> avail mem = 1452974080 (1418920K)
> using 4278 buffers containing 80130048 bytes (78252K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(51) BIOS, date 01/23/06, BIOS32 rev. 0 @ 0xfd750
> apm0 at bios0: Power Management spec V1.2
> apm0: battery life expectancy 100%
> apm0: AC on, battery charge high
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/240 (13 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #3 is the last bus
> bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
> vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03
> agp0 at vga1: aperture at 0xa0080000, size 0x10000000
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> "Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
> ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
> pci1 at ppb0 bus 1
> bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
> brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
> uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
> usb2 at uhci2: USB revision 1.0
> uhub2 at usb2
> uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
> usb3 at uhci3: USB revision 1.0
> uhub3 at usb3
> uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub3: 2 ports with 2 removable, self powered
> ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
> usb4 at ehci0: USB revision 2.0
> uhub4 at usb4
> uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
> uhub4: 8 ports with 8 removable, self powered
> ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
> pci2 at ppb1 bus 2
> cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
> "Ricoh 5C822 SD/MMC" rev 0x13 at pci2 dev 0 function 1 not configured
> iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
> pcmcia0 at cardslot0
> auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
> ac97: codec id 0x41445374 (Analog Devices AD1981B)
> ac97: codec features headphone, 20 bit DAC, No 3D Stereo
> audio0 at auich0
> "Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
> pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
> wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> pciide0: channel 1 disabled (no drives)
> ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
> iic0 at ichiic0
> isa0 at ichpcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> aps0 at isa0 port 0x1600/31
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> biomask eff5 netmask eff5 ttymask fff7
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> ugen0 at uhub2 port 1
> ugen0: Broadcom IBM Bluetooth Module, rev 1.10/0.09, addr 2
> ugen1 at uhub2 port 2
> ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
> dkcsum: wd0 matches BIOS drive 0x80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302

--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

dimitry (Bugzilla)
mickey wrote:
> aha. forgot that bit.
> diff updated. should be better now.

Right, it is, thanks! :)  Btw, normally it says "using 4278 buffers
containing 80130048 bytes (78252K) of memory", while with PAE it says
"using 4256 buffers containing 80130048 bytes (78252K) of memory".  So
buffers need a bit more overhead in the latter case?


OpenBSD 3.9-current (GENERIC) #0: Thu Mar 30 17:07:41 CEST 2006
    [hidden email]:/usr/src/sys.pae/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1500 MHz (1116 mV): speeds: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 600 MHz
real mem  = 1600548864 (1563036K)
avail mem = 1451425792 (1417408K)
using 4256 buffers containing 80130048 bytes (78252K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(54) BIOS, date 01/23/06, BIOS32 rev. 0 @ 0xfd750
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/0 (240 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03: aperture at 0xa0080000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 1
bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
"Ricoh 5C822 SD/MMC" rev 0x13 at pci2 dev 0 function 1 not configured
iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask eff5 netmask eff5 ttymask fff7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ugen0 at uhub2 port 1
ugen0: Broadcom IBM Bluetooth Module, rev 1.10/0.09, addr 2
ugen1 at uhub2 port 2
ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
On Thu, Mar 30, 2006 at 05:21:30PM +0200, Dimitry Andric wrote:
> mickey wrote:
> > aha. forgot that bit.
> > diff updated. should be better now.
>
> Right, it is, thanks! :)  Btw, normally it says "using 4278 buffers
> containing 80130048 bytes (78252K) of memory", while with PAE it says
> "using 4256 buffers containing 80130048 bytes (78252K) of memory".  So
> buffers need a bit more overhead in the latter case?

it is not "with PAE" as pae only get engaged should you have
any memory above 4g boundary. thus it is simply because your
kernel is now bigger and other stuff using some more physmem.

> OpenBSD 3.9-current (GENERIC) #0: Thu Mar 30 17:07:41 CEST 2006
>     [hidden email]:/usr/src/sys.pae/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
> cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
> cpu0: Enhanced SpeedStep 1500 MHz (1116 mV): speeds: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 600 MHz
> real mem  = 1600548864 (1563036K)
> avail mem = 1451425792 (1417408K)
> using 4256 buffers containing 80130048 bytes (78252K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(54) BIOS, date 01/23/06, BIOS32 rev. 0 @ 0xfd750
> apm0 at bios0: Power Management spec V1.2
> apm0: battery life expectancy 100%
> apm0: AC on, battery charge high
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/0 (240 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #3 is the last bus
> bios0: ROM list: 0xc0000/0xe800! 0xdc000/0x4000! 0xe0000/0x10000
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
> vga1 at pci0 dev 2 function 0 "Intel 82915GM/GMS Video" rev 0x03: aperture at 0xa0080000, size 0x10000000
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> "Intel 82915GM/GMS Video" rev 0x03 at pci0 dev 2 function 1 not configured
> ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
> pci1 at ppb0 bus 1
> bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:0a:e4:37:25:5d
> brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
> uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
> usb2 at uhci2: USB revision 1.0
> uhub2 at usb2
> uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
> usb3 at uhci3: USB revision 1.0
> uhub3 at usb3
> uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub3: 2 ports with 2 removable, self powered
> ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
> usb4 at ehci0: USB revision 2.0
> uhub4 at usb4
> uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
> uhub4: 8 ports with 8 removable, self powered
> ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
> pci2 at ppb1 bus 2
> cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
> "Ricoh 5C822 SD/MMC" rev 0x13 at pci2 dev 0 function 1 not configured
> iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 11, address 00:13:ce:37:62:37
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
> pcmcia0 at cardslot0
> auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
> ac97: codec id 0x41445374 (Analog Devices AD1981B)
> ac97: codec features headphone, 20 bit DAC, No 3D Stereo
> audio0 at auich0
> "Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
> pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
> wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> pciide0: channel 1 disabled (no drives)
> ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
> iic0 at ichiic0
> isa0 at ichpcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> aps0 at isa0 port 0x1600/31
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> biomask eff5 netmask eff5 ttymask fff7
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> ugen0 at uhub2 port 1
> ugen0: Broadcom IBM Bluetooth Module, rev 1.10/0.09, addr 2
> ugen1 at uhub2 port 2
> ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
> dkcsum: wd0 matches BIOS drive 0x80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302

--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Felix Kronlage-2
In reply to this post by dimitry (Bugzilla)
On Thu, Mar 30, 2006 at 05:21:30PM +0200, Dimitry Andric wrote:

> > aha. forgot that bit.
> > diff updated. should be better now.
> Right, it is, thanks! :)  

indeed thats what I thought at first as well. However, I just noticed
that I can reproducable freeze my X41 (running with the changes from
the pae diff) by ifconfig'ing iwi0.
ifconfig iwi0 nwid foobar up

freezes the machine.

felix
--
Felix Kronlage                Tel:     (+49)(0)441 - 36116410
[hidden email]         Fax:     (+49)(0)441 - 36116419
http://www.bytemine.net/      PGP/GPG:             0xD9AC74D0
bytemine  -  Entwicklungsmanufaktur fuer innovative Loesungen

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

dimitry (Bugzilla)
Felix Kronlage wrote:
> ifconfig iwi0 nwid foobar up

I'm getting a panic here, but even *without* the PAE patch. :(  This
must have been broken with damien's recent commits to if_iwi, I guess.
No serial console so typing by hand :P

uvm_fault(0xd931b974, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      _bus_dmamem_alloc_range+0xf9:   movl    0x34(%edi),%eax
ddb> trace
_bus_dmamem_alloc_range(d06bca80,0,1000,0,d7a929b8) at _bus_dmamem_alloc_range+0xf9
_bus_dmamem_alloc(d06bca80,0,1000,0,d7a929b8,1,d7a929b0,1) at _bus_dmamem_alloc+0x39
iwi_load_firmware(d2223000,d2348010,0,d2223030) at iwi_load_firmware+0x56
...

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Pedro Martelletto
On Fri, Mar 31, 2006 at 02:31:28AM +0200, Dimitry Andric wrote:
> I'm getting a panic here, but even *without* the PAE patch. :(  This
> must have been broken with damien's recent commits to if_iwi, I guess.
> No serial console so typing by hand :P
>
> uvm_fault(0xd931b974, 0x0, 0, 1) -> e
> kernel: page fault trap, code=0
> Stopped at      _bus_dmamem_alloc_range+0xf9:   movl    0x34(%edi),%eax

I can confirm that. I've just backed out those changes, until the author
has a chance to review them (and hopefully follow the process this
time).

-p.

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

dimitry (Bugzilla)
Pedro Martelletto wrote:
>> uvm_fault(0xd931b974, 0x0, 0, 1) -> e
>> kernel: page fault trap, code=0
>> Stopped at      _bus_dmamem_alloc_range+0xf9:   movl    0x34(%edi),%eax
> I can confirm that. I've just backed out those changes, until the author
> has a chance to review them (and hopefully follow the process this
> time).

To return to mickey's original subject: after fixing this iwi panic with
a patch and the proper 3.0 firmware, it turns out that the PAE patch in
itself does NOT cause any further problems at all.

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
In reply to this post by Felix Kronlage-2
On Fri, Mar 31, 2006 at 12:52:30AM +0200, Felix Kronlage wrote:

> On Thu, Mar 30, 2006 at 05:21:30PM +0200, Dimitry Andric wrote:
>
> > > aha. forgot that bit.
> > > diff updated. should be better now.
> > Right, it is, thanks! :)  
>
> indeed thats what I thought at first as well. However, I just noticed
> that I can reproducable freeze my X41 (running with the changes from
> the pae diff) by ifconfig'ing iwi0.
> ifconfig iwi0 nwid foobar up
>
> freezes the machine.

can you verify it does not happen w/ a stock generic from snapshot plz?
cu
--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
In reply to this post by Michael Shalayeff-2
On Wed, Mar 29, 2006 at 08:28:40PM +0200, mickey wrote:

> On Fri, Jan 13, 2006 at 06:53:12PM +0100, mickey wrote:
> > On Thu, Jan 12, 2006 at 03:40:17PM +0100, mickey wrote:
> > > re
> > > here is the diff that does it.
> > > make sure option I686_PAE is in your generic.
> > >
> > > current design tries to force all dmable memory
> > > allocations from the 32bit memory thus avoiding
> > > bounce buffering. normal page allocations are
> > > otherwise preferred to be in the higher memory.
> > > seems to work just fine on averagely loaded machine.
> > > last resort is bouncy-bouncy of course...
> > >
> > > the diff is in:
> > > http://doorslam.net/pae.gz
>
> now is a good time to  get down on this.
> the diff has been updated to -current.
> main concern is to test plain kernels w/o any
> large memory support.
> there are currently problems w/ >8g memory due
> to some uvm constraints that can be addressed later.

new diff same place.
now code is always compiled into GENERICs but not RAMDISKs.
to enable use the option or patch cpu_pae variable to 1.
code growth reduced due to more restricted type size promotion.

comments?
testing?
10x
cu

--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Nikolay Sturm-2
* mickey [2006-04-20]:
> new diff same place.
> now code is always compiled into GENERICs but not RAMDISKs.
> to enable use the option or patch cpu_pae variable to 1.
> code growth reduced due to more restricted type size promotion.
>
> comments?
> testing?

This diff reproducably triggers a "timeout_add: not initialized" panic
on one of my machines.

boot> boot bsd.pae
booting hd0a:bsd.pae: 5041736+873128 [52+260208+241413]=0x61ea10
entry point at 0x200120

[ using 502048 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2006 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 3.9-current (GENERIC.MP) #0: Sat Apr 22 11:46:44 CEST 2006
    [hidden email]:/a/devel/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 797 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 536375296 (523804K)
avail mem = 481816576 (470524K)
using 4256 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ef) BIOS, date 10/28/00, BIOS32 rev. 0 @ 0xfd7e3
pcibios0 at bios0: rev 2.1 @ 0xfd680/0x980
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf00/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:18:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xc9800/0x1800
mainbus0: Intel MP Specification (Version 1.4) (INTEL    Lancewood   )
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 99 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 797 MHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI  
mainbus0: bus 1 is type PCI  
mainbus0: bus 2 is type PCI  
mainbus0: bus 3 is type ISA  
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82440BX AGP" rev 0x00
ppb0 at pci0 dev 1 function 0 "Intel 82440BX AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 15 function 0 "DEC 21150-BC PCI-PCI" rev 0x06
pci2 at ppb1 bus 2
pciide0 at pci2 dev 4 function 0 "Promise PDC20262" rev 0x01: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 2 int 20 (irq 11) for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <WDC WD1200JB-00EVA0>
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD1200JB-00GVA0>
wd1: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
pciide0:0: unable to create xfer DMA map for drive 0, error=12
pciide0:0: unable to create xfer DMA map for drive 1, error=12
wd0(pciide0:0:0): using PIO mode 4
wd1(pciide0:0:1): using PIO mode 4
pciide0: channel 1 disabled (no drives)
ahc0 at pci0 dev 12 function 0 "Adaptec AIC-7896/7 U2" rev 0x00: apic 2 int 19 (irq 11)
scsibus0 at ahc0: 16 targets
ahc1 at pci0 dev 12 function 1 "Adaptec AIC-7896/7 U2" rev 0x00: apic 2 int 19 (irq 11)
scsibus1 at ahc1: 16 targets
fxp0 at pci0 dev 14 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 21 (irq 11), address 00:d0:b7:a9:c4:88
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
pcib0 at pci0 dev 18 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide1 at pci0 dev 18 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd2 at pciide1 channel 0 drive 0: <WDC WD800JB-00JJC0>
wd2: 16-sector PIO, LBA, 76319MB, 156301488 sectors
pciide1:0: unable to create xfer DMA map for drive 0, error=12
wd2(pciide1:0:0): using PIO mode 4
atapiscsi0 at pciide1 channel 1 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <PLEXTOR, CD-R PX-W5224A, 1.03> SCSI0 5/cdrom removable
pciide1:1: unable to create xfer DMA map for drive 0, error=12
cd0(pciide1:1:0): using PIO mode 4
uhci0 at pci0 dev 18 function 2 "Intel 82371AB USB" rev 0x01: apic 2 int 21 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 18 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
vga1 at pci0 dev 20 function 0 "Cirrus Logic CL-GD5480" rev 0x23
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
isapnp0 at isa0 port 0x279: read port 0x203
sb1 at isapnp0 "Creative ViBRA16S PnP, CTL0001, , Audio" port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5sb1: can't create map for drq 1
midi1 at sb1: <SB MPU-401 UART>
audio0 at sb1
opl0 at sb1: model OPL3
midi2 at opl0: <SB Yamaha OPL3>
wdc2 at isapnp0 "Creative ViBRA16S PnP, CTL2011, PNP0600, IDE" port 0x168/8,0x36e/2 irq 10
joy0 at isapnp0 "Creative ViBRA16S PnP, CTL7001, PNPB02F, Game" port 0x200/8
biomask 0 netmask 0 ttymask 0
ioapic0: pin 21 shares different IPL interrupts (40..50), degraded performance
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
dkcsum: wd2 matches BIOS drive 0x82
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
/dev/rwd2a: file system is clean; not checking
/dev/rwd0d: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
setting tty flags
pf enabled
machdep.userldt: 0 -> 1
kern.emul.linux: 0 -> 1
starting network
DHCPREQUEST on fxp0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.254
bound to 192.168.0.7 -- renewal in 21600 seconds.
starting system logger
starting initial daemons: portmap mountd nfsd ntpd.
savecore: no core dump
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files
starting network daemons: lpd sendmail httpd inetd sshd spamd spamlogd.
starting local daemons: conserver[Sat Apr 22 12:31:09 2006] conserver (24934): conserver.com version 8.1.11
[Sat Apr 22 12:31:09 2006] conserver (24934): started as `root' by `root'
[Sat Apr 22 12:31:09 2006] conserver (24934): daemonizing
 symux symon stunnel esd nagiospanic: timeout_add: not initialized
Stopped at      Debugger+0x4:   leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb{1}> trace
Debugger(d12160ac,27,c4,d12e7c50,c) at Debugger+0x4
panic(d0628882,1,1,ed1f1a23,d1214144) at panic+0x63
timeout_add(d12e7c50,c,c4,134,43) at timeout_add+0xaa
sbdsp_pause(d12e7c00,5,ed1f1a90,d02f69ed,d12e7a00) at sbdsp_pause+0x1f
sbdsp_speaker_ctl(d12e7c00,1,ed1f1b80,d12e7a00) at sbdsp_speaker_ctl+0x57
audio_init_play(d12e7a00,1,d6ba3b4c,0,0) at audio_init_play+0x4a
audiosetinfo(d12e7a00,ed1f1ba8,88,6,0) at audiosetinfo+0x8e9
audio_open(2a80,d12e7a00,6,2000,d6ba3b4c) at audio_open+0x1d9
audioopen(2a80,6,2000,d6ba3b4c,d6bd6d68,0,d6ba3b4c) at audioopen+0xbd
spec_open(ed1f1d08,d6ccfc00,d6ce26e0,0,6) at spec_open+0x102
spec_vnoperate(ed1f1d08,1,6,0,d06b9440) at spec_vnoperate+0x16
VOP_OPEN(d6bd6d68,6,d6ce26e0,d6ba3b4c) at VOP_OPEN+0x34
vn_open(ed1f1e18,6,0,d6ba3b4c) at vn_open+0x191
sys_open(d6ba3b4c,ed1f1f68,ed1f1f58,0,318) at sys_open+0xdb
syscall() at syscall+0x336
--- syscall (number 5) ---
0xa1f7921:
ddb{1}> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT       COMMAND
  7547  21436  21436      0  3   0x2004006  biowait    nagios
*13107  21436  21436    498  7   0x2004006             esd
 16095      1  16095    528  3   0x2000184  poll       stunnel
 15494      1  15494    535  3   0x2000184  nanosleep  symon
  3177      1   3177    535  3   0x2000084  select     symux
 12838  29613  29613      0  3   0x2000084  select     conserver
 29613      1  29613      0  3   0x2000084  select     conserver
 26631  27728  10742      0  3   0x2000084  netio      tcpdump
 27728  10742  10742     76  3   0x2004184  bpf        tcpdump
 10742      1  10742      0  3   0x2000084  piperd     spamlogd
 32294  24851  24851     62  3   0x2000184  piperd     spamd
 31218  24851  24851     62  3   0x2000184  select     spamd
 24851      1  24851     62  3   0x2000184  nanosleep  spamd
 32450      1  32450      0  3   0x2000084  select     sshd
  2432  11335  11335     67  3   0x2000184  netcon     httpd
 21040      1  21040      0  3   0x2000184  select     inetd
 11335      1  11335      0  3   0x2000084  select     httpd
 19656      1  19656      0  3   0x2040184  select     sendmail
 22411      1  22411      0  3   0x2040184  select     lpd
 30338   4955   4955     83  3   0x2000184  poll       ntpd
  4955      1   4955      0  3   0x2000084  poll       ntpd
 14954   9858   9858      0  3   0x2000084  nfsd       nfsd
 28925   9858   9858      0  3   0x2000084  nfsd       nfsd
  9289   9858   9858      0  3   0x2000084  nfsd       nfsd
 25442   9858   9858      0  3   0x2000084  nfsd       nfsd
  9858      1   9858      0  3   0x2000084  netcon     nfsd
 19907      1  19907      0  3   0x2000084  select     mountd
 17042   2606   2606     74  3   0x2000184  bpf        pflogd
  5966      1   5966     28  3   0x2000184  poll       portmap
  2606      1   2606      0  3   0x2000084  netio      pflogd
  9679  29235  29235     73  3   0x2000184  poll       syslogd
 29235      1  29235      0  3   0x2000084  netio      syslogd
 11080      1  11080     77  3   0x2000184  poll       dhclient
  2659      1  21436      0  3   0x2000086  poll       dhclient
 21436      1  21436      0  3   0x2004086  pause      sh
    11      0      0      0  3   0x2100204  crypto_wa  crypto
    10      0      0      0  3   0x2100204  aiodoned   aiodoned
     9      0      0      0  3   0x2100204  syncer     update
     8      0      0      0  3   0x2100204  cleaner    cleaner
     7      0      0      0  3    0x100204  reaper     reaper
     6      0      0      0  3   0x2100204  pgdaemon   pagedaemon
     5      0      0      0  3   0x2100204  pftm       pfpurge
     4      0      0      0  3   0x2100204  usbtsk     usbtask
     3      0      0      0  3   0x2100204  usbevt     usb0
     2      0      0      0  3   0x2100204  kmalloc    kmthread
     1      0      1      0  3   0x2004084  wait       init
     0     -1      0      0  3   0x2080204  scheduler  swapper
ddb{1}> boot reboot
panic: wdc_exec_command: polled command not done
Stopped at      Debugger+0x4:   leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb{1}> boot halt

The operating system has halted.
Please press any key to reboot.

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
In reply to this post by Michael Shalayeff-2
preved!
now the diff is commited into -current.
10x to everybody who provided testing and feedback.
if you would happen to have a lot of memory
in your machine (such as more then 4G ;) you
can give it a try by setting cpu_pae global var
to ~0 or compiling your kernel w/ option I686_PAE
to the same effect.
if you are building your system from sources
then normal new kernel build followed by
reboot and make build wshould suffice notice that
older libkvm will not work properly until new one
is installed (as part of make build).
should you encounter some unusual peculiarities
when running in pae mode please report to me.
enjoy!
medved!
--
    paranoic mickey       (my employers have changed but, the name has remained)

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Dries Schellekens
mickey wrote:

> preved!
> now the diff is commited into -current.
> 10x to everybody who provided testing and feedback.

Can this now be used to add support for the NX (AMD) and XD (Intel) bit?

Then people with less memory can take advantage of PAE.


Cheers,

Dries

Reply | Threaded
Open this post in threaded view
|

Re: i386 PAE support (64g physmem)

Michael Shalayeff-2
On Fri, Apr 28, 2006 at 09:32:28AM +0200, Dries Schellekens wrote:
> mickey wrote:
>
> >preved!
> >now the diff is commited into -current.
> >10x to everybody who provided testing and feedback.
>
> Can this now be used to add support for the NX (AMD) and XD (Intel) bit?
>
> Then people with less memory can take advantage of PAE.

pae is a serious overhead not to be taken lightly w/ less memory.

cu
--
    paranoic mickey       (my employers have changed but, the name has remained)