All of lore.kernel.org
 help / color / mirror / Atom feed
* Issue with DRM and "reimplement IDR and IDA using the radix tree"
@ 2016-12-13  7:14 Alexandre Courbot
  2016-12-14 14:08   ` Alexandre Courbot
  0 siblings, 1 reply; 6+ messages in thread
From: Alexandre Courbot @ 2016-12-13  7:14 UTC (permalink / raw)
  To: Matthew Wilcox
  Cc: Andrew Morton, linux-kernel@vger.kernel.org,
	dri-devel@lists.freedesktop.org

Hi Matthew,

Trying the latest -next on the Jetson TK1 board (with two different DRM
devices and display and render), I noticed that the GPU device probe
always failed with error -ENOSPC. After investigating I figured out that
this was due to the minor device allocation failing when a second DRM
device is added.

More precisely, when drm_minor_alloc() is called with DRM_MINOR_PRIMARY
(0) as argument for a second time, the call to idr_alloc() (which has a
requested range of 0..64) fails instead of returning 1 as expected. Note
that the first call is successful.

Reverting "reimplement IDR and IDA using the radix tree" on 20161213's
next fixes the issue for me, suggesting a bug may have slipped in there.

Not sure how this could be fixed, so reporting the issue for now in case
it is not known yet.

Cheers,
Alex.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-17  7:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-13  7:14 Issue with DRM and "reimplement IDR and IDA using the radix tree" Alexandre Courbot
2016-12-14 14:08 ` Alexandre Courbot
2016-12-14 14:08   ` Alexandre Courbot
2016-12-16 16:16   ` Thierry Reding
2016-12-17  6:47     ` Alexandre Courbot
2016-12-17  6:47       ` Alexandre Courbot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.