From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.193073.1673951856783591879 for ; Tue, 17 Jan 2023 02:37:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BJyz7Gdu; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673951856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=W6r4LZ0PI3HThoYmUWkxEs8DxdsSPN5cJSb7m8YLoLQ=; b=BJyz7GduWWMTaBE4Y1D4ziYIXvvX207no/SdBr3rkVlJZndDIqiukLub6AMDNv0z+oN3s0 gcs/oRkPjrOPL+srD+nzgtIRsoQ0iPEMJ3+1JDSuCGFeSPDq3CE11kOt+QBhM54khg8vPP 8A3nXF5FEDc+Pu28osMt7B+8HJ3C9Ss= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-451-z8tCVOxMPHmZ6Tl5dsWCwQ-1; Tue, 17 Jan 2023 05:37:34 -0500 X-MC-Unique: z8tCVOxMPHmZ6Tl5dsWCwQ-1 Received: by mail-lj1-f199.google.com with SMTP id y19-20020a05651c221300b00279958f353fso7976471ljq.1 for ; Tue, 17 Jan 2023 02:37:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W6r4LZ0PI3HThoYmUWkxEs8DxdsSPN5cJSb7m8YLoLQ=; b=X8vGpbroUwHpAO8Rtg0UI+YPpoEr670Iwlqv3/2nH1ApP/LqBnf8zncv/eKEbz39tC bWplEA1c7RYDHox/juNT/yT+3RWJIjIkderq0JY3lEATWnQIhfo6/vWsQevRc20rfdeR o5fLJbBpC83q57mekGsmLnGRCLgOlbTWB90XhUuQUpKtduLSBfqaXIfLHk3DKGwT0rpp NKNlbiImVTzNQBTrB0qlANVTmSmfcpDSs05l3HWUI/YPNBY/tozoA7wiYu6Ia943AFNm yPYI7I5YhkkoOFf8KPKo7uTJsHkTA9gvJmT/CIzSuinVJ2wrum0vaXHd3XtXiHKj+rug rLCw== X-Gm-Message-State: AFqh2krbmUg21JpW2KwaE2IYYqKt+ELH8IYDpPBGSsvOuCr5D1SQ+czb A2/WW4KgKwiq86ucbp0BZ8j3dvyNL4FPVLccpwej/STVBnkGr7377oAySwSx4NzoAemh6UG4D2t l3klSxtMlZEOyv4BmvZCqRUMRYdYghQ== X-Received: by 2002:a05:6512:33c3:b0:4bb:70b2:6f4a with SMTP id d3-20020a05651233c300b004bb70b26f4amr291096lfg.1.1673951852913; Tue, 17 Jan 2023 02:37:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvE3Ypa1ELefjhFl6A02af/JRaEK1Q71XcD2UQ57X+iQiMS45acnBx2Hva9QEGbDnKKzBtu2U99dCO5zAmuZIU= X-Received: by 2002:a05:6512:33c3:b0:4bb:70b2:6f4a with SMTP id d3-20020a05651233c300b004bb70b26f4amr291077lfg.1.1673951852605; Tue, 17 Jan 2023 02:37:32 -0800 (PST) MIME-Version: 1.0 References: <20230116174044.3346383-1-osteffen@redhat.com> <20230116174044.3346383-18-osteffen@redhat.com> In-Reply-To: From: "Oliver Steffen" Date: Tue, 17 Jan 2023 11:37:20 +0100 Message-ID: Subject: Re: [edk2-devel] [PATCH v11 17/17] OfmvPkg: CI: Qemu tests: set CPU to Broadwell To: devel@edk2.groups.io, jiewen.yao@intel.com Cc: Andrew Fish , Ard Biesheuvel , "Feng, Bob C" , "Bi, Dandan" , Gerd Hoffmann , "Wang, Jian J" , "Justen, Jordan L" , Leif Lindholm , "Gao, Liming" , "Kinney, Michael D" , Michael Kubacki , "Ni, Ray" , Sami Mujawar , Sean Brogan , "Chen, Christine" , Pawel Polawski , "chris.fernald@outlook.com" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="0000000000008bcca205f27349be" --0000000000008bcca205f27349be Content-Type: text/plain; charset="UTF-8" It is this one: https://bugzilla.tianocore.org/show_bug.cgi?id=4251 Should have put that into the commit message, sorry. On Tue, Jan 17, 2023 at 1:16 AM Yao, Jiewen wrote: > Not sure the detail. > > Could you please add more comment, such as, what issue? Why crash? Why > changing to Broadwell can resolve it? > any URL? > > > > > -----Original Message----- > > From: Oliver Steffen > > Sent: Tuesday, January 17, 2023 1:41 AM > > To: devel@edk2.groups.io > > Cc: Andrew Fish ; Ard Biesheuvel > > ; Feng, Bob C ; Bi, > > Dandan ; Gerd Hoffmann ; > > Wang, Jian J ; Yao, Jiewen >; > > Justen, Jordan L ; Leif Lindholm > > ; Gao, Liming ; > > Kinney, Michael D ; Michael Kubacki > > ; Ni, Ray ; Sami > > Mujawar ; Sean Brogan > > ; Chen, Christine ; > > Pawel Polawski ; chris.fernald@outlook.com; Oliver > > Steffen > > Subject: [PATCH v11 17/17] OfmvPkg: CI: Qemu tests: set CPU to Broadwell > > > > Work around a bug in Ovmf that causes Ovmf to crash on startup > > when running in recent versions of Qemu. Setting the cpu model > > to something older, for example "Broadwell" works around the issue. > > > > Signed-off-by: Oliver Steffen > > --- > > OvmfPkg/PlatformCI/PlatformBuildLib.py | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/OvmfPkg/PlatformCI/PlatformBuildLib.py > > b/OvmfPkg/PlatformCI/PlatformBuildLib.py > > index bfef9849c749..93f7d7aa13d6 100644 > > --- a/OvmfPkg/PlatformCI/PlatformBuildLib.py > > +++ b/OvmfPkg/PlatformCI/PlatformBuildLib.py > > @@ -194,6 +194,7 @@ class PlatformBuilder( UefiBuilder, > > BuildSettingsManager): > > cmd = "qemu-system-x86_64" > > args = "-debugcon stdio" > # write messages to > > stdio > > args += " -global isa-debugcon.iobase=0x402" > # debug > > messages out thru virtual io port > > + args += " -cpu Broadwell" > # workaround Qvmf > > bug > > args += " -net none" > # turn off network > > args += f" -drive > file=fat:rw:{VirtualDrive},format=raw,media=disk" # > > Mount disk with startup.nsh > > > > -- > > 2.39.0 > > > > > > > --0000000000008bcca205f27349be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It is this one:
Should have put that into = the commit message, sorry.


On Tue, Jan 17, 2023 at 1:16 AM Yao, Jiewen <<= a href=3D"mailto:jiewen.yao@intel.com">jiewen.yao@intel.com> wrote:<= br>
Not sure the det= ail.

Could you please add more comment, such as, what issue? Why crash? Why chan= ging to Broadwell can resolve it?
any URL?



> -----Original Message-----
> From: Oliver Steffen <osteffen@redhat.com>
> Sent: Tuesday, January 17, 2023 1:41 AM
> To: devel@ed= k2.groups.io
> Cc: Andrew Fish <afish@apple.com>; Ard Biesheuvel
> <a= rdb+tianocore@kernel.org>; Feng, Bob C <bob.c.feng@intel.com>; Bi,
> Dandan <da= ndan.bi@intel.com>; Gerd Hoffmann <kraxel@redhat.com>;
> Wang, Jian J <jian.j.wang@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>;
> Justen, Jordan L <jordan.l.justen@intel.com>; Leif Lindholm
> <qui= c_llindhol@quicinc.com>; Gao, Liming <gaoliming@byosoft.com.cn>;
> Kinney, Michael D <michael.d.kinney@intel.com>; Michael Kubacki
> <= mikuback@linux.microsoft.com>; Ni, Ray <ray.ni@intel.com>; Sami
> Mujawar <= sami.mujawar@arm.com>; Sean Brogan
> <sea= n.brogan@microsoft.com>; Chen, Christine <yuwei.chen@intel.com>;
> Pawel Polawski <ppolawsk@redhat.com>; chris.fernald@outlook.com; Oliver
> Steffen <o= steffen@redhat.com>
> Subject: [PATCH v11 17/17] OfmvPkg: CI: Qemu tests: set CPU to Broadwe= ll
>
> Work around a bug in Ovmf that causes Ovmf to crash on startup
> when running in recent versions of Qemu.=C2=A0 Setting the cpu model > to something older, for example "Broadwell" works around the= issue.
>
> Signed-off-by: Oliver Steffen <osteffen@redhat.com>
> ---
>=C2=A0 OvmfPkg/PlatformCI/PlatformBuildLib.py | 1 +
>=C2=A0 1 file changed, 1 insertion(+)
>
> diff --git a/OvmfPkg/PlatformCI/PlatformBuildLib.py
> b/OvmfPkg/PlatformCI/PlatformBuildLib.py
> index bfef9849c749..93f7d7aa13d6 100644
> --- a/OvmfPkg/PlatformCI/PlatformBuildLib.py
> +++ b/OvmfPkg/PlatformCI/PlatformBuildLib.py
> @@ -194,6 +194,7 @@ class PlatformBuilder( UefiBuilder,
> BuildSettingsManager):
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cmd =3D "qemu-system-x86_64&quo= t;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 args=C2=A0 =3D "-debugcon stdio= "=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0# write messages to
> stdio
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 args +=3D " -global isa-debugco= n.iobase=3D0x402"=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # debug
> messages out thru virtual io port
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 args +=3D " -cpu Broadwell"=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0# workaround Qvmf
> bug
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 args +=3D " -net none"=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 # turn off network
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 args +=3D f" -drive file=3Dfat:= rw:{VirtualDrive},format=3Draw,media=3Ddisk" #
> Mount disk with startup.nsh
>
> --
> 2.39.0






--0000000000008bcca205f27349be--