Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4510090rwb; Tue, 8 Aug 2023 09:27:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFihl1h/dCsvQs402PYVXrpHHK+lvhe9fcrZxxRgb2u9VDRFbaW/3nFk/kydO3LeSqCzHX+ X-Received: by 2002:a17:906:2189:b0:99b:efd3:3ddb with SMTP id 9-20020a170906218900b0099befd33ddbmr68367eju.43.1691512063798; Tue, 08 Aug 2023 09:27:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691512063; cv=pass; d=google.com; s=arc-20160816; b=RRmGDP6U4upYvZ9NuXGnI/Kt2lt+o6H8nOaogKs8ChRZKAlC98VwCxP5n+RacV2txM T1jMl+ao+bMXbP1kVTGh+cG1UU0WNWjzFeHBf1AqmGcqqlWcIMdEfdRQq8PnG//oBsXn 9a9Pt89d05d26+t7AaLcqtiFqZnbyQWNn6Jiz830L5Y89Gdos8cM0Vq2+LH1LXejhIE5 IEJa3wDRLApFgFc5aP+Gc1ipYIgpzAL/taTdoRsHd4tCV2ZohWU5e/HIcXxz+I8rfM8c Q2eH/8IiUtGIHB1MqLRjQAUclSvlMEaZxCEJt4bx1hetvkzfkS7LPanvy3LSVQyf+jpF 04Ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=sNP6R8X4hTuDoO7vL6CSKYK+xa8NvcH6JmVdtNr54n8=; fh=bXb2It2wpcRy1IBGQIB+/EzRK1KhD3PhkFqaXgQAJVc=; b=FPUcKMmc1w2cFvk/R+1D1+1I1E9H2wO1G+j/kKjEyb1KZEwVFI6fTljC6QE7KTOkSy 3oLsAWcLnKeZYZ3jLZ5vAFZ6AgzGUOr7JjwdnTcJH7bOn5pYc45YMAxm2yNbE3em8GAc 1D35FXGSZUTnjOYfg/hPYRx+xo1urIfb0CqsCPXD8nQQdM+rvmlRWwdoGVJXWazW0Fea ObhLbLK8RcgCwImNeIA3GetOkoBfjPfkUhRZa7YfnZXrdMjrDW+knf+KldhTgNR+Rkt9 mTcVeY/hpned+1H6wTEUHycuvj2ia8JWfwYvyQbzE+F1dlfaMS7mkyrN46CByhGPCr1d P+/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=aMTG3GrR; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a170906c29000b009829077b479si7443760ejz.860.2023.08.08.09.27.18; Tue, 08 Aug 2023 09:27:43 -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=@amd.com header.s=selector1 header.b=aMTG3GrR; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbjHHPxC (ORCPT + 99 others); Tue, 8 Aug 2023 11:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbjHHPvP (ORCPT ); Tue, 8 Aug 2023 11:51:15 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on20605.outbound.protection.outlook.com [IPv6:2a01:111:f400:7ea9::605]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F34ED1980 for ; Tue, 8 Aug 2023 08:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dclpPfKY+wFMcpAfC8a0pEjjY5+N5oMVi2K1QTKWAB+l9QcTB1FofE4Z3ojzZxUXZ68t6nylth5XuY5p08FL+X+c3EHQTCCxPGes2qWiYC3nT5BN8nLI0hTF/G9Bno5q+I/07qXRv6U+hzHmSVZ3mGSqz7UfRXdZuJhw2wK5pDL5DVaD+XomdR6Oqq2WHhNV1/yQg/nMHGcX9IPg7Eezc1BCneVY6SdUO3f/blE/rP66Htii3lTHipFhezvqfKaqZNsTIp5lNp4P1c8WGz+J3rEtIWgMKugtPA8f+e1R7ytVHnRP2dg2cIBmENwke+9h6zn+EpeDROWv27lnoPLJjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sNP6R8X4hTuDoO7vL6CSKYK+xa8NvcH6JmVdtNr54n8=; b=hcTd0bcC0Gyb2g3TyCvT1wo/qLL83oU4ZVTTu50CJCo4g9xOyt167UAZMVmOx9uoD4HGib+2RDUWKsukYBGMOoIbWSC18QMeCY01S6ytdm93L9L8ZvYqkznfxndK8V6sa9/GzZijKtlXzkFzYOLxWOxnWGk6vBzg1/WkMM95sjbCUujnJwbiFK0/5581V2ayPcnwmgUFERC/fiGAs0V3y2TP4smUaNwg1ud8pOrIht0TEN8jT/HMV4eJJxsJP8hx8a6XZ3BJEDis8yQZD6uuSmn1kqod3N9iP54dFlWl5oSawKEYnlneJWDG3JkoyjOS5b1SyXY3zglXxPA2QTWrDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sNP6R8X4hTuDoO7vL6CSKYK+xa8NvcH6JmVdtNr54n8=; b=aMTG3GrR7FKDWMW3O6k/P5taBgfTPI5y6J6UBSbMC2JOLH+xAy+lXjeglWgzNPrTagpeCLOVkzhpsojFlhrOn2cIgLOrqMGL2tBzuLEqxwvuL+ATreU7QimCsNbven1MGNDnN1qnxyFDBrqDdXYxS4grbF+ZuOUkJpinri5WxjU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by SJ0PR12MB5421.namprd12.prod.outlook.com (2603:10b6:a03:3bb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.26; Tue, 8 Aug 2023 13:56:02 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::3d:c14:667a:1c81]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::3d:c14:667a:1c81%4]) with mapi id 15.20.6652.026; Tue, 8 Aug 2023 13:56:02 +0000 Message-ID: Date: Tue, 8 Aug 2023 15:55:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v6 3/4] drm: Expand max DRM device number to full MINORBITS Content-Language: en-US To: 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 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> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR2P281CA0131.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9e::14) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|SJ0PR12MB5421:EE_ X-MS-Office365-Filtering-Correlation-Id: f085530a-e6ff-4464-6791-08db9817336f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tib5wzkBUpx+wq+nMbONk4v3h8pkd1jj6u5/CfopWpJaoi6AkdDXLvITCThfqxcCq8Di/NkJtrBMRTBzIMc2VteGkApV62/IvUpQuS20YCHiIzl2kIUYFbwzfSXJLC8tFpXwxSSfXsEabkwgwyHgnJTUNdFQp8BB9iDsAiN3QOOxn2oLQPd1WkQxWznGlj8PTDyG9cZk7dZw9Bi8YgXGXEk6QnycHT4jpOj4xVSLprilxfJvHXp7HwOZQRHr/Gf9DkBUmk33v/qZlR7w2g2cTo+zL1AyZWlvuuKHZQxFKWTKGTviJBTX7xKRv1lvsBPgyEuilutCUBe/YpbbgrevjIotieCvFM5hhbKteR6G6K8zmXEMTQESgpf1v49jv/+QNKM6/CbovmVkiRExQwDy4wHYlf6c3YvYzDgJCS3+XfPwnJALpmQknKPy9nHVLFPn7RPX0mEPu9vwM9KHKofJLMfe3YFexXjGonr6JSZnSH5BdLGZHdDLjdxqe/YbQ3FtEVBfHWgit4zI0pMv36jj7ppxUI2KAhSlmjzFtG10H05QeOh23mT0ZZKRcMtUZJBk0YIX3iM7bYCaueVXJ82bdMVdUZwSajdfbuBtXWWqRj1QY+vMVqtIOWJgwaTgFiqZsGaCq8GwWTcyM2rKPV5rBA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(396003)(346002)(376002)(136003)(186006)(1800799003)(451199021)(6666004)(31686004)(2616005)(54906003)(4326008)(6916009)(8936002)(316002)(8676002)(7416002)(5660300002)(66476007)(66556008)(66946007)(38100700002)(4744005)(478600001)(31696002)(6486002)(86362001)(2906002)(6512007)(41300700001)(6506007)(36756003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?azNpL2o1Rk1KdFRjUG9nMnhoSk11ajRhSkVVajdNZTlnTlVKTmloYUFtbGh6?= =?utf-8?B?aUd2ZUxQMXlNSGVBckQrUGtJc0I1ZS9pTDU3czdZVkVYb2ZHOGUyNS9UbGox?= =?utf-8?B?K0oxMG1RRjN5bzdIbk1Tc0hydmU5WDNHU0NpdExIaEUyWnVxRkhZeDdEb2hI?= =?utf-8?B?aVkxNXc5TDhDVmRKQ2ZNY1p2eXZwTlorT1pJR29iNHlBMk9XU1RRcFlFVVYx?= =?utf-8?B?MVNLVHVKMVBXM2hoM0ZFKzY0K1RuR1lORGVtaGI2MDV4UHpFNmwrTCtqZWRz?= =?utf-8?B?VFR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M1V3hIdDJM?= =?utf-8?B?Y0xLeDVMN2FEakd0TkpnR3RXN1ZJdWZtNmZaMkpGY1VzOWNOdVkzbDl5NU5C?= =?utf-8?Q?veaPBXnoOIkRjJc6UwJR5jL8tDJPcOlM5iH1ajVxbYuD?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f085530a-e6ff-4464-6791-08db9817336f X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2023 13:56:02.0070 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eYgmixIhzTLHf5Z7i5Upf3gzFlrztsCI4og5VBgTlNcjmlF0ZN9sHXZJsMgnPjyt X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5421 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_NONE, 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 Am 28.07.23 um 16:22 schrieb Simon Ser: > On Thursday, July 27th, 2023 at 14:01, Christian König 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. >> That sounds like a really good idea to me as well. >> >> 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. Sounds like a plan to me. Regards, Christian.