Re: Unable to handle kernel paging request when accessing /proc/bus/pnp/escd

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Mar 03 2002 - 22:31:49 EST


> I was just looking around in /proc/bus a little and I tried
> 'cat /proc/bus/pnp/escd' and I got this:

Your PnP BIOS appears to have choked

> EIP: 0068:[<00007598>] Tainted: P

          ^^^^ Trapped out in the BIOS (segment 0068)

Two things here. Firstly make sure Thomas gets the report so he can double
check it was called right. Secondly can try the following

--- arch/i386/kernel/traps.c~ Wed Feb 13 00:30:44 2002
+++ arch/i386/kernel/traps.c Mon Mar 4 03:13:16 2002
@@ -241,6 +241,20 @@
 
 void die(const char * str, struct pt_regs * regs, long err)
 {
+#ifdef CONFIG_PNPBIOS
+ if (regs->xcs == 0x60 || regs->xcs == 0x68)
+ {
+ extern u32 pnp_bios_fault_eip, pnp_bios_fault_esp;
+ extern u32 pnp_bios_is_utter_crap;
+ pnp_bios_is_utter_crap = 1;
+ printk(KERN_CRIT "PNPBIOS fault.. attempting recovery.\n");
+ __asm__ volatile(
+ "movl %0, %%esp\n\t"
+ "jmp %1\n\t"
+ : "=a" (pnp_bios_fault_esp), "=b" (pnp_bios_fault_eip));
+ panic("do_trap: can't hit this");
+ }
+#endif
         console_verbose();
         spin_lock_irq(&die_lock);
         bust_spinlocks(1);
@@ -272,20 +286,6 @@
         if (vm86 && regs->eflags & VM_MASK)
                 goto vm86_trap;
 
-#ifdef CONFIG_PNPBIOS
- if (regs->xcs == 0x60 || regs->xcs == 0x68)
- {
- extern u32 pnp_bios_fault_eip, pnp_bios_fault_esp;
- extern u32 pnp_bios_is_utter_crap;
- pnp_bios_is_utter_crap = 1;
- printk(KERN_CRIT "PNPBIOS fault.. attempting recovery.\n");
- __asm__ volatile(
- "movl %0, %%esp\n\t"
- "jmp %1\n\t"
- : "=a" (pnp_bios_fault_esp), "=b" (pnp_bios_fault_eip));
- panic("do_trap: can't hit this");
- }
-#endif
 
         if (!(regs->xcs & 3))
                 goto kernel_trap;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:30 EST