Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759592AbXJ2SRd (ORCPT ); Mon, 29 Oct 2007 14:17:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755685AbXJ2SRZ (ORCPT ); Mon, 29 Oct 2007 14:17:25 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:34231 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964AbXJ2SRY (ORCPT ); Mon, 29 Oct 2007 14:17:24 -0400 Subject: Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23 From: Peter Zijlstra To: Jaya Kumar Cc: Andrew Morton , stefani@seibold.net, linux-kernel@vger.kernel.org, David Howells , linux-mm@kvack.org In-Reply-To: <45a44e480710291051s7ffbb582x64ea9524c197b48a@mail.gmail.com> References: <1193064057.16541.1.camel@matrix> <20071029004002.60c7182a.akpm@linux-foundation.org> <45a44e480710290117u492dbe82ra6344baf8bb1e370@mail.gmail.com> <1193677302.27652.56.camel@twins> <45a44e480710291051s7ffbb582x64ea9524c197b48a@mail.gmail.com> Content-Type: text/plain Date: Mon, 29 Oct 2007 19:17:19 +0100 Message-Id: <1193681839.27652.60.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1827 Lines: 45 On Mon, 2007-10-29 at 13:51 -0400, Jaya Kumar wrote: > On 10/29/07, Peter Zijlstra wrote: > > On Mon, 2007-10-29 at 01:17 -0700, Jaya Kumar wrote: > > > An aside, I just tested that deferred IO works fine on 2.6.22.10/pxa255. > > > > > > I understood from the thread that PeterZ is looking into page_mkclean > > > changes which I guess went into 2.6.23. I'm also happy to help in any > > > way if the way we're doing fb_defio needs to change. > > > > OK, seems I can't read. Or at least, I missed a large part of the > > problem. > > > > page_mkclean() hasn't changed, it was ->page_mkwrite() that changed. And > > looking at the fb_defio code, I'm not sure I understand how its > > page_mkclean() use could ever have worked. > > > > The proposed patch [1] only fixes the issue of ->page_mkwrite() on > > vmalloc()'ed memory. Not page_mkclean(), and that has never worked from > > what I can make of it. > > > > Jaya, could you shed some light on this? I presume you had your display > > working. > > > > I thought I had it working. I saw the display update after each > mmap/write sequence to the framebuffer. I need to check if there's an > munmap or anything else going on in between write sequences that would > cause it to behave like page_mkclean was working. > > Is it correct to assume that page_mkclean should mark the pages > read-only so that the next write would again trigger mkwrite? Well, yes, that is the intended behaviour. > Even if the page was from a vmalloc_to_page()? That is the crux, I only ever implemented it for file pages. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/