public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Borzeszkowski, Alan" <alan.borzeszkowski@intel.com>
To: devel@edk2.groups.io
Cc: Alan Borzeszkowski <alan.borzeszkowski@intel.com>
Subject: [edk2-devel] [PATCH 0/1] MdeModulePkg: Load Serial driver in early DXE
Date: Tue,  7 May 2024 15:09:39 +0200	[thread overview]
Message-ID: <cover.1715087162.git.alan.borzeszkowski@intel.com> (raw)

On Intel platforms, we use LPSS UART for debug prints in DXE phase. Current implementation involves using custom driver.
In order to reduce code maintenance cost and flash usage, we want to switch to EDK2 Serial driver.
Given that PciSioSerialDxe is a UEFI driver and for purposes of loading this driver in early DXE,
new driver entrypoint with separate .inf file was added. This way, Serial driver can be treated as DXE driver.
Also, several smaller changes were made in Serial.c and SerialIo.c to enable debug prints.

Change was tested on Intel platform, debug prints appeared shortly after DXE phase begun.
https://github.com/tianocore/edk2/pull/5542

Alan Borzeszkowski (1):
  MdeModulePkg: Load Serial driver in early DXE

 .../PciSioSerialDxe/PciSioSerialDxeEarly.inf  |  81 ++++++++
 MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c | 184 ++++++++++++++----
 .../Bus/Pci/PciSioSerialDxe/SerialIo.c        |  16 +-
 MdeModulePkg/MdeModulePkg.dsc                 |   1 +
 4 files changed, 245 insertions(+), 37 deletions(-)
 create mode 100644 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxeEarly.inf

-- 
2.34.1

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118643): https://edk2.groups.io/g/devel/message/118643
Mute This Topic: https://groups.io/mt/105959578/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



             reply	other threads:[~2024-05-07 13:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07 13:09 Borzeszkowski, Alan [this message]
2024-05-07 13:09 ` [edk2-devel] [PATCH 1/1] MdeModulePkg: Load Serial driver in early DXE Borzeszkowski, Alan
2024-05-08  3:27   ` Ni, Ray
2024-05-08 13:24     ` Borzeszkowski, Alan
2024-05-10  3:18       ` Ni, Ray
2024-05-10 15:03         ` Borzeszkowski, Alan

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=cover.1715087162.git.alan.borzeszkowski@intel.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