Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4611605rwb; Tue, 8 Aug 2023 10:57:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKqREyLuFT5F4i+ovTR7AlsP7lpI9v/1WPJPh1H0BCb0k83IodqfbAfhY4HoBKSp6+LNGc X-Received: by 2002:a17:902:b589:b0:1b9:be2e:2b40 with SMTP id a9-20020a170902b58900b001b9be2e2b40mr373269pls.50.1691517456610; Tue, 08 Aug 2023 10:57:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691517456; cv=pass; d=google.com; s=arc-20160816; b=I+C/LKAR7oSfhiVXOovnBzhX+GYHbhbkjoY7CHVSb5h5+R8wafKfq6NYqzKvBolNix FPj85dM/HrWjjHavkfSzk4Sg6+YCC0bx3dPcvXpQavWbCChfg2xsc25fbzfV6ZCYtVn9 +88K98dO7kQNbVgi9Q3sBz3by/GTdnnBPgKV9wMetDRIiwgEE+AmND4xBuXVWxuWW+km DxyCEeM1uPmxLAfFiYc8l9sjllCcORZL/g39gAzkGvDKUfkdvPD7eHu8V9bLyevf/x2I QSssdFvur7COCj4dQzyftvMALbtc/62t+fnuYESG5ar8s/KsjUaTjDT7yQrIM941xrBz WazQ== 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:organization:from:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature; bh=StWvrXHQpMAgDYqZC/w9b3qTlb66TkWMH8hKjzxqQ6M=; fh=DMR27PSfBxcP9rTTBdNFwYRkdFMSEbdxVp2fb4NHIzI=; b=wnZ+ueZHJZq+uP1rUqF8x8+RZYDmVAnYrUersi3SB5bgQF08/9pxmJepVg0sLCG/QN 5Lbt0vCdHqHL9Fjra1HW0/dUfBA8oqeg9yNHR31c4kXYbOfNdYC5BQQF/4XyUo84D4ZU tp6k8Rq9KAiLXGWEB5GOfw9wOQ6jZFYJaw8E5ju1p8LVRySzEflWQ5b9PMtw/A1jdx+t vs2qlEbK6+ZC9dDT2z9823U1E9LozbDgeShlcEjaY6hnVS0B5pb6DQqIWzKGnvgrVRbH e0vyqVIOPOTIVwDCbQ1+L0W+iigXDMOjV5xNrh/NOtTH3Y+61BzcJ+r+qVpsLRLbpkz7 vgrg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=BnOP+4VE; 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 t10-20020a170902dcca00b001bb821e394esi4812085pll.319.2023.08.08.10.57.24; Tue, 08 Aug 2023 10:57:36 -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=BnOP+4VE; 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 S232348AbjHHQPC (ORCPT + 99 others); Tue, 8 Aug 2023 12:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbjHHQNj (ORCPT ); Tue, 8 Aug 2023 12:13:39 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2072.outbound.protection.outlook.com [40.107.101.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7121E7EDF for ; Tue, 8 Aug 2023 08:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PImKegTH7PyAkRnI5Cwx3ob6+i/lhINwNZm3odNJTSXV/ABeMEYp2yqlv0wYs412hVT9BVSmNwDZX7UYr0YjMZwxgX9piy5/u2f+wmHRLBMsgQAIMN+mczfBsPrHblJatphpezXTlZjvM+RXgrvUlJbBCjbJCusITCOs0nsxwGAPa7v01ngA5D31DM+ITCdpbM8XJKc+ujYNs+piQ52M+LUcU88feQThw9Pgu07BszNzaEfjOWDhlo2Y3CUJBKJX1eC2wWBCldxJ1Eq1sCc+nv2LqG5IVo2B+g8YpJnbsKdPoPCb8t3+0+TVSliZbXLe4AhXbZwA334gXU2Wx+z9bg== 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=StWvrXHQpMAgDYqZC/w9b3qTlb66TkWMH8hKjzxqQ6M=; b=cku/FNY6xO4B2Kk+H0aySbR9mxv/93y9wFSw0fiB6qWKs/ahXlKjQhrycawzpVdb8Oa9h5gcfbyZ6//m/RgYfGdoKtz45/wya5Ge3+2Y3K87rtnMnFVMV0ON2S9yRRDLpQM4yK+wmJeKGMZVu0nBimZuhOAPFxZPAyB2980jHBKR3c7ar5poF898CJBfI1WxJDgQNNqxCygGt0oVa1I9iU/KMPQXdGaGh8LbjbTbSFk6/40yShn0nrnTD9RbKAtGSjxDP0lB0bt8y872ygTXVYvdaa3U96hCwvujABWr52uyIq0NcY8j4Mm6j/e41sCLaIEnkm2SNBK1wG4ATL6W+Q== 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=StWvrXHQpMAgDYqZC/w9b3qTlb66TkWMH8hKjzxqQ6M=; b=BnOP+4VEl4053HcDd1zvt+0eeRw1jLxACSuyoBdm/4lwRKI6eT6gVvjqmekatG0AhXv7DHcsP9xNKV7Ot6765VZg3j2aYz+pdZ8C5Y1t8KjLr06Ow9X73cNu5DICiGpY9YB6ezHbX+JbZ2lNbXzjr3m5tf6dmzXiICj+DLDohEc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ0PR12MB6760.namprd12.prod.outlook.com (2603:10b6:a03:44c::18) by MN0PR12MB5881.namprd12.prod.outlook.com (2603:10b6:208:379::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27; Tue, 8 Aug 2023 15:04:14 +0000 Received: from SJ0PR12MB6760.namprd12.prod.outlook.com ([fe80::26a3:7479:9830:da4d]) by SJ0PR12MB6760.namprd12.prod.outlook.com ([fe80::26a3:7479:9830:da4d%6]) with mapi id 15.20.6652.026; Tue, 8 Aug 2023 15:04:13 +0000 Message-ID: <61efe587-9a7a-063c-a388-eed9f51958d4@amd.com> Date: Tue, 8 Aug 2023 11:04:09 -0400 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 To: =?UTF-8?Q?Christian_K=c3=b6nig?= , 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> Content-Language: en-US From: James Zhu Organization: AMD RTG In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YQBPR0101CA0022.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00::35) To SJ0PR12MB6760.namprd12.prod.outlook.com (2603:10b6:a03:44c::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR12MB6760:EE_|MN0PR12MB5881:EE_ X-MS-Office365-Filtering-Correlation-Id: b3619547-2849-4331-2205-08db9820ba68 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u5/qTnLiGFGE0IiO+QkFFaiu+9+v3czyeB35ZyidgHvC0Js0dnJHeqIBdrIT8UAI5g8H0Lx0+COKOirxeAZ0vJpNvkL+LhniTTvb45CyU3M0uxYQy6yhRyxBIx6lHKadBxnr79/54dAElxCicEycy5yuE/G5sL0xPpLNrL+rq9ZvOzdjUbgtFzB8X7OZvhX/DSH5+Jn9LDE/fJe73OWZm+kRrJH68livkt5MgZmBl4ZwuHWwJelMEvTkmJcgEWwAzfdyDF8e46dpzmSPRtP3UU7FkxRTRfntG8PzNmYOxV+nTkFxdIi78Xbh9H7oDmguScrG+gI1TO6u36BuIeBknKt/SL50PgbVXJ72MGiKrKNpRDxJx9nx6ZpeyioUSn7fgrCyDt4aQ9/BG+Y+bLpEtGlqmX7P1qQ147ZDwHdpwzgGiW7s8fkyyMjyLdEdDAym9JYGy6GAD97nZUnfw2sYZvc238Snl6MlAuCGqbExo/CpsSGHkAe94oZll2yNxsUwDXfUJCwb9fw9doctQ6PzpcqY/dP7cMHrX5W/ttr58H9c1d4xpH/vunsr4gTHz4hoiAUZvPyestglbHs7csJQ9sMeHSVVaGqgEHwB0AvX6GHHJ7K0eRRG9yGJ0+IdvZcS9CBylcKkr8u93Z4Sz0iXnQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR12MB6760.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(396003)(376002)(366004)(39860400002)(136003)(451199021)(186006)(1800799003)(7416002)(8676002)(8936002)(5660300002)(4326008)(41300700001)(316002)(83380400001)(31696002)(2906002)(6512007)(6666004)(966005)(36916002)(6486002)(2616005)(53546011)(26005)(6506007)(36756003)(66946007)(66476007)(66556008)(478600001)(54906003)(110136005)(31686004)(38100700002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VGJOd2RxVnlEYlMwUWNITTNGSGs3WldCOHFPODE0L2pmZHVPVkxRN3E4bUhO?= =?utf-8?B?WWFGOWdqYW83RzduMk50aVUzWEpQNjFmK1luUGlKLzl3Mnc5a1Zzb3pFckpp?= =?utf-8?B?TVNXUUZpZ3VjcFRuRUVYTkhPd0VHNVRLOE00bnJBcFZyWk9lby9YQjd1eE9S?= =?utf-8?B?NmlmNFpHZVBRQVU2K3U4TXJ2ajY3QmdJcEl4WnN5NVVBdXBnMjNvYUJvL1Q3?= =?utf-8?B?UllHdzZPcndBQ2d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3VjekZVdTJZMDBzM0E2cHZpd01H?= =?utf-8?B?Mks1SXpnbnlabVZiVlFxNy96R2pNaWRpSzNPeWdYVG9kSTYvaVJpMDdHNjFQ?= =?utf-8?Q?8NJIf4H6qOUxNKMQameaxRwLC?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3619547-2849-4331-2205-08db9820ba68 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR12MB6760.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2023 15:04:13.8237 (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: uSKVrETxuiRGobUnpxC1yFiqi6TvdFBqKTg5ehot0BNQFHWSuxeXsF/25ImIVu33 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5881 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,RCVD_IN_MSPIKE_H2,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 I would like if these kernel patches are accepted by everyone, If yes, when they can be upstream. I have a MR for libdrm to support drm nodes type up to 2^MINORBITS  nodes which can work with these patches, https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/305 Thanks! James On 2023-08-08 09:55, Christian König wrote: > 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.