From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1164822402E03 for ; Thu, 1 Mar 2018 18:03:12 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2018 18:09:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,409,1515484800"; d="scan'208";a="21302086" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga007.fm.intel.com with ESMTP; 01 Mar 2018 18:09:20 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 1 Mar 2018 18:09:15 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 1 Mar 2018 18:09:15 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0319.002; Fri, 2 Mar 2018 10:09:14 +0800 From: "Zeng, Star" To: Ard Biesheuvel , "edk2-devel@lists.01.org" CC: "lersek@redhat.com" , "leif.lindholm@linaro.org" , "heyi.guo@linaro.org" , "Dong, Eric" , "Kinney, Michael D" , "Gao, Liming" , "Zeng, Star" Thread-Topic: [PATCH 0/4] implement runtime debug output protocl Thread-Index: AQHTsYjPUzrS083F6kewGpa/yOg3oaO8MnAA Date: Fri, 2 Mar 2018 02:09:14 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103BA462FA@shsmsx102.ccr.corp.intel.com> References: <20180301181142.16817-1-ard.biesheuvel@linaro.org> In-Reply-To: <20180301181142.16817-1-ard.biesheuvel@linaro.org> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/4] implement runtime debug output protocl X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 02:03:12 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sorry, I did not follow up the thread for DxeRuntimeDebugLibSerialPort. For this thread, do you think it is feasible below for the case? Use PeiDxeDebugLibReportStatusCode -> RuntimeDxeReportStatusCodeLib -> Repo= rtStatusCodeRouterRuntimeDxe ReportStatusCodeRouterRuntimeDxe will produce gEfiRscHandlerProtocolGuid pr= otocol. Like StatusCodeHandlerRuntimeDxe, consumer of gEfiRscHandlerProtocolGuid pr= otocol can register handler to show debug message and etc. Thanks, Star -----Original Message----- From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org]=20 Sent: Friday, March 2, 2018 2:12 AM To: edk2-devel@lists.01.org Cc: lersek@redhat.com; leif.lindholm@linaro.org; heyi.guo@linaro.org; Zeng,= Star ; Dong, Eric ; Kinney, Mich= ael D ; Gao, Liming ; Ard= Biesheuvel Subject: [PATCH 0/4] implement runtime debug output protocl As discussed on list, MMIO based UARTs cannot be used at runtime without ta= king special precautions to register the MMIO region and switch to the virt= ual address when accessing it at runtime. So extend the recently introduced DxeRuntimeDebugLibSerialPort library by i= nvoking the proposed RuntimeDebugOutput protocol at runtime if one is avail= able, and providing an implementation of this protocol for PL011. Ard Biesheuvel (4): MdePkg: move DxeRuntimeDebugLibSerialPort to MdeModulePkg MdeModulePkg: introduce runtime debug output protocol MdeModulePkg/DxeRuntimeDebugLibSerialPort: invoke RuntimeDebugOutputProtocol ArmPlatformPkg: add PL011 UART runtime debug driver ArmPlatformPkg/Drivers/PL011RuntimeDebugOutputDxe/PL011RuntimeDebugOutputD= xe.c | 144 ++++++++++++++++++ ArmPlatformPkg/Drivers/PL011RuntimeDebugOutputDxe/PL011RuntimeDebugOutputD= xe.inf | 62 ++++++++ ArmVirtPkg/ArmVirt.dsc.inc = | 2 +- MdeModulePkg/Include/Protocol/RuntimeDebugOutput.h = | 58 ++++++++ {MdePkg =3D> MdeModulePkg}/Library/DxeRuntimeDebugLibSerialPort/DebugLib.c= | 155 +++++++++++++++++--- {MdePkg =3D> MdeModulePkg}/Library/DxeRuntimeDebugLibSerialPort/DxeRuntime= DebugLibSerialPort.inf | 5 + {MdePkg =3D> MdeModulePkg}/Library/DxeRuntimeDebugLibSerialPort/DxeRuntime= DebugLibSerialPort.uni | 0 MdeModulePkg/MdeModulePkg.dec = | 4 + 8 files changed, 412 insertions(+), 18 deletions(-) create mode 100644 Ar= mPlatformPkg/Drivers/PL011RuntimeDebugOutputDxe/PL011RuntimeDebugOutputDxe.= c create mode 100644 ArmPlatformPkg/Drivers/PL011RuntimeDebugOutputDxe/PL011= RuntimeDebugOutputDxe.inf create mode 100644 MdeModulePkg/Include/Protocol/RuntimeDebugOutput.h rename {MdePkg =3D> MdeModulePkg}/Library/DxeRuntimeDebugLibSerialPort/Deb= ugLib.c (70%) rename {MdePkg =3D> MdeModulePkg}/Library/DxeRuntimeDebugLib= SerialPort/DxeRuntimeDebugLibSerialPort.inf (88%) rename {MdePkg =3D> MdeM= odulePkg}/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort= .uni (100%) -- 2.11.0