From patchwork Fri Jul 28 06:40:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Huang X-Patchwork-Id: 9867881 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 58F886038C for ; Fri, 28 Jul 2017 06:42:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C618288A1 for ; Fri, 28 Jul 2017 06:42:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4158F288A6; Fri, 28 Jul 2017 06:42:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA88E288A1 for ; Fri, 28 Jul 2017 06:42:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=rYBAFv82kkby8yXyI09R7ppONF2tD7iB80uFjdeG0uk=; b=llP LNCV17f8zKZ5B8Df+laX/pJTAJft1L3MOM2NM7sEdZkQcj69qtUiS5MmXpqpq30JMUXGbRiLIC+MN 3Cy+NkNA2xs0KSoFkclG3weZR7ReSYfCAZ2SsdkeI87Q7771NqRNK7U9j8DQ4p4Vq+gAL7Pd02BoE DUxadppiSPF+5Gz6U8aMtX/M06PubZUoW5qDv1K/z+2+J1zklhg2mS0mHgiv8aOyfjcQnJ+s99gnY n96PnAUdSzqeMYsHt3ZRRYIv+Z1RUnZ1YUUYzgXL2oC/LVZqEn5wwRTa+2MY2MNHA/9eaocWWKWBJ Jl5nqV4gUrXWNBLDlrsQVhzSVG25gtQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dayyR-0006iV-K5; Fri, 28 Jul 2017 06:42:11 +0000 Received: from regular1.263xmail.com ([211.150.99.141]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dayyA-00060h-BV; Fri, 28 Jul 2017 06:41:56 +0000 Received: from huangtao?rock-chips.com (unknown [192.168.165.105]) by regular1.263xmail.com (Postfix) with ESMTP id 2567A8E; Fri, 28 Jul 2017 14:41:22 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from smtp.263.net (sg-smtp01.263.net [54.255.195.220]) by smtp.263.net (Postfix) with ESMTP id AA3073FE; Fri, 28 Jul 2017 14:41:20 +0800 (CST) Received: from huangtao (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 5D5D6DF30C; Fri, 28 Jul 2017 14:41:19 +0800 (CST) X-RL-SENDER: huangtao@rock-chips.com X-FST-TO: huangtao@rock-chips.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: huangtao@rock-chips.com X-UNIQUE-TAG: <00ba60934749f70625d7004dd3a0ff83> X-ATTACHMENT-NUM: 0 X-SENDER: huangtao@rock-chips.com X-DNS-TYPE: 0 Received: from huangtao (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 188750NYU3F; Fri, 28 Jul 2017 14:41:22 +0800 (CST) From: Tao Huang To: Heiko Stuebner Subject: [PATCH] ARM: rockchip: enable ZONE_DMA for non 64-bit capable peripherals Date: Fri, 28 Jul 2017 14:40:02 +0800 Message-Id: <1501224002-9966-1-git-send-email-huangtao@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170727_234154_623426_E87AEF2D X-CRM114-Status: UNSURE ( 5.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Huang , linux-rockchip@lists.infradead.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Most IP cores on ARM Rockchip platforms can only address 32 bits of physical memory for DMA. Thus ZONE_DMA should be enabled when LPAE is activated. Signed-off-by: Tao Huang --- arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index 9ad84cd01ba0..fafd3d7f9f8c 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -16,6 +16,7 @@ config ARCH_ROCKCHIP select ROCKCHIP_TIMER select ARM_GLOBAL_TIMER select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK + select ZONE_DMA if ARM_LPAE help Support for Rockchip's Cortex-A9 Single-to-Quad-Core-SoCs containing the RK2928, RK30xx and RK31xx series.