From patchwork Tue May 22 14:08:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 136549 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1682913lji; Tue, 22 May 2018 07:09:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpR1j2DtDY8fXTJ52vPHPHxOkZN7tn2dD4JoE1x6pF4zzMXXNlx36CFh66d7LID5Dq5uhk2 X-Received: by 2002:a17:902:5a88:: with SMTP id r8-v6mr17146338pli.78.1526998145190; Tue, 22 May 2018 07:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526998145; cv=none; d=google.com; s=arc-20160816; b=QX6i4fLwfcwTYb4Mb1U+FG55aWOPZWPk+XGuhokbWy8IK0bKhX0owtYlJxhitU8DXb t0iQuGwFv1RRJlbRRZdJuu4svQRneW2Ylfm2oKHo2iPp27YLJcilCklY3d8zbk/U6hPb cbTpO/2xzelBEj95cNUEy0Pk0744TFP+v9Mmn2mKk7SI5pke7eulSHw0+Iitq8tLlfAD T1hdM58MrNMtFjbTO8rjh0WtySrk4wFooj58fZa2aB9yKG8HzV+ZXaFdSCMPvXGUcNP1 KzxSECQpWkl8sbEpPQIKuvhYJ3MxkN+If6lsRcHcZZsIBHAqeN9MNgFT30k1OM6pD4FB i5sg== 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=z2kHimSS/4Mw/po8WLZemifHj9S3MhCM/Qu9V3Ji8n8=; b=IQyEymXly8RSIAwy2ZPW5FQ72SXmt44J9COpfmwNfszvYo4/0YJjctinEqm8DvkFcC sIzd9CQfbm6EoS8f6bqzRUExgAEBxa75QdohoT2GPK1qMrbI4ZosrzgH79amlifqn+Pv hvSL6jWrv1u1dkcsqi5cuSAiswbkyUa0xmYbhvv0GrgiNQo71F7Xf2qcMTxJVZKlvdNr ll4RURfA3CRx4Eyo7jbb/eCcOHnhPnEdoaLMsUNw5gB/z3CFTr3h3ZzaWiDoUHGancal IfCe6/8WoStjDtrOaqlYsMZpZhDvVF+lRESGlgEIDPBLydnK/cIHITKAdcS4vLtj87l5 TA6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hMasWY9i; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id q11-v6si16121023pll.15.2018.05.22.07.09.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 07:09:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hMasWY9i; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 35C62203BA4E2; Tue, 22 May 2018 07:09:04 -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::236; helo=mail-wm0-x236.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 D6131203B992C for ; Tue, 22 May 2018 07:09:02 -0700 (PDT) Received: by mail-wm0-x236.google.com with SMTP id j5-v6so85562wme.5 for ; Tue, 22 May 2018 07:09:02 -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=Z3jDPMon68EBAQk3Xxxlb6MZD02G7CN6D6MQ9V4ylFg=; b=hMasWY9i1y7hHO08+Ewxqhk2JEgLbBWO+qO6gSrAh0GSpWpG3j3aOxsa1AaDocTBqY O2xE9lTNMzOjtrHufF+IqK8Q+CG8FecMs+rNgC3iUH626a46Ic8u1uILUj/693z5fSw0 EMn9xJgOq3X6zH/dJPcuhAiT8MmIGJgZFPTas= 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=Z3jDPMon68EBAQk3Xxxlb6MZD02G7CN6D6MQ9V4ylFg=; b=cp3869NB2nRtzRYicNA7QLreRVbLfGYOWeP9gBVfnaH2NWbEEimrzY5PPP/TB7k9XD zhH3EHdHNm9xbguCYwXMmlG/N/RKpT+St7WsS2nBb05wiRqkCjfYb2vr6cgQU+y3cO31 TW8GHnf7KwYmJVW4ZwB5WHYcYbeO7+tP6xSNcZaN9y6jAAW5fX20m3JHlP1limJXFElH 0cSxZpOI2r89Ap4vOmk7H+QVtedigVxCC2dg7S2nqPlyArgwFpiXHK+gpzouaFvChosX 46YSJu9FEZqswEdTkujEog9AFOdSVeDKPi7ZMNvimX4xFSxEbdORVApY/fxgP1oaTZYz u/pQ== X-Gm-Message-State: ALKqPwft0U7Z364BWqn+EeeQj2ufKFIVtWiYnShcS7DTfuMsdPiuTPl6 1qeFN+7j3yw/tNLY6b9gMjYQMGAWGCo= X-Received: by 2002:a1c:da13:: with SMTP id r19-v6mr1492007wmg.2.1526998140375; Tue, 22 May 2018 07:09:00 -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.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 07:08:59 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 22 May 2018 16:08:46 +0200 Message-Id: <20180522140850.30369-3-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 2/6] 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: 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 --- 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 Reviewed-by: Laszlo Ersek 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. //