Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4499410rwb; Tue, 6 Sep 2022 08:20:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+kKwNLJu8SKOlZ2Ec9jbb8wbe2XWV/nfadqvIaQOE+5iAVZ3aMTUvDLQyHNk2SGBsSAVu X-Received: by 2002:a17:906:4794:b0:742:a5b2:546d with SMTP id cw20-20020a170906479400b00742a5b2546dmr20899550ejc.158.1662477602319; Tue, 06 Sep 2022 08:20:02 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a170906145800b007306064f323si8763885ejc.531.2022.09.06.08.19.36; Tue, 06 Sep 2022 08:20:02 -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=@intel.com header.s=Intel header.b=V3T9r2cn; arc=fail (signature failed); 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234819AbiIFOo3 (ORCPT + 99 others); Tue, 6 Sep 2022 10:44:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239773AbiIFOnH (ORCPT ); Tue, 6 Sep 2022 10:43:07 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA9E79DB42 for ; Tue, 6 Sep 2022 07:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662472994; x=1694008994; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=DC7emnL1Rd1ov5yo99+wUyjvWYzf/G/5uD2gtcO8fpA=; b=V3T9r2cn/O1vE9TktbYQc5/7lk7EGkqBYqW3DF+TBQUfrBt63GoVRcgZ 5Bd0PvrEPhWX6y9+FqU+Bi8DNbHjna9MppspKfPmjkPk21ZPIepCoGNhO SNZDk355LfXdt9n71zcr/4rxkhcSg9RaCFe0Yj7vLiC/rX8hmpZzbPyvY 6aGHgY63olNvT8htYyP3PW9uh85MYIvKJ2EAkb5vUfcHzOdldkuW1kZKt QIX8ybHxw3WHEroT46PfqRr0JRqNO2yIaWTzUiu/12E6UnbTKemsve3A5 XrM7s9hU+mv80nfcw37QOh6u04i3fflAVzwX/8TAC02Y0t9ODfrbj+Y6s A==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="297383689" X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="297383689" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 07:01:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="565102052" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga003.jf.intel.com with ESMTP; 06 Sep 2022 07:01:53 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 07:01:53 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 07:01:53 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 6 Sep 2022 07:01:53 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 6 Sep 2022 07:01:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HMQxhU/82QHA7hCoWl6oZxMgtuI/0vpgMift+VYoUYEfnXB2veu1EAYEg0GGRb/uDwcCogkucDuENlj9LHasovNRisWYIdRSD79UsUE3lwa8HOm3jZ4CntvSC4F6HmPksJD1VEAAM8HOK02f3XXC85DZYTMgsayA43RAs75wpdRZ5h7hWc2omFS8gFa2zEJ1CgzEXDb/QhAbRkIHasfEc61kaMHQMpIwvmOpj4p234sH5sPj1SUS1M6ciAivROhpQYkJAc352fjVwJwyKvb1BVbva3WH80wwnxn3Xela8RC7om5/kumo1n4BXEhnzkm4rTmylXsXr4N4a1se03V+WQ== 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=iBgUulvf5HQ8zeOQMaHA4OvwUuG/ZvDUlMFqE4GfICQ=; b=dP+I2kgEirVyksCdptn4r/hylik7bUGCp/kI8iRIOqPhZ5hfaBCUuTA+jPK00wH5YMqjkxJFJAkhaeFkcKZMohfo7wZbbiUR8P2IiEcstm6/s14S/XPhE2WeWougPB/Sbl9A6Pr05KmHBGKsajiVY0/ITrAo4tMB1jU7cty7wtIUYgpPIg4iF2CFL+Rh/uJUijqP4Y5NRsbAJcPVKU4b1yKyMD1Wpdav6Cm3oiPRA3ifEOhHEuxy8/iZqLUchwxpThGzFlTo8Am5KV5IVGJD659MfFSVH9NZ9Mp5NWGjpDxRR01yKZJZv7Fi8eoiXh4EMHM1RTbxFXCvrH0uHI9CQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) by BN7PR11MB2804.namprd11.prod.outlook.com (2603:10b6:406:ac::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12; Tue, 6 Sep 2022 14:01:47 +0000 Received: from DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::b04c:807c:4ea0:c62e]) by DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::b04c:807c:4ea0:c62e%9]) with mapi id 15.20.5588.018; Tue, 6 Sep 2022 14:01:47 +0000 From: =?UTF-8?q?Micha=C5=82=20Winiarski?= To: , CC: David Airlie , Daniel Vetter , "Maarten Lankhorst" , Maxime Ripard , Thomas Zimmermann , Simon Ser , Matthew Wilcox , =?UTF-8?q?Micha=C5=82=20Winiarski?= Subject: [PATCH v3 0/4] drm: Use full allocated minor range for DRM Date: Tue, 6 Sep 2022 16:01:13 +0200 Message-ID: <20220906140117.409852-1-michal.winiarski@intel.com> X-Mailer: git-send-email 2.37.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR3P281CA0090.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::6) To DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ebcb8d6-f032-4917-72d4-08da90105696 X-MS-TrafficTypeDiagnostic: BN7PR11MB2804:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: flYHnvw4EY1fWGM1DA2eqt/sNp6n7T06fE2QQn26aO4F30TXHjYNi8axU/xk+hOPjzmMDm8Dxb1wTZU0UH74bHR3iRt89oLwUyvcMA92Po9+xy9txgOAGnRsNaRB7f9fD/AjvDrfMqCs47BoV2+jTmW8nJvdbMbLtVftiK2ZDXCAKGr6BghMt4NDzrkjU0Ie/2GQIyEjJJPNpEsMo3433AyvAUzMX4NGUoKTSLijcrT6mz+7oO+6U4gGl2vggdKrsepMjNUWc4ipfeYz0gopIgpdn6VAwVl1hgKBTU0WFbFD/pabssAOt4sYHREgkVIV5mpadXePsWMiFQ4x0xmbk187PpaBVC4zEFt/x89reDddVW0yB8Yw0C7nNrFvttWdR85e4YvHv+9rz/xQ2SzxeCpmO+HQtDqNDT4HJ3Gv0ByeONuttbsecaS2oYZRBuQnaajemPf0e/EnOW4Z8+3yaQOgXy+80rkakI2XTHx6s/iuN5DTsJQSR37TdoJjJoQZXjZxw3PXgf7pQre5FzzqlsBAfFxa2Qt2eyygZH3jLYE37ptMVdKKmbDfvxA5jd4unndMPPwxeYQfZFe+FYJi+U1vVDyVewzzKFHNpbdbOn30yqLm2lv3TnHqjMBxBorSoIrPFvmFpJkeLgtZ2EoqBpiKsaLT01dNaU3NaQAbZ2cZ5fmL2znaiGyTM/K/oHfdK08uzAdUJvlmUnMHohpVGw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5373.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(396003)(39860400002)(376002)(346002)(366004)(136003)(4744005)(8676002)(6486002)(66476007)(83380400001)(66946007)(66556008)(4326008)(478600001)(6506007)(6666004)(26005)(2906002)(6512007)(5660300002)(8936002)(186003)(1076003)(86362001)(2616005)(41300700001)(36756003)(316002)(82960400001)(38100700002)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V1pZckQ2ZngybktFcllaemwyK3ZwbzFuZGNUN1Y0WHZqSDF3ck9keE1ZUERJ?= =?utf-8?B?YTRMUDRvV1loZ0FoWDNnNmpUMGc1c1BCVC9zaHdQNGN6Z2RhZzkwKzZsMzBM?= =?utf-8?B?bmJhZXI5UTNLd0lRYWUwU21aOGh4MFBCYU5vWEhRTVFoa2xzNEFrSlV5cG5n?= =?utf-8?B?U1UwSVUrejBYejVqWXIvUnMwc1U0VlBIQ2dieHlja0VzTlQzenVhWDBUbjFq?= =?utf-8?B?QUQ3VHFkQWczbGpjbkNucCs4ait4cTgwYVNsSlRLaHVuakRrdEFlQWtLbWd0?= =?utf-8?B?T1NMQ09Bc0QxR1hYcTJSNDkzelV2cHpoSUpPYzUyTSs1Tkx0bnF0TmRjQXBk?= =?utf-8?B?NXl2aWpYOHgzMjFvVjdoczVyZjNBd1NvTWd3a1lUbUR0dWhTRTdyZGJXMTl3?= =?utf-8?B?S2VHVU5pam5ieXlOd0F3dWFjcDBRY1NiZjl1ampuT3NpbHhrL253RlZ5WGF6?= =?utf-8?B?cnE0VnNKODBEZFFNZzgwZDAvazhORXQrZ2l3REtGMk5tVC9DUTUrM0NqSXdx?= =?utf-8?B?YzgrYzJwREF4RkpOblNBSXZmbTRQUHFGZFJSMWsxRUt4NUdkRldrdHh2OHpy?= =?utf-8?B?RnlTMVJ6aDZsL3J4cWlMZEw4cFRzNTgvb0l0TlpsSFBBVmZobVlnVEU3SmNO?= =?utf-8?B?K3BtMjZKZUpkZC9RMzBRU1BYa2NPOS8yR2lobXJRSExlZ0RWeVhDc1dVbEdD?= =?utf-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Z01yZU9Eb2xHc2RmZE56?= =?utf-8?B?czIwdmFqaEtaS2Z4MHROT3Q5em1SNDNoOStBZzhmMFFaMWhBbEpobXdTYkxP?= =?utf-8?B?dFBaSG5CVU5ab2xNL0twSDF1TXdBUWo1dUlDTmFpd2lNMVBuUTY2WjBvRVpV?= =?utf-8?B?ZzdWSlFhMFMwcHovS1F0cGgyODJBZU9rRzI4U00wY1hvUzhkT0wrQjNEU3NR?= =?utf-8?B?MzREcmR2QzRSNXpHU3hpMitlTmJTTHhFOFJqdERHcjc2VXBSNjZLR2NHR09o?= =?utf-8?B?dDV6Ym1rUVdwVVlsckZYbXk4VnlWQzJ3RlNGT2ViYnhvc0xiZDN0MUphakY4?= =?utf-8?B?K2Y3elNkd284TFcyZWhBbTdhNWpUMDJzWXBMTiszcjZjUE10amxLeUVTVWg2?= =?utf-8?B?WVdRM1liWjVrTVBUdnMxQjh1VXRON3d3SHdrdWFqUDB4Qnc3cDU5cHZmVkRM?= =?utf-8?B?SjRCZzM3aWlRNmNYVTdqUkk1bDcrdG1KU0haNHZPMDY0SXpaNU90MWtTdUx4?= =?utf-8?B?Wmhha0xxdGd6dmVPTWppUHlYY3Q2dkN3RnBlTEtEOWpyWXB2RkJLMWhCcW1I?= =?utf-8?B?aGc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 0ebcb8d6-f032-4917-72d4-08da90105696 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5373.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2022 14:01:47.4796 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uDrHr9BxhRImXNGK5goICuPim0hpDCNj8qKshsdPuFOIiPn4VlBxeAdOu4AQMs12FP3cWw3KMKYWZ/ZP0VO2KetfHSdXUETk6z9HrbAXFD8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2804 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 64 DRM device nodes is not enough for everyone. Upgrade it to ~512K (which definitely is more than enough). To allow testing userspace support for >64 devices, add additional DRM modparam (skip_legacy_minors) which causes DRM to skip allocating minors in 0-192 range. Additionally - one minor tweak around minor DRM IDR locking and IDR lockdep annotations. v1 -> v2: Don't touch DRM_MINOR_CONTROL and its range (Simon Ser) v2 -> v3: Don't use legacy scheme for >=192 minor range (Dave Airlie) Add modparam for testing (Dave Airlie) Add lockdep annotation for IDR (Daniel Vetter) MichaƂ Winiarski (4): drm: Expand max DRM device number to full MINORBITS drm: Introduce skip_legacy_minors modparam drm: Use mutex for minors idr: Add might_alloc() annotation drivers/gpu/drm/drm_drv.c | 55 ++++++++++++++++++++++----------------- lib/radix-tree.c | 3 +++ 2 files changed, 34 insertions(+), 24 deletions(-) -- 2.37.3