Message ID | 20240823163048.2676257-1-michal.winiarski@intel.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <intel-gfx-bounces@lists.freedesktop.org> 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 7D9F0C52D7C for <intel-gfx@archiver.kernel.org>; Fri, 23 Aug 2024 16:31:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2886310EC72; Fri, 23 Aug 2024 16:31:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZotNIXC7"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 82E1110EC72; Fri, 23 Aug 2024 16:31:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724430693; x=1755966693; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=bE/kFYTWfFPMwK3f9LVPcQZ+tImJmKOD9tHs7SqQ/iY=; b=ZotNIXC7w4oQZkyGmMDGdaEosQdAnzKYG2m0JzuVjczRO3APg3NsJ+1T yMmMVJ4KxLGjea5dABmVkBnA2nX7hUBV7zfR+nt2ePJ1w8tdLidS/2V6Y ofgj7SHxBWWjZxCj1tbXVZxUjEors8ROyh2tRciK5hLmkgsyN32+HTTid d0gFTUWd1Zzyefs3Cv+gJPuFV9Yy4vnhAd/AWzTb4HrZMuQzvr3x1RiYU /mHGp9Vwdh5CCPgJLvMFdcCvLY63HM874l6ayDpDQKAARUJqxwmhN4vzz 30BOTcB4LGmd9sw4HGTeylsQEoydf+hNRskhnk+T+JDk1HpY25rjLbJ7Q A==; X-CSE-ConnectionGUID: XpjiyiJURK6MnaFkj1ENAA== X-CSE-MsgGUID: F82Fh2uiTQC9sdCgYQhbGg== X-IronPort-AV: E=McAfee;i="6700,10204,11172"; a="40369168" X-IronPort-AV: E=Sophos;i="6.10,170,1719903600"; d="scan'208";a="40369168" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2024 09:31:33 -0700 X-CSE-ConnectionGUID: kN/xGp0WTKKPJjmJJj/sbA== X-CSE-MsgGUID: X4eNGtfgQb+0xrALyvISNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,170,1719903600"; d="scan'208";a="66539133" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmviesa004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 Aug 2024 09:31:31 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 23 Aug 2024 09:31:31 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Fri, 23 Aug 2024 09:31:31 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 23 Aug 2024 09:31:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u6eCrWZrLdOhioDyaUFouGWJukgYFjaSP7waTtAqMrkDFP8FihJkKC1vnv3XvEyVnJxYjaESJuCixcrCWvPUq0n2jtTt7zBXA1e+hBwWCcG8m20Iqn/ajEVfMS/cOAD+/OtWZNN66Bg2kfZaEOkiOjHMrsF5ttugxlaI80B604U6jLUVA4qmzX77JI1v/3a+I5+37P5w/NPQhSJVb0+EivY33q/vuo1m1S7GuT/VqFY3IW+VK/nGCogPbXtT8Tz+VsD6zcFQtAYms42j89i38R+or7JSyIYMl0xGnML+0Z5p9jBNNxaM+3yXgMLijHPdWHplIllqebn7QOO/yAREog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=lsu21nW0iUIq97WpCwj+PVZTtvIeamfdG6YzTjC0VR0=; b=qhWwUWNMmtJv6gIJHxg/H+aCihE/vmI7JTeQ4pKbUYbdgK9SiWl/CaMkXlUyPN0O0XJSLiZuD0wHqURJlrI6L3x5P5xe2jt3IZkDr8L7Yyr9ydjKjsg0eHK4xrD5fNfTlZ3LfyDYoFTUihqDuteKEZvX7Wv8VrHAczzZPI736PPW5SKnhjWeZMB1znTmIRuXiOutcggpmolqe8W1Y4cVW0f2zXj2rbYBfwXeNxqYTkOMtMdElqrJCf+jy4tXs3HJs3lIhxtdI+wsLIU5nv/HtP+cqgNCEMHhJa7QjA//n4bXkyDPE+HNbs4ggCTd9ajNxYjHG0NQNolzEKoXZNhY2Q== 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 BL1PR11MB6026.namprd11.prod.outlook.com (2603:10b6:208:391::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.19; Fri, 23 Aug 2024 16:31:28 +0000 Received: from DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::927a:9c08:26f7:5b39]) by DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::927a:9c08:26f7:5b39%4]) with mapi id 15.20.7897.014; Fri, 23 Aug 2024 16:31:28 +0000 From: =?utf-8?q?Micha=C5=82_Winiarski?= <michal.winiarski@intel.com> To: <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>, <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org> CC: David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, Simon Ser <contact@emersion.fr>, Matthew Wilcox <willy@infradead.org>, Oded Gabbay <ogabbay@kernel.org>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, James Zhu <James.Zhu@amd.com>, Pekka Paalanen <pekka.paalanen@collabora.com>, Emil Velikov <emil.l.velikov@gmail.com>, "Alex Deucher" <alexdeucher@gmail.com>, =?utf-8?q?Micha=C5=82_Winiarski?= <michal.winiarski@intel.com> Subject: [PATCH v7 0/3] drm: Use full allocated minor range for DRM Date: Fri, 23 Aug 2024 18:30:45 +0200 Message-ID: <20240823163048.2676257-1-michal.winiarski@intel.com> X-Mailer: git-send-email 2.46.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: ZR0P278CA0162.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:41::13) To DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5373:EE_|BL1PR11MB6026:EE_ X-MS-Office365-Filtering-Correlation-Id: 13e585e1-5ba6-45d3-15cc-08dcc39109dc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?dtqMR3V3FFE4uVV7j6J86ETkSHp4AzS?= =?utf-8?q?/TfPZZEdHxEcEEYqyQ9z2dhVkwaLCOltWZb13+ul6Np09szfzKZR5Ld1NU+KR3FoE?= =?utf-8?q?N40kxclgGZcb2PJLgxLkV3ZdueD37aKTzZ5EZyAUBXNwo6U2dmy0DgwwyHoyqGA2f?= =?utf-8?q?qaiXIwjIsR7jebc6rISmaM8ymjcx7xR/Mcj3dCZbkg8KNXFZJP5Hng5tMdOHieL/R?= =?utf-8?q?Pm3OrkqChILJk9jCNNnCzsiC2458oXSvlhcSf4eIdoi/FjVP9mfeG0H7LAy+PReRY?= =?utf-8?q?jOp5XbLRrxPvTZ0hizpV2AMLOPT7LeU/aOZ/cPVw2Ur2VU0Db+cOtOki8/tXbt7p6?= =?utf-8?q?iwPZ1n5TKhm/PHy755P3UnkBljBUF5V5tFv7pg1vNbwAuU+fmKYdpfVNt9Aee1OZa?= =?utf-8?q?rYQIDqNpWdI2XaPHaxjJ9UJPvQHMcuA2PBy/zhBvTG7dMCjbktdYo5zI0+q9fkmJH?= =?utf-8?q?xhQSU59vR7spBfvmCu++yKflaVmp3MS/12f2mNJl2rE4sXaiOFZRIyRV+QPDjg2wF?= =?utf-8?q?vNff00+XSTY8H/522lXLM1v7szYXx1PbP2N2HOWAN3dDXTIaXUhB0BkQ2YW/jmPKr?= =?utf-8?q?953DWmwOLiSBEq4dsFpXH0Gt3OsU+j/2tKd4GQBCYKvEvzIIi08HR8Qr0R9QLzlQL?= =?utf-8?q?o7O7SQyubpuhZnPYNQblNDBXSSNCygoAMCR/7AY1Zwpx40wzIWfW3cWLJHj5AFtd6?= =?utf-8?q?uJafbDScJnDBnEbrA1jIgN3LrC0OTxN3FqWHLjCeR6+PxeM9tuBR6fEDVZ8mFTwYK?= =?utf-8?q?+lmDE4dcXSA3K3dIVpbPwi13ssHQKNro3UFwvnKpKaIcWriQtNwqxUTO/pleTwOFu?= =?utf-8?q?KAuMpg7usXaQ0f+aU/HwjzrSBmWZodwDvLygql3XeaKlx+fQ+FrTaPKRRDHCEcQ0K?= =?utf-8?q?ZSJfPrPZWvygcTFaAlz/fzduEReiJ1enqKYiGVm4vIhAie9t9YDXKLsdKIm+8kF/A?= =?utf-8?q?74hHEOinCu9uT590YuLWDSgv17l6iHny8V2LKd5/RUJKQC0swVxka+00N1NyC/wdv?= =?utf-8?q?PJ5ipjK0Y5DH/PowNgIzsK96l6DWmzTik9ICbt8hHPlnDiyG0YsfqX8QBIlk6NxB1?= =?utf-8?q?PmSovmct7+r9LlyaDona6XksvgqfYaRLF3RR1abpbJ7GSDwm05P1e8rO9fgaRnWJJ?= =?utf-8?q?Znp/JElP5W3saO5dV3Pn1A4TogwUiUPG7qFfgFox9ai2JH3JKl4YBaF4eHRJvkSbf?= =?utf-8?q?eS9n3YIcj1G3MT63WswMmcJTWN28tc7J90ZTEaGnki6vAJCuR3zBtq+Q8=3D?= 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:(13230040)(376014)(7416014)(366016)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SlQcytaui6t4nf9gSnpEyAOOcscF?= =?utf-8?q?pig1+HkpQN8El+GaohfsxBVzu04DXvhX+t/iE2/XEj6L9W9nSRpSAGSDKzByhLWzY?= =?utf-8?q?DTa2/3OVSE3J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8eJx8qquP7QvkWmu01caNswcA8F0W8xTSW8JArqQ9u4?= =?utf-8?q?Se6ze00Hb6LXMEYWBTybg04CdwHTDHYT7nBPiWeiwYK6h4XZYqtOmhIpgrYm9S2Xo?= =?utf-8?q?ReLmhW82rIjm4Gmw2Q3Bh0JLUL2+0oWsB4DAPbggeWwyVasgXrPN+1fq+jNog1Old?= =?utf-8?q?Mt2SXYdGBDKYDZn6a3dBOlAeCbHbO3r82mEWbBQ2nxgyuHidwvpkKGCOarNyVVzWq?= =?utf-8?q?Rlz2znfTbZT5e0608v5zZMBRg2+IdeKJGs3bqHHvNMZmlxcqJslGymg2iwoMZuTOe?= =?utf-8?q?mn7IfES7+hnzY7J9YEG0Wjto8jnW3JdzjdOltAnURtgaskleYlfhiwoU1G5kVFYcB?= =?utf-8?q?6wDScXKZTiqlL5RXGyOe1lwSAOAFwzpnp7qvSmOJwB4HXIKAvDPWikMGIbA6dVyrR?= =?utf-8?q?0cEhBpZF//IHQ+Shv5gvuTH4vKJyiAGTFftW97xcICIj3yFsDeRKiEJ3+E7KkGvFZ?= =?utf-8?q?M4fv8zBkEo5BnDxmbyn+YwJzbrVdYV2TwVLF8RkqHAd8gX8drSIRpeN26S96AwK5c?= =?utf-8?q?KxH6syKwjr6jfh9YlPL2U9AXmPVR6egg4Q=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 13e585e1-5ba6-45d3-15cc-08dcc39109dc X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5373.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 16:31:28.5328 (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: p2OhMc355dA/Pjlu/tk1t1vrsMHgG2L+d4dg1TODqKfhacLXv7/tkWku2nZRdQ2i3Nh5WJk/y8G0gnp4pnt+1HPk1xdYWjtLYDcLgW/AMCg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB6026 X-OriginatorOrg: intel.com X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development <intel-gfx.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/intel-gfx> List-Post: <mailto:intel-gfx@lists.freedesktop.org> List-Help: <mailto:intel-gfx-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=subscribe> Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" <intel-gfx-bounces@lists.freedesktop.org> |
Series |
drm: Use full allocated minor range for DRM
|
expand
|
Am 23.08.24 um 18:30 schrieb Michał Winiarski: > 64 DRM device nodes is not enough for everyone. > Upgrade it to ~512K (which definitely is more than enough). > > Additionally, convert minors to use XArray instead of IDR to simplify > the locking. > > Corresponding libdrm changes were merged in: > https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/305 Added my Acked-by and pushed the result to drm-misc-next. Regards, Christian. > > 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) > > v3 -> v4: > Convert from IDR to XArray (Matthew Wilcox) > > v4 -> v5: > Fixup IDR to XArray conversion (Matthew Wilcox) > > v5 -> v6: > Also convert Accel to XArray > Rename skip_legacy_minors to force_extended_minors > > v6 -> v7: > Drop the force_extended_minors patch intended for debug > Rebase on latest drm-tip > Update the cover letter, pointing out libdrm changes > > Michał Winiarski (3): > drm: Use XArray instead of IDR for minors > accel: Use XArray instead of IDR for minors > drm: Expand max DRM device number to full MINORBITS > > drivers/accel/drm_accel.c | 110 +++------------------------------ > drivers/gpu/drm/drm_drv.c | 97 ++++++++++++++--------------- > drivers/gpu/drm/drm_file.c | 2 +- > drivers/gpu/drm/drm_internal.h | 4 -- > include/drm/drm_accel.h | 18 +----- > include/drm/drm_file.h | 5 ++ > 6 files changed, 62 insertions(+), 174 deletions(-) >