From patchwork Wed Mar 20 08:08:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 160636 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp518547jad; Wed, 20 Mar 2019 01:09:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxor22+sJa54nXL9FMJR/b/tgcdiMK+/Qj6+8vdtrblICqSuZmLEDHfo3t/LIlhNRRLz7mz X-Received: by 2002:a17:902:2bc9:: with SMTP id l67mr6575476plb.102.1553069344787; Wed, 20 Mar 2019 01:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553069344; cv=none; d=google.com; s=arc-20160816; b=lA5N+MZ9vuRoU4dcLppgTLSRl5/W6AZFiyJepvPXxe5/2NiCeKMBWEJYOH8IMu5VvY 5H01TeNEUuvgUyojSx2qRBMlZO5IX89UPwEVVqshqNKmIGKYBZ4aRk5NOJMrdKwOpVdv iKe8ZmCpx2uu3jVCn6xg2Qv+MhbpUPrsksii59jxs+6x9iWefWgCFrekFoDaYFdbODx9 5DyPeWkCeFYOOhWNHJPdbTW569cmRInd1ceTJZBlkfsBNosWRtoGnvuIOZFRVIInXK5U 4xQriFFe3WxqBQjvCjb7ueF5yhhpayHgDIiWkbJVfM/gGFwe5rgd8HC1VD2/K/w6svtE Vk4Q== 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=Rcb5ycaoqTm3S6w4u6n8BqkCpsrX6Yauxoi/jx24m0bCfYDo6ZLiAJrUu2JyP0w5xH KKsMF3le4kqusF9okscl/PgNUwgbxN6gkvWyGIqUzNMfZIdjekooSwNeJGNCqeDFH4P2 mPEXCHTBalQ0ae22QchTuNlEP32F4dVxZVkRbsQUUvGQl+sq4QCaJdQUA3XhNaJtb5Kn FEIwZAMrSkmIqQSkG5asoDBPrvxiKIXd+5kOYcx121yBa4I51l2qoA1AUWZBtsP2gByZ W5RiwFBmyNimpDpcX/ONEV1vAQ0aVYBL7qftKi/uvV6NZW9/Ay9vveiLAr+c0ke5wcsu wfEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IOHOmU73; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id h7si1155905pfd.250.2019.03.20.01.09.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 01:09:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IOHOmU73; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 5FC32211E011B; Wed, 20 Mar 2019 01: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=2607:f8b0:4864:20::444; helo=mail-pf1-x444.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (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 D16BA211E0105 for ; Wed, 20 Mar 2019 01:09:03 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id d25so1338483pfn.8 for ; Wed, 20 Mar 2019 01:09:03 -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=5ya02E/Gn6Ahh5Zs25SSjnsdWUtDfMBLswWn/1KrjEw=; b=IOHOmU732usfzXTKkvHDbjg9L4OsuMo7LUT2nwEO/A4Sr7Ro/Rkf26hqnD1F7iTQth NChH5X3t9i45CplqpJxIDoyDQpB+M1S2oVDOU7V4r87jeYoWne31OEc1uwe6s2VnvB3U g467G74vYZmNQTw8CAHLgCe2AXww4BFByHuYbIWSE6+wfTooeqPmuUaOsTl/Ikov6bVx 8ln1DlGTpZZSHtLFMsDNEDl9yCEiJeAIR5xrLT976pUnYurHgKcMfEFclCn7mw84i2dl aWypqNqyvxMtumZjLBvEuK916VxbSvR9+GAHso7c5iob7bVOfo1vvZNn2MZ9aQmp/Hjd MAGg== 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=KWt8eXoNtHrKCr7E43R5VjIpGEW+RRR2EZ6OHlZK/KGzgFsaUUOR/DpvfKKW8aanxO 0+cAc6f1c91Zj2Rzr+fV4faTePG7RLooFJYn/I8TmoXer5ghQa96aSRUhdtmNE0AJF+B 24WUQA/Uhq0AIpc4KXhmk1TCmc1Viox3dmu4zH/7DEyPFeDlR1e5bF05IpcUt0M0Sc6w sfeRzfshCf+yVplDPl+7A3vg4oZTLSt+ffoLizFOg8T+kH0Alx19Y6K5SqClt0VlMGgS WW4kP4gx4K8dA1L/igu3RejXngvaTaQ6OCNwxfkIQcER9BQVjYaQkDni6YU637sMljTm QgVg== X-Gm-Message-State: APjAAAUCrLNBDkATZkVxPAn6J2+Lr8GYkwP0BHx5FCNF557opwSaz9U7 rM6GQksYzXJBYCZBgbYbmHa9Rg== X-Received: by 2002:a17:902:1621:: with SMTP id g30mr6900165plg.116.1553069343381; Wed, 20 Mar 2019 01:09:03 -0700 (PDT) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id f9sm1602796pfd.10.2019.03.20.01.08.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Mar 2019 01:09:02 -0700 (PDT) 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 Mar 2019 16:08:15 +0800 Message-Id: <20190320080829.52003-5-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190320080829.52003-1-ming.huang@linaro.org> References: <20190320080829.52003-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 04/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