From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx151.postini.com [74.125.245.151]) by kanga.kvack.org (Postfix) with SMTP id A22F46B0044 for ; Thu, 10 May 2012 13:53:26 -0400 (EDT) Received: by qafl39 with SMTP id l39so817539qaf.9 for ; Thu, 10 May 2012 10:53:25 -0700 (PDT) Message-ID: <4FAC0091.7070606@gmail.com> Date: Thu, 10 May 2012 13:53:21 -0400 From: KOSAKI Motohiro MIME-Version: 1.0 Subject: Re: [PATCH 2/2 v3] drm/exynos: added userptr feature. References: <1335188594-17454-4-git-send-email-inki.dae@samsung.com> <1336544259-17222-1-git-send-email-inki.dae@samsung.com> <1336544259-17222-3-git-send-email-inki.dae@samsung.com> <001501cd2e4d$c7dbc240$579346c0$%dae@samsung.com> <4FAB4AD8.2010200@kernel.org> <002401cd2e7a$1e8b0ed0$5ba12c70$%dae@samsung.com> <4FAB68CF.8000404@kernel.org> <4FAB782C.306@kernel.org> <003301cd2e89$13f78c00$3be6a400$%dae@samsung.com> In-Reply-To: <003301cd2e89$13f78c00$3be6a400$%dae@samsung.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Inki Dae Cc: 'Minchan Kim' , 'InKi Dae' , 'Jerome Glisse' , airlied@linux.ie, dri-devel@lists.freedesktop.org, kyungmin.park@samsung.com, sw0312.kim@samsung.com, linux-mm@kvack.org, kosaki.motohiro@gmail.com >>> let's assume that one application want to allocate user space memory >>> region using malloc() and then write something on the region. as you >>> may know, user space buffer doen't have real physical pages once >>> malloc() call so if user tries to access the region then page fault >>> handler would be triggered >> >> >> Understood. >> >>> and then in turn next process like swap in to fill physical frame number >> into entry of the page faulted. >> >> >> Sorry, I can't understand your point due to my poor English. >> Could you rewrite it easiliy? :) >> > > Simply saying, handle_mm_fault would be called to update pte after finding > vma and checking access right. and as you know, there are many cases to > process page fault such as COW or demand paging. Hmm. If I understand correctly, you guys misunderstand mlock. it doesn't page pinning nor prevent pfn change. It only guarantee to don't make swap out. e.g. memory campaction feature may automatically change page physical address. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org