From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Date: Fri, 09 Dec 2016 20:29:34 +0000 Subject: Re: [RFC PATCH 0/3] staging: remove fbdev drivers Message-Id: <1481315374.17253.17.camel@kernel.crashing.org> List-Id: References: <20161208140210.rfyjf2265flsfpfj@phenom.ffwll.local> <20161208153735.74d7d350@free-electrons.com> <20161208152134.wnv4j4i6m5xpoycp@phenom.ffwll.local> <1481232877.26959.52.camel@kernel.crashing.org> <1481234249.26959.55.camel@kernel.crashing.org> <20161209083442.peoriqsto2llvl2t@phenom.ffwll.local> <1481283856.27965.11.camel@kernel.crashing.org> <20161209133339.3cpvuxerimoc5huf@phenom.ffwll.local> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Herrmann , Geert Uytterhoeven , Thomas Petazzoni , Tomi Valkeinen , Greg Kroah-Hartman , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Sudip Mukherjee , Teddy Wang , Arnaud Patard , DRI Development , Linux Fbdev development list , "linux-kernel@vger.kernel.org" On Fri, 2016-12-09 at 14:57 +0100, David Herrmann wrote: > Despite all of this I still see no reason why a driver could not > expose the static, real frambuffers via private ioctls. You can get > all your fancy acceleration that way. Then fix user-space to use this > API. If enough drivers end up with something similar, move it into the > core. Just like we always do in DRM. I don't care so much about userspace in my specific use case, more about fbcon, which I think can be solved without too many hoops. As for FB objects, my thinking is we could just use unmap_mapping_ranges() to effectively change the mapping under the hood of the app so it alternatively maps a bit of fb or a bit of memory... Cheers, Ben. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [RFC PATCH 0/3] staging: remove fbdev drivers Date: Sat, 10 Dec 2016 07:29:34 +1100 Message-ID: <1481315374.17253.17.camel@kernel.crashing.org> References: <20161208140210.rfyjf2265flsfpfj@phenom.ffwll.local> <20161208153735.74d7d350@free-electrons.com> <20161208152134.wnv4j4i6m5xpoycp@phenom.ffwll.local> <1481232877.26959.52.camel@kernel.crashing.org> <1481234249.26959.55.camel@kernel.crashing.org> <20161209083442.peoriqsto2llvl2t@phenom.ffwll.local> <1481283856.27965.11.camel@kernel.crashing.org> <20161209133339.3cpvuxerimoc5huf@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Return-path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by gabe.freedesktop.org (Postfix) with ESMTPS id 72DD56E1FB for ; Fri, 9 Dec 2016 20:30:12 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: David Herrmann , Geert Uytterhoeven , Thomas Petazzoni , Tomi Valkeinen , Greg Kroah-Hartman , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Sudip Mukherjee , Teddy Wang , Arnaud Patard , DRI Development , Linux Fbdev development list , "linux-kernel@vger.kernel.org" List-Id: dri-devel@lists.freedesktop.org T24gRnJpLCAyMDE2LTEyLTA5IGF0IDE0OjU3ICswMTAwLCBEYXZpZCBIZXJybWFubiB3cm90ZToK PiBEZXNwaXRlIGFsbCBvZiB0aGlzIEkgc3RpbGwgc2VlIG5vIHJlYXNvbiB3aHkgYSBkcml2ZXIg Y291bGQgbm90Cj4gZXhwb3NlIHRoZSBzdGF0aWMsIHJlYWwgZnJhbWJ1ZmZlcnMgdmlhIHByaXZh dGUgaW9jdGxzLiBZb3UgY2FuIGdldAo+IGFsbCB5b3VyIGZhbmN5IGFjY2VsZXJhdGlvbiB0aGF0 IHdheS4gVGhlbiBmaXggdXNlci1zcGFjZSB0byB1c2UgdGhpcwo+IEFQSS4gSWYgZW5vdWdoIGRy aXZlcnMgZW5kIHVwIHdpdGggc29tZXRoaW5nIHNpbWlsYXIsIG1vdmUgaXQgaW50byB0aGUKPiBj b3JlLiBKdXN0IGxpa2Ugd2UgYWx3YXlzIGRvIGluIERSTS4KCkkgZG9uJ3QgY2FyZSBzbyBtdWNo IGFib3V0IHVzZXJzcGFjZSBpbiBteSBzcGVjaWZpYyB1c2UgY2FzZSwgbW9yZQphYm91dCBmYmNv biwgd2hpY2ggSSB0aGluayBjYW4gYmUgc29sdmVkIHdpdGhvdXQgdG9vIG1hbnkgaG9vcHMuCgpB cyBmb3IgRkIgb2JqZWN0cywgbXkgdGhpbmtpbmcgaXMgd2UgY291bGQganVzdCB1c2UKdW5tYXBf bWFwcGluZ19yYW5nZXMoKSB0byBlZmZlY3RpdmVseSBjaGFuZ2UgdGhlIG1hcHBpbmcgdW5kZXIg dGhlIGhvb2QKb2YgdGhlIGFwcCBzbyBpdCBhbHRlcm5hdGl2ZWx5IG1hcHMgYSBiaXQgb2YgZmIg b3IgYSBiaXQgb2YgbWVtb3J5Li4uCgpDaGVlcnMsCkJlbi4KCl9fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fCmRyaS1kZXZlbCBtYWlsaW5nIGxpc3QKZHJpLWRl dmVsQGxpc3RzLmZyZWVkZXNrdG9wLm9yZwpodHRwczovL2xpc3RzLmZyZWVkZXNrdG9wLm9yZy9t YWlsbWFuL2xpc3RpbmZvL2RyaS1kZXZlbAo= From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752844AbcLIUaw (ORCPT ); Fri, 9 Dec 2016 15:30:52 -0500 Received: from gate.crashing.org ([63.228.1.57]:44466 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752758AbcLIUau (ORCPT ); Fri, 9 Dec 2016 15:30:50 -0500 Message-ID: <1481315374.17253.17.camel@kernel.crashing.org> Subject: Re: [RFC PATCH 0/3] staging: remove fbdev drivers From: Benjamin Herrenschmidt To: David Herrmann , Geert Uytterhoeven , Thomas Petazzoni , Tomi Valkeinen , Greg Kroah-Hartman , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Sudip Mukherjee , Teddy Wang , Arnaud Patard , DRI Development , Linux Fbdev development list , "linux-kernel@vger.kernel.org" Date: Sat, 10 Dec 2016 07:29:34 +1100 In-Reply-To: References: <20161208140210.rfyjf2265flsfpfj@phenom.ffwll.local> <20161208153735.74d7d350@free-electrons.com> <20161208152134.wnv4j4i6m5xpoycp@phenom.ffwll.local> <1481232877.26959.52.camel@kernel.crashing.org> <1481234249.26959.55.camel@kernel.crashing.org> <20161209083442.peoriqsto2llvl2t@phenom.ffwll.local> <1481283856.27965.11.camel@kernel.crashing.org> <20161209133339.3cpvuxerimoc5huf@phenom.ffwll.local> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.2 (3.22.2-1.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-12-09 at 14:57 +0100, David Herrmann wrote: > Despite all of this I still see no reason why a driver could not > expose the static, real frambuffers via private ioctls. You can get > all your fancy acceleration that way. Then fix user-space to use this > API. If enough drivers end up with something similar, move it into the > core. Just like we always do in DRM. I don't care so much about userspace in my specific use case, more about fbcon, which I think can be solved without too many hoops. As for FB objects, my thinking is we could just use unmap_mapping_ranges() to effectively change the mapping under the hood of the app so it alternatively maps a bit of fb or a bit of memory... Cheers, Ben.