From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DC82A223C1769 for ; Tue, 20 Feb 2018 02:59:50 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id n7so13157140wrn.5 for ; Tue, 20 Feb 2018 03:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Gn1hjk0v/wkcTWAgfik2Xcm7L26lkPjU/iGBT23XheY=; b=LuqsQm9ljVZ+uprh6gGSEUCppo29+Liv+vHCAVHOekFkAkNDQmuhSO9As3daGjjFlX WycYVcdj9y10e2xuk/qhso8JUcqSC5hOo+aL9dqqvskLbyRYknvNbVUMbS8fJ3xA+sk3 9BVJ9jO6zFpxmS1S3Em1p54iTaRAgacuZZYXw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Gn1hjk0v/wkcTWAgfik2Xcm7L26lkPjU/iGBT23XheY=; b=Td70c37yHVrRid1xtjGmso9d+pvIXBmEVFBmo8C6b5Lm6cwySG6yxwOvSPxqZN1WXI VYnJnfcHTzOq3ly63HLmPIwTwFJ70YuJBsc29728byzQLFrtTwYSmqMp07GNZqtsGl40 pHy8go2pwq2c8+IrCf7tu3VPnYtcCT8W+EsaadcOGiz4xM0VYgrNVnrgNwRJPoK+SjiK nLYjxMWfOdVT4ZtR2jAPQmxU3FSXCdRa32HAGnV4ITNtT9M5kD/yRwbo7huCF1wWyux+ UCBEoSwKH/XWDqW7Pb/cgelirVwV6XoZtGromAdgmUMIX83ER0vc0LyiulMk5IGEgxCV D5WA== X-Gm-Message-State: APf1xPCV7BTEWfa404LaRwLMqa0Z0WfVXZqbiGxdSv582tNX0NBNTHI1 uk+IP4SjtCtsB7M1X/2+XyqqwZKcljg= X-Google-Smtp-Source: AH8x225zbsCswILxcZ5mPBWNnpnklNl+A5mAGaA6yAQd2UB5fX3dYS7qlYQ15mcD2poyrJL55puzVw== X-Received: by 10.223.139.133 with SMTP id o5mr16763849wra.178.1519124746064; Tue, 20 Feb 2018 03:05:46 -0800 (PST) Received: from localhost.localdomain ([105.149.187.179]) by smtp.gmail.com with ESMTPSA id u198sm7417343wmu.44.2018.02.20.03.05.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 03:05:44 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: ruiyu.ni@intel.com, michael.d.kinney@intel.com, liming.gao@intel.com, leif.lindholm@linaro.org, lersek@redhat.com, star.zeng@intel.com, afish@apple.com, Ard Biesheuvel Date: Tue, 20 Feb 2018 11:05:21 +0000 Message-Id: <20180220110524.9050-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [PATCH 0/3] Create UART DebugLib implementation for runtime drivers 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: Tue, 20 Feb 2018 10:59:51 -0000 Commit 4bf95a9f361e ("MdeModulePkg/ResetSystemRuntimeDxe: Add more debug message") broke the DEBUG build for systems using a MMIO mapped UART for DEBUG output. Instead of patching it up locally, let's fix this issue once and for all, by creating a UART DebugLib implementation that does the right thing by default, and blacklisting the BASE version for use by DXE_RUNTIME_DRIVER modules. Ard Biesheuvel (3): MdePkg: introduce DxeRuntimeDebugLibSerialPort ArmVirtPkg: switch to DXE runtime version of DebugLib where appropriate MdePkg/BaseDebugLibSerialPort: blacklist for use by DXE runtime drivers ArmVirtPkg/ArmVirt.dsc.inc | 3 + MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf | 2 +- MdePkg/Library/DxeRuntimeDebugLibSerialPort/DebugLib.c | 342 ++++++++++++++++++++ MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf | 46 +++ MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.uni | 21 ++ 5 files changed, 413 insertions(+), 1 deletion(-) create mode 100644 MdePkg/Library/DxeRuntimeDebugLibSerialPort/DebugLib.c create mode 100644 MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf create mode 100644 MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.uni -- 2.11.0