Skip to contentSkip to conversation

Sporadic AHCI boot failures

Qemu-devel Jan Kiszka 3 participants 5 messages May 2, 2012 – Jun 6, 2012

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi,

I'm running a Win7 VM over AHCI, rebooting quite frequently. Depending on host system load, I'm facing a lot of sporadic boot failures (disk not found), obviously in SeaBIOS. Could it be that some timeout in the init code bites us here? AHCI_LINK_TIMEOUT or AHCI_RESET_TIMEOUT? Just a guess, I haven't debugged this yet.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 7 lines · Jan Kiszka

Hi,

I'm running a Win7 VM over AHCI, rebooting quite frequently. Depending on host system load, I'm facing a lot of sporadic boot failures (disk not found), obviously in SeaBIOS. Could it be that some timeout in the init code bites us here? AHCI_LINK_TIMEOUT or AHCI_RESET_TIMEOUT? Just a guess, I haven't debugged this yet.

Hm, I'd be surprised if that's the problem.

Do things work again after system_reset on the monitor? Maybe the reset function is just broken and we finish some asynchronous stuff after reset?

Alex

author
#2 lore raw
Quoted 12 lines · Alexander Graf
Quoted 7 lines · Jan Kiszka

Hi,

I'm running a Win7 VM over AHCI, rebooting quite frequently. Depending on host system load, I'm facing a lot of sporadic boot failures (disk not found), obviously in SeaBIOS. Could it be that some timeout in the init code bites us here? AHCI_LINK_TIMEOUT or AHCI_RESET_TIMEOUT? Just a guess, I haven't debugged this yet.

Quoted 3 lines

Hm, I'd be surprised if that's the problem.

Do things work again after system_reset on the monitor? Maybe the reset function is just broken and we finish some asynchronous stuff after reset?

The problem both occurs after power on as well as reset. Sometimes it takes multiple system_reset calls to get the system booting.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
author
#3 lore raw
Quoted 13 lines · Jan Kiszka
Quoted 12 lines · Alexander Graf
Quoted 7 lines · Jan Kiszka

Hi,

I'm running a Win7 VM over AHCI, rebooting quite frequently. Depending on host system load, I'm facing a lot of sporadic boot failures (disk not found), obviously in SeaBIOS. Could it be that some timeout in the init code bites us here? AHCI_LINK_TIMEOUT or AHCI_RESET_TIMEOUT? Just a guess, I haven't debugged this yet.

Quoted 6 lines
Quoted 3 lines

Hm, I'd be surprised if that's the problem.

Do things work again after system_reset on the monitor? Maybe the reset function is just broken and we finish some asynchronous stuff after reset?

The problem both occurs after power on as well as reset. Sometimes it takes multiple system_reset calls to get the system booting.

Think I found it: There is bug in the new in-kernel PIT userspace code that lets Seabios detect some 4..7 MHz CPU. So all the timeouts finish way too early. This also affects IDE and possible other stuff in the bios that depends on timeouts.

Digging into this...

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
#4 lore raw
Quoted 6 lines · Jan Kiszka
Quoted 5 lines
Quoted 2 lines

Do things work again after system_reset on the monitor? Maybe the reset function is just broken and we finish some asynchronous stuff after reset?

The problem both occurs after power on as well as reset. Sometimes it takes multiple system_reset calls to get the system booting.

Quoted 7 lines

Think I found it: There is bug in the new in-kernel PIT userspace code that lets Seabios detect some 4..7 MHz CPU. So all the timeouts finish way too early. This also affects IDE and possible other stuff in the bios that depends on timeouts.

Digging into this...

This is probably Yongjie Ren's problem as well.

Signature · 1 line
error compiling committee.c: too many arguments to function