Re: ATAng doesn't boot on my notebook - panic

2003-10-10 Thread Vladimir B. Grebenschikov
 , 08.10.2003,  12:04, Soren Schmidt :

  Does not help, another panic in ad_attach:
  
 ARGH, try this instead:

Yes, it helps, thank you.

 -Sren
-- 
Vladimir B. Grebenschikov [EMAIL PROTECTED]
SWsoft Inc.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng doesn't boot on my notebook - panic

2003-10-08 Thread Vladimir B. Grebenschikov
 , 07.10.2003,  23:26, Soren Schmidt :
 It seems Vladimir B. Grebenschikov wrote:
   Any solution or workaround ?
 
 Try this patch please:
 
 diff -u -r1.191 ata-all.c

Does not help, another panic in ad_attach:

...
GEOM: create disk ad1 dp=0xc2358a70
ad1: MEMORYSTICK 4M 8K/SONY1.00 ATA-0 disk at ata1-master
ad1: 3MB (7904 sectors), 247 C, 2 H, 16 S, 512 B
ad1: 1 secs/int, 1 depth queue, BIOSPIO


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x6
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc047d801
stack pointer   = 0x10:0xc0c21cf4
frame pointer   = 0x10:0xc0c21d3c
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
kernel: type 12 trap, code=0
Stopped at  ad_attach+0x61: movzbl  0x6(%edi),%ecx
db tra
ad_attach(c227d2d4,1,c1122c50,c074a990,c0c21d74) at ad_attach+0x61
ata_boot_attach(0,c0539736,c0768fec,0,c074a990) at ata_boot_attach+0x6f
run_interrupt_driven_config_hooks(0,0,c1120708,c1120708,c1ec00) at 
run_interrupt_driven_config_hooks+0x2b
mi_startup() at mi_startup+0xa1
begin() at begin+0x2c
db   

full boot -v:

OK boot -v
/boot/kernel.soren/acpi.ko text=0x3b43c data=0x16cc+0xee0 syms=[0x4+0x6480+0x4+0x7fb5]
SMAP type=01 base= len=0009f800
SMAP type=02 base=0009f800 len=0800
SMAP type=02 base=000e7800 len=00018800
SMAP type=01 base=0010 len=0bef
SMAP type=03 base=0bff len=f800
SMAP type=04 base=0bfff800 len=0800
SMAP type=02 base=fffe7800 len=00018800
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT #11: Wed Oct  8 03:00:25 MSD 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/VBOOK
Preloaded elf kernel /boot/kernel.soren/kernel at 0xc08a8000.
Preloaded elf module /boot/kernel.soren/ums.ko at 0xc08a8208.
Preloaded elf module /boot/kernel.soren/usb.ko at 0xc08a82b8.
Preloaded elf module /boot/kernel.soren/ukbd.ko at 0xc08a8368.
Preloaded elf module /boot/kernel.soren/snd_neomagic.ko at 0xc08a8418.
Preloaded elf module /boot/kernel.soren/snd_pcm.ko at 0xc08a84d0.
Preloaded elf module /boot/kernel.soren/acpi.ko at 0xc08a8584.
Calibrating clock(s) ... i8254 clock: 1193111 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter i8254 frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 331580921 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (331.58-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x66a  Stepping = 10
  
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real memory  = 201261056 (191 MB)
Physical memory chunk(s):
0x1000 - 0x0009efff, 647168 bytes (158 pages)
0x0010 - 0x003f, 3145728 bytes (768 pages)
0x00c26000 - 0x0bc69fff, 184827904 bytes (45124 pages)
avail memory = 185966592 (177 MB)
bios32: Found BIOS32 Service Directory header at 0xc00f6c50
bios32: Entry = 0xfd7c0 (c00fd7c0)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xfd7c0+0x214
pnpbios: Found PnP BIOS data at 0xc00f6c80
pnpbios: Entry = f:b5d4  Rev = 1.0
Other BIOS signatures found:
random: entropy source
mem: memory  I/O
Pentium Pro MTRR support enabled
null: null device, zero device
npx0: [FAST]
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: SONY   Z0   on motherboard
pci_open(1):mode 1 addr port (0x0cf8) is 0x80003b54
pci_open(1a):   mode1res=0x8000 (0x8000)
pci_cfgcheck:   device 0 [class=06] [hdr=00] is there (id=71928086)
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdf50
PCI-Only Interrupts: none
Location  Bus Device Pin  Link  IRQs
embedded01A   0x60  9
embedded01B   0x61  9
embedded01C   0x62  9
embedded01D   0x63  9
embedded07D   0x63  9
embedded08A   0x60  9
embedded08B   0x61  9
embedded09A   0x62  9
embedded0   10A   0x61  9
embedded0   11A   0x60  9
embedded06A   0x60  9
AcpiOsDerivePciId: bus 0 dev 7 func 2
AcpiOsDerivePciId: bus 0 dev 10 func 0
AcpiOsDerivePciId: bus 0 dev 7 func 0
acpi0: Power Button (fixed)
ACPI timer looks BAD  min = 2, max = 8, width = 6
ACPI timer looks BAD  min = 2, max = 8, width = 6
ACPI timer looks BAD  min = 2, max = 8, width = 6
ACPI timer looks BAD  min = 3, max = 16777202, width = 16777199
ACPI timer looks BAD  min = 3, max = 8, width = 5
ACPI timer looks BAD  min = 3, max = 9, width = 6
ACPI timer looks BAD  min = 2, max = 8, width = 6
ACPI timer looks BAD  min = 0, max = 8, width = 8
ACPI timer looks BAD  

Re: ATAng doesn't boot on my notebook - panic

2003-10-08 Thread Soren Schmidt
It seems Vladimir B. Grebenschikov wrote:
 Does not help, another panic in ad_attach:
 
ARGH, try this instead:

diff -u -r1.191 ata-all.c
--- ata-all.c   7 Oct 2003 13:44:15 -   1.191
+++ ata-all.c   8 Oct 2003 08:03:09 -
@@ -35,6 +35,7 @@
 #include sys/ata.h
 #include sys/kernel.h
 #include sys/endian.h
+#include sys/ctype.h
 #include sys/conf.h
 #include sys/bus.h
 #include sys/bio.h
@@ -555,6 +556,8 @@
}
ata_free_request(request);
}
+   if (!isalpha(atacap-model[0]) || !isalpha(atacap-model[1]))
+   error = ENXIO;
if (error) {
atadev-param = NULL;
free(atacap, M_ATA);


-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng doesn't boot on my notebook - panic

2003-10-07 Thread Vladimir B. Grebenschikov
 , 06.10.2003,  22:48, Vladimir B. Grebenschikov :

 Soren, please help.
 
 I can't boot kernel after ATAng. It founds one extra ATA device 
 (I have no ata1-slave attached) and then panics.
 
 All details in PR kern/57156.

I have workarounded problem by disabling slave ATA devices
(I have no slaves so it is acceptable for me):

RCS file: /ext/ncvs/src/sys/dev/ata/ata-all.c,v
retrieving revision 1.190
diff -u -r1.190 ata-all.c
--- sys/dev/ata/ata-all.c   27 Sep 2003 12:00:58 -  1.190
+++ sys/dev/ata/ata-all.c   6 Oct 2003 19:00:14 -
@@ -577,11 +577,12 @@
 ata_identify_devices(struct ata_channel *ch)
 {
 if (ch-devices  ATA_ATA_SLAVE) {
-   if (ata_getparam(ch-device[SLAVE], ATA_ATA_IDENTIFY))
+/* if (ata_getparam(ch-device[SLAVE], ATA_ATA_IDENTIFY)) */
ch-devices = ~ATA_ATA_SLAVE;
 #ifdef DEV_ATADISK
-   else
-   ch-device[SLAVE].attach = ad_attach;
+/* else
+   ch-device[SLAVE].attach = ad_attach; 
+*/
 #endif
 }
 if (ch-devices  ATA_ATAPI_SLAVE) {


 In short:
 
 ad0: setting UDMA33 on Intel PIIX4 chip
 GEOM: create disk ad0 dp=0xc1d00970
 ad0: TOSHIBA MK4019GAX/FA002D ATA-5 disk at ata0-master
 ad0: 38154MB (78140160 sectors), 77520 C, 16 H, 63 S, 512 B
 ad0: 16 secs/int, 1 depth queue, UDMA33
 GEOM: new disk ad0
 [0] f:00 typ:6 s(CHS):0/1/1 e(CHS):969/239/63 s:63 l:14666337
 [1] f:00 typ:160 s(CHS):970/0/1 e(CHS):996/239/63 s:14666400 l:408240
 [2] f:80 typ:165 s(CHS):997/0/1 e(CHS):1023/239/63 s:15074640 l:41942880
 [3] f:00 typ:165 s(CHS):1023/0/1 e(CHS):1023/239/63 s:57017520
 l:21122640
 GEOM: Configure ad0s1, start 32256 length 7509164544 end 7509196799
 GEOM: Configure ad0s2, start 7509196800 length 209018880 end 7718215679
 GEOM: Configure ad0s3, start 7718215680 length 21474754560 end
 9192970239
 GEOM: Configure ad0s4, start 29192970240 length 10814791680 end
 40007761919
 GEOM: Configure ad0s3a, start 0 length 134217728 end 134217727
 GEOM: Configure ad0s3b, start 134217728 length 268435456 end 402653183
 GEOM: Configure ad0s3c, start 0 length 21474754560 end 21474754559
 GEOM: Configure ad0s3e, start 402653184 length 6442450944 end 6845104127
 GEOM: Configure ad0s3f, start 6845104128 length 14629650432 end
 1474754559
 GEOM: Configure ad0s4c, start 0 length 10814791680 end 10814791679
 GEOM: Configure ad0s4e, start 0 length 134217728 end 134217727
 GEOM: Configure ad0s4f, start 134217728 length 8915517440 end 9049735167
 ata1-slave: pio=0x08 wdma=0x udma=0x cable=40pin
 ata1-master: pio=0x09 wdma=0x udma=0x cable=40pin
 ad1: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
 ad1: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
 ad1: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
 ad1: FAILURE setting PIO1 on Intel PIIX4 chip
 GEOM: create disk ad1 dp=0xc1d4b770
 ad1: MEMORYSTICK 4M 8K/SONY1.00 ATA-0 disk at ata1-master
 ad1: 3MB (7904 sectors), 247 C, 2 H, 16 S, 512 B
 ad1: 1 secs/int, 1 depth queue, BIOSPIO
 GEOM: new disk ad1
 ad2: WARNING - SETFEATURES recovered from missing interrupt
 [0] f:80 typ:1 s(CHS):0/1/12 e(CHS):245/1/16 s:27 l:7845
 [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
 [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
 [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
 GEOM: Configure ad1s1, start 13824 length 4016640 end 4030463
 ad2: WARNING - SETFEATURES recovered from missing interrupt
 ad2: WARNING - SETFEATURES recovered from missing interrupt
 ad2: setting PIO0 on Intel PIIX4 chip
 GEOM: create disk ad2 dp=0xc1d4b970
 ad2: / ATA-0 disk at ata1-slave
 
 Fatal trap 18: integer divide fault while in kernel mode
 instruction pointer = 0x8:0xc03fa088
 stack pointer   = 0x10:0xc05c5c54
 frame pointer   = 0x10:0xc05c5cd0
 code segment= base 0x0, limit 0xf, type 0x1b
 = DPL 0, pres 1, def32 1, gran 1
 processor eflags= interrupt enabled, resume, IOPL = 0
 current process = 0 (swapper)
 kernel: type 18 trap, code=0
 Stopped at  __qdivrem+0x38: divl%ecx,%eax
 db tra
 __qdivrem(0,0,0,0,0) at __qdivrem+0x38
 __udivdi3(0,0,0,0,0) at __udivdi3+0x2e
 ad_attach(c1c712d4,1,c0ac6c50,c0445310,c05c5d74) at ad_attach+0x4aa
 ata_boot_attach(0,c02392d6,c046392c,0,c0445310) at ata_boot_attach+0x6f
 run_interrupt_driven_config_hooks(0,0,c0ac46f8,c0ac46f8,5c2c00) at
 run_interrupt_driven_config_hooks+0x2b
 mi_startup() at mi_startup+0xa1
 begin() at begin+0x2c
 db
 
 Any solution or workaround ?
-- 
Vladimir B. Grebenschikov [EMAIL PROTECTED]
SWsoft Inc.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng doesn't boot on my notebook - panic

2003-10-07 Thread Soren Schmidt
It seems Vladimir B. Grebenschikov wrote:
  Any solution or workaround ?

Try this patch please:

diff -u -r1.191 ata-all.c
--- ata-all.c   7 Oct 2003 13:44:15 -   1.191
+++ ata-all.c   7 Oct 2003 19:15:03 -
@@ -35,6 +35,7 @@
 #include sys/ata.h
 #include sys/kernel.h
 #include sys/endian.h
+#include sys/ctype.h
 #include sys/conf.h
 #include sys/bus.h
 #include sys/bio.h
@@ -555,7 +556,7 @@
}
ata_free_request(request);
}
-   if (error) {
+   if (error || !isalpha(atacap-model[0]) || !isalpha(atacap-model[1])) {
atadev-param = NULL;
free(atacap, M_ATA);
}

-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]