From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tvrtko Ursulin Subject: Re: [PATCH] drm/i915: Deny wrapping an userptr into a framebuffer Date: Tue, 13 Oct 2015 15:04:18 +0100 Message-ID: <561D0F62.10707@linux.intel.com> References: <1444742546-27401-1-git-send-email-chris@chris-wilson.co.uk> <561D0E72.9060507@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; Format="flowed" Content-Transfer-Encoding: base64 Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 130686EB60 for ; Tue, 13 Oct 2015 07:04:46 -0700 (PDT) In-Reply-To: <561D0E72.9060507@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson , intel-gfx@lists.freedesktop.org Cc: Daniel Vetter , stable@vger.kernel.org List-Id: intel-gfx@lists.freedesktop.org Ck9uIDEzLzEwLzE1IDE1OjAwLCBUdnJ0a28gVXJzdWxpbiB3cm90ZToKPgo+IE9uIDEzLzEwLzE1 IDE0OjIyLCBDaHJpcyBXaWxzb24gd3JvdGU6Cj4+IFBpbm5pbmcgYSB1c2VycHRyIG9udG8gdGhl IGhhcmR3YXJlIHJhaXNlcyBpbnRlcmVzdGluZyBxdWVzdGlvbnMgYWJvdXQKPj4gdGhlIGxpZmV0 aW1lIG9mIHN1Y2ggYSBzdXJmYWNlIGFzIHRoZSBmcmFtZWJ1ZmZlciBleHRlbmRzIHRoYXQgbGlm ZQo+PiBiZXlvbmQgdGhlIGNsaWVudCdzIGFkZHJlc3Mgc3BhY2UuIFRoYXQgaXMgdGhlIGhhcmR3 YXJlIHdpbGwgbmVlZCB0bwo+PiBrZWVwIHNjYW5uaW5nIG91dCBmcm9tIHRoZSBiYWNraW5nIHN0 b3JhZ2UgZXZlbiBhZnRlciB0aGUgY2xpZW50IHdhbnRzCj4+IHRvIHJlbWFwIGl0cyBhZGRyZXNz IHNwYWNlLiBBcyB0aGUgaGFyZHdhcmUgcGlucyB0aGUgYmFja2luZyBzdG9yYWdlLAoKUC5TLgpP ciBldmVuIGFmdGVyIHRoZSBjbGllbnQgZXhpdHMgaW4gdGhlIG5ldyB3b3JsZCBvcmRlciEKClJl Z2FyZHMsCgpUdnJ0a28KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KSW50ZWwtZ2Z4IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Au b3JnCmh0dHA6Ly9saXN0cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9pbnRlbC1n ZngK From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:23783 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752631AbbJMOF2 (ORCPT ); Tue, 13 Oct 2015 10:05:28 -0400 Subject: Re: [Intel-gfx] [PATCH] drm/i915: Deny wrapping an userptr into a framebuffer To: Chris Wilson , intel-gfx@lists.freedesktop.org References: <1444742546-27401-1-git-send-email-chris@chris-wilson.co.uk> <561D0E72.9060507@linux.intel.com> Cc: Daniel Vetter , stable@vger.kernel.org From: Tvrtko Ursulin Message-ID: <561D0F62.10707@linux.intel.com> Date: Tue, 13 Oct 2015 15:04:18 +0100 MIME-Version: 1.0 In-Reply-To: <561D0E72.9060507@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 13/10/15 15:00, Tvrtko Ursulin wrote: > > On 13/10/15 14:22, Chris Wilson wrote: >> Pinning a userptr onto the hardware raises interesting questions about >> the lifetime of such a surface as the framebuffer extends that life >> beyond the client's address space. That is the hardware will need to >> keep scanning out from the backing storage even after the client wants >> to remap its address space. As the hardware pins the backing storage, P.S. Or even after the client exits in the new world order! Regards, Tvrtko