From patchwork Fri Feb 2 12:05:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 126647 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp576718ljc; Fri, 2 Feb 2018 04:06:19 -0800 (PST) X-Google-Smtp-Source: AH8x227MPfRUnhVzlTa74PBXdl2CPIOXkTd3oHl8iH1P33rtqAZ6wlqmqw0orrg6BoZCnnMVPsrr X-Received: by 10.99.116.9 with SMTP id p9mr1195159pgc.437.1517573178886; Fri, 02 Feb 2018 04:06:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517573178; cv=none; d=google.com; s=arc-20160816; b=A5rz2faMHZz+7KdQr7NBeqhFd+gXl4QHDuMrPb3hQ36jzze0KjrQqFDWE/yYGV1saI gokHb1C8+GMzE0HV+Sw3YNzJMUGv5/Ui3uVeTo8V6HNCnQw/jKsjTQx20wf6TMSwC4lc /oTm5QSvGDyEF8uA95/5qWwYPI10xQzk2zZ8IwgY9Kmi05i1hqVekcdlcTjYAYy3T2Tx 6p/Xk+F7ykzfoPIbukZbbBH3o8MqQrIOeeYUpwPcSY0B69lU46M+U5WqJvF6HXoV7GKp wE+1i2A31JCNCjVn4SYB6xrh9HRcmxIDa9UQdAOjB0O+LGT4OBbnj6KjF5A18cZ959tm SFig== 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=q2qcWkacnssFyj7EzsB35jqpuV6AVGwMUJY3VcM8DTUJSoeYoK5K2rFEdmtBF/0+82 8t/9dAQF4uLE6Y9Xlaw8SDgA03dKoMQxWMhHE8nBIZW5Abyr1dWqR2DnAWr2yzeBNWsY t4rrqkuRe/YoRc7k/8c1PCiPWbUmiPqcCr1fr73bZXeC+8V7nxRKh96qSt6nmYvLf1s0 T9569p8uXILx67bRobppSDzviXohZyjU0G6VS+YVeQwti9PMhb/glEB7SK/hcDzBDBf8 TZYMwxeLvzFeD+2+wmQ+h1HXJmUNsF2Ibdl+xtRc/7yRVTxXXt6zVS9ggwoJzdbB7b6P V6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lxv5VBUl; 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 o13si1360373pgc.508.2018.02.02.04.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 04:06:18 -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=Lxv5VBUl; 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 19E07223AF825; Fri, 2 Feb 2018 04:00:40 -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 8C1F922393624 for ; Fri, 2 Feb 2018 04:00:38 -0800 (PST) Received: by mail-pl0-x244.google.com with SMTP id f4so6017173plr.10 for ; Fri, 02 Feb 2018 04:06:16 -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=Lxv5VBUl771YR6TNOStEvgxIYIIcsRImE9RpsVOz8sc3CKiiF8xmy0+hAgFgVtvVip WFtkUlFi7QDuc75S7CEf9qE1c+aoVEaL+HseXhpUWuUjeo+Zj8s2Mhj7/KklRSyvAQua yqM8v6NfvhEuX6GlzuyDmYcqvS6Ia3is+Hr7o= 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=K5r1GVe6PnkveUvzgJFpedy5TM9E8/AlQHfEDdC/zJy2NCwLI4Oskrk6Yf7XDMauee Ysm+5ftJetKW1iYSIoSV7TguLuCDlX05u4lp325LM6vD5BDBsN/4oVjGnp9ZOp/2x1L9 AlGE4DS3Gkv3jlqjdyAa8yDjf8b0TCK8cPs7aECn2JTt3UhRJhL3b81/CvgAT63hrnpr 6oFMLC7oN2u+F95vPxbAeH5IzKHOeNrKioHJj8VIrwJWZNFnkX7OUn1ZVm9aSREs0U9I 1iJAJiNb7YM9bPgSOUXKap0Eb3OWPfKlrnb59L1YWzIZH6SIjKNjG8NeaqqlnEAIOJkD d8sg== X-Gm-Message-State: AKwxyteCPPbsjEV0GspJz6Ry5/g3VTNDSXYW9o8NhDygyJFlTotGDd5E 3wYVaams6vo8Cs8GRXAroHtbz/DJeeg= X-Received: by 2002:a17:902:2c83:: with SMTP id n3-v6mr10953571plb.227.1517573176633; Fri, 02 Feb 2018 04:06:16 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id b8sm3673047pff.31.2018.02.02.04.06.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Feb 2018 04:06:16 -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: Fri, 2 Feb 2018 20:05:36 +0800 Message-Id: <1517573143-11451-9-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517573143-11451-1-git-send-email-heyi.guo@linaro.org> References: <1517573143-11451-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 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,