* [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
@ 2012-12-12 16:04 Luigi Rizzo
2012-12-12 17:47 ` Paolo Bonzini
0 siblings, 1 reply; 8+ messages in thread
From: Luigi Rizzo @ 2012-12-12 16:04 UTC (permalink / raw)
To: qemu-devel, kraxel
[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]
I am not sure if it has been reported already but this commit
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86
(replacing pc-bios/bios.bin with a newer version)
breaks booting of FreeBSD on recent qemu (starting roughly with qemu-
1.3.0-rc2).
Using a FreeBSD host, and a FreeBSD guest,
the qemu thread runs at 100% and the console is stuck
after the 'pci0' probe:
...
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 100000000 Hz quality 950
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
Reverting the bios fixes things.
I wonder if it isn't the case of reverting this change ?
cheers
luigi
--
-----------------------------------------+-------------------------------
Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione
http://www.iet.unipi.it/~luigi/ . Universita` di Pisa
TEL +39-050-2211611 . via Diotisalvi 2
Mobile +39-338-6809875 . 56122 PISA (Italy)
-----------------------------------------+-------------------------------
[-- Attachment #2: Type: text/html, Size: 3879 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
2012-12-12 16:04 [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting Luigi Rizzo
@ 2012-12-12 17:47 ` Paolo Bonzini
2012-12-12 23:54 ` Luigi Rizzo
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Paolo Bonzini @ 2012-12-12 17:47 UTC (permalink / raw)
To: Luigi Rizzo; +Cc: qemu-devel, kraxel
[-- Attachment #1: Type: text/plain, Size: 2725 bytes --]
Il 12/12/2012 17:04, Luigi Rizzo ha scritto:
> I am not sure if it has been reported already but this commit
>
> http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86
>
> (replacing pc-bios/bios.bin with a newer version)
> breaks booting of FreeBSD on recent qemu (starting roughly with
> qemu-1.3.0-rc2).
>
> Using a FreeBSD host, and a FreeBSD guest,
> the qemu thread runs at 100% and the console is stuck
> after the 'pci0' probe:
>
>
> ...
> hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
>
> Timecounter "HPET" frequency 100000000 Hz quality 950
>
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
>
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
>
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
>
> pci0: <ACPI PCI bus> on pcib0
>
> Reverting the bios fixes things.
> I wonder if it isn't the case of reverting this change ?
Not reverting the change (which fixes other things), but yes---we should
get the fix into SeaBIOS.
I don't have a FreeBSD VM handy, can you try the attached BIOS so I can
have your Tested-by? The patch I used is after my signature.
Paolo
diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
index 8019b71..b58ef62 100644
--- a/src/acpi-dsdt.dsl
+++ b/src/acpi-dsdt.dsl
@@ -187,7 +187,7 @@ DefinitionBlock (
prt_slot0(0x0000),
/* Device 1 is power mgmt device, and can only use irq 9 */
- Package() { 0x1ffff, 0, 0, 9 },
+ Package() { 0x1ffff, 0, LNKS, 0 },
Package() { 0x1ffff, 1, LNKB, 0 },
Package() { 0x1ffff, 2, LNKC, 0 },
Package() { 0x1ffff, 3, LNKD, 0 },
@@ -278,6 +278,22 @@ DefinitionBlock (
define_link(LNKB, 1, PRQ1)
define_link(LNKC, 2, PRQ2)
define_link(LNKD, 3, PRQ3)
+
+ Device(LNKS) {
+ Name(_HID, EISAID("PNP0C0F"))
+ Name(_UID, 4)
+ Name(_PRS, ResourceTemplate() {
+ Interrupt(, Level, ActiveHigh, Shared) { 9 }
+ })
+
+ // The SCI cannot be disabled and is always attached to GSI 9,
+ // so these are no-ops. We only need this link to override the
+ // polarity to active high and match the content of the MADT.
+ Method(_STA, 0, NotSerialized) { Return (0x0b) }
+ Method(_DIS, 0, NotSerialized) { }
+ Method(_CRS, 0, NotSerialized) { Return (_PRS) }
+ Method(_SRS, 1, NotSerialized) { }
+ }
}
#include "acpi-dsdt-cpu-hotplug.dsl"
[-- Attachment #2: bios.bin --]
[-- Type: application/octet-stream, Size: 131072 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
2012-12-12 17:47 ` Paolo Bonzini
@ 2012-12-12 23:54 ` Luigi Rizzo
2012-12-13 10:25 ` Brad Smith
2012-12-20 5:57 ` Dietmar Maurer
2 siblings, 0 replies; 8+ messages in thread
From: Luigi Rizzo @ 2012-12-12 23:54 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel, kraxel
On Wed, Dec 12, 2012 at 06:47:58PM +0100, Paolo Bonzini wrote:
> Il 12/12/2012 17:04, Luigi Rizzo ha scritto:
> > I am not sure if it has been reported already but this commit
> >
> > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86
> >
> > (replacing pc-bios/bios.bin with a newer version)
> > breaks booting of FreeBSD on recent qemu (starting roughly with
> > qemu-1.3.0-rc2).
> >
> > Using a FreeBSD host, and a FreeBSD guest,
> > the qemu thread runs at 100% and the console is stuck
> > after the 'pci0' probe:
> >
> >
> > ...
> > hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
> >
> > Timecounter "HPET" frequency 100000000 Hz quality 950
> >
> > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> >
> > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
> >
> > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> >
> > pci0: <ACPI PCI bus> on pcib0
> >
> > Reverting the bios fixes things.
> > I wonder if it isn't the case of reverting this change ?
>
> Not reverting the change (which fixes other things), but yes---we should
> get the fix into SeaBIOS.
>
> I don't have a FreeBSD VM handy, can you try the attached BIOS so I can
> have your Tested-by? The patch I used is after my signature.
thanks, the attached bios successfully boots a FreeBSD guest
Tested-by: Luigi Rizzo <rizzo@iet.unipi.it>
cheers
luigi
> Paolo
>
> diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
> index 8019b71..b58ef62 100644
> --- a/src/acpi-dsdt.dsl
> +++ b/src/acpi-dsdt.dsl
> @@ -187,7 +187,7 @@ DefinitionBlock (
>
> prt_slot0(0x0000),
> /* Device 1 is power mgmt device, and can only use irq 9 */
> - Package() { 0x1ffff, 0, 0, 9 },
> + Package() { 0x1ffff, 0, LNKS, 0 },
> Package() { 0x1ffff, 1, LNKB, 0 },
> Package() { 0x1ffff, 2, LNKC, 0 },
> Package() { 0x1ffff, 3, LNKD, 0 },
> @@ -278,6 +278,22 @@ DefinitionBlock (
> define_link(LNKB, 1, PRQ1)
> define_link(LNKC, 2, PRQ2)
> define_link(LNKD, 3, PRQ3)
> +
> + Device(LNKS) {
> + Name(_HID, EISAID("PNP0C0F"))
> + Name(_UID, 4)
> + Name(_PRS, ResourceTemplate() {
> + Interrupt(, Level, ActiveHigh, Shared) { 9 }
> + })
> +
> + // The SCI cannot be disabled and is always attached to GSI 9,
> + // so these are no-ops. We only need this link to override the
> + // polarity to active high and match the content of the MADT.
> + Method(_STA, 0, NotSerialized) { Return (0x0b) }
> + Method(_DIS, 0, NotSerialized) { }
> + Method(_CRS, 0, NotSerialized) { Return (_PRS) }
> + Method(_SRS, 1, NotSerialized) { }
> + }
> }
>
> #include "acpi-dsdt-cpu-hotplug.dsl"
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
2012-12-12 17:47 ` Paolo Bonzini
2012-12-12 23:54 ` Luigi Rizzo
@ 2012-12-13 10:25 ` Brad Smith
2012-12-13 10:30 ` Paolo Bonzini
2012-12-14 2:33 ` Brad Smith
2012-12-20 5:57 ` Dietmar Maurer
2 siblings, 2 replies; 8+ messages in thread
From: Brad Smith @ 2012-12-13 10:25 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Luigi Rizzo, qemu-devel, kraxel
On Wed, Dec 12, 2012 at 06:47:58PM +0100, Paolo Bonzini wrote:
> Il 12/12/2012 17:04, Luigi Rizzo ha scritto:
> > I am not sure if it has been reported already but this commit
> >
> > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86
> >
> > (replacing pc-bios/bios.bin with a newer version)
> > breaks booting of FreeBSD on recent qemu (starting roughly with
> > qemu-1.3.0-rc2).
> >
> > Using a FreeBSD host, and a FreeBSD guest,
> > the qemu thread runs at 100% and the console is stuck
> > after the 'pci0' probe:
> >
> >
> > ...
> > hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
> >
> > Timecounter "HPET" frequency 100000000 Hz quality 950
> >
> > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> >
> > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
> >
> > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> >
> > pci0: <ACPI PCI bus> on pcib0
> >
> > Reverting the bios fixes things.
> > I wonder if it isn't the case of reverting this change ?
>
> Not reverting the change (which fixes other things), but yes---we should
> get the fix into SeaBIOS.
>
> I don't have a FreeBSD VM handy, can you try the attached BIOS so I can
> have your Tested-by? The patch I used is after my signature.
>
> Paolo
Could you please provide a pre-compiled BIOS image so I could test
this out? I believe the issue I have is the same but it doesn't hurt
to have more testing. :)
I also noticed some issues booting FreeBSD 9 when I was testing
QEMU 1.3.0 on OpenBSD and have put it aside until some regressions
are fixed with the release.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
2012-12-13 10:25 ` Brad Smith
@ 2012-12-13 10:30 ` Paolo Bonzini
2012-12-14 2:33 ` Brad Smith
1 sibling, 0 replies; 8+ messages in thread
From: Paolo Bonzini @ 2012-12-13 10:30 UTC (permalink / raw)
To: Brad Smith; +Cc: Luigi Rizzo, qemu-devel, kraxel
> Could you please provide a pre-compiled BIOS image so I could test
> this out? I believe the issue I have is the same but it doesn't hurt
> to have more testing. :)
It's attached to my message.
Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
2012-12-13 10:25 ` Brad Smith
2012-12-13 10:30 ` Paolo Bonzini
@ 2012-12-14 2:33 ` Brad Smith
1 sibling, 0 replies; 8+ messages in thread
From: Brad Smith @ 2012-12-14 2:33 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Luigi Rizzo, qemu-devel, kraxel
On Thu, Dec 13, 2012 at 05:25:50AM -0500, Brad Smith wrote:
> On Wed, Dec 12, 2012 at 06:47:58PM +0100, Paolo Bonzini wrote:
> > Il 12/12/2012 17:04, Luigi Rizzo ha scritto:
> > > I am not sure if it has been reported already but this commit
> > >
> > > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86
> > >
> > > (replacing pc-bios/bios.bin with a newer version)
> > > breaks booting of FreeBSD on recent qemu (starting roughly with
> > > qemu-1.3.0-rc2).
> > >
> > > Using a FreeBSD host, and a FreeBSD guest,
> > > the qemu thread runs at 100% and the console is stuck
> > > after the 'pci0' probe:
> > >
> > >
> > > ...
> > > hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
> > >
> > > Timecounter "HPET" frequency 100000000 Hz quality 950
> > >
> > > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> > >
> > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
> > >
> > > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> > >
> > > pci0: <ACPI PCI bus> on pcib0
> > >
> > > Reverting the bios fixes things.
> > > I wonder if it isn't the case of reverting this change ?
> >
> > Not reverting the change (which fixes other things), but yes---we should
> > get the fix into SeaBIOS.
> >
> > I don't have a FreeBSD VM handy, can you try the attached BIOS so I can
> > have your Tested-by? The patch I used is after my signature.
> >
> > Paolo
>
> Could you please provide a pre-compiled BIOS image so I could test
> this out? I believe the issue I have is the same but it doesn't hurt
> to have more testing. :)
>
> I also noticed some issues booting FreeBSD 9 when I was testing
> QEMU 1.3.0 on OpenBSD and have put it aside until some regressions
> are fixed with the release.
*sigh* Of course now that I am trying to reproduce the issue with
the BIOS image that comes with 1.3.0 with the FreeBSD 9.1 RC3 CD
image I was testing with earlier I am not able to. But this newer
BIOS image doesn't seem to make it any worse either.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
2012-12-12 17:47 ` Paolo Bonzini
2012-12-12 23:54 ` Luigi Rizzo
2012-12-13 10:25 ` Brad Smith
@ 2012-12-20 5:57 ` Dietmar Maurer
2012-12-20 7:16 ` Gerd Hoffmann
2 siblings, 1 reply; 8+ messages in thread
From: Dietmar Maurer @ 2012-12-20 5:57 UTC (permalink / raw)
To: Paolo Bonzini, Luigi Rizzo; +Cc: qemu-devel@nongnu.org, kraxel@redhat.com
Do you plan to upload that fix into qemu git repository? From what I see the
repository still contains the broken version?
> -----Original Message-----
> From: qemu-devel-bounces+dietmar=proxmox.com@nongnu.org
> [mailto:qemu-devel-bounces+dietmar=proxmox.com@nongnu.org] On
> Behalf Of Paolo Bonzini
> Sent: Mittwoch, 12. Dezember 2012 18:48
> To: Luigi Rizzo
> Cc: qemu-devel@nongnu.org; kraxel@redhat.com
> Subject: Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
>
> Il 12/12/2012 17:04, Luigi Rizzo ha scritto:
> > I am not sure if it has been reported already but this commit
> >
> >
> http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f
> 8
> > c961590913052dd86
> >
> > (replacing pc-bios/bios.bin with a newer version) breaks booting of
> > FreeBSD on recent qemu (starting roughly with qemu-1.3.0-rc2).
> >
> > Using a FreeBSD host, and a FreeBSD guest, the qemu thread runs at
> > 100% and the console is stuck after the 'pci0' probe:
> >
> >
> > ...
> > hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on
> > acpi0
> >
> > Timecounter "HPET" frequency 100000000 Hz quality 950
> >
> > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> >
> > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
> >
> > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> >
> > pci0: <ACPI PCI bus> on pcib0
> >
> > Reverting the bios fixes things.
> > I wonder if it isn't the case of reverting this change ?
>
> Not reverting the change (which fixes other things), but yes---we should get
> the fix into SeaBIOS.
>
> I don't have a FreeBSD VM handy, can you try the attached BIOS so I can
> have your Tested-by? The patch I used is after my signature.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting
2012-12-20 5:57 ` Dietmar Maurer
@ 2012-12-20 7:16 ` Gerd Hoffmann
0 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2012-12-20 7:16 UTC (permalink / raw)
To: Dietmar Maurer; +Cc: Paolo Bonzini, Luigi Rizzo, qemu-devel@nongnu.org
On 12/20/12 06:57, Dietmar Maurer wrote:
> Do you plan to upload that fix into qemu git repository? From what I see the
> repository still contains the broken version?
Indeed, I'll go build a seabios update pull req.
cheers,
Gerd
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-12-20 7:16 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12 16:04 [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting Luigi Rizzo
2012-12-12 17:47 ` Paolo Bonzini
2012-12-12 23:54 ` Luigi Rizzo
2012-12-13 10:25 ` Brad Smith
2012-12-13 10:30 ` Paolo Bonzini
2012-12-14 2:33 ` Brad Smith
2012-12-20 5:57 ` Dietmar Maurer
2012-12-20 7:16 ` Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).