From patchwork Wed Jul 1 05:04:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 33411 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6158j7J007156 for ; Wed, 1 Jul 2009 05:08:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758238AbZGAFHo (ORCPT ); Wed, 1 Jul 2009 01:07:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757537AbZGAFHo (ORCPT ); Wed, 1 Jul 2009 01:07:44 -0400 Received: from mail-px0-f190.google.com ([209.85.216.190]:47964 "EHLO mail-px0-f190.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758420AbZGAFHm (ORCPT ); Wed, 1 Jul 2009 01:07:42 -0400 Received: by pxi28 with SMTP id 28so570838pxi.33 for ; Tue, 30 Jun 2009 22:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=QB2bRHf24vA4eUvnWTzrIi9qTQN19e2mHkug/hgucmg=; b=kBXBDvoVS+ReNn/aXjzsEeYt01cocgOrGXifLY7lIXX3D0bUhFd7UB212PQGWCBtzX sY6/R+oO2wrrIY7MY9xpi3mrbrZ+xSHC6S2YYgLtHdIE9CdVGnOyknNARv+bWcYZiV0A 3m8VoVsA8nSgXlCtwV5dVm1ZcHa/f2FFRLwkU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=ssyq+VD6mrxz/F+8mC1YCxh2Lken0kfNZm3XKuNoi6htHiwq1qEKiTvNJWLAZ5NouE /bmkDBABZgwFnFjlPU4v3aQEqmZ1NKK77OpEx9NORAotoPBiBNyONakwUrb8dngos4su t30Hp8BRSVwCrD31buncJR4Y5WF+i83NyOQMQ= Received: by 10.115.60.11 with SMTP id n11mr9182134wak.116.1246424865402; Tue, 30 Jun 2009 22:07:45 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id n9sm1437254wag.23.2009.06.30.22.07.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Jun 2009 22:07:44 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Wed, 01 Jul 2009 14:04:05 +0900 Message-Id: <20090701050405.2252.48329.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: LCDC dcache flush for deferred io Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Since writenotify on uncached vmas is unsupported in 2.6.31, live with cached framebuffer memory in the deferred io case for now and flush the dcache before forcing refresh. Signed-off-by: Magnus Damm --- Suitable for 2.6.31. drivers/video/sh_mobile_lcdcfb.c | 6 ++++++ 1 file changed, 6 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/drivers/video/sh_mobile_lcdcfb.c +++ work/drivers/video/sh_mobile_lcdcfb.c 2009-07-01 13:26:36.000000000 +0900 @@ -211,6 +211,12 @@ static void sh_mobile_lcdc_deferred_io(s { struct sh_mobile_lcdc_chan *ch = info->par; + /* framebuffer memory is cached if deferred io is enabled. + * the LCDC is located behind the caches so we must flush the + * dcache before forcing a LCD refresh. + */ + flush_dcache_all(); + /* enable clocks before accessing hardware */ sh_mobile_lcdc_clk_on(ch->lcdc);