Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1489860rwb; Wed, 26 Jul 2023 13:22:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcbUmx6x+X+F6FMPXrU3F3kZvKYOmB4v0J5F4cXneOQsfXGIH2mUq/yn43xY7XwJGAJ+v9 X-Received: by 2002:a17:906:154:b0:993:e752:1a6d with SMTP id 20-20020a170906015400b00993e7521a6dmr135086ejh.18.1690402976149; Wed, 26 Jul 2023 13:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690402976; cv=none; d=google.com; s=arc-20160816; b=oMV/LcJHffGJSOKr7YUYRjUUoj01yCWaHWOlfIecQC393zY6Z/mx5WvhPR2zj+lypM myJYuqbW9eRfKUP1vxqKU1a2xdy00M5LjEuhg/2Cw0LYF30Zwimst89xPWCUcPv0kovs PCeelD+cEL+Eggu6WC36QO2W889UstA8vXQjbdVDLhC4QHVfqfL2XFam9g9Ed1FE0DEz louJNGiLezAVa4U26YLq20NCBwgV33+eFORYlaSJ6Cmo+BKpt6+WCZNJQwhNRHuyBYCL 4p95j2hTaNDrSFFuzEeEMv5j9D8tAhRcRbtw4TH+YH6184P9TvVMyE9e6d4jZb4DMEwt 61Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=MHVHWNiRFk45RwUMHZjzyqHvHB/7TIueiT4PFTuQxkM=; fh=qaPq7UAZ9qWIPL/VReR9DWTIhpnpKi8ChdVpqBuiAF8=; b=o2/oR1EkVAEM2td1tsOgE+KPf1y9Hua5gcBRNHT8s32RR4pae14uoTr0n64mKwRc9r dmfec0UHuEF5M5dc94gG1fJMtc98pwv0ymRL2DH77gZnhAurk7U4/mN7WPXh6E35JjqC uoNTlBoyev6Qno/+ApeSur5xfPn0PXLvOCze6+cdLyZNxLl2SodRVmvxXMFv0Bq7mhVm NBhSnbFt4eMn2qkeEUHfmJbVoPH718QBtQt6tLx0OyVAp74sRghgN2wV3aS+m1nM+QMh UMEozF9KA9bwW6SCznx7+k4XQw7QAoXwL1B2Z4u+/FyuvcEjrm5GGl4z/D6nEI73yH7Z Evjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=Ay7oOHLf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb14-20020a170906b88e00b0099bcde0f1b1si843439ejb.152.2023.07.26.13.22.29; Wed, 26 Jul 2023 13:22:56 -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=@emersion.fr header.s=protonmail2 header.b=Ay7oOHLf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231193AbjGZSQM (ORCPT + 99 others); Wed, 26 Jul 2023 14:16:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbjGZSQL (ORCPT ); Wed, 26 Jul 2023 14:16:11 -0400 Received: from mail-4018.proton.ch (mail-4018.proton.ch [185.70.40.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84CA26A8 for ; Wed, 26 Jul 2023 11:16:07 -0700 (PDT) Date: Wed, 26 Jul 2023 18:15:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1690395365; x=1690654565; bh=MHVHWNiRFk45RwUMHZjzyqHvHB/7TIueiT4PFTuQxkM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Ay7oOHLfmGFsPbhpVgaXw64CWpTLO2Jc7obTWA9nxpU99nWyg4mLHOmhPKH0etHJG zd/gfMJRP910cx4K1jopLYL4mD7RcG/qE2niaVn5dSyl4/GQ87k0ZuEw1IiP10dLbA 4jYhX5Lctrc2U07p3KVkD2zWiCnf/Qu4kL4D5IIGrPaqZh+q0v8YnjvCn/Q5hPosAV uM+tantdEa91El/9a+pXSQB4ztN4MfhFZ4xV1QkzZ6YCWCzF98+ypc4FUWU2OGbG+e /GY99WJj/z/XAkOz6G9KgEA9q3dIDlEFUtDN4vKs6wDVbVTmX8q6WpCN1CYxQfJGJi h5iSTkTOHzuOQ== To: =?utf-8?Q?Micha=C5=82_Winiarski?= From: Simon Ser Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Matthew Wilcox , Oded Gabbay , =?utf-8?Q?Christian_K=C3=B6nig?= , James Zhu , Pekka Paalanen , Emil Velikov Subject: Re: [PATCH v6 3/4] drm: Expand max DRM device number to full MINORBITS Message-ID: <83s0YPWEdYE6C2a8pa6UAa3EaWZ2zG-q7IL9M-y6W1ucF9V54VnZtigKj3BGKUA2FZpIrs0VVxmpHO2RAhs_FdOnss9vNLQNSHySY8uH7YA=@emersion.fr> In-Reply-To: <20230724211428.3831636-4-michal.winiarski@intel.com> References: <20230724211428.3831636-1-michal.winiarski@intel.com> <20230724211428.3831636-4-michal.winiarski@intel.com> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Monday, July 24th, 2023 at 23:14, Micha=C5=82 Winiarski wrote: > Having a limit of 64 DRM devices is not good enough for modern world > where we have multi-GPU servers, SR-IOV virtual functions and virtual > devices used for testing. > Let's utilize full minor range for DRM devices. > To avoid regressing the existing userspace, we're still maintaining the > numbering scheme where 0-63 is used for primary, 64-127 is reserved > (formerly for control) and 128-191 is used for render. > For minors >=3D 192, we're allocating minors dynamically on a first-come, > first-served basis. In general the approach looks good to me. Old libdrm will see the new nodes as nodes with an unknown type when it tries to infer the nod type from the minor, which is as good as it gets. We do need patches to stop trying to infer the node type from the minor in libdrm, though. Emil has suggested using sysfs, which we already do in a few places in libdrm.