From patchwork Tue Feb 20 11:05:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 128865 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4509365ljc; Tue, 20 Feb 2018 03:05:52 -0800 (PST) X-Google-Smtp-Source: AH8x226OB7xuy/auWTvS5pEpVC/eeX9YUqy8AsOMv4XUDgI9gMYB4bnJOMRH7a8oYvgFavoC5kdZ X-Received: by 10.99.143.13 with SMTP id n13mr1263051pgd.105.1519124752297; Tue, 20 Feb 2018 03:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519124752; cv=none; d=google.com; s=arc-20160816; b=EnNvv0DI8tvN5CKLQtc7TFwugXObhyKkfq52BK7CWxu5NaPGxJFvOz/Gq1n6iw/xm1 LC1w553mXdi3l/cBi6IdlwCLYHO/wKNkud5yAhLla74Z8OwXUCHEW9ft07c2U4fCs5Av egLu3GJB752z89fx/DIHNJ21Fd0a1uDLYb6fN9rPsYo3zup5H708D32q13fKRAq4gFfU 0SjMBe9IK6qEANuPgPl/rvMbW8z76K92M4dsSpzDNuSRfq2aMQZqpQO6qWHmfnA8fegB hqXjWb4Ch48de8eCbCKHzZALXBXRwWy6qztJ2GjvP3Tn3zigX/i691YDDJiMmGLzFS/2 ZO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=7267nu+BM7ONVcYGyVub33z0jx1qpx66SdhxMierHmg=; b=EW8i89tnAEn/BlAClO36dpYALIJ1CdVTF8gjDuLNnXLQPsMc4bJpy6LJen5azA5SaN VSuTay0DqatgnjtwlZIZjuX6BqqVJVGOH2Vt/YHRHrNhQ96KwpXLy58/pWs11G1AcAp4 8G4DzedqQ3eJKeYjSRGc2X+h4CQvYVQPDi48tAWXRwhpc4+6wK/Hk8GmiYU4K1n9rxjN HHp1Wg0aBFNZm7FFA9gRk8CobaU9g/Sj/jEhMV3b2TIDjG1Ebgecam2WpY0k5iaE/ufq TFOqoOufsBYwPRf4t6qrjTtArf/z8lNGedK65im6q7GOljQ1RvSJx3brrRrxg64/ime8 ZLhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LuqsQm9l; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id u9si1705934pgv.304.2018.02.20.03.05.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 03:05:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LuqsQm9l; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C5A53223C1780; Tue, 20 Feb 2018 02:59:52 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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-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 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: [edk2] [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: , Cc: ruiyu.ni@intel.com, Ard Biesheuvel , afish@apple.com, leif.lindholm@linaro.org, liming.gao@intel.com, michael.d.kinney@intel.com, lersek@redhat.com, star.zeng@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel