From patchwork Tue May 22 14:08:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 136548 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1682833lji; Tue, 22 May 2018 07:09:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrRJK8R0yalDWE76X8WQlWo1OHBqipe45FlbmawIeBcIWc32ciIlvFhflblqyOfmDLsNALR X-Received: by 2002:a63:734f:: with SMTP id d15-v6mr8207258pgn.149.1526998141401; Tue, 22 May 2018 07:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526998141; cv=none; d=google.com; s=arc-20160816; b=UciDIY1nKugZ3jwxNALevsbLAkJ4f8VNTs/ht07kzTRSxuNQU8R8qBv9eFTy313Wnh N7uDBPDrhoNaMkjtfSiDzWtQlr5iOI48o94x8VL4G3L17CNMVWME8YlebNYfavxB+XkG v84TV6+NZHdDy42jYYQewVajJxN/2ERrTM8OyOpA6sw0u3dAmqWiREw9m6Kf2WaK/K4n sEiaQ90zBqMbbfvDEjytORyW81gamvycYPg5co6i3nx1RDSMuNiwsotN8gEdfegc82i1 HqrU2dtKK6O8eGIyUqQMtHlnMpF0EdGNBctP6baoNs3GIB2oPtJ50Ryf0M4E63omFNPo bvAw== 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=/chJFNBHNiXhgTeSDSLlAKE/CfTf9/xSMU8TQS/CQEg=; b=HFm4R0/3wFuoH3dPZ7r/BklIXEnNYbS1TN9vE+SGrqn+y/Wq/aWazTNacD36u7x+P5 AtmK033txmNr6VllfoDN1K27JvP9AedKgkNx5Vl+Ocxn8ZdYA1bOe9rGuMwmcnrGf65H oBiTyWGhgCsnUmF8fUu0bRTeC6zUU/kstrGkj60SSDav72Nd8aBut3arN93TV+t9LJ8A wFR4suRV4Tjrewq7p8o94PmVdaToWXm9xFIqAkqpZ3kFFvJKszlHrVaRJpAKd1XK3vnC 053jat3c5Aif4DzU84Wfs+6V7Umhu2ju7edxQz7JcpKqKQnE7MJd8av/gPd1yNekNjs6 Gf4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=it8BVsvr; 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 j12-v6si12855801pgf.222.2018.05.22.07.09.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 07:09:01 -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=it8BVsvr; 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 097BA203BA4EB; Tue, 22 May 2018 07:09:01 -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:c0c::233; helo=mail-wr0-x233.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::233]) (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 AC4E3203B992C for ; Tue, 22 May 2018 07:08:59 -0700 (PDT) Received: by mail-wr0-x233.google.com with SMTP id i14-v6so20473386wre.2 for ; Tue, 22 May 2018 07:08:59 -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=ushk7N92icX3jm01x7NKo2+E8evrRWmoMV8mc3LM30s=; b=it8BVsvr1ujKkVP5Qvo5E2GBQ+pao0NWC58vBOKDkW326Cut5qCyezvXu2lLB5M4VG xq3Ccf804onUbv5Vvv8UBpv24v3QrpM8+75Ex3jgd90O54dJuO3JkwbWgx7y4lSTm/Js E0ZethJ912i3p38jEQwG7D0+Ys2esD65zeNVg= 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=ushk7N92icX3jm01x7NKo2+E8evrRWmoMV8mc3LM30s=; b=F3JK+IhIiM0lb2uux1Seps2dEvfD03TwI2JAQqyeqDw8b5vswddQSc8Wu+Ibwifl26 k1gHULM2LniMOrF3zMh75tw/xPWjGBZVXRokCDUaN2rUlJalKOplNbvQn2KRn9zHFFGp h9J2c4f/G6/tw2aKgU9slfC8Hk6cka9fu1u5Vjy5zosmhA6YV98eoRupr+AutJvX9Y/g mQqj0WpfsUqWOb2N0upf6A0Cx+sSZLtYiisEf/59J6Juwxef3vHJqRSOGmN8TEaG7K2a O1+jUaXbJZH0eSoIsRZavPTGQMwbd+qMPDfZ2bnR/GLzYOSSgZL5yS6Srw+U7MHhwcjH sY+A== X-Gm-Message-State: ALKqPwfm8803q0e8JDfPDIOnxNy8q8/XdyQN4u661NKFG/EVOZlQ1hPA qudipk6aHt/8nubYaqZK6sWbQEUeNSk= X-Received: by 2002:adf:88e8:: with SMTP id g37-v6mr17362725wrg.62.1526998137983; Tue, 22 May 2018 07:08:57 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id r6-v6sm17755545wrg.73.2018.05.22.07.08.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 07:08:57 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 22 May 2018 16:08:45 +0200 Message-Id: <20180522140850.30369-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180522140850.30369-1-ard.biesheuvel@linaro.org> References: <20180522140850.30369-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 1/6] OvmfPkg/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: Eric Dong , Ard Biesheuvel , Liming Gao , Dandan Bi , Leif Lindholm , Michael D Kinney , Laszlo Ersek , Star Zeng 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 --- OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 + OvmfPkg/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 Reviewed-by: Laszlo Ersek diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf index 27789b7377bc..f10b68424b91 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf +++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf @@ -55,6 +55,7 @@ [LibraryClasses] QemuFwCfgS3Lib LoadLinuxLib QemuBootOrderLib + ReportStatusCodeLib UefiLib [Pcd] diff --git a/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c b/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c index ef728dfdeb60..f20df9533fda 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -149,6 +150,9 @@ TryRunningQemuKernel ( // EfiSignalEventReadyToBoot(); + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, + (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT)); + Status = LoadLinux (KernelBuf, SetupBuf); FreeAndReturn: