regression booting pxa kernels
A message that is not in the archive (sent off-list or not yet received): [email protected]
OpenBSD appears to be trying to access cp14 crn=0 crm=1 opc1=0 opc2=0. Implementing this as a no-op allows the image to boot. I'm trying to track down what this is supposed to be -- it doesn't seem to be listed in the PXA27x docs.
(Previously we were lax about decoding and tended to print warnings and no-op on accesses to nonexistent coprocessor registers; part of the cleanup in the patches which introduced this regression was that we now actually UNDEF in the guest on bad accesses, which is what hardware does for unimplemented regs. This does mean that some cases of "we need to implement this" that were previously slipping under the radar now need to be explicitly catered for.)
Signature · 36 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1110531 Title: regression booting pxa kernels Status in QEMU: New Bug description: Somewhere between qemu 1.1.2 and 1.2.0 OpenBSD zaurus kernels and ramdisk images stopped booting properly and instead end up in the kernel debugger. This behaviour is still present in the latest git and appears to have been introduced in: commit e2f8a44d0d425a22cca5855702f534536f5e8c90 Author: Peter Maydell <[email protected]> Date: Wed Jun 20 11:57:07 2012 +0000 hw/pxa2xx.c: Convert CLKCFG and PWRMODE cp14 regs Convert the PXA2xx CLKCFG and PWRMODE cp14 registers to the new arm_cp_reginfo scheme. Signed-off-by: Peter Maydell <[email protected]> To duplicate this behaviour: http://ftp.openbsd.org/pub/OpenBSD/5.2/zaurus/bsd.rd $ qemu-system-arm -M spitz -serial stdio -kernel bsd.rd -portrait should boot to an install prompt. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1110531/+subscriptions
Ah, found the problem -- it looks like I accidentally transposed the crm/crn values for all the perf registers in commit dc2a9045c, in the process of converting from switch statements to the table representation, and my test Linux image obviously doesn't prod these registers. I'll send out a patch...
Signature · 36 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1110531 Title: regression booting pxa kernels Status in QEMU: New Bug description: Somewhere between qemu 1.1.2 and 1.2.0 OpenBSD zaurus kernels and ramdisk images stopped booting properly and instead end up in the kernel debugger. This behaviour is still present in the latest git and appears to have been introduced in: commit e2f8a44d0d425a22cca5855702f534536f5e8c90 Author: Peter Maydell <[email protected]> Date: Wed Jun 20 11:57:07 2012 +0000 hw/pxa2xx.c: Convert CLKCFG and PWRMODE cp14 regs Convert the PXA2xx CLKCFG and PWRMODE cp14 registers to the new arm_cp_reginfo scheme. Signed-off-by: Peter Maydell <[email protected]> To duplicate this behaviour: http://ftp.openbsd.org/pub/OpenBSD/5.2/zaurus/bsd.rd $ qemu-system-arm -M spitz -serial stdio -kernel bsd.rd -portrait should boot to an install prompt. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1110531/+subscriptions
Fixed by this patch http://patchwork.ozlabs.org/patch/217673/ which hopefully will make it into 1.4.
Signature · 36 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1110531 Title: regression booting pxa kernels Status in QEMU: New Bug description: Somewhere between qemu 1.1.2 and 1.2.0 OpenBSD zaurus kernels and ramdisk images stopped booting properly and instead end up in the kernel debugger. This behaviour is still present in the latest git and appears to have been introduced in: commit e2f8a44d0d425a22cca5855702f534536f5e8c90 Author: Peter Maydell <[email protected]> Date: Wed Jun 20 11:57:07 2012 +0000 hw/pxa2xx.c: Convert CLKCFG and PWRMODE cp14 regs Convert the PXA2xx CLKCFG and PWRMODE cp14 registers to the new arm_cp_reginfo scheme. Signed-off-by: Peter Maydell <[email protected]> To duplicate this behaviour: http://ftp.openbsd.org/pub/OpenBSD/5.2/zaurus/bsd.rd $ qemu-system-arm -M spitz -serial stdio -kernel bsd.rd -portrait should boot to an install prompt. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1110531/+subscriptions
Thank you Peter for the quick response to this bug report.
Signature · 36 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1110531 Title: regression booting pxa kernels Status in QEMU: New Bug description: Somewhere between qemu 1.1.2 and 1.2.0 OpenBSD zaurus kernels and ramdisk images stopped booting properly and instead end up in the kernel debugger. This behaviour is still present in the latest git and appears to have been introduced in: commit e2f8a44d0d425a22cca5855702f534536f5e8c90 Author: Peter Maydell <[email protected]> Date: Wed Jun 20 11:57:07 2012 +0000 hw/pxa2xx.c: Convert CLKCFG and PWRMODE cp14 regs Convert the PXA2xx CLKCFG and PWRMODE cp14 registers to the new arm_cp_reginfo scheme. Signed-off-by: Peter Maydell <[email protected]> To duplicate this behaviour: http://ftp.openbsd.org/pub/OpenBSD/5.2/zaurus/bsd.rd $ qemu-system-arm -M spitz -serial stdio -kernel bsd.rd -portrait should boot to an install prompt. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1110531/+subscriptions
** Changed in: qemu
Status: Fix Committed => Fix Released
Signature · 36 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1110531 Title: regression booting pxa kernels Status in QEMU: Fix Released Bug description: Somewhere between qemu 1.1.2 and 1.2.0 OpenBSD zaurus kernels and ramdisk images stopped booting properly and instead end up in the kernel debugger. This behaviour is still present in the latest git and appears to have been introduced in: commit e2f8a44d0d425a22cca5855702f534536f5e8c90 Author: Peter Maydell <[email protected]> Date: Wed Jun 20 11:57:07 2012 +0000 hw/pxa2xx.c: Convert CLKCFG and PWRMODE cp14 regs Convert the PXA2xx CLKCFG and PWRMODE cp14 registers to the new arm_cp_reginfo scheme. Signed-off-by: Peter Maydell <[email protected]> To duplicate this behaviour: http://ftp.openbsd.org/pub/OpenBSD/5.2/zaurus/bsd.rd $ qemu-system-arm -M spitz -serial stdio -kernel bsd.rd -portrait should boot to an install prompt. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1110531/+subscriptions