Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1505916lqm; Thu, 2 May 2024 18:22:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuFjgyVkUb9UHwAU+cNBGthaJmDujwvidxetV5ubsn4U0SXJ2/JxAVlY9Q2S1SGPqu+NI+XGGFNhnrCtqd6p6Omq9EKtI3rvX4psHR1A== X-Google-Smtp-Source: AGHT+IG5Dlg0B8Str7IWkaXQ40NJJpBh39OuDEofWp7JcE7KfiTXaZKpKE2OoMM5FMkw2WFcsnGG X-Received: by 2002:a05:622a:1481:b0:43a:8877:e372 with SMTP id t1-20020a05622a148100b0043a8877e372mr1362369qtx.48.1714699371635; Thu, 02 May 2024 18:22:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714699371; cv=pass; d=google.com; s=arc-20160816; b=mVOCjUnz+6Yga3IPq2RgX+PiOyBJPGB3n82IIBfUTjArux/hllH8pbsg9FYWyjq3Ug dMPaRMV5DsGEazWOw3SU97MstEk+sYT0VZFjebe7aQhrSy7/YTwVzHbjAKVfFgc96bo4 RW9D/Jta4gklb+QgWD9CEOInoduXM2OrEWiQ276Y7VB7rTH8sqhLn0EraVqO/hDoqyx6 oavgPCRxdVr1y/EwpdlbDpKAVca08GSJq0e0qrj4YzqzpHkYNXYSzQBB/NfoJARQCZn6 bofadx1gU4AKf/Y5pzbiT7cAphU7ceCRHp4aBUniDyPiUmeHiR1u2+wWp0i8lObVMRhY SDsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=k3nkCSoTperPlX+PtC8qWAin0Hv01DoPF7+bPAgfSgA=; fh=LoJyiNRbDsp3uP90Fpi3yZJ5NKlvaS7zseO8FeAPnt4=; b=QYTNEhKVhCmeHwAsfuQx5zlZ/Wuo8FYlqyg/Q4vsBAZDCOQpGEYejY+qAMtsE/Zyho tsQgTC5ddvU6M2HxXWrBOcq/tyFRKHhmMkAK2ZUALZ87bSgRucqCCUBDbP3JuZAYl7JH WUsZ6TX7V5or9UY4W+LzANU/EoTESr3DLcO2GC8LH0C0bhPmW0mvX+pMKAh9wJtzWDLx yzW5bSF7vBHLOPAnRwfYxDaYT5pC3p6wfz1u2LsqJc5ds39hgSiKeJPvLluj5N4UmPed xKQsdtl+VyUkQZ35Z5CLgE6TvLIZmLew2sGZdgAcV2s5KkeqW/KB8xLwS2wRAnlzkqSt onAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gigaio-com.20230601.gappssmtp.com header.s=20230601 header.b=C0J2fWpd; arc=pass (i=1 spf=pass spfdomain=gigaio.com dkim=pass dkdomain=gigaio-com.20230601.gappssmtp.com dmarc=pass fromdomain=gigaio.com); spf=pass (google.com: domain of linux-kernel+bounces-167139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gigaio.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i15-20020ac85e4f000000b0043addb580a8si2279781qtx.441.2024.05.02.18.22.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 18:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gigaio-com.20230601.gappssmtp.com header.s=20230601 header.b=C0J2fWpd; arc=pass (i=1 spf=pass spfdomain=gigaio.com dkim=pass dkdomain=gigaio-com.20230601.gappssmtp.com dmarc=pass fromdomain=gigaio.com); spf=pass (google.com: domain of linux-kernel+bounces-167139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gigaio.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D21A1C21DAB for ; Fri, 3 May 2024 01:22:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0E90E541; Fri, 3 May 2024 01:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gigaio-com.20230601.gappssmtp.com header.i=@gigaio-com.20230601.gappssmtp.com header.b="C0J2fWpd" Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55D948F47 for ; Fri, 3 May 2024 01:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714699360; cv=none; b=AMWLotvd84RRhi8NcWFWbYh817bzQ6ye7BssyrzDMsORs1MRxdIUxrLPJf3qL1GU0dA4mRrq2GfFaW5SuC+aQMC9i1CGvVbTHHha+P4QG8NehYEfCCV0cvLc7j2hqWq9xVhXxIhU5YrL6bO9JP31IUHfGjDssylnioxtDsqudSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714699360; c=relaxed/simple; bh=THq6Ze4gPUnRdVplVf82t5+be7u1nGQ6bRReSoZAFVY=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=jsldj0uZ1TW1MQGv6SQfn/E1tvFi1HLLnCcn0jHP6J0gr9zS1UPLxm//276rnFgpjJHSw9/WhK6kwMll3p5BvWDIT0eu2YI6N5m5Yxiw6jTiZmGGXhxZPQnjWfHQEknB5UOj+PXsy+R3KJMu4R1xGkDsGM7VGb+9sFad2M9o+wE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gigaio.com; spf=pass smtp.mailfrom=gigaio.com; dkim=pass (2048-bit key) header.d=gigaio-com.20230601.gappssmtp.com header.i=@gigaio-com.20230601.gappssmtp.com header.b=C0J2fWpd; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gigaio.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gigaio.com Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5d42e7ab8a9so4990708a12.3 for ; Thu, 02 May 2024 18:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gigaio-com.20230601.gappssmtp.com; s=20230601; t=1714699358; x=1715304158; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=k3nkCSoTperPlX+PtC8qWAin0Hv01DoPF7+bPAgfSgA=; b=C0J2fWpdfbp3GMXsOE611jRLWv7QcNkJfSuOw6/JSbqOePVf7z5Pau7Ux5s53/FPHn ikww9kqieEsLQ2xGKutOBFvBkoa4pJF8m9/maKNkbupAOQ+eLeLWjwF8GI3F2+rZLhZl ZcLrlthdCNTzKAmTvm6tjwLDQLZFsb0XKJBGIv9trcxa+tav1wKx/4XmQXHd+XQ+zIM2 Hqf4GC7mretT7nxam7NSXYBiwVxR2opK5AEB7lGezpViYDQcq71wdX52E911nuZe11rw jEhntyuy9lHqmHdppJR35KtBJ+/3ie6IYrq3fircVq9bdyNNxi4GMECZ8KkW/NESoQuv 1OSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714699358; x=1715304158; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k3nkCSoTperPlX+PtC8qWAin0Hv01DoPF7+bPAgfSgA=; b=D2imkXHuhFbcSCsTYV/2Va4QTAa0AamWjxyQKhqh99iCysZbhycxcIjhFaE58sIb5O DA8fqb6CPIXbAQ1gG5Q+MN8EXmIP7JvAZlFUc/qmxjhRVnz7d1CpMGHLpvw/uXRCTjVD 07ByADMrR1X8NtzLENdilLlNdjB8HyLcIIb4S4VJ2rQofnmEJlkwKBRR0E3iAKDsslDe FxF8ZsZ0x0FLzT+05bmsjQsqCqTLYKNJgd017TT1iZCNRa4VUFoCa6HKTpc8uIYCEOM4 xpeagLlAEsgqTjBk453alF9auCLVMguIh+uVZAa3WDFOWndlpA24GdCxRankF+7ildqv Vg1Q== X-Forwarded-Encrypted: i=1; AJvYcCXI1YwY6d2R75Ry7MnIksKQkkj5JkgBW3hUo/ATPrIyp7ZtwCg+BA3nBw9Mb0JBnlbyoNrX+XZCxitN+qLYiqnOc1mCLQ5csIGlZ8+n X-Gm-Message-State: AOJu0YwXzNCIBF7plUnhy6NxyXoa2f7HxB+221X4mptDufr80M9wr3Oz cM2jCwYfr/y43/Zj3MJaMEVM6fSW9AGKSbgqm744obPj7QnUPAdKUvHbu95JGGk= X-Received: by 2002:a05:6a20:1585:b0:1ad:2016:dff2 with SMTP id h5-20020a056a20158500b001ad2016dff2mr1772812pzj.26.1714699358545; Thu, 02 May 2024 18:22:38 -0700 (PDT) Received: from smtpclient.apple (45-31-42-85.lightspeed.sndgca.sbcglobal.net. [45.31.42.85]) by smtp.gmail.com with ESMTPSA id sx7-20020a17090b2cc700b002a4b2933a7asm3931314pjb.1.2024.05.02.18.22.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2024 18:22:38 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: [PATCH v6 0/4] drm: Use full allocated minor range for DRM From: Eric Pilmore In-Reply-To: <20230724211428.3831636-1-michal.winiarski@intel.com> Date: Thu, 2 May 2024 18:22:26 -0700 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 , Simon Ser , Matthew Wilcox , Oded Gabbay , =?utf-8?Q?Christian_K=C3=B6nig?= , James Zhu , Pekka Paalanen , Emil Velikov Content-Transfer-Encoding: quoted-printable Message-Id: <83E51798-5335-49AA-8211-60EC29577617@gigaio.com> References: <20230724211428.3831636-1-michal.winiarski@intel.com> To: =?utf-8?Q?Micha=C5=82_Winiarski?= X-Mailer: Apple Mail (2.3774.500.171.1.1) > On Jul 24, 2023, at 2:14=E2=80=AFPM, Micha=C5=82 Winiarski = wrote: >=20 > 64 DRM device nodes is not enough for everyone. > Upgrade it to ~512K (which definitely is more than enough). >=20 > To allow testing userspace support for >64 devices, add additional DRM > modparam (force_extended_minors) which causes DRM to skip allocating = minors > in 0-192 range. > Additionally - convert minors to use XArray instead of IDR to simplify = the > locking. >=20 > v1 -> v2: > Don't touch DRM_MINOR_CONTROL and its range (Simon Ser) >=20 > v2 -> v3: > Don't use legacy scheme for >=3D192 minor range (Dave Airlie) > Add modparam for testing (Dave Airlie) > Add lockdep annotation for IDR (Daniel Vetter) >=20 > v3 -> v4: > Convert from IDR to XArray (Matthew Wilcox) >=20 > v4 -> v5: > Fixup IDR to XArray conversion (Matthew Wilcox) >=20 > v5 -> v6: > Also convert Accel to XArray > Rename skip_legacy_minors to force_extended_minors >=20 > Micha=C5=82 Winiarski (4): > 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 > drm: Introduce force_extended_minors modparam >=20 > drivers/accel/drm_accel.c | 110 +++------------------------------ > drivers/gpu/drm/drm_drv.c | 105 ++++++++++++++++--------------- > 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, 69 insertions(+), 175 deletions(-) >=20 > --=20 > 2.41.0 >=20 Hi Michal, What is the status on this patch? Did it ever get accepted upstream? If so, what release? I don=E2=80=99t see the changes in the latest Linux = kernel. I am working on a system that involves a large number of GPUs, where each GPU consumes a number of DRM devices. As such, I=E2=80=99m easily exceeding the current limit of 64 in the (6.6) kernel. To workaround = this issue, I have temporarily picked up this patch which is doing the trick, but = now I=E2=80=99m wondering if this patch has seen the light of day in the = Linux kernel. Thanks for any info! Regards, Eric