Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2298514rwb; Thu, 27 Jul 2023 05:24:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1V+OR3jJsq0skQ3wXUgEgSWr9uCXhVZD+sBtsCTjhMvpiA5BsvPnkx5eAbu7Zf1/u/o7d X-Received: by 2002:a17:90a:fae:b0:25e:bac2:314c with SMTP id 43-20020a17090a0fae00b0025ebac2314cmr3919575pjz.23.1690460650464; Thu, 27 Jul 2023 05:24:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690460650; cv=pass; d=google.com; s=arc-20160816; b=ZsSLOpoDj8j8R7rJ/+MHft2OHCIdhixSmIB9zUynN4hF3O43NnYcV9tpeMPwyFkkIT TTxGPo56U2oj2CAqSxsBta58I+qdvabT20wpZlUnFZfrbZg3jgctOgnd61lT5Wqt5n+j uiBYBCFgHhuu+EJNjq7XVekzkA2KGqVNFw/oBVG2U9j5Putq+rtu/M+5/MhcvJ9tgDj6 JTbQcOBKx1ZiGmvXgfZM17u1u8LbEHfO8YA790su3q6xAbxdhBEDUznZhGBfvSJTIDc4 xD2Of73ZXL/Zr8N5XiGUifTseeuFIFR/jihlpMtYZHXLSKpNvn2gLBCkgcvSbXRnD9cC VRBA== 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=gJRpnA2rd0JhSrYWNy+/Ni3Gx16bLnNnOgiMw0k0iJk=; fh=FwQRLqymz24VQSRIplpwknckJXW4oZ+vj5ZY7EM34ME=; b=pj1XPUK37UJFFFUGIb4r3AeuYUNlj+KVDTXkUwVwIcXW+M8j57AY0RxNSDvWn3GTNp 69LpEZuWjYVcvajgqAR2e5N+fQdPscB1Xx9B6URTLzfRoUigwc44C4+H1kOuQH/SNktp XLma1JykJ0tAa3ZuGZDAabLL49HH2u7sQs8FkLVS7OaqJsZyQjNZz1HX3QA0/A1jBg+3 2/jeik65sfZmA0TD60QMZEXUrEPmMvFQiURS5rpZDVcfjFxZllGCyvoICaivf7WAYz2c UkXYtprdVx30Uu0pF4trzqRlWCo1xVn1GZdxz6TBIZPLO/WsbPRN00PVT37/VhqaPXX1 hkuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=c0qop0ey; 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 lc5-20020a170902fa8500b001b9d335175asi1206309plb.292.2023.07.27.05.23.57; Thu, 27 Jul 2023 05:24:10 -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=c0qop0ey; 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 S233217AbjG0MBT (ORCPT + 99 others); Thu, 27 Jul 2023 08:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232102AbjG0MBS (ORCPT ); Thu, 27 Jul 2023 08:01:18 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2065.outbound.protection.outlook.com [40.107.223.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EC5E272A for ; Thu, 27 Jul 2023 05:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L3EFt2fD47zHdGZOPQUIhEpPMD4Sm1cGHjb84fu+69ab4gtsoXBBAJubWOvK+XuZNUOuADtXwPehmG5oUTCiWuz8coTzf3g8i8kKZwSrq9xwvO1ynKH6gKsqgYZl6+rZlF9XdP7ea4pXju3iYQVKCi9IH3Lbvdy8G1zWnhyxFaIVrw1P4A4+GZIjMbql3uCNUZfkTlMdVQO2UikOrO1ZI0d3uiC17OuEygzoRBVHqy1CTvlc6MoxQC0Z+678XBfiQNFqzecqC2zPBZMH5+U9ps0R0mxN2I13n6wA46PNbZ24YUY3RSr6tue6pYjdXukJRGqwnGp6Ukn6iu+B9LV61w== 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=gJRpnA2rd0JhSrYWNy+/Ni3Gx16bLnNnOgiMw0k0iJk=; b=R0R5ix2byhu1hVx8jvL2wAlLpqoBjOJ3oyXQmxcOYtEo+QTko3+Xr6DH1ztFQWF7dL657uEtBzcUsIDn8mqJ0bPlfjsvkg3+pUcibJVhuOhuQtxu/aT4F2740AKNkCC0j4mlDhXqPzkNqiO2D9au7W03d4L9vVwm4080h+wOG+UvbOxiAdpp2al6YV3a5d7cWpqx5GeOE0KWSNs/6TTQOkCYHWAlnjsdtRmmISJeSEje62j1hC8UjZAgwRmaQB4KRoDKsvf7sOhFic+YgHNbqQYCssuXgXYOC89/e8KP9slGfNOpzjthUB99ljSgJn5N6cmx8gJJ5qVZYSRakO2h5g== 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=gJRpnA2rd0JhSrYWNy+/Ni3Gx16bLnNnOgiMw0k0iJk=; b=c0qop0eyh8SIppoyqvyHc8gX21cUcmilUCXkIA6Ztx6KP6X/oJ6Gz/CA0x/1hXhc5a3f291DLBfVhz/o7fz05flvGSQSDauANuk8HYqsATK01ZDGtbT/WR+t5lNBjfpCHGwlfBNs+nXwHa2fVZxW3xJZlpaRQ43WAJZ4bqTveSY= 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 LV8PR12MB9272.namprd12.prod.outlook.com (2603:10b6:408:201::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Thu, 27 Jul 2023 12:01:14 +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.6631.026; Thu, 27 Jul 2023 12:01:14 +0000 Message-ID: <69801f61-37b0-3e46-cbef-31ff80ae9a34@amd.com> Date: Thu, 27 Jul 2023 14:01:08 +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 , =?UTF-8?Q?Micha=c5=82_Winiarski?= 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 , 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> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <83s0YPWEdYE6C2a8pa6UAa3EaWZ2zG-q7IL9M-y6W1ucF9V54VnZtigKj3BGKUA2FZpIrs0VVxmpHO2RAhs_FdOnss9vNLQNSHySY8uH7YA=@emersion.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR0P281CA0003.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:15::8) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|LV8PR12MB9272:EE_ X-MS-Office365-Filtering-Correlation-Id: a4173358-a1ec-499f-bb29-08db8e992cd7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NwM1gr6lXWfzP4jB/yyM+pGk8p0Swo6+wLQWBKu0EUBAI6f8Ej5yaDCoSXwEwGYU/lJZEGaoihGpjIvDKjO3fXCtB5nn3/Xn1CQ1ZF9xTfTMw0MMfH2RUW1d04kFxfc4+HBpZLJ8L0P3kMwL/7Nw7nxO9QVeEBvLxY9+QtDGbnNDB12D4gJ6KDIugiqJNErUYYgxa3/qqw/uArDDAhHQit5rgVj2XHIH5KfUVIr8wh0NuX40axXav9AykQbiFOxnWtLe8d+WBrPOmxxm/9suPFUXgDHsgGPYG6ab93W8vUWilB1euTp8g70qxmMGG0GeqTLIE3QbDJIfjQbPkqKyX3NsWrduP8f3ZeSW227c7x8j9u+m7OvhtFBw94u4aU50s5bw8vgBvmzckk4ozNGlyJ1B2teHGpsrrJz3na3gJVBSOdJN3winBo+EN3uzW+p0gAiTB5SC8nh2seAEXLis776w4afnbqRxtqrY/nfcF0XuL+8ZLv6nyEs4qrhnGgMTi1/v+K8y7vU42CeI/oZjiXJkdQWnSlW7WWLTuuGqOIQx+GX1uFaaPaO9eFDOpw1R5XHv2WJrvRiOyHtzYtkkzS7h8OsFWIXN39Zwz6xoY+Y/qYXm5s96g4gKpqcMX7w5s4ynXRSoBxH8tyrGUVQnmw== 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)(376002)(366004)(136003)(396003)(39860400002)(346002)(451199021)(36756003)(31696002)(86362001)(31686004)(38100700002)(110136005)(2906002)(54906003)(478600001)(186003)(6506007)(2616005)(66556008)(41300700001)(8676002)(7416002)(6666004)(6512007)(8936002)(5660300002)(6486002)(83380400001)(66476007)(4326008)(66946007)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SVFGdmIrSWExNUtCOVkyQ0R6YmlUcG1aV1RQZ2hZQWJDdkVXTnUvUW5xMzhu?= =?utf-8?B?clU0T24rc2hMSFcvNjcwQ1YzWTlxNGozVjN4OThKcVVZTVA3OHhFZFhYMVp4?= =?utf-8?B?NGdPcnRwRVZWR1M4Sk9zeEd6VStaUlZMekNEUW4ySUVwL3JPdG9lVCtCVUoz?= =?utf-8?B?aXNNT2U0K1BUSlUvaENjaXpockMySjY1bkNvUE5V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ZUZwKytjTStoVUhmZnNrbWxka2hsOFF6ek1hZW5G?= =?utf-8?B?YW84bXYrMVVtYmZMYVRNZHNadDMyb3dLb2ZpL0ZtNy95QjlIUGNYclNLOXJF?= =?utf-8?B?SVI3THRoUDBEeGJDS2Z3WTZON0dXKzVoY1pEWE5HL2lneHpmMk9nbEcwSW1Y?= =?utf-8?Q?6EDrz0rFDiqsKdTyMgz85Sxgo0ivv0SsVjHvKc3xsjHN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4173358-a1ec-499f-bb29-08db8e992cd7 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2023 12:01:13.9115 (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: yUv3QIa90sclir4hSO6KH0fcHk3FDeS6VKsTPQjF4S6Ytjz2DqNe7UyhzY8ornpe X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9272 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 26.07.23 um 20:15 schrieb Simon Ser: > On Monday, July 24th, 2023 at 23:14, MichaƂ 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 >= 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. Yeah, agree. I wouldn't upstream patch #4, but apart from that it looks like it shouldn't break anything which wasn't broken before. > 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? Regards, Christian.