From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933359AbcLINT0 (ORCPT ); Fri, 9 Dec 2016 08:19:26 -0500 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:44543 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932561AbcLINTY (ORCPT ); Fri, 9 Dec 2016 08:19:24 -0500 Message-ID: <1481289555.8389.1.camel@pengutronix.de> Subject: Re: [RFC PATCH 0/3] staging: remove fbdev drivers From: Lucas Stach To: Benjamin Herrenschmidt Cc: Daniel Vetter , Thomas Petazzoni , Linux Fbdev development list , Teddy Wang , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , DRI Development , Tomi Valkeinen , Geert Uytterhoeven , Sudip Mukherjee , Arnaud Patard Date: Fri, 09 Dec 2016 14:19:15 +0100 In-Reply-To: <1481283856.27965.11.camel@kernel.crashing.org> References: <1481158879.26959.41.camel@kernel.crashing.org> <20161208101005.6ufl3d4qvwprosju@phenom.ffwll.local> <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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:fa0f:41ff:fe58:4010 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, den 09.12.2016, 22:44 +1100 schrieb Benjamin Herrenschmidt: > On Fri, 2016-12-09 at 09:34 +0100, Daniel Vetter wrote: > > Yeah if you have discrete vram then your dumb display driver isn't all > > that pretty. We essentially just have the few drivers Dave hacked up to be > > able to boot some servers. And there's definitely lots of room for more > > shared code for those, and also some better infrastructure and helpers to > > share more cod and make them better. > > > > The massive pile of dumb framebuffers we all merged over the past 2 years > > all use system/dma memory for scanout, and for those we have the very nice > > cma helpers that take care of everything for you. > > Do they work if the system/DMA memory has to be physically contiguous > and at a fixed address ? The AST "ARM side" GPU is like that. Yes, CMA is exactly the solution for that. It provides contiguous memory that doesn't need to be removed from the normal Linux memory handling and allows for the CMA region to be at specific places if needed. It's just a matter of describing the constraints properly. Regards, Lucas