From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH 00/13] DRM Reliable Minor-IDs Date: Fri, 21 Feb 2014 08:30:58 +0100 Message-ID: <20140221073057.GE22574@ulmo.nvidia.com> References: <1391004120-687-1-git-send-email-dh.herrmann@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1016974325==" Return-path: Received: from mail-bk0-f48.google.com (mail-bk0-f48.google.com [209.85.214.48]) by gabe.freedesktop.org (Postfix) with ESMTP id D7296FB2F5 for ; Thu, 20 Feb 2014 23:31:01 -0800 (PST) Received: by mail-bk0-f48.google.com with SMTP id 6so933759bkj.21 for ; Thu, 20 Feb 2014 23:31:00 -0800 (PST) In-Reply-To: <1391004120-687-1-git-send-email-dh.herrmann@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: David Herrmann Cc: Daniel Vetter , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1016974325== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="maH1Gajj2nflutpK" Content-Disposition: inline --maH1Gajj2nflutpK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 29, 2014 at 03:01:47PM +0100, David Herrmann wrote: > Hi >=20 > I was looking into our minor-allocation code and it has one major drawbac= k: > char-dev minor-IDs are unreliable. The +128 hacks we use in user-spac= e to > calculate render-node IDs based on the original card just does not work. >=20 > Instead of allocating dummy IDs for each driver, I went ahead and tried t= o fix > it properly. So this series changes the minor-ID management to just alloc= ate a > single dev->minor_base ID instead of one ID per "drm_minor". Now we can u= se this > base to calculate the correct offset minor-ID for each existing DRM-minor. >=20 > While at it, I introduced drm-refcounts to make minor-lookup independent = of > drm_global_mutex. This is still not finished (and dev->open_count still e= xists) > but I already have the next patches waiting here. >=20 > Comments welcome! >=20 > Branch is also available here: > http://cgit.freedesktop.org/~dvdhrm/linux/log/?h=3Dminor > If someone could pull this into their tree and push to Fengguang's > test-framework, I'd appreciate it a lot! I'm still waiting for a reply fr= om him. The series: Tested-by: Thierry Reding --maH1Gajj2nflutpK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTBwCxAAoJEN0jrNd/PrOhqFMP/0G18Pr8zWQIxwtw3oYe4XzM +fjaH8+KgDVc2UKi1hekZVB8JY8i4y0fXNCAMpjXRjumraHZBiGxKjvNHYeE0ANm xooPCESt5guxQJaEk3V05aNLrfT7EwD9U1JBmDcOgQx/gB/xfgXkiKgnJkrqE4vt 3VfXwKX6j1wZluts+nbYTiAKodiykD0TItURaGnhFSDcuy2nKmn8ABjNgabAHwKZ JEWocDWQknZpf6vU4+XhwkKtumapiRZwB/trsMvC55YEcZGNEIw/g0BOJEIam4mV Y6mAP2elZQdHVR8uA/BQn/woplIA11sezuzd8CaGJrb9MHnKjVjNyh+zaEtZiUjN x1VqUcVq5+HwNftQfxn0j5sqM6aeCFK7DHD4IvBZ9iebmaS/wK9rkb3INJGQLei5 gqYhcDOtki0kzSjlkxovhCoGi8kJvJvkAzm/BhdYHynIMn1M2Ks+lpLNarRutX6Y 3++Daebye/VXpx8+NwXsYRu7rGIBwyLRNzy6SUobP5NALUM2Hs41GAAJGkXQB39N jIzy6g6rBpUqcHchKgMEgLhTZ0Mg70+3XfF5LUrPobQgrGa8SwWeNilQMAjJSe73 Dv35l4jwBkoVfHLQT43jNZACwpHbq/Jqzs6Lg4wQSzWR6jd6s8Wi+RRGhen/YnDw tw/v0ex4JkRcAR8/Sz35 =INH4 -----END PGP SIGNATURE----- --maH1Gajj2nflutpK-- --===============1016974325== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1016974325==--