On Sat, Aug 12, 2006 at 01:20:29AM -0600, Eric W. Biederman wrote:
> Don Zickus <[EMAIL PROTECTED]> writes:
>
> >> >>
> >> >> I'm a little disappointed but at this point it isn't a great surprise,
> >> >> the code is early yet and hasn't had much testing or attention.
> >> >> I wonder if I have missed something else silly.
> >> >>
> >> >> As for testing, can you use plain kexec to load the kernel at a
> >> >> different address? I'm curious to know if it is something related
> >> >> to the kexec on panic path or if it is just running at a different
> >> >> location that is the problem.
> >> >
> >
> > I think I have found the 'something silly'. Here is a patch that allows
> > our Dell em64t boxes to boot. This change matches the original code. The
> > main difference that caused the problems was the setting of _PAGE_NX bit.
> > This caused issues in early_io_remap().
> >
> > Thanks to Larry Woodman for debugging this.
>
> This looks like a different one but looks fairly sane.
>
> Do you know what code had problems having _PAGE_NX set.
> What are we doing with early_ioremap the requires execute
> permissions. It doesn't sound right that we would need
> this.
Hi Eric
I was trying to boot(through grub) to a relocatable kernel on an EM64T
machine but I end up in an OOPS: 'Unable to handle kernel paging request'.
I am using 2.6.18-rc4 kernel, applied your 33 patches for relocatable kernel
support along with Don Zickus' patch which dealt with the setting of the
_PAGE_NX bit.
Is there something obvious which I am missing here?
Attaching along the complete boot log. I dont see the entire OOPs trace also
in the log though...I shall continue looking into this to get more clues.
The patches worked fine when tested on an i386 machine.
Thanks
Rachita
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /bzImage-reloc root=/dev/sda2 resume=/dev/sda3 showopts console=tty0 con
sole=ttyS1,38400
[Linux-bzImage, setup=0x1c00, size=0x2495bc]
Bootdata ok (command line is root=/dev/sda2 resume=/dev/sda3 showopts
console=tty0 console=ttyS1,38400)
Linux version 2.6.18-rc4 ([EMAIL PROTECTED]) (gcc version 4.1.0 20060223
(prerelease) (SUSE Linux)) #1 SMP Wed Aug 16 22:16:16 IST 2006
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009dc00 (usable)
BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 00000000c7fcae80 (usable)
BIOS-e820: 00000000c7fcae80 - 00000000c7fcf800 (ACPI data)
BIOS-e820: 00000000c7fcf800 - 00000000c8000000 (reserved)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
BIOS-e820: 0000000100000000 - 0000000238000000 (usable)
DMI 2.3 present.
>>> ERROR: Invalid checksum
No NUMA configuration found
Faking a node at 0000000000000000-0000000238000000
Bootmem setup node 0 0000000000000000-0000000238000000
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: IBM ENSW Product ID: REDWOOD SMP APIC at: 0xFEE00000
Processor #0 15:4 APIC version 20
Processor #6 15:4 APIC version 20
I/O APIC #14 Version 32 at 0xFEC00000.
I/O APIC #13 Version 32 at 0xFEC80000.
I/O APIC #12 Version 32 at 0xFEC80400.
Setting APIC routing to physical flat
Processors: 2
Allocating PCI resources starting at cc000000 (gap: c8000000:36c00000)
SMP: Allowing 2 CPUs, 0 hotplug CPUs
Built 1 zonelists. Total pages: 2063728
Kernel command line: root=/dev/sda2 resume=/dev/sda3 showopts console=tty0
console=ttyS1,38400
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
time.c: Using 1.193182 MHz WALL PIT GTOD PIT/TSC timer.
time.c: Detected 3600.252 MHz processor.
Console: colour VGA+ 80x25
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
Checking aperture...
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing software IO TLB between 0x1c4c000 - 0x5c4c000
Memory: 8176356k/9306112k available (3179k kernel code, 211640k reserved, 1619k
data, 208k init)
Calibrating delay using timer specific routine.. 7210.99 BogoMIPS (lpj=14421980)
Mount-cache hash table entries: 256
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
using mwait in idle threads.
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM2)
SMP alternatives: switching to UP code
Using IO-APIC 14
Using IO-APIC 13
Using IO-APIC 12
GSI 16 sharing vector 0x91 and IRQ 16
GSI 17 sharing vector 0x99 and IRQ 17
GSI 19 sharing vector 0xA1 and IRQ 19
GSI 20 sharing vector 0xA9 and IRQ 20
GSI 23 sharing vector 0xB1 and IRQ 23
GSI 30 sharing vector 0xB9 and IRQ 30
GSI 31 sharing vector 0xC1 and IRQ 31
GSI 38 sharing vector 0xC9 and IRQ 38
Using local APIC timer interrupts.
result 12500790
Detected 12.500 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/2 APIC 0x6
Initializing CPU#1
Calibrating delay using timer specific routine.. 7200.82 BogoMIPS (lpj=14401645)
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
CPU: Physical Processor ID: 3
CPU: Processor Core ID: 0
CPU1: Thermal monitoring enabled (TM2)
Intel(R) Xeon(TM) CPU 3.60GHz stepping 01
Brought up 2 CPUs
testing NMI watchdog ... OK.
migration_cost=674
NET: Registered protocol family 16
PCI: Using configuration type 1
ACPI: Interpreter disabled.
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI quirk: region 0580-05ff claimed by ICH4 ACPI/GPIO/TCO
PCI quirk: region 0400-043f claimed by ICH4 GPIO
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
PCI: Transparent bridge - 0000:00:1e.0
PCI->APIC IRQ transform: 0000:00:1d.0[A] -> IRQ 145
PCI->APIC IRQ transform: 0000:00:1d.1[B] -> IRQ 161
PCI->APIC IRQ transform: 0000:00:1d.7[D] -> IRQ 177
PCI->APIC IRQ transform: 0000:00:1f.1[A] -> IRQ 153
PCI->APIC IRQ transform: 0000:00:1f.3[B] -> IRQ 153
PCI->APIC IRQ transform: 0000:03:07.0[A] -> IRQ 185
PCI->APIC IRQ transform: 0000:03:07.1[B] -> IRQ 193
PCI->APIC IRQ transform: 0000:06:00.0[A] -> IRQ 145
PCI->APIC IRQ transform: 0000:07:00.0[A] -> IRQ 145
PCI->APIC IRQ transform: 0000:01:06.0[A] -> IRQ 169
PCI: Cannot allocate resource region 1 of device 0000:00:00.0
PCI-GART: No AMD northbridge found.
PCI: Bridge: 0000:02:00.0
IO window: 4000-4fff
MEM window: ce000000-cfffffff
PREFETCH window: cc000000-cdafffff
PCI: Bridge: 0000:02:00.2
IO window: 5000-6fff
MEM window: cdb00000-cdefffff
PREFETCH window: cbc00000-cbffffff
PCI: Bridge: 0000:00:02.0
IO window: 4000-6fff
MEM window: cdb00000-cfffffff
PREFETCH window: cbc00000-cdafffff
PCI: Bridge: 0000:00:04.0
IO window: disabled.
MEM window: ca000000-cbbfffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:05.0
IO window: disabled.
MEM window: c8000000-c9ffffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:06.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:07.0
IO window: 7000-ffff
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1e.0
IO window: 3000-3fff
MEM window: de000000-dfffffff
PREFETCH window: d0000000-ddffffff
PCI: No IRQ known for interrupt pin A of device 0000:00:02.0. Probably buggy MP
table.
PCI: No IRQ known for interrupt pin B of device 0000:02:00.2. Probably buggy MP
table.
PCI: No IRQ known for interrupt pin A of device 0000:00:04.0. Probably buggy MP
table.
PCI: No IRQ known for interrupt pin A of device 0000:00:05.0. Probably buggy MP
table.
PCI: No IRQ known for interrupt pin A of device 0000:00:06.0. Probably buggy MP
table.
PCI: No IRQ known for interrupt pin A of device 0000:00:07.0. Probably buggy MP
table.
NET: Registered protocol family 2
IP route cache hash table entries: 262144 (order: 9, 2097152 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
Installing knfsd (copyright (C) 1996 [EMAIL PROTECTED]).
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pcie_portdrv_probe->Dev[3595:8086] has invalid IRQ. Check vendor BIOS
pcie_portdrv_probe->Dev[3597:8086] has invalid IRQ. Check vendor BIOS
pcie_portdrv_probe->Dev[3598:8086] has invalid IRQ. Check vendor BIOS
pcie_portdrv_probe->Dev[3599:8086] has invalid IRQ. Check vendor BIOS
pcie_portdrv_probe->Dev[359a:8086] has invalid IRQ. Check vendor BIOS
Real Time Clock Driver v1.12ac
Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec
(nowayout= 0)
Linux agpgart interface v0.101 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Intel(R) PRO/1000 Network Driver - version 7.1.9-k4
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
tg3.c:v3.64 (July 31, 2006)
eth0: Tigon3 [partno(BCM95721) rev 4101 PHY(5750)] (PCI Express)
10/100/1000BaseT Ethernet 00:11:25:3f:6f:10
eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] Split[0] WireSpeed[1] TSOcap[1]
eth0: dma_rwctrl[76180000] dma_mask[64-bit]
eth1: Tigon3 [partno(BCM95721) rev 4101 PHY(5750)] (PCI Express)
10/100/1000BaseT Ethernet 00:11:25:3f:6f:11
eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] Split[0] WireSpeed[1] TSOcap[1]
eth1: dma_rwctrl[76180000] dma_mask[64-bit]
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.56.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[EMAIL PROTECTED]>
netconsole: not configured, aborting
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH5: IDE controller at PCI slot 0000:00:1f.1
ICH5: chipset revision 2
ICH5: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x0480-0x0487, BIOS settings: hda:DMA, hdb:DMA
hda: BTC CD-ROM F523E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: ATAPI 48X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
scsi0 : Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 3.0
<Adaptec AIC7902 Ultra320 SCSI adapter>
aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
scsi1 : Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 3.0
<Adaptec AIC7902 Ultra320 SCSI adapter>
aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
Vendor: IBM-ESXS Model: VPR073C3-ETS10FN Rev: S330
Type: Direct-Access ANSI SCSI revision: 04
target1:0:2: asynchronous
scsi1:A:2:0: Tagged Queuing enabled. Depth 32
target1:0:2: Beginning Domain Validation
target1:0:2: wide asynchronous
target1:0:2: FAST-160 WIDE SCSI 320.0 MB/s DT IU RDSTRM RTI WRFLOW PCOMP (6.25
ns, offset 127)
target1:0:2: Ending Domain Validation
Vendor: IBM-ESXS Model: VPR073C3-ETS10FN Rev: S330
Type: Direct-Access ANSI SCSI revision: 04
target1:0:3: asynchronous
scsi1:A:3:0: Tagged Queuing enabled. Depth 32
target1:0:3: Beginning Domain Validation
target1:0:3: wide asynchronous
target1:0:3: FAST-160 WIDE SCSI 320.0 MB/s DT IU RDSTRM RTI WRFLOW PCOMP (6.25
ns, offset 127)
target1:0:3: Ending Domain Validation
Vendor: IBM-ESXS Model: VPR073C3-ETS10FN Rev: S330
Type: Direct-Access ANSI SCSI revision: 04
target1:0:4: asynchronous
scsi1:A:4:0: Tagged Queuing enabled. Depth 32
target1:0:4: Beginning Domain Validation
target1:0:4: wide asynchronous
target1:0:4: FAST-160 WIDE SCSI 320.0 MB/s DT IU RDSTRM RTI WRFLOW PCOMP (6.25
ns, offset 127)
target1:0:4: Ending Domain Validation
target1:0:5: asynchronous
Vendor: IBM-ESXS Model: ST373453LC FN Rev: B85D
Type: Direct-Access ANSI SCSI revision: 03
scsi1:A:5:0: Tagged Queuing enabled. Depth 32
target1:0:5: Beginning Domain Validation
target1:0:5: wide asynchronous
target1:0:5: FAST-160 WIDE SCSI 320.0 MB/s DT IU RDSTRM RTI WRFLOW PCOMP (6.25
ns, offset 63)
target1:0:5: Ending Domain Validation
Vendor: IBM Model: 02R0962a S320 1 Rev: 1
Type: Processor ANSI SCSI revision: 02
target1:0:8: asynchronous
target1:0:8: Beginning Domain Validation
target1:0:8: Ending Domain Validation
megaraid cmm: 2.20.2.6 (Release Date: Mon Mar 7 00:01:03 EST 2005)
megaraid: 2.20.4.8 (Release Date: Mon Apr 11 12:27:22 EST 2006)
megasas: 00.00.03.01 Sun May 14 22:49:52 PDT 2006
SCSI device sda: 143374000 512-byte hdwr sectors (73407 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA
SCSI device sda: 143374000 512-byte hdwr sectors (73407 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA
sda: sda1 sda2 sda3 sda4 < sda5 >
sd 1:0:2:0: Attached scsi disk sda
SCSI device sdb: 143374000 512-byte hdwr sectors (73407 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write through w/ FUA
SCSI device sdb: 143374000 512-byte hdwr sectors (73407 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write through w/ FUA
sdb: sdb2
sd 1:0:3:0: Attached scsi disk sdb
SCSI device sdc: 143374000 512-byte hdwr sectors (73407 MB)
sdc: Write Protect is off
SCSI device sdc: drive cache: write through w/ FUA
SCSI device sdc: 143374000 512-byte hdwr sectors (73407 MB)
sdc: Write Protect is off
SCSI device sdc: drive cache: write through w/ FUA
sdc: sdc1
sd 1:0:4:0: Attached scsi disk sdc
SCSI device sdd: 143374000 512-byte hdwr sectors (73407 MB)
sdd: Write Protect is off
SCSI device sdd: drive cache: write through w/ FUA
SCSI device sdd: 143374000 512-byte hdwr sectors (73407 MB)
sdd: Write Protect is off
SCSI device sdd: drive cache: write through w/ FUA
sdd: sdd1
sd 1:0:5:0: Attached scsi disk sdd
Fusion MPT base driver 3.04.01
Copyright (c) 1999-2005 LSI Logic Corporation
Fusion MPT SPI Host driver 3.04.01
ieee1394: raw1394: /dev/raw1394 device initialized
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: irq 177, io mem 0xf0000000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.0: irq 145, io base 0x00002200
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.1: irq 161, io base 0x00002600
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
usb 3-2: new full speed USB device using uhci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
input: IBM PPC I/F as /class/input/input0
input: USB HID v1.10 Keyboard [IBM PPC I/F] on usb-0000:00:1d.1-2
input: IBM PPC I/F as /class/input/input1
input: USB HID v1.10 Mouse [IBM PPC I/F] on usb-0000:00:1d.1-2
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: [EMAIL PROTECTED]
Intel 810 + AC97 Audio, version 1.01, 22:14:57 Aug 16 2006
oprofile: using NMI interrupt.
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Unable to handle kernel paging request<6>input: AT Translated Set 2 keyboard as
/class/input/input2
at ffff82beae7d1d78 RIP:
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot