From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 10/16] drm/i915: Handle stolen objects for pread Date: Sat, 01 Dec 2012 00:14:29 +0000 Message-ID: <453bf0$6mibqr@azsmga001.ch.intel.com> References: <1352979151-9934-1-git-send-email-chris@chris-wilson.co.uk> <1352979151-9934-11-git-send-email-chris@chris-wilson.co.uk> <20121130223342.GC4384@phenom.ffwll.local> <275ffc$7lerml@fmsmga002.fm.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id C7356E67DF for ; Sat, 1 Dec 2012 04:41:05 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sat, 1 Dec 2012 01:03:39 +0100, Daniel Vetter wrote: > On Sat, Dec 1, 2012 at 12:46 AM, Chris Wilson wrote: > > On Fri, 30 Nov 2012 23:33:43 +0100, Daniel Vetter wrote: > >> On Thu, Nov 15, 2012 at 11:32:25AM +0000, Chris Wilson wrote: > >> > Signed-off-by: Chris Wilson > >> > >> Tbh I don't see any reason for handling pwrite/pread support for stolen > >> mem backed objects. I'll leave these two patches here (plus the prep one > >> to differentiate between stolen and dma_bufs) for now until a user pops > > > > The problem is that constitutes a change in ABI, so I was trying to make > > sure stolen buffer objects were first class from day one. The only > > saving grace is that userspace can only access the stolen object for > > fbcon, but it is still available... > > Hm, I've forgotten that userspace can get at the fbcon. Does it really > do that? The problem I see here is untested code and no sane way to > test it. Hint: the bogus obj->gtt_offset == 0 check was found experimentally. :) No one pwrites/preads to the fbcon, today. If it makes you feel any better, I would like to be able to create objects preferrentially from stolen (e.g. scanouts) and you could build a test interface on top. -Chris -- Chris Wilson, Intel Open Source Technology Centre