From patchwork Mon Nov 21 11:16:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 83205 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp1466218obn; Mon, 21 Nov 2016 03:17:40 -0800 (PST) X-Received: by 10.55.160.194 with SMTP id j185mr14501370qke.315.1479727060449; Mon, 21 Nov 2016 03:17:40 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q185si13111867qke.330.2016.11.21.03.17.40; Mon, 21 Nov 2016 03:17:40 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 03F0B60CBB; Mon, 21 Nov 2016 11:17:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 19D0260A3B; Mon, 21 Nov 2016 11:17:36 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E345760A3F; Mon, 21 Nov 2016 11:17:33 +0000 (UTC) Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com [74.125.83.48]) by lists.linaro.org (Postfix) with ESMTPS id D82E960A3A for ; Mon, 21 Nov 2016 11:17:32 +0000 (UTC) Received: by mail-pg0-f48.google.com with SMTP id f188so129343908pgc.3 for ; Mon, 21 Nov 2016 03:17:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+zncYoQMXq8htDzc8q03xqq+NHwikocRo8nFk0T3+V4=; b=EFPxMEA/zQyetlTTF3JhKhGNjXCRaQWhUsRoMP1iBToYEMhIX0MLj3Jn/pS7/6ADng jEi5PSXNEnxa4lwvmEXD4pyBiPsRA7lKfpPACjdd8MWn5WlVG2xP0pzYgqkMdoOyuW2r 7RgNTZDVG3bOx1mwdS3jirHEH0SUDlauChe/MYu7E1p91DM2aSgLdtA5g9piCXa9G6Dp AopOrfU4B9vPgcek6sUcd1fcYOawOG1ogW/AhHKy7hgNE+yurFuYZmrSaDBJGajmbdDd QplMwAJ0IwRMPRIjTbsvRW5sRpWw+IfnC9DYbh6bzNJOsFFxGZnRShgsvwGAN9I4+JxW Wkyg== X-Gm-Message-State: AKaTC0114UIE7F7q1fb7Xq+HQnhhNKLrnrpSr16G9PfEVcrL+hZYHJ8HCMorrn08Zcc54fpEaRk= X-Received: by 10.98.217.67 with SMTP id s64mr17302198pfg.66.1479727051964; Mon, 21 Nov 2016 03:17:31 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id y15sm18829191pgc.43.2016.11.21.03.17.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 03:17:30 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Mon, 21 Nov 2016 19:16:27 +0800 Message-Id: <1479726987-68802-1-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [Linaro-uefi] [PATCH] Hisilicon: fix PXE boot fail issue X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" The images not from FV are treated as 3rd party images, and will be dispatched after EndOfDxe event due to EDK2 commit 8be37a5cee, so we signal a EndOfDxe event or the bootloader application will not be executed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo Reviewed-by: Ard Biesheuvel --- Chips/Hisilicon/Library/PlatformIntelBdsLib/IntelBdsPlatform.c | 2 ++ Chips/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf | 1 + 2 files changed, 3 insertions(+) diff --git a/Chips/Hisilicon/Library/PlatformIntelBdsLib/IntelBdsPlatform.c b/Chips/Hisilicon/Library/PlatformIntelBdsLib/IntelBdsPlatform.c index e6aaf61..58f44fe 100644 --- a/Chips/Hisilicon/Library/PlatformIntelBdsLib/IntelBdsPlatform.c +++ b/Chips/Hisilicon/Library/PlatformIntelBdsLib/IntelBdsPlatform.c @@ -157,6 +157,8 @@ PlatformBdsInit ( VOID ) { + //Signal EndofDxe Event + EfiEventGroupSignal(&gEfiEndOfDxeEventGroupGuid); } diff --git a/Chips/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf b/Chips/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf index 236e314..baceb57 100644 --- a/Chips/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf +++ b/Chips/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf @@ -67,6 +67,7 @@ gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut [Guids] + gEfiEndOfDxeEventGroupGuid gEfiFileInfoGuid gEfiFileSystemInfoGuid gEfiFileSystemVolumeLabelInfoIdGuid