Skip to contentSkip to conversation

Linux 2.6.15 hangs with QEMU 0.8.0

Qemu-devel Marius Groeger 3 participants 5 messages Jun 1, 2006 – Jun 2, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

with my qemu-0.8.0 I noticed that Linux 2.6.15 runs only with the appended patch. Apparently a few nops are missing to get the irq enable/disable work properly. Without having looked too deeply into the issue -- is this a known issue and I can save my time or is more investigation required?

Thiemo, is any of your recently posted patches addressing this issue in any way?

Thanks,
Marius

Signature · 4 lines
Marius Groeger <[email protected]>
SYSGO AG                      Embedded and Real-Time Software
Voice: +49 6136 9948 0                  FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com
#1 lore raw

Hi,

Quoted 2 lines · Marius Groeger

with my qemu-0.8.0 I noticed that Linux 2.6.15 runs only with the appended patch.

Which patch?

Ciao,
Dscho

#2 lore raw
Quoted 4 lines · Johannes Schindelin
Quoted 2 lines

with my qemu-0.8.0 I noticed that Linux 2.6.15 runs only with the appended patch.

Which patch?

Brilliant me. Sorry, I forgot the patch. I don't have it handy here at home, but it's easily described: in <asm-mips/hazards.h>, it made irq_enable_hazard emit 3 NOPs just as irq_disable_hazard. I stumbeled over this as my kernel hung im sched.c:wait_for_completionn(). Turned out that schedule() wasn't called properly which went away with the NOPs.

Again, I didn't really investigate too much, but I reckoned if the NOPS are needed upon irq_disable_hazard, they're needed for irq_enable_hazard as well, since CP0 status is write modified in both situations.

Signature · 4 lines
Marius Groeger <[email protected]>
SYSGO AG                      Embedded and Real-Time Software
Voice: +49 6136 9948 0                  FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com
#4 lore raw
Quoted 2 lines · Sylvain Petreolle

Hi Marius,
better update and try again with qemu 0.8.1 ?

Tried that, and succeeded.

Turned out that Thiemo's patch labeled "[Qemu-devel] [PATCH 3/8] Mips improvements" did not just clean up the code as its description said, but removed a call to do_raise_exception(EXCP_EXT_INTERRUPT); That made my Linux boot, finally,

Sorry for the noise.

Thanks,
Marius

Signature · 4 lines
Marius Groeger <[email protected]>
SYSGO AG                      Embedded and Real-Time Software
Voice: +49 6136 9948 0                  FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com