Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4502071rwb; Tue, 6 Sep 2022 08:22:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR6nmqADdWcYGiLX/c6DdzIvM1qYiemrfOhZ9AYGBTqECO8uQ/SZifHLA5n4F3EBbJrimxnR X-Received: by 2002:aa7:c61a:0:b0:44e:7d1d:7814 with SMTP id h26-20020aa7c61a000000b0044e7d1d7814mr9073649edq.44.1662477721570; Tue, 06 Sep 2022 08:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477721; cv=none; d=google.com; s=arc-20160816; b=D0XavRyphK2JuBJ22ieDjDhA8KspMWcc7APOIoLdGTTtuOZ2gYfJmvgXPvQpJoOqrA 03xsT2D9MPh7KodFFQAo7QEscmm9hNSczKpNeE0U/SYQuGO1vLJLWqFFEtf4go9yt2VX P09y8rADsEDR9HM57uys1f0pSiuhcim5IFWEQz03EmPfmNxZv99Fdmqlu15dmQX50nJM /10qQ822d3rofo34RCQ/BVPZ6nlxgjlQOIMJqZGvyz7bdZwzFHLjxdAKbJCJpgMkIEGq caOIuELpnLMrETGwesJA8hSF2GUM+YIPIyTNmb4/ROcLHYC8roFA1qHM0sJNwkSYVoHu nJJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dRpxQ4jjwN1yFtBGpEPXLSbtDHI+DAP32QAWwCSE7yM=; b=gi7mPXpaqHRpCAdC3qvSpxCNrEMiw6xU6SCW+3cDNO8Itim/W0XqEWlvW77mVtNrth o/OSTGk5iJi1C7nDkTEtVYPE0zfbMVYvckdCrgZf6ijAdOoYQiGAOw3/NHb+lqQrciSD azcnFTKqZXyhRW2ZVAOcT5bnExx1Aenimar3O+JDV8o6kc4Wttg2N2pxFXPnWtum9VGG M2DdUTWE48Wo237SHo5kOmw2PMnVYmjgEUwe455gbFDP7diObIf3cB+8HkNZAtPMFOO4 LWXTQ5iAhiMWg6dAOKMkdZ79JG+rN2OivPKlThYl/oTvp7myK0dNyjMpNd7FlzrfBhMb vomw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=v4K4BuEr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t29-20020a056402241d00b0044e9f2b1df9si3539382eda.151.2022.09.06.08.21.34; Tue, 06 Sep 2022 08:22:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=v4K4BuEr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238721AbiIFPJU (ORCPT + 99 others); Tue, 6 Sep 2022 11:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239933AbiIFPIy (ORCPT ); Tue, 6 Sep 2022 11:08:54 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFB94B3B06 for ; Tue, 6 Sep 2022 07:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=dRpxQ4jjwN1yFtBGpEPXLSbtDHI+DAP32QAWwCSE7yM=; b=v4K4BuErh9R48s3gAbIlnJ7jJk m89LeHbJ/8pbR5E5DOEhBRre082ax9NRRGdB2lGdDto9SYoPe3Lg24Rwc+HmeinJWH0tIasU+kbAD VpCVj5tY464MtLwHGgTeMwmbTEf/teh+lr6JEnrXtcNyinIvwU9ovMTKne80oziMvNPyXUCXy0Yx+ zKPXune2C8F8IlitS5VzG6kwpxcQRkUTgJzy0cCFpDcuKLM/Y51l7uuhoNU1TU6EZ/QExYAxohBxA 7m2qb0LewkLsS1QwYfg7JeraCp+XL/s2l1LcaSJCM7nWYANeOfMeQcoZBp3Z5o1fWNAr3dQ7sFjSa Gg0rQppw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVZS9-00AUXk-PE; Tue, 06 Sep 2022 14:21:25 +0000 Date: Tue, 6 Sep 2022 15:21:25 +0100 From: Matthew Wilcox To: =?utf-8?Q?Micha=C5=82?= Winiarski Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Simon Ser Subject: Re: [PATCH v3 0/4] drm: Use full allocated minor range for DRM Message-ID: References: <20220906140117.409852-1-michal.winiarski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220906140117.409852-1-michal.winiarski@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 06, 2022 at 04:01:13PM +0200, MichaƂ Winiarski wrote: > 64 DRM device nodes is not enough for everyone. > Upgrade it to ~512K (which definitely is more than enough). > > To allow testing userspace support for >64 devices, add additional DRM > modparam (skip_legacy_minors) which causes DRM to skip allocating minors > in 0-192 range. > Additionally - one minor tweak around minor DRM IDR locking and IDR lockdep > annotations. The IDR is deprecated; rather than making all these changes around the IDR, could you convert it to use the XArray instead? I did it once before, but those patches bounced off the submissions process.