From: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>
To: Leif Lindholm <leif.lindholm@linaro.org>
Cc: "Pete Batard" <pete@akeo.ie>,
edk2-devel-groups-io <devel@edk2.groups.io>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [edk2-platforms][PATCH 1/1] Platform/RPi: Inhibit serial output for all runtime drivers
Date: Thu, 19 Dec 2019 17:26:07 +0000 [thread overview]
Message-ID: <CAKv+Gu-r54jph8oSfdzH7SzRwDEqN4nDCPaAckgjsXCiu2JCxQ@mail.gmail.com> (raw)
In-Reply-To: <20191216151143.GJ7359@bivouac.eciton.net>
On Mon, 16 Dec 2019 at 17:11, Leif Lindholm <leif.lindholm@linaro.org> wrote:
>
> On Wed, Dec 11, 2019 at 17:04:01 +0000, Pete Batard wrote:
> > From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>
> Oops - sorry, I missed the From: - thanks for the poke.
>
> Yeah, I'm good with this change:
> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
>
Thanks
Pushed as e9395c53ba2c..479821a9677c
> > This is an improvement of e9db04631b63574b090aeab769cc47dcb75a29f7
> > where we inhibit serial output of MMIO mapped UARTs to all runtime
> > drivers rather than just RTC, as other drivers may crash the OS
> > just the same.
> >
> > Also add it to the Pi 4 platform where it was missing altogether.
> >
> > Signed-off-by: Pete Batard <pete@akeo.ie>
> > ---
> > Platform/RaspberryPi/RPi3/RPi3.dsc | 3 ++-
> > Platform/RaspberryPi/RPi4/RPi4.dsc | 2 ++
> > 2 files changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/Platform/RaspberryPi/RPi3/RPi3.dsc b/Platform/RaspberryPi/RPi3/RPi3.dsc
> > index 945baa5021f8..2368b04f40a4 100644
> > --- a/Platform/RaspberryPi/RPi3/RPi3.dsc
> > +++ b/Platform/RaspberryPi/RPi3/RPi3.dsc
> > @@ -200,6 +200,8 @@ [LibraryClasses.common.UEFI_DRIVER]
> > MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
> >
> > [LibraryClasses.common.DXE_RUNTIME_DRIVER]
> > + # Runtime debug messages may crash an OS unless serial output to MMIO mapped UARTs is inhibited
> > + DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
> > MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
> > CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
> > EfiResetSystemLib|Platform/RaspberryPi/Library/ResetLib/ResetLib.inf
> > @@ -505,7 +507,6 @@ [Components.common]
> > EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
> > EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
> > <LibraryClasses>
> > - DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
> > RealTimeClockLib|EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
> > }
> > EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
> > diff --git a/Platform/RaspberryPi/RPi4/RPi4.dsc b/Platform/RaspberryPi/RPi4/RPi4.dsc
> > index 3764d1b3d794..03139e57a8db 100644
> > --- a/Platform/RaspberryPi/RPi4/RPi4.dsc
> > +++ b/Platform/RaspberryPi/RPi4/RPi4.dsc
> > @@ -202,6 +202,8 @@ [LibraryClasses.common.UEFI_DRIVER]
> > MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
> >
> > [LibraryClasses.common.DXE_RUNTIME_DRIVER]
> > + # Runtime debug messages may crash an OS unless serial output to MMIO mapped UARTs is inhibited
> > + DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
> > MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
> > CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
> > EfiResetSystemLib|Platform/RaspberryPi/Library/ResetLib/ResetLib.inf
> > --
> > 2.21.0.windows.1
> >
prev parent reply other threads:[~2019-12-19 17:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-11 17:04 [edk2-platforms][PATCH 1/1] Platform/RPi: Inhibit serial output for all runtime drivers Pete Batard
2019-12-16 15:11 ` Leif Lindholm
2019-12-19 17:26 ` Ard Biesheuvel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKv+Gu-r54jph8oSfdzH7SzRwDEqN4nDCPaAckgjsXCiu2JCxQ@mail.gmail.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox