qemu-e2k/include/hw/i386
Babu Moger 7568b20555 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>
2020-03-31 19:13:32 -03:00
..
apic_internal.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
apic-msidef.h
apic.h
ich9.h hw/southbridge/ich9: Removed unused headers 2020-03-09 15:59:31 +01:00
intel_iommu.h misc: Replace zero-length arrays with flexible array member (automatic) 2020-03-16 22:07:42 +01:00
ioapic_internal.h hw/i386/ioapic_internal: Remove unused "hw/i386/ioapic.h" header 2020-03-09 15:59:31 +01:00
ioapic.h
microvm.h hw/i386: Introduce the microvm machine type 2019-10-22 09:39:54 +02:00
pc.h hw/i386/pc: Clean up includes 2020-03-09 15:59:31 +01:00
topology.h hw/386: Add EPYC mode topology decoding functions 2020-03-31 19:13:32 -03:00
x86-iommu.h
x86.h acpi: add acpi=OnOffAuto machine property to x86 and arm virt 2020-03-29 09:52:13 -04:00