Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp525309imn; Thu, 28 Jul 2022 07:56:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sY+tU60hKthOsH1nqahW2cvTWz4hfJR9DexfCfa6by0/hx5OnHIRNqkv+uf8WO5FDudUq6 X-Received: by 2002:a17:903:32c3:b0:16d:328f:8988 with SMTP id i3-20020a17090332c300b0016d328f8988mr26198167plr.108.1659020199781; Thu, 28 Jul 2022 07:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659020199; cv=none; d=google.com; s=arc-20160816; b=Ym8lpeXTQpXmFH/wpIr+/HPYXTGmpSUV2O2GgPCVUt+rFUWd8C93kW1fQ8a0mBwlsy 2LQkgg0edCBHsWjbhx7Wep8QM5RPC5WkS5lgRViaVLTkHZHN/IsQLLed3XUh4C/RqgqU Kx8qXOAMbxMznOOVgu6kunB8tFhA0c6YwGvalwILOAqyEcoBwS4hk4kINSymRpMJYUZy IUVoehstYg/iInojbd7COo6pooTH/KRP1es5/V+tBoouaxIEkOScMYa3zCIxn4gqA/vt DAf+A/Nn5JKwAzUdc9DdxLCrKqffGZDi17hR4KQHR0+elmR0HAz+hv5Dle427prOA7aP dRjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=Fje/wPKfeKkA3zBSKNSFSbZIQmOsCAPH58zdG4srTYc=; b=iRH3F2On6li5cIzi93dFCuipLuXT3PAHojBGwPfRQW/Oko/+/gKqMgC5XPTpy4FnML Rr4CsI0e5iP733mzLOXkA33XhOACXAW2KSQ1g79hoEIs+UW6P8kbWgGeTzHBWXIT4zZ/ sh3HD52oCR88CmQbydbdrPHYxUq85fH2aR73qWMnkAV/xxN72alpdGiPYddoaoRxAw0a Iob5gtqr1nIjCHhe43l3Xup5DFZFIhmnSz+1X+HSTWtpFao+z3opSn4Ost5qyz/5rWOz q5zcLubAL2qgAvdAQ5FAc9z5exMASEHbveZhJdhHbrlD4WYquZxzvAzHcAgmvG0c381T q1Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=SvvxdDah; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Fcr58LC4; 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=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7-20020a630807000000b0041a994dd00fsi1341870pgi.321.2022.07.28.07.56.24; Thu, 28 Jul 2022 07:56:39 -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=@cerno.tech header.s=fm2 header.b=SvvxdDah; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Fcr58LC4; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232313AbiG1OoY (ORCPT + 99 others); Thu, 28 Jul 2022 10:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231458AbiG1OoW (ORCPT ); Thu, 28 Jul 2022 10:44:22 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB974F5 for ; Thu, 28 Jul 2022 07:44:21 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3ACC05C006D; Thu, 28 Jul 2022 10:44:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 28 Jul 2022 10:44:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1659019461; x=1659105861; bh=Fje/wPKfeK kA3zBSKNSFSbZIQmOsCAPH58zdG4srTYc=; b=SvvxdDah5oDoydmCwKaabHpvww uLFfTX1SncpEKbnfhDAAB4sFtjzYJdgMFInB2B31VJp/+JtoS8L4HuhcnzWH+/QO LSuVzUGoFepbdmV7MXdPNerHwKDPyJ9Mz0PzCxqPgThSahSHp1ShgHGrirgZFxBE E2WeyXIWIO1BGwWjYuB2zWRcn5jB0Eq5Zh5eWygGXI85SfOBdp6DGpDNPSs3bcn3 1CJ3CU/uU3ojxgkA5PTQ9OcBJMQFPPknKhaYUpVifb+lgLNAkS2AQXMfhSu6XYDz erzQLzSoGE1wGq1qKX2AdcV92D48hxurpRo72GWKAKmEN+GnOD65QshtqogQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1659019461; x=1659105861; bh=Fje/wPKfeKkA3zBSKNSFSbZIQmOs CAPH58zdG4srTYc=; b=Fcr58LC4fnDMv9jXrbHWX0xj/45IzOXtOLwxUsl40C5/ vxE4QtO3C5fokOgcUkrCKO7TmWWEOZ5M0FRBt02bDcnn/5YBykfZrtYRCYO+QK8k lba+HYY8mA9qxYwm2xQUjPlI6Fo4MMXs7LD8ZBQKzS/C7toQm3IUsfwpWibnylP0 c/JkRUoDzr4b4naxj/hug+16G6gGzCbg6hRGk85w0ppuBznYZ61jo42YGgPJAB3I 1AQ+IzVtZk0dHm2ZsuWOvsfuWtTMwXb8gBF5Horm8nApt7Uh2FppBK8EL/XYA5yA oh4KDFYyFLwedPxLHT0slQTz5ef38lmWFFGqIXmziw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdduhedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehgtd erredttddvnecuhfhrohhmpeforgigihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegt vghrnhhordhtvggthheqnecuggftrfgrthhtvghrnhepteefffefgfektdefgfeludfgtd ejfeejvddttdekteeiffejvdfgheehfffhvedunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Jul 2022 10:44:18 -0400 (EDT) Date: Thu, 28 Jul 2022 16:44:13 +0200 From: Maxime Ripard To: emma@anholt.net, daniel@ffwll.ch, dakr@redhat.com, airlied@linux.ie, christian.koenig@amd.com Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 00/10] drm: use idr_init_base() over idr_init() if applicable Message-ID: <20220728144413.nebc2js26vlwovr3@penduick> References: <20220701185303.284082-1-dakr@redhat.com> <165901911294.5946.5075667196143577988.b4-ty@cerno.tech> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r2toc7lzoajpzjnz" Content-Disposition: inline In-Reply-To: <165901911294.5946.5075667196143577988.b4-ty@cerno.tech> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS 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 --r2toc7lzoajpzjnz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 28, 2022 at 04:41:41PM +0200, Maxime Ripard wrote: > On Fri, 1 Jul 2022 20:52:53 +0200, dakr@redhat.com wrote: > > From: Danilo Krummrich > >=20 > > This patch series initializes IDRs with idr_init_base(&idr, 1) rather t= han > > idr_init(&idr) in case for the particular IDR no IDs < 1 are ever reque= sted - > > this avoids unnecessary tree walks. > >=20 > > Danilo Krummrich (10): > > drm/amdgpu: use idr_init_base() to initialize mgr->ctx_handles > > drm/amdgpu: use idr_init_base() to initialize fpriv->bo_list_handles > > drm: use idr_init_base() to initialize master->magic_map > > drm: use idr_init_base() to initialize master->lessee_idr > > drm: use idr_init_base() to initialize mode_config.object_idr > > drm: use idr_init_base() to initialize mode_config.tile_idr > > drm/sis: use idr_init_base() to initialize dev_priv->object_idr > > drm/v3d: use idr_init_base() to initialize v3d_priv->perfmon.idr > > drm/via: use idr_init_base() to initialize dev_priv->object_idr > > drm/todo: remove task for idr_init_base() > >=20 > > [...] >=20 > Applied to drm/drm-misc (drm-misc-next). The via driver had changed a bit and the patch 9 didn't apply at all. I've moved the change to where it looked like it belonged, but you might want to double check. Maxime --r2toc7lzoajpzjnz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABMIAB0WIQTXEe0+DlZaRlgM8LOIQ8rmN6G3ywUCYuKgvQAKCRCIQ8rmN6G3 y57YAP4+m/e9OsvwjRt/iw8zIFBZKoLxAE0IPwnFlSHrNn2tUAD/WS/gzyTd6/LJ oF1hmSuR64Ar+Q/JsOPP81uQ+9wHJ7g= =UBYt -----END PGP SIGNATURE----- --r2toc7lzoajpzjnz--