From patchwork Wed Feb 7 08:22:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 127123 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp241636ljc; Wed, 7 Feb 2018 00:25:12 -0800 (PST) X-Google-Smtp-Source: AH8x2252WSAQHRKSsSpMPe9t4bjSostOpJ3KwKKyBr/XcQ7+RezZrN7KwM9o79GaHlF1uo/gWWV6 X-Received: by 10.99.117.26 with SMTP id q26mr4242020pgc.321.1517991912188; Wed, 07 Feb 2018 00:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517991912; cv=none; d=google.com; s=arc-20160816; b=LTgRaxkWSU+QkaCWLXWfnIAKUK9APp3DewvQ6GUdq4Ud7Kjbs0lXmwQOgaOHpQ51Hy g65AqbgUA2sFg0F/h+uBXa3Ii5nEW/zx+T9tS7aL3rwPZZt4e8NVpfTA+TjrWYv+TPvQ cLUCbAtJZP9/+t62MQH12f/59blHFr0NzdGAyDEtFDIQqFo4VAsaL9tWbE9wuOCav6t/ 2e533Apbh4BpqWgykne24jCok7qLfCUdfBBL267tU+7sExOftDD5jZTxvjg5h/MRt8aP VEFgfmFd6Y4ElOoS1+LvLUDtoSweknu4PsekINvJCNZ5b/8zHJVDjukbuTRF5HZt0wJ7 Uj5A== 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=pYvy9e11RY1vSJpdZPNykJNr6MpSrEZoJT25+i0ykaY=; b=xDJoaJ1uKozTv5aIKLoiteV8GFPgAATj15YX5jnIOr0DWRbcQ4oexd6ZngeiTBOgy9 /ssoZZyADwn72PtDndBHKYz6f4yofBiQtIexqpj7koOI9NJ5Bo96YcYZQMpc4NnWE1YH 0/8s17jRzvEqG5/VvPC5L76xOMc3d1OVGtVtBvLpmz4HXRjl4wVW7R128ZGxW+G+7ScP Ue0YDl8aLhqMuU/7wbJW3uT8lD+ckKh8lYf/oGlwV3Sog/zrGjZcJfxBKMC4Xqm488qa co0CnDqo/Hc5kOcxjE8WB4stnhSkP6ZlcF4j1l9p1jV4aCLy1tz6RBc+3h2VDuAM9MRY ttUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=i1Y/GPUc; 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 r75si773096pfb.302.2018.02.07.00.25.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 00:25:12 -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=i1Y/GPUc; 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 F0B9D21F0DA79; Wed, 7 Feb 2018 00:19:27 -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:c01::244; helo=mail-pl0-x244.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x244.google.com (mail-pl0-x244.google.com [IPv6:2607:f8b0:400e:c01::244]) (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 45E8021F0DA6F for ; Wed, 7 Feb 2018 00:19:26 -0800 (PST) Received: by mail-pl0-x244.google.com with SMTP id g18so39922plo.7 for ; Wed, 07 Feb 2018 00:25:09 -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=2HaAwX9/c2G+YXTCHzD2U7eRW5aiDuapm4bcLjfPENU=; b=i1Y/GPUc7eF6iBlX/K99KTkY8MxQ157IaZJf7nrReqYKDu61JJ1e4Nu25KcH0lecc6 2jI7m1+DbaJ3hGfviNI7DsIg3Viqe30Pe+vb5tjszNsvjqHt2A7OXnwzshN+EZtDvLja E11ynRxUcyYbs5bDvwDM36i4FCxR5H/yu+Vag= 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=2HaAwX9/c2G+YXTCHzD2U7eRW5aiDuapm4bcLjfPENU=; b=S010LYlaBH3eZZZ6yUvt+U+M56Fa87SZnmfS+WUN/E0b+ZkG1kzDoH+57DjrEyIAPw XTdAH62v7xD0yQiJSSc277SxmCZpMCxZpd9Abuc/++XWlivzu7NknfyxPZhEweK7pH00 5JM7jC1Tsix+2O6wwlOsFaoGS84GyHGj0H++E4SvhdLyg2vpdyfd+KvFLRm0izlY6HXt cdZrfYrdS++nrWJEoOPfnOmKfrNqU0Jj5ia9ONJt3HKfJcsJTy7TxMJwClpGANMmWxP1 ZW0Dycz7CjUKsPOMjv6mO/h+0OZtiuBKokLuIPmD9XfAEpPZU+uFVaXz+nVxnoxCWRMv MMgw== X-Gm-Message-State: APf1xPBwVjaFjkasBggEmvGjAOpC4QOzPSUoEcs6f6QQ7zvXOh4worwX VQ25lpvgaXFbXF3XiejTNhgnGg== X-Received: by 2002:a17:902:49:: with SMTP id 67-v6mr5145688pla.424.1517991909695; Wed, 07 Feb 2018 00:25:09 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id k127sm1984999pga.92.2018.02.07.00.24.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Feb 2018 00:25:09 -0800 (PST) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Wed, 7 Feb 2018 16:22:42 +0800 Message-Id: <1517991769-5485-9-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517991769-5485-1-git-send-email-heyi.guo@linaro.org> References: <1517991769-5485-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2-platforms v4 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, john.garry@huawei.com, 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 Reviewed-by: Leif Lindholm Reviewed-by: Ard Biesheuvel --- 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,