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: 9867875 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 0935D6038C for ; Fri, 28 Jul 2017 06:42:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F04D82889F for ; Fri, 28 Jul 2017 06:42:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4EF7288A2; Fri, 28 Jul 2017 06:42:04 +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 823562889F for ; Fri, 28 Jul 2017 06:42:03 +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=iib4HEQhmWpgqIx0IHsXv27SXhRe+33OEeeR4oIDOqc=; b=rqx Aj0WAsbSP5accY+Mq6nMRvQFP39+gdxrFT3FzupIs5zYdb0busOnCBCoeQXn59xlWEL2SU78qcHym eHOInE/I2c2Fn8CnZ8nS/hiPnrCcrSyHLzy6uIPTXxyhQwnSrvr/GAtegTtGs+P2oC5ocvX59XrKB UTwZ37//aFZywzvqldMGg8h7PVkcSeAFov8Ipkv3U8EBhR8Ql0zd57m9gFLcjbtI9CmtJpK+nZr3Z /Yl87ENkajYQbD3XhGmOJJFOR/860rD04urhL/0+KAaK9dtsSZ1G+SVEtIdAYvKmtVQMBc3Q9Ct/r izaAaIH9BgzdI9DuqgwLnKey3TubPxg==; 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 1dayyE-0006Uo-Gl; Fri, 28 Jul 2017 06:41:58 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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.