public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case
@ 2021-12-17  2:41 Stefan Berger
  2021-12-17  2:44 ` Stefan Berger
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stefan Berger @ 2021-12-17  2:41 UTC (permalink / raw)
  To: devel
  Cc: marcandre.lureau, shivanshu3, Stefan Berger, Ard Biesheuvel,
	Jiewen Yao, Jordan Justen, Gerd Hoffmann

For GPU passthrough support we have to initialize the console after
EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after
this. This was the calling order before the TCG physical presence support
had to be moved and the console initialized earlier so user interaction
could be supported before processing TCG physical presence opcodes.

Fixes: b8675deaa819631db2667df63f89799fe65fc906
Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3771
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Shivanshu Goyal <shivanshu3@gmail.com>
---
 OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c      | 7 +++++++
 OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c | 5 +++++
 OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c  | 5 +++++
 3 files changed, 17 insertions(+)

diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 5feadc51d7..0918c35f1f 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -448,6 +448,13 @@ PlatformBootManagerBeforeConsole (
   //
   EfiBootManagerDispatchDeferredImages ();
 
+  //
+  // GPU passthrough only allows Console enablement after ROM image load
+  //
+  PlatformInitializeConsole (
+    XenDetected () ? gXenPlatformConsole : gPlatformConsole
+    );
+
   FrontPageTimeout = GetFrontPageTimeoutFromQemu ();
   PcdStatus        = PcdSet16S (PcdPlatformBootTimeOut, FrontPageTimeout);
   ASSERT_RETURN_ERROR (PcdStatus);
diff --git a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
index 119f24b330..bf2701965f 100644
--- a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
@@ -434,6 +434,11 @@ PlatformBootManagerBeforeConsole (
   //
   EfiBootManagerDispatchDeferredImages ();
 
+  //
+  // GPU passthrough only allows Console enablement after ROM image load
+  //
+  PlatformInitializeConsole (gPlatformConsole);
+
   PlatformRegisterOptionsAndKeys ();
 
   //
diff --git a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
index 9c6848bbff..a402589206 100644
--- a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
@@ -392,6 +392,11 @@ PlatformBootManagerBeforeConsole (
   //
   EfiBootManagerDispatchDeferredImages ();
 
+  //
+  // GPU passthrough only allows Console enablement after ROM image load
+  //
+  PlatformInitializeConsole (gPlatformConsole);
+
   Status = gRT->SetVariable (
                   EFI_TIME_OUT_VARIABLE_NAME,
                   &gEfiGlobalVariableGuid,
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case
  2021-12-17  2:41 [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case Stefan Berger
@ 2021-12-17  2:44 ` Stefan Berger
  2021-12-17  2:45 ` [edk2-devel] " Yao, Jiewen
  2021-12-17  5:51 ` Gerd Hoffmann
  2 siblings, 0 replies; 7+ messages in thread
From: Stefan Berger @ 2021-12-17  2:44 UTC (permalink / raw)
  To: devel
  Cc: marcandre.lureau, shivanshu3, Ard Biesheuvel, Jiewen Yao,
	Jordan Justen, Gerd Hoffmann

v2 had lost the cc: list for some reason.

I opened this PR: https://github.com/tianocore/edk2/pull/2319

   Stefan

On 12/16/21 21:41, Stefan Berger wrote:
> For GPU passthrough support we have to initialize the console after
> EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after
> this. This was the calling order before the TCG physical presence support
> had to be moved and the console initialized earlier so user interaction
> could be supported before processing TCG physical presence opcodes.
>
> Fixes: b8675deaa819631db2667df63f89799fe65fc906
> Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3771
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> Tested-by: Shivanshu Goyal <shivanshu3@gmail.com>
> ---
>   OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c      | 7 +++++++
>   OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c | 5 +++++
>   OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c  | 5 +++++
>   3 files changed, 17 insertions(+)
>
> diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
> index 5feadc51d7..0918c35f1f 100644
> --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
> +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
> @@ -448,6 +448,13 @@ PlatformBootManagerBeforeConsole (
>     //
>     EfiBootManagerDispatchDeferredImages ();
>   
> +  //
> +  // GPU passthrough only allows Console enablement after ROM image load
> +  //
> +  PlatformInitializeConsole (
> +    XenDetected () ? gXenPlatformConsole : gPlatformConsole
> +    );
> +
>     FrontPageTimeout = GetFrontPageTimeoutFromQemu ();
>     PcdStatus        = PcdSet16S (PcdPlatformBootTimeOut, FrontPageTimeout);
>     ASSERT_RETURN_ERROR (PcdStatus);
> diff --git a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> index 119f24b330..bf2701965f 100644
> --- a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> +++ b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> @@ -434,6 +434,11 @@ PlatformBootManagerBeforeConsole (
>     //
>     EfiBootManagerDispatchDeferredImages ();
>   
> +  //
> +  // GPU passthrough only allows Console enablement after ROM image load
> +  //
> +  PlatformInitializeConsole (gPlatformConsole);
> +
>     PlatformRegisterOptionsAndKeys ();
>   
>     //
> diff --git a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
> index 9c6848bbff..a402589206 100644
> --- a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
> +++ b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
> @@ -392,6 +392,11 @@ PlatformBootManagerBeforeConsole (
>     //
>     EfiBootManagerDispatchDeferredImages ();
>   
> +  //
> +  // GPU passthrough only allows Console enablement after ROM image load
> +  //
> +  PlatformInitializeConsole (gPlatformConsole);
> +
>     Status = gRT->SetVariable (
>                     EFI_TIME_OUT_VARIABLE_NAME,
>                     &gEfiGlobalVariableGuid,

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case
  2021-12-17  2:41 [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case Stefan Berger
  2021-12-17  2:44 ` Stefan Berger
@ 2021-12-17  2:45 ` Yao, Jiewen
  2021-12-17  5:51 ` Gerd Hoffmann
  2 siblings, 0 replies; 7+ messages in thread
From: Yao, Jiewen @ 2021-12-17  2:45 UTC (permalink / raw)
  To: devel@edk2.groups.io, stefanb@linux.ibm.com
  Cc: marcandre.lureau@redhat.com, shivanshu3@gmail.com, Ard Biesheuvel,
	Justen, Jordan L, Gerd Hoffmann

Thank you Stefan to fix this.

Acked-by: Jiewen Yao <Jiewen.yao@intel.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Stefan
> Berger
> Sent: Friday, December 17, 2021 10:42 AM
> To: devel@edk2.groups.io
> Cc: marcandre.lureau@redhat.com; shivanshu3@gmail.com; Stefan Berger
> <stefanb@linux.ibm.com>; Ard Biesheuvel <ardb+tianocore@kernel.org>; Yao,
> Jiewen <jiewen.yao@intel.com>; Justen, Jordan L <jordan.l.justen@intel.com>;
> Gerd Hoffmann <kraxel@redhat.com>
> Subject: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for
> GPU passthrough case
> 
> For GPU passthrough support we have to initialize the console after
> EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after
> this. This was the calling order before the TCG physical presence support
> had to be moved and the console initialized earlier so user interaction
> could be supported before processing TCG physical presence opcodes.
> 
> Fixes: b8675deaa819631db2667df63f89799fe65fc906
> Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3771
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> Tested-by: Shivanshu Goyal <shivanshu3@gmail.com>
> ---
>  OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c      | 7 +++++++
>  OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c | 5 +++++
>  OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c  | 5 +++++
>  3 files changed, 17 insertions(+)
> 
> diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
> b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
> index 5feadc51d7..0918c35f1f 100644
> --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
> +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
> @@ -448,6 +448,13 @@ PlatformBootManagerBeforeConsole (
>    //
> 
>    EfiBootManagerDispatchDeferredImages ();
> 
> 
> 
> +  //
> 
> +  // GPU passthrough only allows Console enablement after ROM image load
> 
> +  //
> 
> +  PlatformInitializeConsole (
> 
> +    XenDetected () ? gXenPlatformConsole : gPlatformConsole
> 
> +    );
> 
> +
> 
>    FrontPageTimeout = GetFrontPageTimeoutFromQemu ();
> 
>    PcdStatus        = PcdSet16S (PcdPlatformBootTimeOut, FrontPageTimeout);
> 
>    ASSERT_RETURN_ERROR (PcdStatus);
> 
> diff --git a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> index 119f24b330..bf2701965f 100644
> --- a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> +++ b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
> @@ -434,6 +434,11 @@ PlatformBootManagerBeforeConsole (
>    //
> 
>    EfiBootManagerDispatchDeferredImages ();
> 
> 
> 
> +  //
> 
> +  // GPU passthrough only allows Console enablement after ROM image load
> 
> +  //
> 
> +  PlatformInitializeConsole (gPlatformConsole);
> 
> +
> 
>    PlatformRegisterOptionsAndKeys ();
> 
> 
> 
>    //
> 
> diff --git a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
> b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
> index 9c6848bbff..a402589206 100644
> --- a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
> +++ b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c
> @@ -392,6 +392,11 @@ PlatformBootManagerBeforeConsole (
>    //
> 
>    EfiBootManagerDispatchDeferredImages ();
> 
> 
> 
> +  //
> 
> +  // GPU passthrough only allows Console enablement after ROM image load
> 
> +  //
> 
> +  PlatformInitializeConsole (gPlatformConsole);
> 
> +
> 
>    Status = gRT->SetVariable (
> 
>                    EFI_TIME_OUT_VARIABLE_NAME,
> 
>                    &gEfiGlobalVariableGuid,
> 
> --
> 2.31.1
> 
> 
> 
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#85035): https://edk2.groups.io/g/devel/message/85035
> Mute This Topic: https://groups.io/mt/87782159/1772286
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub [jiewen.yao@intel.com]
> -=-=-=-=-=-=
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case
  2021-12-17  2:41 [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case Stefan Berger
  2021-12-17  2:44 ` Stefan Berger
  2021-12-17  2:45 ` [edk2-devel] " Yao, Jiewen
@ 2021-12-17  5:51 ` Gerd Hoffmann
  2021-12-17 17:37   ` [edk2-devel] " Ard Biesheuvel
  2 siblings, 1 reply; 7+ messages in thread
From: Gerd Hoffmann @ 2021-12-17  5:51 UTC (permalink / raw)
  To: Stefan Berger
  Cc: devel, marcandre.lureau, shivanshu3, Ard Biesheuvel, Jiewen Yao,
	Jordan Justen

On Thu, Dec 16, 2021 at 09:41:40PM -0500, Stefan Berger wrote:
> For GPU passthrough support we have to initialize the console after
> EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after
> this. This was the calling order before the TCG physical presence support
> had to be moved and the console initialized earlier so user interaction
> could be supported before processing TCG physical presence opcodes.
> 
> Fixes: b8675deaa819631db2667df63f89799fe65fc906
> Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3771
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> Tested-by: Shivanshu Goyal <shivanshu3@gmail.com>

> +  //
> +  // GPU passthrough only allows Console enablement after ROM image load
> +  //
> +  PlatformInitializeConsole (gPlatformConsole);

Ah, fixed already.

Acked-by: Gerd Hoffmann <kraxel@redhat.com>

take care,
  Gerd


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case
  2021-12-17  5:51 ` Gerd Hoffmann
@ 2021-12-17 17:37   ` Ard Biesheuvel
  2021-12-17 19:20     ` Shivanshu Goyal
  0 siblings, 1 reply; 7+ messages in thread
From: Ard Biesheuvel @ 2021-12-17 17:37 UTC (permalink / raw)
  To: edk2-devel-groups-io, Gerd Hoffmann
  Cc: Stefan Berger, Marc-André Lureau, shivanshu3, Ard Biesheuvel,
	Jiewen Yao, Jordan Justen

On Fri, 17 Dec 2021 at 06:52, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> On Thu, Dec 16, 2021 at 09:41:40PM -0500, Stefan Berger wrote:
> > For GPU passthrough support we have to initialize the console after
> > EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after
> > this. This was the calling order before the TCG physical presence support
> > had to be moved and the console initialized earlier so user interaction
> > could be supported before processing TCG physical presence opcodes.
> >
> > Fixes: b8675deaa819631db2667df63f89799fe65fc906
> > Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3771
> > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> > Cc: Jiewen Yao <jiewen.yao@intel.com>
> > Cc: Jordan Justen <jordan.l.justen@intel.com>
> > Cc: Gerd Hoffmann <kraxel@redhat.com>
> > Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> > Tested-by: Shivanshu Goyal <shivanshu3@gmail.com>
>
> > +  //
> > +  // GPU passthrough only allows Console enablement after ROM image load
> > +  //
> > +  PlatformInitializeConsole (gPlatformConsole);
>
> Ah, fixed already.
>
> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
>
> take care,
>   Gerd
>

Merged as #2325

Thanks all,

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case
  2021-12-17 17:37   ` [edk2-devel] " Ard Biesheuvel
@ 2021-12-17 19:20     ` Shivanshu Goyal
  2021-12-17 21:31       ` Ard Biesheuvel
  0 siblings, 1 reply; 7+ messages in thread
From: Shivanshu Goyal @ 2021-12-17 19:20 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: edk2-devel-groups-io, Gerd Hoffmann, Stefan Berger,
	Marc-André Lureau, Ard Biesheuvel, Jiewen Yao, Jordan Justen

[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]

Hi,

I'm asking on behalf of Arch Linux maintainers: are you planning on
creating a new release with this patch, or should we apply this patch
ourselves until a new version is released?

Thank you,
Shivanshu Goyal


On Fri, Dec 17, 2021, 9:37 AM Ard Biesheuvel <ardb@kernel.org> wrote:

> On Fri, 17 Dec 2021 at 06:52, Gerd Hoffmann <kraxel@redhat.com> wrote:
> >
> > On Thu, Dec 16, 2021 at 09:41:40PM -0500, Stefan Berger wrote:
> > > For GPU passthrough support we have to initialize the console after
> > > EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it
> after
> > > this. This was the calling order before the TCG physical presence
> support
> > > had to be moved and the console initialized earlier so user interaction
> > > could be supported before processing TCG physical presence opcodes.
> > >
> > > Fixes: b8675deaa819631db2667df63f89799fe65fc906
> > > Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3771
> > > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> > > Cc: Jiewen Yao <jiewen.yao@intel.com>
> > > Cc: Jordan Justen <jordan.l.justen@intel.com>
> > > Cc: Gerd Hoffmann <kraxel@redhat.com>
> > > Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> > > Tested-by: Shivanshu Goyal <shivanshu3@gmail.com>
> >
> > > +  //
> > > +  // GPU passthrough only allows Console enablement after ROM image
> load
> > > +  //
> > > +  PlatformInitializeConsole (gPlatformConsole);
> >
> > Ah, fixed already.
> >
> > Acked-by: Gerd Hoffmann <kraxel@redhat.com>
> >
> > take care,
> >   Gerd
> >
>
> Merged as #2325
>
> Thanks all,
>

[-- Attachment #2: Type: text/html, Size: 2962 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case
  2021-12-17 19:20     ` Shivanshu Goyal
@ 2021-12-17 21:31       ` Ard Biesheuvel
  0 siblings, 0 replies; 7+ messages in thread
From: Ard Biesheuvel @ 2021-12-17 21:31 UTC (permalink / raw)
  To: Shivanshu Goyal
  Cc: edk2-devel-groups-io, Gerd Hoffmann, Stefan Berger,
	Marc-André Lureau, Ard Biesheuvel, Jiewen Yao, Jordan Justen

On Fri, 17 Dec 2021 at 20:21, Shivanshu Goyal <shivanshu3@gmail.com> wrote:
>
> Hi,
>
> I'm asking on behalf of Arch Linux maintainers: are you planning on creating a new release with this patch, or should we apply this patch ourselves until a new version is released?
>

Tianocore doesn't do releases, there are only periodic 'stable tags'
in the repo, and one such tag was created just a week ago.

So if Arch Linux needs this change, it's better to carry it locally
for the time being.


>
> On Fri, Dec 17, 2021, 9:37 AM Ard Biesheuvel <ardb@kernel.org> wrote:
>>
>> On Fri, 17 Dec 2021 at 06:52, Gerd Hoffmann <kraxel@redhat.com> wrote:
>> >
>> > On Thu, Dec 16, 2021 at 09:41:40PM -0500, Stefan Berger wrote:
>> > > For GPU passthrough support we have to initialize the console after
>> > > EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after
>> > > this. This was the calling order before the TCG physical presence support
>> > > had to be moved and the console initialized earlier so user interaction
>> > > could be supported before processing TCG physical presence opcodes.
>> > >
>> > > Fixes: b8675deaa819631db2667df63f89799fe65fc906
>> > > Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3771
>> > > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
>> > > Cc: Jiewen Yao <jiewen.yao@intel.com>
>> > > Cc: Jordan Justen <jordan.l.justen@intel.com>
>> > > Cc: Gerd Hoffmann <kraxel@redhat.com>
>> > > Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
>> > > Tested-by: Shivanshu Goyal <shivanshu3@gmail.com>
>> >
>> > > +  //
>> > > +  // GPU passthrough only allows Console enablement after ROM image load
>> > > +  //
>> > > +  PlatformInitializeConsole (gPlatformConsole);
>> >
>> > Ah, fixed already.
>> >
>> > Acked-by: Gerd Hoffmann <kraxel@redhat.com>
>> >
>> > take care,
>> >   Gerd
>> >
>>
>> Merged as #2325
>>
>> Thanks all,

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-12-17 21:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-17  2:41 [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case Stefan Berger
2021-12-17  2:44 ` Stefan Berger
2021-12-17  2:45 ` [edk2-devel] " Yao, Jiewen
2021-12-17  5:51 ` Gerd Hoffmann
2021-12-17 17:37   ` [edk2-devel] " Ard Biesheuvel
2021-12-17 19:20     ` Shivanshu Goyal
2021-12-17 21:31       ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox