From patchwork Thu May 24 09:09:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 136722 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1938294lji; Thu, 24 May 2018 02:09:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr10hJyDFftKRnUjD5mr/MUB9ilG0hh/0Gbous5P5s58fIiShxuy5tOHoxfgAosorJx6TW5 X-Received: by 2002:a17:902:680c:: with SMTP id h12-v6mr6618200plk.113.1527152998054; Thu, 24 May 2018 02:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527152998; cv=none; d=google.com; s=arc-20160816; b=RRequebITMp/7mwz86A03dh2kOqJtBausmy1IWYYEhcE9dLnNKnN2osbG6IAch3mOZ qAifI8/Ih4gV/Nqd1fNZeQS0kExzPnQTUEjIOIKXXcb9dgKLQ684FK460hjpXCcTZUVH /LGuk0zb6taI/BcyoKeLqLfxI13FIyNNEF9VSMuquzRWKjQZsh+2SCZ+B0FMNy9sy3PN 9za1URRn+LsskLmuITjqstLCP/ypozRw/1kN1k6Z3gRDte2dFLr4/8eFT4+Z+3Dv8l7m Onu0HX4oZLltWnw7yorgrMyaGDyFNMwOv08nupqy+aGUZkSmTLfPtnszNKy9Ji6M8vqt qOUA== 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=WFvmIPjh9KMkX7dZMY4p5vhSythorOkPnPzUZmLznQxp9QI9n+1VmQq0K5WhZxraZw aRC4Q/npFy0PmFQTSMaE+Xsjd8Ql6gBWBoTukfaxVYvNrP6Ca5XWuVE1YFGEJ1iCWrRb B2G2SG+3uOtZrYHDBp7mSjovZ5BstNr68ThgoUgPzFyPiNoT4ADsIYc6lYnz3CAUaXEj Cx989Wu3nHkiO6Isr/w+Xu/441EQKA+E6CbTLwtSL9DmPn9LMsxokVOvQigX6WTpqTob LElCEOOi4D84bDh6jRVCoTKIf7Pqa2E0ejcTHdqUuh2qrmmNUAaG0wsy2oAr/g7Bu/of yfbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hXcbFuC5; 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 a69-v6si20931346pli.391.2018.05.24.02.09.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 02:09:58 -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=hXcbFuC5; 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 B998F2083798A; Thu, 24 May 2018 02:09:56 -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::232; helo=mail-wr0-x232.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x232.google.com (mail-wr0-x232.google.com [IPv6:2a00:1450:400c:c0c::232]) (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 406D1207E6376 for ; Thu, 24 May 2018 02:09:55 -0700 (PDT) Received: by mail-wr0-x232.google.com with SMTP id w18-v6so1691454wrn.6 for ; Thu, 24 May 2018 02:09:55 -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=hXcbFuC5altCW7zdK1po0mS7nZoT8nWQOcnZaCT7/Ih0mgW/hyhq4wSFWa1foKfGEd 6qNbtN1F0q2GzjftftJ8SynW8uMjRWMN3XfCeWqj4gVZ0Ccccc0LIY4brhOb/gPu99WY jFocYGBzRNYrxHcCQUvYj/aUPlFfwFrhv6xUY= 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=XI7xaWoCtI+INZ7V4/3nBVcIY+ExqyeF6Hdta9TLutkMwWv8uKivgdl9Wet86lL3CZ nMlXx9qXHrxnMMAwWcLNgbxO0oCeP9JAc+2FJs5kCn+UrTe2GvA+0UArVQjpVLJpy81I EV1IIbDAjgsmvS5tOkYcZBDitq7yKsdrXVCEMKKjHthyeed1rCQXdheHZ484APbwpcbC ogxLxEbF2cR3WH8bHNNy7XjokrI8RELtOFqZGP/E0lxZnaXeuw6zFmhdX+fDgcb/LFrF 6Su/e/2Xbv3zPEw7zfP7mWtGPYtfSCmQ8DLbfrNWiUISJOnZWnzE6YoJQ5MQdrOElppo 9B1Q== X-Gm-Message-State: ALKqPwcww31JGC6xC8bmaksIAPqBkpheDc2T9zOJ2MKCs3XJbPRLVnV5 eXiwiulsBuhwigWwvzwGjQakAGWfsms= X-Received: by 2002:adf:e542:: with SMTP id z2-v6mr4838598wrm.111.1527152993544; Thu, 24 May 2018 02:09:53 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id x16-v6sm8505467wmc.2.2018.05.24.02.09.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 02:09:52 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 24 May 2018 11:09:42 +0200 Message-Id: <20180524090945.10289-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524090945.10289-1-ard.biesheuvel@linaro.org> References: <20180524090945.10289-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v2 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: 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 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. //