From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 9F23E309F00; Sat, 25 Jul 2026 01:39:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784943601; cv=none; b=TXDdl0zn9wssVM3zttlBi/731mEc5Isrzd0l+Odofncyi101VCbct03wvSd2sGVD1N44Mm07Ol+pVIwC5jAuMf1C6h+YyGdLAY4o6R8IvmBlUId131fTk5Rw4lO51gCoIMz97ek6/7ilVtAgYCHBaugnjDT/ODxuExzT1q0t5Go= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784943601; c=relaxed/simple; bh=Bn/duCpOr/xLHLz9+la9C8gfTUm+a0oOquWK1I8a10A=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=MnMPwarjGKvjfmgjMt1fPXhYL1+o4YoDmRXqcTlEVwLFP+17nEokZrSqYHpBdZOGBSMGQomRH9sZJD2E3ckhw2ptHfXxUV547M/zh2BPl+DW8OlRO/RzCWPQNriTUGoLFlAfSxGuvPcMHkX2Wc8EB3FM4YA1U5Ok6hvBVaOhIX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=r/QXkX6h; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=c+U/2R+4; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="r/QXkX6h"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="c+U/2R+4" Date: Sat, 25 Jul 2026 01:39:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784943597; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k5a9fGqDsmtXPill15w9sFVE680/Xt59jwsis/nT18c=; b=r/QXkX6hsJ+wQ2RasqUU47eeJ8hACSK69RaEisDBpny0R3gDpElOl/GRe4tzwLLsHgzckJ Cf3l+mtNzlWpsc8LrSFabNipzhJ25w9uHbYgNc63PEjojSsT+3Ax3LhhPOyHbJ79wvWqkq foDA4K48O6xeMYYzCgeper7bx/s+3ilMH/WNEjq6Wa/OYvDHUeNOhN3CncQglFb17g7DAA e8Nx/Re/W/OVvRKKk2Ps4aP82TNjl73one7r6J1SyMyVRLnmVuF1+0DyvB8XP4PNXns0Jn M2cJ4spVVB5jjSzLtZP7ozfj6A6mKnzpeT4MrqarQJL3r+Ay8POeZCaU2hYefA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784943597; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k5a9fGqDsmtXPill15w9sFVE680/Xt59jwsis/nT18c=; b=c+U/2R+4rE22/nxMgQYX8rhcaUUO6xW5LPg9QbnmD50lkG78cZLsl4SFCSPGNjJmAhT6Q1 WjxDnfaI0ZBnFwBw== From: "tip-bot2 for Vishal Badole" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/topology: Add TOPO_CPU_TYPE_LOW_POWER Cc: Vishal Badole , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260721154514.2506972-4-Vishal.Badole@amd.com> References: <20260721154514.2506972-4-Vishal.Badole@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178494358921.112641.8632342092707397307.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 924be9d673eb75deef2f71ddee0d7d89fe69bb7b Gitweb: https://git.kernel.org/tip/924be9d673eb75deef2f71ddee0d7d89fe6= 9bb7b Author: Vishal Badole AuthorDate: Tue, 21 Jul 2026 21:15:14 +05:30 Committer: Borislav Petkov (AMD) CommitterDate: Thu, 23 Jul 2026 14:23:47 -07:00 x86/topology: Add TOPO_CPU_TYPE_LOW_POWER AMD heterogeneous parts report a third core type via CPUID Fn0x80000026 EBX[31:28] (Extended CPU Topology, Core Type): 0 - Performance 1 - Efficiency 2 - Low Power get_topology_cpu_type() only translates the first two, so on parts that ship low-power cores the third type falls through to TOPO_CPU_TYPE_UNKNOWN. Add TOPO_CPU_TYPE_LOW_POWER which takes care of this new type. [ bp: Massage commit message, zap the "what" explanation. ] Signed-off-by: Vishal Badole Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260721154514.2506972-4-Vishal.Badole@amd.com --- arch/x86/include/asm/processor.h | 1 + arch/x86/kernel/acpi/cppc.c | 3 ++- arch/x86/kernel/cpu/topology_common.c | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processo= r.h index fc0350f..9e81834 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -73,6 +73,7 @@ enum x86_topology_cpu_type { TOPO_CPU_TYPE_ANY =3D 0, TOPO_CPU_TYPE_PERFORMANCE, TOPO_CPU_TYPE_EFFICIENCY, + TOPO_CPU_TYPE_LOW_POWER, TOPO_CPU_TYPE_UNKNOWN, }; =20 diff --git a/arch/x86/kernel/acpi/cppc.c b/arch/x86/kernel/acpi/cppc.c index b8f5dd0..bbade0d 100644 --- a/arch/x86/kernel/acpi/cppc.c +++ b/arch/x86/kernel/acpi/cppc.c @@ -281,8 +281,9 @@ int amd_get_boost_ratio_numerator(unsigned int cpu, u64 *= numerator) /* use the max scale for performance cores */ *numerator =3D CPPC_HIGHEST_PERF_PERFORMANCE; return 0; + case TOPO_CPU_TYPE_LOW_POWER: case TOPO_CPU_TYPE_EFFICIENCY: - /* use the highest perf value for efficiency cores */ + /* use the highest perf value for efficiency and low-power cores */ ret =3D amd_get_highest_perf(cpu, &tmp); if (ret) return ret; diff --git a/arch/x86/kernel/cpu/topology_common.c b/arch/x86/kernel/cpu/topo= logy_common.c index 71b6c33..581f2fc 100644 --- a/arch/x86/kernel/cpu/topology_common.c +++ b/arch/x86/kernel/cpu/topology_common.c @@ -44,6 +44,7 @@ enum x86_topology_cpu_type get_topology_cpu_type(struct cpu= info_x86 *c) switch (c->topo.amd_type) { case AMD_CPU_TYPE_PERFORMANCE: return TOPO_CPU_TYPE_PERFORMANCE; case AMD_CPU_TYPE_EFFICIENCY: return TOPO_CPU_TYPE_EFFICIENCY; + case AMD_CPU_TYPE_LOW_POWER: return TOPO_CPU_TYPE_LOW_POWER; } } =20 @@ -57,6 +58,8 @@ const char *get_topology_cpu_type_name(struct cpuinfo_x86 *= c) return "performance"; case TOPO_CPU_TYPE_EFFICIENCY: return "efficiency"; + case TOPO_CPU_TYPE_LOW_POWER: + return "low_power"; default: return "unknown"; }