From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Hauer Subject: Re: [RFC PATCH] KMS support for i.MX51/53 Date: Wed, 8 Jun 2011 10:54:00 +0200 Message-ID: <20110608085400.GL23771@pengutronix.de> References: <1307443550-25549-1-git-send-email-s.hauer@pengutronix.de> <20110607121701.71cdd06e@lxorguk.ukuu.org.uk> <20110607191205.GK23771@pengutronix.de> <20110607205928.22f3e1ef@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by gabe.freedesktop.org (Postfix) with ESMTP id F3A709E8FD for ; Wed, 8 Jun 2011 01:54:16 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20110607205928.22f3e1ef@lxorguk.ukuu.org.uk> 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: Alan Cox Cc: Jason Chen , Konstantinos Margaritis , DRI mailing list , Eric Miao , linux-arm-kernel@lists.infradead.org List-Id: dri-devel@lists.freedesktop.org On Tue, Jun 07, 2011 at 08:59:28PM +0100, Alan Cox wrote: > > I'm not sure I understand you correctly. I have no address space on the > > card side since my 'card' just uses main memory. The memory I need must > > be a physically contiguous portion of sdram. I'm afraid shmem backing > > memory is not of much use for me. > > I hadn't realised you had that underlying limit. If you are limited to a > specific chunk of SDRAM and it must be physically linear rather than any > of memory then indeed it's not. > > I'd been tweaking GEM so you can borrow the abstraction and handles but > back them with your own allocator but in my case it makes sense because I > can use either main memory or a chunk of linear preallocated memory > reserved by the firmware so I wanted the commonality and single set of > handles for GEM, IOCTL_MODE_CREATE_DUMB etc. Your patch looks like it would do the trick. I'll see what I can do. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |