From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7B69274B37; Thu, 19 Feb 2026 10:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771495787; cv=none; b=ncvwxQ42eYEgcwmOCJ7d2gMwnVCT80/FM6Biw4AKt/7IW3xzPnPAhQ7VZ6lv780NZpx0XRf9e7ZzDUOGgAI/k7u4UzkEEjZD/Rr0L9DyXaBSyI7dy/r7efp+fETjFYqiEmWzv9ISEVM2td0wVYln+1QAuP5r+bZQfBbEJnbjFzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771495787; c=relaxed/simple; bh=q1/kcsmRETp7wspynddOCV7OlvJ+YvFQsBqiIrIMRr4=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=KCSO2EeI7ZhfisyHXS3B+lkax464rdKGKEeLEYHnvqV95MKCSvjFct/JhDDLc8OcRN4BPIpXQqXEIqzzoED9bbiT7qbt708gJouls9TyR9qAExlG0Jske0oQ8iWXJQ9JIVutW0xTCidXfzVTDqkvciAEhMNwrX+6a+erG1K3ZxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QTUIZPLo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QTUIZPLo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24EDFC4CEF7; Thu, 19 Feb 2026 10:09:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771495787; bh=q1/kcsmRETp7wspynddOCV7OlvJ+YvFQsBqiIrIMRr4=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=QTUIZPLoWDtllOmleDtmudvrTyW+aH6DHEaB39eE9nhw9OfqYWDoOUx1LcX3Iq/s/ /07ir+pL485oJZgPmPrVVqdFgKQxU6nR9eN8MEMZr8CBihxbLJiu8g3cxyyumNXss6 xTtZZeTGXUqaYTstOwP9xuqAbK6VIjF+8YiSFH4FeNP0PCCCxLW/v/uRwatJSl94pN 4IIXd/+d3o1hWP7ZwukN3Wd41o+2HxBT3TR/rb7y5yVgrxiZqiZinv8Xm+olshjBAR Wa18gcI0xWgtVeWSPOd1PYI1wFtiq5zOjzXXZy74VAt8B2hh7ZbFTWz3Dp0sHgJUgN Rsf2sSPGAPLKw== Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 19 Feb 2026 11:09:42 +0100 Message-Id: Subject: Re: [PATCH v10 3/8] gpu: Fix uninitialized buddy for built-in drivers Cc: , "Matthew Auld" , "Arun Pravin" , "Christian Koenig" , "David Airlie" , "Simona Vetter" , "Dave Airlie" , "Miguel Ojeda" , "Gary Guo" , "Daniel Almeida" , "Koen Koning" , , , , , "Peter Senna Tschudin" To: "Joel Fernandes" From: "Danilo Krummrich" References: <20260218205507.689429-1-joelagnelf@nvidia.com> <20260218205507.689429-4-joelagnelf@nvidia.com> In-Reply-To: <20260218205507.689429-4-joelagnelf@nvidia.com> On Wed Feb 18, 2026 at 9:55 PM CET, Joel Fernandes wrote: > From: Koen Koning > > Use subsys_initcall instead of module_init for the GPU buddy allocator, > so its initialization code runs before any gpu drivers. > Otherwise, a built-in driver that tries to use the buddy allocator will > run into a kernel NULL pointer dereference because slab_blocks is > uninitialized. > > Specifically, this fixes drm/xe (as built-in) running into a kernel > panic during boot, because it uses buddy during device probe. > > Fixes: ba110db8e1bc ("gpu: Move DRM buddy allocator one level up (part tw= o)") This Fixes: tag seems wrong. How is this code move related to this problem? This should rather be: Fixes: 6387a3c4b0c4 ("drm: move the buddy allocator from i915 into common d= rm") Also, please add: Cc: stable@vger.kernel.org > Cc: Joel Fernandes > Cc: Dave Airlie > Cc: intel-xe@lists.freedesktop.org > Cc: Peter Senna Tschudin > Cc: Matthew Auld > Signed-off-by: Koen Koning > Reviewed-by: Joel Fernandes > Signed-off-by: Joel Fernandes I also think this patch should be sent separately and go through drm-misc-f= ixes.