Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D23EC4ABBB4; Thu, 17 Sep 2026 17:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789665286; cv=none; b=BL+ZKhg0n/Y17kTgThs355wO/o2sWHnV7IZLPfnvoV0SE92mZxoG3oqFJR/IxbZhMriNDpYtGO9NCYnp4QmSf6ZrmasXHL6+FEh1ob/uXUjtezJxr/YEqyJZwJf2lPOy6eQo6jiMlWQsd0xK6LShHP8ZLOtNJz69u7PIvr0ErYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789665286; c=relaxed/simple; bh=reHFVdIYdo+O60nm1JGYkpyvvoIjb82bihAFey73Mt8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K6wi5pQPPCNDjzLe4WC6/6r5FmOrZmCPOD7WAEU41sjtThi0PLbHqIk3Ah19AzuP5rc7EdkvsZpMaBdSntIfL1tgOoRFgjpAZwFSSmrH4NNpbKJ8zk7t9Pb3U+IEVR8del9W0EtEX/EfLVW+or6e5x/KWYcldPUhmhRV3UwKD8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UdNSmn3K; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UdNSmn3K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D2DE1F000FF; Thu, 17 Sep 2026 17:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789665284; bh=vf0eEGbfoDTvUSXbmw0N2bwzSLsYrO/1olLFqDTjV28=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UdNSmn3KRgsaeX7gfO99GAnM0+5ZZKCHyR9XGLgS0JUZTOCbmulLotT7Ys2BW+uEt ssw1BFwFJwZlrGOJzlTL43y3qhJbjVeTqNQ0Dy+AiRBCToPgMzRkmnDDdboUIj7zzd 15EkfwQBT7cYDMRQGAhFGLUFUTly7NCfofxP0JMI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mario Limonciello , Yazen Ghannam , "Borislav Petkov (AMD)" , Deskhmukh Shrirang , Sasha Levin Subject: [PATCH 6.18 0601/1250] RAS/AMD/ATL, EDAC/amd64: Only load ATL when needed Date: Thu, 17 Sep 2026 16:06:36 +0100 Message-ID: <20260917151608.171047406@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151551.901433442@linuxfoundation.org> References: <20260917151551.901433442@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yazen Ghannam [ Upstream commit 4c3da04827dc01dc1cfc3d03654b7de656c42d80 ] The AMD Address Translation Library (ATL) will attempt to load on all AMD Zen/SMCA systems. However, only systems with DRAM ECC enabled will use the library. Other systems will fail to load the library and produce an unnecessary message to the user. More importantly, that thing is dead code loaded and unused. Remove the ATL module dependency table to prevent autoloading. Request ATL to load from EDAC once all system checks are complete. [ bp: Massage commit message. ] Fixes: 3f3174996be6 ("RAS: Introduce AMD Address Translation Library") Closes: https://lore.kernel.org/20260305154528.1171999-1-mario.limonciello@amd.com Reported-by: Mario Limonciello Signed-off-by: Yazen Ghannam Signed-off-by: Mario Limonciello Signed-off-by: Borislav Petkov (AMD) Tested-by: Deskhmukh Shrirang Link: https://lore.kernel.org/all/20260307144910.GA113343@yaz-khff2.amd.com Signed-off-by: Sasha Levin --- drivers/edac/amd64_edac.c | 2 ++ drivers/ras/amd/atl/core.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 2f6ab783bf209..8bec21dbc7575 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -4201,6 +4201,8 @@ static int __init amd64_edac_init(void) goto err_pci; } + request_module_nowait("amd_atl"); + /* register stuff with EDAC MCE */ if (boot_cpu_data.x86 >= 0x17) { amd_register_ecc_decoder(decode_umc_error); diff --git a/drivers/ras/amd/atl/core.c b/drivers/ras/amd/atl/core.c index 4197e10993aca..81ebde74cb107 100644 --- a/drivers/ras/amd/atl/core.c +++ b/drivers/ras/amd/atl/core.c @@ -190,7 +190,6 @@ static const struct x86_cpu_id amd_atl_cpuids[] = { X86_MATCH_FEATURE(X86_FEATURE_ZEN, NULL), { } }; -MODULE_DEVICE_TABLE(x86cpu, amd_atl_cpuids); static int __init amd_atl_init(void) { -- 2.53.0