Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755998AbcLNOTw (ORCPT ); Wed, 14 Dec 2016 09:19:52 -0500 Received: from nat-hk.nvidia.com ([203.18.50.4]:59175 "EHLO hkmmgate102.nvidia.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755304AbcLNOTu (ORCPT ); Wed, 14 Dec 2016 09:19:50 -0500 X-PGP-Universal: processed; by hkpgpgate102.nvidia.com on Wed, 14 Dec 2016 06:19:35 -0800 Subject: Re: Issue with DRM and "reimplement IDR and IDA using the radix tree" To: Matthew Wilcox , Stephen Rothwell References: CC: Andrew Morton , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , From: Alexandre Courbot X-Nvconfidentiality: public Message-ID: Date: Wed, 14 Dec 2016 23:08:20 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.19.62.113] X-ClientProxiedBy: DRHKMAIL104.nvidia.com (10.25.59.18) To HKMAIL103.nvidia.com (10.18.16.12) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1281 Lines: 32 Forgot to add the most relevant list for this issue (linux-next). Stephen, maybe you will want to temporarily revert this patch until this is cleared? This probably affects other users than DRM. On 12/13/2016 04:14 PM, Alexandre Courbot wrote: > 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. > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >