Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1351731rwb; Fri, 28 Jul 2023 08:14:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFsnLZR+WoosYSOIo5HwC7ly+arPjLC3IQggge0eeATKO9JkJ/TdrJ/pmMNSRcBUANI4gVe X-Received: by 2002:a05:6a20:115:b0:13c:a02a:97f9 with SMTP id 21-20020a056a20011500b0013ca02a97f9mr1825534pzr.31.1690557255942; Fri, 28 Jul 2023 08:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690557255; cv=none; d=google.com; s=arc-20160816; b=B29IZy04tSlrVuB0re9+5SgH+y3/qOO9ZgDA8h3O1DtX7X9FhfLJaha4qcCmvR/4fY NrSw2m+7SASByMDldSPZ3XegTbAd8a/3M5uAaQJ1frZQQ9sXp8OaDcEjySgx/4J6FJte 9mfoKiWdikACP8wz9uQGEUoFobqhLP/cTxrypzMvC0Od8KqmI72UFzQ8TFglP/gUDaFI W3fohvW5xCzfOMreR13SSA3O352P0Wf9Kv8SqNckHWGuSMdcYuPdBbsCOmyY3f9fNEKo t9S+lNewQ7pIHas6iOUaSpBkMgjB/9Lf/aVXp7lPaDunKxEIU90ocTPo9lBdPZ2gDm9W o4gw== 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=qUTyVGmY+SUpg3/1PHbpdRRzD/ZAMSvRleoyIi8Jdus=; fh=RFdVdwbVbkSdTjhdJsGUGomZO3LZs1Ov7JHFKw5dWMk=; b=Zn7wOQfLvYGsD9lLj9gE+O958dOZy7CFgD3ODX6p92PmqUjIQXXs2rADgVtbXEX6yS LxtJUr1uitu/w+t99XP/idvt/oD7ca4Hh5uHknz9Rrw4p29+lkWwYSMNUn1ZGBTQuxJo 5/QCXrRT+f2oREO1z7K0EZHZXWIFNhYnD92E/A/8tT6n9r6MMj4SFN9lQL0ARmxk+JpC hZejWwJhE5sUH7b4UvUrEeZD/B8eq2OOy4Y0L+VnuSPPO0WriD8ota16Oiai6LoOBkXV T7qxrHgyqKjEl/hy9RernD0MsdAq18dMoLiC8B14mWKxe5OWg3MOtqdhPKBn1dOj8cdF lSRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=Jy7+jRZ+; 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 s3-20020a63d043000000b00563e1deea73si3125244pgi.39.2023.07.28.08.14.02; Fri, 28 Jul 2023 08:14:15 -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=Jy7+jRZ+; 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 S235331AbjG1OXM (ORCPT + 99 others); Fri, 28 Jul 2023 10:23:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236735AbjG1OWn (ORCPT ); Fri, 28 Jul 2023 10:22:43 -0400 Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4AAD3C05 for ; Fri, 28 Jul 2023 07:22:34 -0700 (PDT) Date: Fri, 28 Jul 2023 14:22:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1690554152; x=1690813352; bh=qUTyVGmY+SUpg3/1PHbpdRRzD/ZAMSvRleoyIi8Jdus=; 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=Jy7+jRZ+kBFwVXICl01cgJ2HPRNBr8O9uTX2knZ+VspFsWH62GRPqefxbMJcQs4Wq YEzXZ8Gi30qX/hFqn3lMyt7LIosgfuefoRUMF1RmfJMGL83E4JyVxXOgTF4UoqMVJe 5ThuUBDvZHIHqoi3Et+FWWjSizGr9WQ3u8sbbhWph2c9MNquS32xySuWAbttDS8JjJ 07LCgwla0VsDSOpt7iYab7F1GLY0xtdsATmgGXiLsrzPxmrISXAlHNHZbAuBkk0Em7 3vuKneYBaIlhrVCfHl/7zMIYpCJPun3+zrDYPsv/HQiLTaWL1Mh/s5j08QJufnDb5F W5zzuNdH3sMEw== To: =?utf-8?Q?Christian_K=C3=B6nig?= From: Simon Ser Cc: =?utf-8?Q?Micha=C5=82_Winiarski?= , 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 , James Zhu , Pekka Paalanen , Emil Velikov Subject: Re: [PATCH v6 3/4] drm: Expand max DRM device number to full MINORBITS Message-ID: In-Reply-To: <69801f61-37b0-3e46-cbef-31ff80ae9a34@amd.com> References: <20230724211428.3831636-1-michal.winiarski@intel.com> <20230724211428.3831636-4-michal.winiarski@intel.com> <83s0YPWEdYE6C2a8pa6UAa3EaWZ2zG-q7IL9M-y6W1ucF9V54VnZtigKj3BGKUA2FZpIrs0VVxmpHO2RAhs_FdOnss9vNLQNSHySY8uH7YA=@emersion.fr> <69801f61-37b0-3e46-cbef-31ff80ae9a34@amd.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 Thursday, July 27th, 2023 at 14:01, Christian K=C3=B6nig wrote: > > 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. >=20 > That sounds like a really good idea to me as well. >=20 > But what do we do with DRM_MAX_MINOR? Change it or keep it and say apps > should use drmGetDevices2() like Emil suggested? DRM_MAX_MINOR has been bumped to 64 now. With the new minor allocation scheme, DRM_MAX_MINOR is meaningless because there is no "max minor per type" concept anymore: the minor no longer contains the type. So I'd suggest leaving it as-is (so that old apps still continue to work on systems with < 64 devices like they do today) and mark it as deprecated.