From patchwork Fri Jul 14 10:46:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 13313469 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52CFEC001DD for ; Fri, 14 Jul 2023 10:46:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9420010E86B; Fri, 14 Jul 2023 10:46:15 +0000 (UTC) Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by gabe.freedesktop.org (Postfix) with ESMTPS id 82F0210E86B for ; Fri, 14 Jul 2023 10:46:11 +0000 (UTC) Date: Fri, 14 Jul 2023 10:46:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1689331569; x=1689590769; bh=F88L1jddDY0lJbDr0j8tOCNblklIgEUw4HUYT/cLCZY=; 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=Jw3e7fhIBpB0TFm64KbXc8dQjpiKyBEc2iv2vaKA9t+OeiWZguZ44IE8vVAMr0nCB N5renVnXw8Cj4YDzyrc9EZx0JRuMS1qMgNKXZcMXDBr91blFDvS0AE7JRdxQQBlGP/ WuKGquhsbtu52hENlkGxUA6PChxGlXAdPwUjuxFUuEepCDtLgS5JWtQlj3MfqXFOaP BUmHoECgD6RuGJgFHvWkJ54Y61l8uCy689qb2oN+8M5QuxhX31C4gPOwTHwdzGgchH lq2wZiLm7uQx2EjIhAm0AOKKRNSWMnf735ntQ53i6MaGxwL7SYkiWOobMWS4KUxZu1 AmnPGvakgRwnA== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [RFC PATCH 3/3] drm/file: drop DRM_MINOR_CONTROL Message-ID: <20230714104557.518457-3-contact@emersion.fr> In-Reply-To: <20230714104557.518457-1-contact@emersion.fr> References: <20230714104557.518457-1-contact@emersion.fr> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , =?utf-8?b?TWFyZWsgT2zFocOhaw==?= , James Zhu , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This entry should never be used by the kernel. Record the historical context in a comment. Signed-off-by: Simon Ser Cc: Christian König Cc: James Zhu Cc: Marek Olšák Cc: Daniel Vetter Reviewed-by: Thomas Zimmermann --- include/drm/drm_file.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h index 010239392adf..a23cc2f6163f 100644 --- a/include/drm/drm_file.h +++ b/include/drm/drm_file.h @@ -53,12 +53,14 @@ struct file; /* Note that the values of this enum are ABI (it determines * /dev/dri/renderD* numbers). * + * There used to be a DRM_MINOR_CONTROL = 1 entry, but such nodes were never + * exposed. Still, some user-space has logic to handle them. + * * Setting DRM_MINOR_ACCEL to 32 gives enough space for more drm minors to * be implemented before we hit any future */ enum drm_minor_type { DRM_MINOR_PRIMARY = 0, - DRM_MINOR_CONTROL = 1, DRM_MINOR_RENDER = 2, DRM_MINOR_ACCEL = 32, };