From: "Leif Lindholm" <leif.lindholm@linaro.org>
To: Pete Batard <pete@akeo.ie>
Cc: devel@edk2.groups.io, ard.biesheuvel@linaro.org, philmd@redhat.com
Subject: Re: [edk2-platforms][PATCH 1/1] Platform/RPi: Inhibit serial output for all runtime drivers
Date: Mon, 16 Dec 2019 15:11:43 +0000 [thread overview]
Message-ID: <20191216151143.GJ7359@bivouac.eciton.net> (raw)
In-Reply-To: <20191211170401.7336-1-pete@akeo.ie>
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>
> 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
>
next prev parent reply other threads:[~2019-12-16 15:11 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 [this message]
2019-12-19 17:26 ` Ard Biesheuvel
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=20191216151143.GJ7359@bivouac.eciton.net \
--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