From mboxrd@z Thu Jan 1 00:00:00 1970 From: InKi Dae Subject: Re: [PATCH v2 3/4] drm/exynos: added userptr feature. Date: Wed, 25 Apr 2012 21:46:39 +0900 Message-ID: References: <1335188594-17454-4-git-send-email-inki.dae@samsung.com> <1335244679-16837-1-git-send-email-inki.dae@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 60E949E8D8 for ; Wed, 25 Apr 2012 05:46:39 -0700 (PDT) Received: by dajr28 with SMTP id r28so60737daj.26 for ; Wed, 25 Apr 2012 05:46:39 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Dave Airlie Cc: Inki Dae , kyungmin.park@samsung.com, sw0312.kim@samsung.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi Dave, 2012/4/25, Dave Airlie : > On Tue, Apr 24, 2012 at 6:17 AM, Inki Dae wrote: >> this feature could be used to use memory region allocated by malloc() in >> user >> mode and mmaped memory region allocated by other memory allocators. >> userptr >> interface can identify memory type through vm_flags value and would get >> pages or page frame numbers to user space appropriately. > > Is there anything to stop the unpriviledged userspace driver locking > all the RAM in the machine inside userptr? > > seems like a very bad plan, I know TTM has code to address this sort > of things with limits. > Thank you for your pointing and I will look into it. could anyone tell me that I can refer to which part of TTM? if doing so, it would be helpful to me. Thanks, Inki Dae. > Dave. > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel >