From nobody Thu Apr 2 14:09:46 2026 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 AE094322A00; Fri, 27 Mar 2026 23:52:23 +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=1774655545; cv=none; b=rMWNBLYL67TI3e7Snh6Y54KCljyBfZtH77QY4qUtXTlKlsWtwzIwvoci+SFTvOnsIjPGIyPv0ngNHKUOrwWYaLb4KTyuKoEEGUUlL8T6JAxO3JXeU9lyaL3eWGz9WO6eAzhaVrnDFCO4sqBf87AdsLKHSvT+Qfz9tm5BUKa7hwQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774655545; c=relaxed/simple; bh=ngGDbIN5RhwClCrqpcRZGu1+yKFvyxC8HAHIbeOG3Zk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=pkYrMq0GfLCcnZ6KCMsKnwhDFjB4UraYX5FlGhFxheQZe7xn1YAcuQPZ+sgkBRVwNPkXDBqateIopwkXVhLFGijRDIcXuUGrtJze4qASHYJlsjhv8DyXIQmj1p9B7ju7+nvONhEKg/80Jum3NM1iLm+pFZHz1DTAsCtn4BcWIvM= 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=JsTCRVQy; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=eCTcuowc; 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="JsTCRVQy"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="eCTcuowc" Date: Fri, 27 Mar 2026 23:52:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774655540; 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=KepUjmKYvd5g4f5lawtlCUWkzWp9rdn+FuWh2GXtIrw=; b=JsTCRVQyuOfuq+zDt8VkbIKXmW4LhXRxQ4gROvWCelp/6PS33J7Li59HNUddToh6S3UX7l 6D68kSeQ8URAVjmumVVT7tI5tnypDxDKFQB9xcy1xPozz6eEvLJjzlnkJs2s088CktJmWC c6KojPFU+T+73pZU+Milbl9y5JB9oe6MgJVpSjA4KGHqfuXL17vtfg0qjM8N49kUoaY5UU rJDpG4I4guJ7yoEnPRd5iJwb7xSX5742dyh52R/hN+y+VNFY+JFLRw8jfLAKMYMGC5IhWg DZ5dPutV5uKDshpKcbRYTh+uDUNLucWgfexF+tEYCkuSc4Z58xbq79AnkmqVXg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774655540; 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=KepUjmKYvd5g4f5lawtlCUWkzWp9rdn+FuWh2GXtIrw=; b=eCTcuowcHIesxHB4vHaYdujh4D/Y/yJ+QibJCLsCQ6qAHy3vPxslClDuqHIT0uLPTwkAft QPgpuRUzV7ICYbBg== From: "tip-bot2 for Ahmed S. Darwish" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] ASoC: Intel: avs: Check maximum valid CPUID leaf Cc: "Ahmed S. Darwish" , "Borislav Petkov (AMD)" , Cezary Rojewski , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260327021645.555257-2-darwi@linutronix.de> References: <20260327021645.555257-2-darwi@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177465553949.1647592.7501411738989701832.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: 93a1f0e61329f538cfc7122d7fa0e7a1803e326d Gitweb: https://git.kernel.org/tip/93a1f0e61329f538cfc7122d7fa0e7a18= 03e326d Author: Ahmed S. Darwish AuthorDate: Fri, 27 Mar 2026 03:15:15 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Sat, 28 Mar 2026 00:27:11 +01:00 ASoC: Intel: avs: Check maximum valid CPUID leaf The Intel AVS driver queries CPUID(0x15) before checking if the CPUID leaf is available. Check the maximum-valid CPU standard leaf beforehand. Use the CPUID_LEAF_TSC macro instead of the custom local one for the CPUID(0x15) leaf number. Fixes: cbe37a4d2b3c ("ASoC: Intel: avs: Configure basefw on TGL-based platf= orms") Signed-off-by: Ahmed S. Darwish Signed-off-by: Borislav Petkov (AMD) Acked-by: Cezary Rojewski Link: https://patch.msgid.link/20260327021645.555257-2-darwi@linutronix.de --- sound/soc/intel/avs/tgl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/intel/avs/tgl.c b/sound/soc/intel/avs/tgl.c index afb0665..4649d74 100644 --- a/sound/soc/intel/avs/tgl.c +++ b/sound/soc/intel/avs/tgl.c @@ -11,8 +11,6 @@ #include "debug.h" #include "messages.h" =20 -#define CPUID_TSC_LEAF 0x15 - static int avs_tgl_dsp_core_power(struct avs_dev *adev, u32 core_mask, boo= l power) { core_mask &=3D AVS_MAIN_CORE_MASK; @@ -49,7 +47,11 @@ static int avs_tgl_config_basefw(struct avs_dev *adev) unsigned int ecx; =20 #include - ecx =3D cpuid_ecx(CPUID_TSC_LEAF); + + if (boot_cpu_data.cpuid_level < CPUID_LEAF_TSC) + goto no_cpuid; + + ecx =3D cpuid_ecx(CPUID_LEAF_TSC); if (ecx) { ret =3D avs_ipc_set_fw_config(adev, 1, AVS_FW_CFG_XTAL_FREQ_HZ, sizeof(e= cx), &ecx); if (ret) @@ -57,6 +59,7 @@ static int avs_tgl_config_basefw(struct avs_dev *adev) } #endif =20 +no_cpuid: hwid.device =3D pci->device; hwid.subsystem =3D pci->subsystem_vendor | (pci->subsystem_device << 16); hwid.revision =3D pci->revision;