Re: atkbd attach excitement during boot

2012-10-02 Thread Andriy Gapon
on 01/10/2012 17:56 Randy Bush said the following:
 Humm.  It seems this wasn't the actual faulting instruction.  Can you do
 'l *0x80704740'?
 
 (gdb) l *0x80704740
 0x80704740 is in sckbdevent (/usr/src/sys/dev/syscons/syscons.c:743).
 738  * the Xaccel-2.1 keyboard hang, but it can't hurt. XXX
 739  */
 740 while ((c = scgetc(sc, SCGETC_NONBLOCK)) != NOKEY) {
 741
 742 cur_tty = SC_DEV(sc, sc-cur_scp-index);
 743 if (!tty_opened(cur_tty))
 744 continue;
 745
 746 if ((*sc-cur_scp-tsw-te_input)(sc-cur_scp, c, cur_tty))
 747 continue;


See r233661.

-- 
Andriy Gapon
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: atkbd attach excitement during boot

2012-10-02 Thread Randy Bush
 on 01/10/2012 17:56 Randy Bush said the following:
 Humm.  It seems this wasn't the actual faulting instruction.  Can you do
 'l *0x80704740'?
 
 (gdb) l *0x80704740
 0x80704740 is in sckbdevent (/usr/src/sys/dev/syscons/syscons.c:743).
 738  * the Xaccel-2.1 keyboard hang, but it can't hurt. XXX
 739  */
 740 while ((c = scgetc(sc, SCGETC_NONBLOCK)) != NOKEY) {
 741
 742 cur_tty = SC_DEV(sc, sc-cur_scp-index);
 743 if (!tty_opened(cur_tty))
 744 continue;
 745
 746 if ((*sc-cur_scp-tsw-te_input)(sc-cur_scp, c, cur_tty))
 747 continue;
 
 See r233661.

thanks.  now works.

randy
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: atkbd attach excitement during boot

2012-10-01 Thread John Baldwin
On Sunday, September 30, 2012 1:16:23 pm Randy Bush wrote:
 booting 
 
 FreeBSD fbsd64.psg.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r241020: Fri 
Sep 28 07:14:15 UTC 2012 
r...@kaos.glenbarber.us:/usr/obj/usr/src/sys/GENERIC  amd64
 
 if i do not type a key during boot (after typing cr to beastie), i get
 the following
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual address   = 0x38
 fault code  = supervisor read data, page not present
 instruction pointer = 0x20:0x80704740
 stack pointer   = 0x28:0x815336e0
 frame pointer   = 0x28:0x81533730
 code segment= base 0x0, limit 0xf, type 0x1b
 = DPL 0, pres 1, long 1, def32 0, gran 1
 processor eflags= interrupt enabled, resume, IOPL = 0
 current process = 0 (swapper)
 trap number = 12
 panic: page fault
 cpuid = 0
 KDB: stack backtrace:
 #0 0x809221d6 at kdb_backtrace+0x66
 #1 0x808ec40e at panic+0x1ce
 #2 0x80bd91a0 at trap_fatal+0x290
 #3 0x80bd94d8 at trap_pfault+0x1e8
 #4 0x80bd9ade at trap+0x3be
 #5 0x80bc33ff at calltrap+0x8
 #6 0x80be95fb at atkbd_intr+0xab

Can you run 'gdb /boot/kernel/kernel' and do 'l *atkbd_intr+0xab'?

 #7 0x80be9dd6 at atkbd_timeout+0x96
 #8 0x80be9e94 at atkbd_attach_unit+0xb4
 #9 0x80bea0c8 at atkbdattach+0x78

-- 
John Baldwin
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: atkbd attach excitement during boot

2012-10-01 Thread Randy Bush
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual address   = 0x38
 fault code  = supervisor read data, page not present
 instruction pointer = 0x20:0x80704740
 stack pointer   = 0x28:0x815336e0
 frame pointer   = 0x28:0x81533730
 code segment= base 0x0, limit 0xf, type 0x1b
 = DPL 0, pres 1, long 1, def32 0, gran 1
 processor eflags= interrupt enabled, resume, IOPL = 0
 current process = 0 (swapper)
 trap number = 12
 panic: page fault
 cpuid = 0
 KDB: stack backtrace:
 #0 0x809221d6 at kdb_backtrace+0x66
 #1 0x808ec40e at panic+0x1ce
 #2 0x80bd91a0 at trap_fatal+0x290
 #3 0x80bd94d8 at trap_pfault+0x1e8
 #4 0x80bd9ade at trap+0x3be
 #5 0x80bc33ff at calltrap+0x8
 #6 0x80be95fb at atkbd_intr+0xab
 
 Can you run 'gdb /boot/kernel/kernel' and do 'l *atkbd_intr+0xab'?
 
 #7 0x80be9dd6 at atkbd_timeout+0x96
 #8 0x80be9e94 at atkbd_attach_unit+0xb4
 #9 0x80bea0c8 at atkbdattach+0x78

fbsd64.psg.com:/root# gdb /boot/kernel/kernel
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as amd64-marcel-freebsd...
(gdb) l *atkbd_intr+0xab
0x80be95fb is in atkbd_intr (/usr/src/sys/dev/atkbdc/atkbd.c:512).
507 do {
508 c = atkbd_read_char(kbd, FALSE);
509 } while (c != NOKEY);
510 }
511 return 0;
512 }
513
514 /* test the interface to the device */
515 static int
516 atkbd_test_if(keyboard_t *kbd)

randy
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: atkbd attach excitement during boot

2012-10-01 Thread John Baldwin
On Monday, October 01, 2012 9:00:36 am Randy Bush wrote:
  Fatal trap 12: page fault while in kernel mode
  cpuid = 0; apic id = 00
  fault virtual address   = 0x38
  fault code  = supervisor read data, page not present
  instruction pointer = 0x20:0x80704740
  stack pointer   = 0x28:0x815336e0
  frame pointer   = 0x28:0x81533730
  code segment= base 0x0, limit 0xf, type 0x1b
  = DPL 0, pres 1, long 1, def32 0, gran 1
  processor eflags= interrupt enabled, resume, IOPL = 0
  current process = 0 (swapper)
  trap number = 12
  panic: page fault
  cpuid = 0
  KDB: stack backtrace:
  #0 0x809221d6 at kdb_backtrace+0x66
  #1 0x808ec40e at panic+0x1ce
  #2 0x80bd91a0 at trap_fatal+0x290
  #3 0x80bd94d8 at trap_pfault+0x1e8
  #4 0x80bd9ade at trap+0x3be
  #5 0x80bc33ff at calltrap+0x8
  #6 0x80be95fb at atkbd_intr+0xab
  
  Can you run 'gdb /boot/kernel/kernel' and do 'l *atkbd_intr+0xab'?
  
  #7 0x80be9dd6 at atkbd_timeout+0x96
  #8 0x80be9e94 at atkbd_attach_unit+0xb4
  #9 0x80bea0c8 at atkbdattach+0x78
 
 fbsd64.psg.com:/root# gdb /boot/kernel/kernel
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain 
conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as amd64-marcel-freebsd...
 (gdb) l *atkbd_intr+0xab
 0x80be95fb is in atkbd_intr (/usr/src/sys/dev/atkbdc/atkbd.c:512).
 507 do {
 508 c = atkbd_read_char(kbd, FALSE);
 509 } while (c != NOKEY);
 510 }
 511 return 0;
 512 }

Humm.  It seems this wasn't the actual faulting instruction.  Can you do
'l *0x80704740'?

-- 
John Baldwin
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: atkbd attach excitement during boot

2012-10-01 Thread Randy Bush
 Humm.  It seems this wasn't the actual faulting instruction.  Can you do
 'l *0x80704740'?

(gdb) l *0x80704740
0x80704740 is in sckbdevent (/usr/src/sys/dev/syscons/syscons.c:743).
738  * the Xaccel-2.1 keyboard hang, but it can't hurt. XXX
739  */
740 while ((c = scgetc(sc, SCGETC_NONBLOCK)) != NOKEY) {
741
742 cur_tty = SC_DEV(sc, sc-cur_scp-index);
743 if (!tty_opened(cur_tty))
744 continue;
745
746 if ((*sc-cur_scp-tsw-te_input)(sc-cur_scp, c, cur_tty))
747 continue;
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


atkbd attach excitement during boot

2012-09-30 Thread Randy Bush
booting 

FreeBSD fbsd64.psg.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r241020: Fri 
Sep 28 07:14:15 UTC 2012 
r...@kaos.glenbarber.us:/usr/obj/usr/src/sys/GENERIC  amd64

if i do not type a key during boot (after typing cr to beastie), i get
the following

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x38
fault code  = supervisor read data, page not present
instruction pointer = 0x20:0x80704740
stack pointer   = 0x28:0x815336e0
frame pointer   = 0x28:0x81533730
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
trap number = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0x809221d6 at kdb_backtrace+0x66
#1 0x808ec40e at panic+0x1ce
#2 0x80bd91a0 at trap_fatal+0x290
#3 0x80bd94d8 at trap_pfault+0x1e8
#4 0x80bd9ade at trap+0x3be
#5 0x80bc33ff at calltrap+0x8
#6 0x80be95fb at atkbd_intr+0xab
#7 0x80be9dd6 at atkbd_timeout+0x96
#8 0x80be9e94 at atkbd_attach_unit+0xb4
#9 0x80bea0c8 at atkbdattach+0x78
#10 0x8091b702 at device_attach+0x72
#11 0x8091d15a at bus_generic_attach+0x1a
#12 0x80bec06f at atkbdc_isa_attach+0x1af
#13 0x8091b702 at device_attach+0x72
#14 0x8091d15a at bus_generic_attach+0x1a
#15 0x80340d05 at acpi_attach+0xbc5
#16 0x8091b702 at device_attach+0x72
#17 0x8091d15a at bus_generic_attach+0x1a
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org