From patchwork Mon May 28 14:40:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 137082 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2908840lji; Mon, 28 May 2018 07:40:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqtLkXLCxVs1PtU/RvTiY4S+EsQkwRXBCRG/cNvBSEDAs7vk4GKdRtWtUi2zTOVukfIlBIj X-Received: by 2002:aa7:80c6:: with SMTP id a6-v6mr13686077pfn.120.1527518435946; Mon, 28 May 2018 07:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527518435; cv=none; d=google.com; s=arc-20160816; b=bAAqPNhtSejvmwLz+fA5Ip9TD48T+Jeczg2LHq3iAxNZqDoA+3szdzFQ6fWvyK3nMW 0TZWkOexGPfnzwrK2mw/uaOJ5DvlIk9otytvckUwH53zEN2HXjT6lC68Mo8CpPqvMD88 jU9Rtl/WMj0qClb2iZDxgFYY/JHqs8xX+tYUzJsySBtNYrYcDmKd2W+2tjXaCS6qJAbz YxWeKUh78koZ5f3aob3TgTv3WIl6vfAR3278FkWRbpO7jGMZJX/KztWPnrtPkrGht9OJ ldLXi2E+uM8PrfsmZ9A5r3DSsGTXdn1jMLysd+z09rRY3f+JGUGWNDjn5rn1U7STKnpJ MaPg== 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=wLmWp0Y8quDbIzEGD0Vc41Y9kLTnat0R1iX9LVSaK0I=; b=HYBl8zHjhv0kX5Xj/z8SSQRYfmMZ7TWGvYTsXJdyyHMwTrg/3X6rstz91g4eNiGtvk uMKdz+fIuwXO7g31Dnk/S1fgKEmpBtDO8j/u4PBWYWbNSEQAWzFW5t9zGlO5qOwGDaDx XCjNcUZENUCk7E19R4qJjnNGIW/RUwNvjA0K1XAfTRmay9ps6VEkoU0HHzeOCVyH8yJS pyUPVi08Hm3hQIg0xhs5TXIKuEpVK5QWnagp1gO5IBRSM1TGAP0r1SF1yyYh+PjJgiat I+/2sdxWFEG/Rckja5ApUmB25yU7g8BXyx71Mi3vm9eFj32xz8Rdu05U4va5VbriH59c Kv2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VGD3LGnS; 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 f85-v6si30204339pfj.125.2018.05.28.07.40.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 07:40:35 -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=VGD3LGnS; 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 17D25203B9933; Mon, 28 May 2018 07:40:35 -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 6010020977877 for ; Mon, 28 May 2018 07:40:33 -0700 (PDT) Received: by mail-wm0-x236.google.com with SMTP id m129-v6so32613772wmb.3 for ; Mon, 28 May 2018 07:40:33 -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=p7ups/9ZdYsiMQSjbYeXAzS9Lyu9fSQlANLgL0VADt8=; b=VGD3LGnS291x6TPafxiBk5JgiYblTP6I6sg/tjSBm/i7fcNlPmpcANrGhdGnVMVARp xzwuy2/LzaViALSeD2SOM+3sL9ttuA23MyO8k+5c/CYZU3EWHYh9Df2ZKMHgqHSEyfvr S3tFvmZytvcRYry8h/nhcFgxrFB3Y6FWzdyi0= 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=p7ups/9ZdYsiMQSjbYeXAzS9Lyu9fSQlANLgL0VADt8=; b=tCmlRBqoIfaaFQ03BgoLurUqFy8E8ydF2H4BDwuIiQ4GhJrK1nwF9tVDsq84EBxIJo IIM8KgQ24sSuYvojOJ1L3uxNGo0GSF7pfRVY2XWwVIJqO3kuaDV5OWgpocryF9PJPd98 GRuUPGIstrzeJ1wqz31rx64nI/tDiOQbCy+u8mf0NPGQcISAwR1gJs2P4XJJgVCu7a5a sATe3D5PBMSN6TwS+cdHRjcyjwepLymXHMpBIKHUI7abNqxL3nzucl65j7sBnb15sNvF xTiyygcPdNRt7LhD7QU7Ow094M6LpB3biCSy6dNeykR/it1PpazQbl7zOPqaoloilady jBsw== X-Gm-Message-State: ALKqPwcUUqa9QfxtTbSlbdIesnoENjQ0ITgnyS2O0+k5wCsNU7nSsMlj hUqA7Kf2kHtakU0HPBYInvg/AffZqy0= X-Received: by 2002:a1c:ca:: with SMTP id 193-v6mr7909058wma.99.1527518431344; Mon, 28 May 2018 07:40:31 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 07:40:30 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 28 May 2018 16:40:20 +0200 Message-Id: <20180528144024.10809-2-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 1/5] 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: 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 --- 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 diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf index 4b72c44bcf0a..d355d0440efd 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf +++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf @@ -56,6 +56,7 @@ [LibraryClasses] QemuFwCfgS3Lib LoadLinuxLib QemuBootOrderLib + ReportStatusCodeLib UefiLib Tcg2PhysicalPresenceLib 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: