From patchwork Mon May 28 14:40: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: 137083 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2908891lji; Mon, 28 May 2018 07:40:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZonVgF4sJ4c8PrNm456y5lfWU+hEXxIjdf3Mnw7j+KGP59kjE8Nd5mAGjsYvpswUACZM6+D X-Received: by 2002:a17:902:5a4b:: with SMTP id f11-v6mr13844172plm.85.1527518438564; Mon, 28 May 2018 07:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527518438; cv=none; d=google.com; s=arc-20160816; b=KrA7vC9RMxab8rEke+dAVsd5urYGbxA27XvqSUAa/mayy10Tlhe+Ov+mAJDrW+YOkH iMwta2iVPB4QroPMP6iGnfMThxivyQLpUwctRIridGIwTQ1PvhbU56Q0Ip+sVwWZfuC3 DA8Y6O6FbHjGcUjXMpaNLByW3vAhlLTHClQAil7KFqguOSONbNRNCkARp7Gi6kq1oaAU ckrled+jDxiJ0i8EwgYmpD0+SsIfT5azdVR2N682w2EBpgM3jhreHL3bafRk8rnweLp+ Z01W6yJQHxlNwCBtZHFArMFInskEIm51QD6LSduz7D0IaHd8M3i1LZ5AOKu2LH05JA77 gBUQ== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Vw/IdDoR1+zlmNBBsCkH1mTjbrK2w/MQr8HazPIKEDI=; b=jZBeS7aVeFnsq/PfJn6FM0TnMU/gB5taqJjxhaPRezBoKNEOPpXKUYfHsrq2HrknRo DB+7q826Kzqm1lVQ4U0NsWy4WURWcxQDqulpIxKu3PRvjAp2tJ402eEDr3BSUspJhaEK zhw0ApJzN3hDlg2ojedtOteiq1upriOT3pfLF9L+cpSlhhyIUn0MWbZOqwpe7aEjIBuc z2g0OAeEYTm3fFWdWMELRqwdH5PAvBlwmeqjRAGEAEj40JZczXTkQZOyoDJmpEfF0lKq pKXDPB6q51wg48l2xLXFStdjYGSQ2l7E1Y/VUg/vbhCdQ8lez6PEoxrbYQu/p0KZq/zH /Gxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aBmRk6n5; 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 z13-v6si30953312pfc.128.2018.05.28.07.40.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 07:40:38 -0700 (PDT) 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=aBmRk6n5; 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 479D1203B9918; Mon, 28 May 2018 07:40:36 -0700 (PDT) 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:c09::22c; helo=mail-wm0-x22c.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 92D322083797D for ; Mon, 28 May 2018 07:40:34 -0700 (PDT) Received: by mail-wm0-x22c.google.com with SMTP id l1-v6so32744590wmb.2 for ; Mon, 28 May 2018 07:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LtaOyF5EP/jWZpzn3YTKYoEiPlyVmdLg+3R5UYQFlvY=; b=aBmRk6n56g80dHgb+gYy5c+VUSzfAZwOjLdC2mXsCZZJbXjJbvfQQ6vbBcMTO9rTLw nVBIdrZWuMc9mBCOi5iuF8wdQM8OBxNZ5udf/CiPBB5xHJKNSbnIQQFft7mYcGnbkDSB iS+aUDvVOVG93gYV1N24LkIdspKKoWax5Jgi0= 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:in-reply-to :references; bh=LtaOyF5EP/jWZpzn3YTKYoEiPlyVmdLg+3R5UYQFlvY=; b=ukezqfoQNgk9hiQMkPmxfS44+ej2DetmW2cMOZ4Kp09Eirf/wgOvTixb14JgwUSw0g U5HnPOeadE0rwr44mtNiCfOF3HfVhSNmkO6CC0qt0uAYypo66jmLoOSQXwz1GCEnQ0h7 7nO6clcMaGz3dqNhBHokc6VmpzGTWVP8+BFlAXt1cZUbBg4QSJgbvzcBigt+k2cFDc/+ Fg+rRWFWkBHSl1p4MpMiMJceBttloE6VVMBL/jmK++yInJmBL5nKb61wCBE2+EmIqK6e 5O5OJj/fyRV36CG+2GCxSLrSWjyiGUcOGc42CukMNWCKKQfIzRw5bJMV/AdBVwb6gEtd TGGw== X-Gm-Message-State: ALKqPwdWKgybyanDx8XDWZOQd2yeNsGzpZJR3AikMDIeb25QhBYqBvsl +njDgoYEQUI5ezrcRflfChJFCkD4NNM= X-Received: by 2002:a1c:d106:: with SMTP id i6-v6mr3999036wmg.1.1527518432902; Mon, 28 May 2018 07:40:32 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id y18-v6sm4177938wrl.53.2018.05.28.07.40.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 07:40:32 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 28 May 2018 16:40:21 +0200 Message-Id: <20180528144024.10809-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528144024.10809-1-ard.biesheuvel@linaro.org> References: <20180528144024.10809-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v3 2/5] ArmVirtPkg/PlatformBootManagerLib: add missing report status code call X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Consumers of status code reports may rely on a status code to be reported when the ReadyToBoot event is signalled. For instance, FirmwarePerformanceDxe will fail to install the FPDT ACPI table in this case. So add the missing call. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 + ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c | 4 ++++ 2 files changed, 5 insertions(+) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf index d6c1ef95dc44..0cbc82f5d27d 100644 --- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf +++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf @@ -53,6 +53,7 @@ [LibraryClasses] PrintLib QemuBootOrderLib QemuFwCfgLib + ReportStatusCodeLib UefiBootManagerLib UefiBootServicesTableLib UefiLib diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c b/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c index ac47d21e71c8..7b59f57eb19f 100644 --- a/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c +++ b/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -1072,6 +1073,9 @@ TryRunningQemuKernel ( // EfiSignalEventReadyToBoot(); + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, + (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT)); + // // Start the image. //