From patchwork Wed Feb 20 07:28:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 158776 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4602064jaa; Tue, 19 Feb 2019 23:28:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IYwfdPh0P51Rax5gCFNhf4KSNYgLJpmjjarjFjemc5CiBI7I1yFWu+1porfuuALvL4jigPH X-Received: by 2002:a62:6dc7:: with SMTP id i190mr33406428pfc.166.1550647733254; Tue, 19 Feb 2019 23:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550647733; cv=none; d=google.com; s=arc-20160816; b=u82hcfAJhz3mmHWd/a3PxwHTfe6z3XdcKDCQzl9vdLyauELXE/laLzcJlRHqjR92fE OffLCr6bYxVWFgrNO91LymjawglRCzJlSNcwmUh8x2oLPEJtrnrAWtCjwqPO3b/ZS95j wMbsixhqzRR/8Tt6dDdhBLiCGukJhDJuEJf3q7hdK/bo4Zbq9hP/NHtaUoW4dfEBDSA0 Hp7xZYIrab60i4XzaqcDQlikZIR7U5ICjOURXWbZC8FZbYdCZzK0IXSmh3wHz0r3DTRG lXZSKXgO1UW6Az6bgiBB9dSf9esyD6dz8JAbXv/OD4F0f71kC0nOJb/C8avoYAStKiBE T5NA== 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; bh=s56DwPnb35mrXDkoNUxsqO6U0qvo0Bw5LGFG7LWNTDM=; b=Ly5/RxtZ8GRVjaY+vFJYAWDiNOw0U9iM2GyhLKMP8/A229rGBXGBlff6JMsfyBrbT3 LCYwOAIrBiUvv5T3TD79pPEFWRgdRSM2+xVHmCOt7EiqTlEv57kqbtWw/MIJpiDb74t6 6wJoRHCtKBr1f8AcZWWDptKqwIrBuEpQ/FEsnzapxg54e1XOkjJ9dnADWHr7bIJUEoPP r2OqwqTgHXAe5Cy/CE3vi/jnd7ZIjXK35hjpIGvQ9IKJJaScvFHCFbMf5Oik3tCy0CcJ D8eU6maJAW4Enk03j2x6Kr/zpzl+G5SabTt3OrKirhvavyAsLsrZcgYneErtt1cfev5S 1NZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=m7LvW5ZI; 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 h17si17948362pgh.495.2019.02.19.23.28.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 23:28:53 -0800 (PST) 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=m7LvW5ZI; 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 BD030211CAC8A; Tue, 19 Feb 2019 23:28:52 -0800 (PST) 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=2607:f8b0:4864:20::542; helo=mail-pg1-x542.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 655B4211BD5E6 for ; Tue, 19 Feb 2019 23:28:51 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id r11so11419547pgp.6 for ; Tue, 19 Feb 2019 23:28:51 -0800 (PST) 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=5ya02E/Gn6Ahh5Zs25SSjnsdWUtDfMBLswWn/1KrjEw=; b=m7LvW5ZImItP7Vm4QmQTbN+2y1EZIvUaJgYYEWyGGfQ6hytW00uFBpsGalEe8p7kRm YhEcM94tnZ9frS8bBaM9jvjnoFaNge0kH9p6Fxu/tXrykohXWvdeJP/j7qhitPWbz38Q qy2BotWC7sGl71amI7eY7HCA4MLpgKrEvvkbbxL7V4EaNWxKz4BR0TvwnhAjwKv6sfdC AeVvSRi5dm7f6dC+h20eCpq/JlR7aRnMn2ZQeKL1MndnsLmYkYATdL+gdI3SXVY7ixBP BA+Y1TOd496CWyUXwhkVASLbTenYOWopRQEpJgKT+U8r/3igsI4FwLBzJhCeUMjIalhk MmzQ== 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=5ya02E/Gn6Ahh5Zs25SSjnsdWUtDfMBLswWn/1KrjEw=; b=k3k5Z10PAGf2oceK1qwZu/tFR5/knf61rmgEJLFDfz1dTdWy1p59QSBsaqsPzBgAil +5tD3+8ATS6FCQ8TDN6gfUYgXqHHQIiEIkglNbuBKN8V+zJPojMBxCiKAaN8vnXXPGLj L5nkIMA53veKwNNKggBnw/kYc3EnW7PM5ozSEBtB0dRV3h8/6Iymp9I+c28L1HV+w89V CPKmb8Jjo1DQgJ27JLOfWoKcV5gxbXuA4JvYS7/D/B3WgpgoTqcGt+RTOj0iEctshm7t kQEAOLhH1XRWYAbQBJ8AR6MxsXbSXHACURn6yx4vIKOwtKyfZAtmbKD9y/0e/hmlJO8w 098w== X-Gm-Message-State: AHQUAuanJvm0zrjhalfp7GUZ+y3eplbqNG3eEVw/Xveu3oFRo0QCLDm/ 4GMI0aLXGSWLfLF9B4JE+U1D5Q== X-Received: by 2002:a63:9c1a:: with SMTP id f26mr28226256pge.381.1550647731020; Tue, 19 Feb 2019 23:28:51 -0800 (PST) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id 23sm19152969pft.187.2019.02.19.23.28.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Feb 2019 23:28:50 -0800 (PST) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Wed, 20 Feb 2019 15:28:21 +0800 Message-Id: <20190220072837.35058-3-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190220072837.35058-1-ming.huang@linaro.org> References: <20190220072837.35058-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 02/18] Hisilicon/D06: Optimize SAS driver for reducing boot time X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, john.garry@huawei.com, xiaojun2@hisilicon.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, zhangfeng56@huawei.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" SAS controller is always existed, so accessing SAS register don't depend on PciBusDxe (pci enumeration). Move the SAS module early in D06.fdf for dispatching SAS driver early. This can avoid wait in BDS normally and reduce boot time. This change is only valid after the update to SasDriverDxe in edk2-non-osi has been applied. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Platform/Hisilicon/D06/D06.fdf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.5 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Hisilicon/D06/D06.fdf b/Platform/Hisilicon/D06/D06.fdf index a937660a09e2..d495ad7f264c 100644 --- a/Platform/Hisilicon/D06/D06.fdf +++ b/Platform/Hisilicon/D06/D06.fdf @@ -165,6 +165,7 @@ [FV.FvMain] INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf INF Platform/Hisilicon/D06/Drivers/IoInitDxe/IoInitDxe.inf + INF Platform/Hisilicon/D06/Drivers/Sas/SasDxeDriver.inf # # PI DXE Drivers producing Architectural Protocols (EFI Services) # @@ -296,7 +297,6 @@ [FV.FvMain] # INF Platform/Hisilicon/D06/Drivers/Sm750Dxe/UefiSmi.inf INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf - INF Platform/Hisilicon/D06/Drivers/Sas/SasDxeDriver.inf INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf