From patchwork Fri Jan 26 08:00:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 125919 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp155371ljd; Fri, 26 Jan 2018 00:03:27 -0800 (PST) X-Google-Smtp-Source: AH8x224itDqux2v5X0cyNaWhJxOT5+02sxMql2uiXRaSC1z2K6LqH6a0vSjtHGItaP88NG5s2kz9 X-Received: by 10.98.135.76 with SMTP id i73mr18176909pfe.183.1516953807004; Fri, 26 Jan 2018 00:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516953806; cv=none; d=google.com; s=arc-20160816; b=oR+V1ysOa0ihK7K9VPLzieRwxLsfnF3VolizgOxpDJ+IK5i4vSFb3wHRTqckGR7lWI uFg+6wGFKFPz75r6NE5kpKiwJ9xS16csPYnfkFs6LXvN++rKoeIZiYnmXIFDbSF4phTz ZX0ptH/Iw2BmcTVX2Lf2f1LWY6ARmd2+Ek7+Lvnr6snuYDMdZuWSWJP7a9QG+xhrECiJ rGIBrt0sVhwZB/zEnDd1zJ/vwkyZRHKhgvSZTigi4rRIFMGsGYh2AGA7s5omXmEEbJiT q8Fz0cOt3TD4+VjIPfQVeHCDn5S+Y9ckvppPHpzf317ksdKMLoltD6VUtcCg+fBehAeu 312g== 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=fxj076Qtf/73TXhlTNgo541uDj6EqMgbRiOMKDZdvcw=; b=Y4DBSrqMs/ym3xipFYZphcV3EcXkuWy1dK5TTBUeaXqPq2fL2/A1MyUoJrm0mEOXaD ugSRD/tBNA1db7PSkCJp6bDLX9qbu7zHak5urG0oTG6TjJxg4TM5Umqj7VjQoYe2i3dw jKACSiRjsbC80mmqaFSPZh9sYA0EKGiLO9F25ppZpeMmi2gqLaHvbNI9dRz+lxRzw+9T v882tGSpOunfuRs9cGASBdPlXbT2QXts099v4/yAUQTLK9DCebXv0pN/T7xQxXPL3/+w 6ap2BHVj8ctAR0hCJLm2/EwjvPyrjziK+CWBuPP+oHg1PgmTX4dvMJPDgHUxW+BnwYW/ dhSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gfWE71B3; 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 f20-v6si3382044plj.727.2018.01.26.00.03.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jan 2018 00:03:26 -0800 (PST) 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=gfWE71B3; 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 3499E2222C251; Thu, 25 Jan 2018 23:57:56 -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:400e:c00::241; helo=mail-pf0-x241.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (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 DA65D2222C22F for ; Thu, 25 Jan 2018 23:57:53 -0800 (PST) Received: by mail-pf0-x241.google.com with SMTP id t5so7795180pfi.0 for ; Fri, 26 Jan 2018 00:03:24 -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=kDN/PSWeRPjuXjc+8yoOJjSBMx+vIJDb8t8CMAMFV5E=; b=gfWE71B36gUxkSOxDqaduGb4y159X8agv8f4sGzaNy4j2qbALyWiHzytSblSU/NsLL ojNLHO5lPLzGxoeqqb5MOz69AKWVN7oz/kjJoOYQ/1Q3TPxnfbkt+LgSsY4AhnHvZHFx h4MnephyYRzTwLlhf3J3TnSoRX5UDvzhjD+Gw= 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=kDN/PSWeRPjuXjc+8yoOJjSBMx+vIJDb8t8CMAMFV5E=; b=A3cZ+Mqi6ddfGMMLXZ1VQTHxW/QNk1b3h5S2Bt4HR9n6Ki2/eV9JzhV6paYDHnC1Jl MTOlvXFwBL8B1BrGkmAKJc/kReQIbvoynA649lYFWOGqO/PYzrjdYu4kf1nujcCxvD0S IWnlAarl3WZkLNeKuFJWpUMxKEjxjN7l48V2S+WajcplLpxqLwqgk2/oqrIiRtjd1yZH x97UytNYB6tD6gNr1pkvOQqb76gQ5MhJv1ib8QAOuTzHadeUrQ9jMLS2RhXWe7aT5eZP kut1HxvbSw7rlpsWHfw1MzaSCJSzj6N/WFkR6sD83EythfaRBMJ5p3dqJ34Ouy+TUG0b y/yA== X-Gm-Message-State: AKwxyteJerSAgxtNJNl3ePEAlKq6pLDpIvB8ciBCa7EFX8DDj7RJa9ZQ eVUOtI+T58B/AnFdvd5DRZw8dA== X-Received: by 10.98.224.205 with SMTP id d74mr18809187pfm.56.1516953803916; Fri, 26 Jan 2018 00:03:23 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id k71sm18406091pfg.52.2018.01.26.00.03.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jan 2018 00:03:22 -0800 (PST) From: Ming Huang X-Google-Original-From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Fri, 26 Jan 2018 16:00:43 +0800 Message-Id: <1516953650-57980-9-git-send-email-huangming23@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516953650-57980-1-git-send-email-huangming23@huawei.com> References: <1516953650-57980-1-git-send-email-huangming23@huawei.com> Subject: [edk2] [PATCH edk2-platforms v2 08/15] Hilisicon: Change DmaLib to CoherentDmaLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, ard.biesheuvel@linaro.org, zhangjinsong2@huawei.com, Wang Yue , Heyi Guo , wanghuiqiang@huawei.com, guoheyi@huawei.com, waip23@126.com, mengfanrong@huawei.com, huangdaode@hisilicon.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Unify all D0x(include D06 in further) to cache coherent DmaLib. This can improve boot speed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wang Yue Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D05/D05.dsc | 2 +- Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c | 2 +- Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Hisilicon/D05/D05.dsc b/Platform/Hisilicon/D05/D05.dsc index 6e44041..dfe19b0 100644 --- a/Platform/Hisilicon/D05/D05.dsc +++ b/Platform/Hisilicon/D05/D05.dsc @@ -614,7 +614,7 @@ Platform/Hisilicon/D03/Drivers/PciPlatform/PciPlatform.inf Silicon/Hisilicon/Drivers/PciHostBridgeDxe/PciHostBridgeDxe.inf { - DmaLib|EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf + DmaLib|EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf NULL|Platform/Hisilicon/D05/Library/PlatformPciLib/PlatformPciLib.inf } diff --git a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c index 706eb12..63de50b 100644 --- a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c +++ b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c @@ -26,7 +26,7 @@ EhciVirtualPciIoInitialize ( { return RegisterNonDiscoverableMmioDevice ( NonDiscoverableDeviceTypeEhci, - NonDiscoverableDeviceDmaTypeNonCoherent, + NonDiscoverableDeviceDmaTypeCoherent, NULL, NULL, 1, diff --git a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.c b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.c index 2310ee4..3e272f8 100644 --- a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.c +++ b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.c @@ -27,7 +27,6 @@ ExitBootServicesEventSmmu ( IN VOID *Context ) { - SmmuConfigForOS (); DEBUG((EFI_D_INFO,"SMMU ExitBootServicesEvent\n")); } @@ -43,7 +42,7 @@ IoInitDxeEntry ( (VOID) EfiSerdesInitWrap (); - SmmuConfigForBios (); + SmmuConfigForOS (); Status = gBS->CreateEvent ( EVT_SIGNAL_EXIT_BOOT_SERVICES,