diff options
author | Babu Moger <babu.moger@amd.com> | 2020-03-11 17:53:34 -0500 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-03-31 19:13:32 -0300 |
commit | 7568b205555a6405042f62c64af3268f4330aed5 (patch) | |
tree | d6e82569034ae5a17422f49e6ea785c535c8c934 /target/i386 | |
parent | 2833ad487cfff7dc33703e4731b75facde1c561e (diff) | |
download | qemu-7568b205555a6405042f62c64af3268f4330aed5.zip |
hw/386: Add EPYC mode topology decoding functions
These functions add support for building EPYC mode topology given the smp
details like numa nodes, cores, threads and sockets.
The new apic id decoding is mostly similar to current apic id decoding
except that it adds a new field node_id when numa configured. Removes all
the hardcoded values. Subsequent patches will use these functions to build
the topology.
Following functions are added.
apicid_llc_width_epyc
apicid_llc_offset_epyc
apicid_pkg_offset_epyc
apicid_from_topo_ids_epyc
x86_topo_ids_from_idx_epyc
x86_topo_ids_from_apicid_epyc
x86_apicid_from_cpu_idx_epyc
The topology details are available in Processor Programming Reference (PPR)
for AMD Family 17h Model 01h, Revision B1 Processors. The revision guides are
available from the bugzilla Link below.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537
Signed-off-by: Babu Moger <babu.moger@amd.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <158396721426.58170.2930696192478912976.stgit@naples-babu.amd.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386')
0 files changed, 0 insertions, 0 deletions