From patchwork Wed Jun 19 20:15:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Baatz X-Patchwork-Id: 2752161 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EA4E99F8E1 for ; Wed, 19 Jun 2013 21:02:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CED842039E for ; Wed, 19 Jun 2013 21:02:56 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E3922038E for ; Wed, 19 Jun 2013 21:02:55 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpOoQ-0005cZ-4F; Wed, 19 Jun 2013 20:17:04 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpOnR-0004qe-Oa; Wed, 19 Jun 2013 20:16:01 +0000 Received: from mo6-p00-ob.rzone.de ([2a01:238:20a:202:5300::1]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpOnN-0004pt-Kh for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2013 20:15:58 +0000 X-RZG-AUTH: :L20Qdkipd/NtQfa28f3iP6nsj1VEm6lxnnjU56eNUnjyVKhsqx3PYdmEEmLU9D5KD0V+ X-RZG-CLASS-ID: mo00 Received: from gandalf.schnuecks.de (p57A56ECE.dip0.t-ipconnect.de [87.165.110.206]) by smtp.strato.de (jorabe mo16) (RZmta 31.28 DYNA|AUTH) with (DHE-RSA-AES256-SHA encrypted) ESMTPA id L06cbbp5JIB7Fs ; Wed, 19 Jun 2013 22:15:31 +0200 (CEST) Received: by gandalf.schnuecks.de (Postfix, from userid 500) id D21D94010A; Wed, 19 Jun 2013 22:15:30 +0200 (CEST) From: Simon Baatz To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: fix missing flush_kernel_dcache_page() for noMMU Date: Wed, 19 Jun 2013 22:15:10 +0200 Message-Id: <1371672910-9340-1-git-send-email-gmbnomis@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130619_161557_947311_401FC39B X-CRM114-Status: GOOD ( 10.43 ) X-Spam-Score: -1.0 (-) Cc: Catalin Marinas , Russell King X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 1bc3974 moved the implementation of flush_kernel_dcache_page() into in mm/flush.c but did not implement it on noMMU ARM. Signed-off-by: Simon Baatz Cc: # 3.2+: 1bc3974: ARM: 7755/1 Cc: # 3.2+ Acked-by: Kevin Hilman --- ARM 7755/1 "handle user space mapped pages in flush_kernel_dcache_page" unfortunately broke the no MMU case. Compile tested with allnoconfig and at91x40_defconfig on v3.10-rc6/v3.9.6 + ARM 7755/1. On older stable kernels (3.2.47 & 3.4.49) compiled with at91x40_defconfig. - Simon arch/arm/mm/nommu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c index d51225f..eb5293a 100644 --- a/arch/arm/mm/nommu.c +++ b/arch/arm/mm/nommu.c @@ -57,6 +57,12 @@ void flush_dcache_page(struct page *page) } EXPORT_SYMBOL(flush_dcache_page); +void flush_kernel_dcache_page(struct page *page) +{ + __cpuc_flush_dcache_area(page_address(page), PAGE_SIZE); +} +EXPORT_SYMBOL(flush_kernel_dcache_page); + void copy_to_user_page(struct vm_area_struct *vma, struct page *page, unsigned long uaddr, void *dst, const void *src, unsigned long len)