Opened 10 years ago

Closed 10 years ago

Last modified 5 years ago

#4058 closed bug (fixed)

Boot fails, new ATA stack

Reported by: aldeck Owned by: marcusoverhagen
Priority: high Milestone: R1/alpha2
Component: Drivers/Disk/ATA Version: R1/pre-alpha1
Keywords: Cc: marcusoverhagen
Blocked By: Blocking: #4535
Has a Patch: no Platform: All

Description

Boot fails and enters KDL with:

PANIC: did not find any boot partitions!
Welcome to KDL...
Thread 13 "main2" running on CPU 0

hrev31372 built with HAIKU_ATA_STACK=1
Core 1 duo laptop, PATA hardrive.

lspci

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce Go 7600] (rev a1)
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
06:00.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
06:00.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
06:00.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
06:00.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
06:00.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)

hdparm -i /dev/sda

/dev/sda:

 Model=FUJITSU MHV2120AT PL                    , FwRev=000000A0, SerialNo=        NSA4T5B255HV
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
 IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-2,3,4,5,6,7

 * signifies the current active mode

screenshots of the syslog already uploaded there (i can upload them to trac if prefered):

http://haikubeat.free.fr/files/testing/ata_stack

Attachments (13)

1.JPG (204.1 KB) - added by aldeck 10 years ago.
syslog screen 1
2.JPG (205.5 KB) - added by aldeck 10 years ago.
3.JPG (202.8 KB) - added by aldeck 10 years ago.
4.JPG (208.0 KB) - added by aldeck 10 years ago.
5.JPG (203.0 KB) - added by aldeck 10 years ago.
6.JPG (207.5 KB) - added by aldeck 10 years ago.
7.JPG (184.0 KB) - added by aldeck 10 years ago.
8.JPG (178.2 KB) - added by aldeck 10 years ago.
9.JPG (156.9 KB) - added by aldeck 10 years ago.
9bis.JPG (150.4 KB) - added by aldeck 10 years ago.
b1.JPG (64.5 KB) - added by aldeck 10 years ago.
b2.JPG (65.0 KB) - added by aldeck 10 years ago.
b3.JPG (67.6 KB) - added by aldeck 10 years ago.

Change History (35)

Changed 10 years ago by aldeck

Attachment: 1.JPG added

syslog screen 1

Changed 10 years ago by aldeck

Attachment: 2.JPG added

Changed 10 years ago by aldeck

Attachment: 3.JPG added

Changed 10 years ago by aldeck

Attachment: 4.JPG added

Changed 10 years ago by aldeck

Attachment: 5.JPG added

Changed 10 years ago by aldeck

Attachment: 6.JPG added

Changed 10 years ago by aldeck

Attachment: 7.JPG added

Changed 10 years ago by aldeck

Attachment: 8.JPG added

Changed 10 years ago by aldeck

Attachment: 9.JPG added

Changed 10 years ago by aldeck

Attachment: 9bis.JPG added

comment:1 Changed 10 years ago by Hubert

I have the same: hrev31462
listdev

comment:2 in reply to:  1 Changed 10 years ago by mmadia

Replying to Hubert:

I have the same: hrev31462
listdev

Hubert can you try reverting to hrev31459? Michael Weirauch and myself are not able to boot hrev31460.

comment:3 Changed 10 years ago by Hubert

ok. one moment please

comment:4 Changed 10 years ago by augiedoggie

hrev31460 keeps me from booting as well. I applied the diff in reverse and all is well now.

comment:5 Changed 10 years ago by Hubert

hrev31459 booting correctly

comment:6 Changed 10 years ago by marcusoverhagen

should be fixed in hrev31463, please test

comment:7 Changed 10 years ago by aldeck

Still there, but that's expected since i believe it's a different problem (ie: those recent comments are not related to this ticket). The ticket is about switching to the new ATA stack (the IDE stack was working on that same machine). The problem was there before hrev31460. cf: http://www.freelists.org/post/haiku-development/Filesystem-corruption-and-Alpha1,47 in reply to: http://www.freelists.org/post/haiku-development/Filesystem-corruption-and-Alpha1,38

comment:8 Changed 10 years ago by marcusoverhagen

Cc: SetResultData("CRLT3 Wirkungskette AGR" "Tastverhaeltnis nicht 100%: " + N_String(i_AGR_Tastverhalten)) added

comment:9 Changed 10 years ago by marcusoverhagen

Cc: marcusoverhagen added; SetResultData("CRLT3 Wirkungskette AGR" "Tastverhaeltnis nicht 100%: " + N_String(i_AGR_Tastverhalten)) removed

comment:10 Changed 10 years ago by marcusoverhagen

You have a harddisk as master and a CD-ROM as slave on the first ATA port (7.jpg ) Some command sent to harddisk fails (7.jpg)

It looks like some debug output between image 7 and 8 is missing.

Some (other?) command fails with a timeout (8.jpg)

All subsequent commands fail (device selection timeout) because the device is in a bad state and needs a reset, but no reset is done.

Things that need to be done: add debug output about when failing commands, do proper error recovery.

comment:11 Changed 10 years ago by marcusoverhagen

Milestone: R1R1/alpha1
Priority: normalhigh

comment:12 Changed 10 years ago by marcusoverhagen

Blocking: 4050 added

(In #4050) Looks very similar to issue 4050, improper error recovery

comment:13 Changed 10 years ago by marcusoverhagen

please try hrev32978 from trunk

comment:14 Changed 10 years ago by marcusoverhagen

Blocking: 4050 removed

This isn't the same issue as 4050.

comment:15 Changed 10 years ago by aldeck

Sorry for the lack of answer to your previous comments, i was in vacation. I just tried a fresh build of hrev32984 (trunk), without luck. Would you like another syslog dump (with the missing info hopefully)? Do you want me to rebuild ATA with tracing enabled?

comment:16 Changed 10 years ago by marcusoverhagen

Status: newassigned

Another syslog dump would be very nice. You can skip the whole "PCI:" device dump at the beginning. ATA tracing isn't needed yet.

Changed 10 years ago by aldeck

Attachment: b1.JPG added

Changed 10 years ago by aldeck

Attachment: b2.JPG added

Changed 10 years ago by aldeck

Attachment: b3.JPG added

comment:17 Changed 10 years ago by aldeck

Sorry for the delay, i'm very busy with work at the moment.
Syslog output using the kdl "syslog" command, beware the paging is not at the bottom, see the dark inverted text rectangle on the right. Skipped up to the end of "PCI:" section. hrev33015

comment:18 Changed 10 years ago by scottmc

Milestone: R1/alpha1R1/alpha2

comment:19 Changed 10 years ago by marcusoverhagen

Blocking: 4535 added

(In #4535)

comment:20 Changed 10 years ago by marcusoverhagen

should be fixed in hrev33626, please test

comment:21 Changed 10 years ago by aldeck

Resolution: fixed
Status: assignedclosed

great work Marcus, it's indeed fixed! (tested with hrev33644)

comment:22 Changed 5 years ago by pulkomandy

Component: Drivers/DiskDrivers/Disk/ATA
Note: See TracTickets for help on using tickets.