From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 022FA74003A for ; Tue, 7 May 2024 13:10:50 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ae9Frt+o8ph2XdqAbXfdS9PWyOzoKEhyoTleipyEKD4=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240206; t=1715087449; v=1; b=gTbpVdJaq9t0bbCOCX2dRDM++0jA4hexal5a5lVqMj8eLqswIL2jyHFGTODj+UPU26Suf1Rq kM/pKmcdIR/c11r5LHuFc7RaFgSHXsSJMzqPhIDtRNHMH5ayqdH3nU90/5jUR8tytmtXNW56UuF DyZaeLHx+ZQTd3hXdPDLeRtgfCc9ciuNx6bIAjOwJFrVm31BwsqfQX8EiTtTpAWhDdD825andoT Im8x+IKxEyVYxmYaHXf1Ty2UsTd7IywskeIvrHTe9NznYu/PZtlkKtd8F7j9p9KxUFZ9nRh5Kpf aPgbWx3H2FNJxzBGlrUz0GVs3Yvxb2RgWdoDZFdedJf1Q== X-Received: by 127.0.0.2 with SMTP id TD3ZYY7687511xAmB7sqhUJ5; Tue, 07 May 2024 06:10:49 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mx.groups.io with SMTP id smtpd.web11.11169.1715087448544707013 for ; Tue, 07 May 2024 06:10:48 -0700 X-CSE-ConnectionGUID: 3RKocFMaQW2pm0qr5AGTCA== X-CSE-MsgGUID: d/sitVKoSVqDqfjajlZ3zA== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="21548933" X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="21548933" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 06:10:48 -0700 X-CSE-ConnectionGUID: OssNNNZ9TXyt275trCStEg== X-CSE-MsgGUID: wfZeY5s1TCOhfjCg61GMKA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="59373575" X-Received: from unknown (HELO aborzesz-Virtual-Machine.igk.intel.com) ([10.91.48.212]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 06:10:48 -0700 From: "Borzeszkowski, Alan" To: devel@edk2.groups.io Cc: Alan Borzeszkowski Subject: [edk2-devel] [PATCH 0/1] MdeModulePkg: Load Serial driver in early DXE Date: Tue, 7 May 2024 15:09:39 +0200 Message-Id: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 07 May 2024 06:10:48 -0700 Resent-From: alan.borzeszkowski@intel.com Reply-To: devel@edk2.groups.io,alan.borzeszkowski@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: EJKKpEklQ49RaanpidUS7Eb9x7686176AA= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=gTbpVdJa; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io 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 thi= s driver in early DXE, new driver entrypoint with separate .inf file was added. This way, Serial d= river can be treated as DXE driver. Also, several smaller changes were made in Serial.c and SerialIo.c to enabl= e debug prints. Change was tested on Intel platform, debug prints appeared shortly after DX= E 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/PciSioSerialDxeEar= ly.inf --=20 2.34.1 --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydz= ial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-31= 6 | Kapital zakladowy 200.000 PLN. Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu usta= wy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w trans= akcjach handlowych. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata= i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wi= adomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiek= olwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). If you are not the intended recipient= , please contact the sender and delete all copies; any review or distributi= on by others is strictly prohibited. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-