Skip to content
Commit ced101ed authored by Sajan Karumanchi's avatar Sajan Karumanchi Committed by Prem Mallappa
Browse files

x86: Fix for cache computation on AMD legacy cpus.



Some legacy AMD CPUs and hypervisors have the _cpuid_ '0x8000_001D'
set to Zero, thus resulting in zeroed-out computed cache values.
This patch reintroduces the old way of cache computation as a
fail-safe option to handle these exceptions.
Fixed 'level4_cache_size' value through handle_amd().

Reviewed-by: default avatarPremachandra Mallappa <premachandra.mallappa@amd.com>
Tested-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent d97cca1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment