From: Sascha Hauer Subject: Re: libdrm and platform devices? Date: Fri, 2 Mar 2012 14:06:29 +0100 Message-ID: <20120302130629.GN3852@pengutronix.de> References: <20120302114317.GM3852@pengutronix.de> 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 5DACDA0A42 for ; Fri, 2 Mar 2012 05:06:33 -0800 (PST) Content-Disposition: inline In-Reply-To: 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: Dave Airlie Cc: Inki Dae , Daniel Vetter , dri-devel@lists.freedesktop.org, Dave Airlie List-Id: dri-devel@lists.freedesktop.org On Fri, Mar 02, 2012 at 12:02:21PM +0000, Dave Airlie wrote: > > > > I have a drm device on the platform bus, similar to the exynos driver. > > right now libdrm (at least the tests included in libdrm) refuses to open > > the device because i915, nouveau, radeon and vmwgfx is all they know > > about. Looking at the libdrm code it is not obvious how to fix this > > (except for adding "exynos", "mydevice", "myotherdevice" to the module > > table which seems awkward and not very futureproof). Any hints or > > thoughts how to proceed here? > > libdrm tests aren't really used that much, and it might be easier to > just not care. > > people just hack on them for their platforms and sometimes someone > pushes one in. Ok, I can keep a local hack. What are your plans for the xf86-modesetting driver? It works nicely after I commented out some pci specific things and replaced drmOpen(NULL, BusID) with open("/dev/dri/card0", O_RDWR). Do you plan to continue on the driver and would accept patches for it? 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 |