From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=45.249.212.190; helo=huawei.com; envelope-from=guoheyi@huawei.com; receiver=edk2-devel@lists.01.org Received: from huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 D7D09201B0439 for ; Thu, 28 Feb 2019 00:06:35 -0800 (PST) Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 20670B14B13170BA29F0; Thu, 28 Feb 2019 16:06:33 +0800 (CST) Received: from linux-fhAnjn.huawei.com (10.175.104.222) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.408.0; Thu, 28 Feb 2019 16:06:24 +0800 From: Heyi Guo To: CC: , Jian J Wang , Hao Wu , Laszlo Ersek , Ard Biesheuvel , Julien Grall Date: Thu, 28 Feb 2019 16:05:09 +0800 Message-ID: <1551341112-21645-1-git-send-email-guoheyi@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.104.222] X-CFilter-Loop: Reflected Subject: [RFC 0/3] Enable runtime serial debug for ArmVirtQemu X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 X-List-Received-Date: Thu, 28 Feb 2019 08:06:36 -0000 Content-Type: text/plain Serial port output is useful when debugging UEFI runtime services in OS runtime. The patches are trying to provide a handy method to enable runtime serial port debug for ArmVirtQemu. Cc: Jian J Wang Cc: Hao Wu Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Julien Grall Heyi Guo (3): MdeModulePkg/StatusCode: Add PCD to enable runtime serial debug ArmVirtPkg: add runtime instance of FdtPL011SerialPortLib ArmVirtQemu: enable runtime debug by build flag ArmVirtPkg/ArmVirt.dsc.inc | 6 ++ ArmVirtPkg/ArmVirtQemu.dsc | 13 +++ ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 5 + ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.c | 29 ++++-- ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.h | 27 +++++ ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf | 3 + ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibCommon.c | 27 +++++ ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.c | 104 ++++++++++++++++++++ ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.inf | 58 +++++++++++ MdeModulePkg/MdeModulePkg.dec | 6 ++ MdeModulePkg/MdeModulePkg.uni | 6 ++ MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.c | 2 +- MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf | 7 +- 13 files changed, 279 insertions(+), 14 deletions(-) create mode 100644 ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.h create mode 100644 ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibCommon.c create mode 100644 ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.c create mode 100644 ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.inf -- 1.8.3.1