From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6D07B7803D7 for ; Tue, 20 Feb 2024 15:31:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=8ZKRl53FGjVKvWSnmie6COMoH8CFUPgjojPjFP5rYyY=; 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1708443095; v=1; b=He7OwbE5Z+wJoiWh/umPO6yw/TZdj5KvEh/5LdX9h1WtoQd+5m4o5sbr59P22SVW6nsKhkKy aRzZ4Efk8q7begEcjvMKuQvfOVgSWWNZtqz+ZmDFklM0HjJ3bBFYuXWYabpG7vjOjFTElFqJB2R ZCHnCc92Miqg6vPmqMH843jo= X-Received: by 127.0.0.2 with SMTP id xiy7YY7687511x29d36euFMi; Tue, 20 Feb 2024 07:31:35 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mx.groups.io with SMTP id smtpd.web11.11696.1708431089015360651 for ; Tue, 20 Feb 2024 04:11:29 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="24987111" X-IronPort-AV: E=Sophos;i="6.06,172,1705392000"; d="scan'208";a="24987111" X-Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2024 04:11:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,172,1705392000"; d="scan'208";a="9378210" X-Received: from unknown (HELO aborzesz-Virtual-Machine.igk.intel.com) ([10.91.48.212]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2024 04:11:18 -0800 From: "Borzeszkowski, Alan" To: devel@edk2.groups.io Cc: mateusz.albecki@intel.com, zhichao.gao@intel.com, ray.ni@intel.com, Alan Borzeszkowski Subject: [edk2-devel] [PATCH 0/1] EDK2 Serial driver UART debug print enablement Date: Tue, 20 Feb 2024 13:10:44 +0100 Message-Id: <20240220121045.2149320-1-alan.borzeszkowski@intel.com> 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 Reply-To: devel@edk2.groups.io,alan.borzeszkowski@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: s3vreTeY9BhfqrfqRInVYvc1x7686176AA= 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=20140610 header.b=He7OwbE5; 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 66.175.222.108 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. To achieve that, we need to load Serial driver shortly after DXE Core is in= voked. Otherwise, this driver will load at BDS which omits the purpose of debug prints in DXE. Separate .= inf file is created to introduce minimal changes to current implementation. Change was tested on Intel platform, debug prints appeared shortly after DX= E phase begun and console redirection works. https://github.com/tianocore/edk2/pull/5386 Alan Borzeszkowski (1): MdeModulePkg: Load Serial driver earlier in DXE .../PciSioSerialDxe/PciSioSerialDxeEarly.inf | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) 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 (#115658): https://edk2.groups.io/g/devel/message/115658 Mute This Topic: https://groups.io/mt/104469290/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-