Re: [PATCH v6 01/90] ASoC: Intel: avs: Check maximum valid CPUID leaf

From: Cezary Rojewski

Date: Fri Mar 27 2026 - 05:28:58 EST


On 2026-03-27 3:15 AM, Ahmed S. Darwish wrote:
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 defining a custom local one for the
CPUID(0x15) leaf number.

Note, the inclusion of a header file from within a C function will be fixed
in a separate commit next.

Fixes: cbe37a4d2b3c ("ASoC: Intel: avs: Configure basefw on TGL-based platforms")
Signed-off-by: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>

Acked-by: Cezary Rojewski <cezary.rojewski@xxxxxxxxx>