Sridhar Siricilla has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/72131 )
Change subject: soc/intel/common: Order the CPUs based on their APIC IDs
......................................................................
Patch Set 12:
(2 comments)
File src/soc/intel/common/block/acpi/cpu_hybrid.c:
https://review.coreboot.org/c/coreboot/+/72131/comment/300cdcfb_62a3d44f
PS12, Line 28: int32_t apic_ids[CONFIG_MAX_CPUS];
uint32_t
I don't think APIC ID numbering can go beyond 2,147,483,647, so this shouldn't be any issue!
I too agree there won't be any negative APIC number, but this might require type change for argument of bubblesort() API. If so, existing bubblesort() API can't be used for negative numbers.
https://review.coreboot.org/c/coreboot/+/72131/comment/28e40239_8f5002e8
PS12, Line 31: uint8_t total_cpu_cnt;
How does this work for >255 local APICs ?
This is still within total core count of Intel SOC for now. But, I can update it to uint16_t which can support higher CPU count(beyond 255).
--
To view, visit
https://review.coreboot.org/c/coreboot/+/72131
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8ab6053ffd036185d74d5469fbdf36d48e0021ce
Gerrit-Change-Number: 72131
Gerrit-PatchSet: 12
Gerrit-Owner: Sridhar Siricilla
sridhar.siricilla@intel.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Elyes Haouas
ehaouas@noos.fr
Gerrit-Reviewer: Sridhar Siricilla
sridhar.siricilla@intel.com
Gerrit-Reviewer: Subrata Banik
subratabanik@google.com
Gerrit-Reviewer: Sukumar Ghorai
sukumar.ghorai@intel.com
Gerrit-Reviewer: Tarun Tuli
taruntuli@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: 9elements QA
hardwaretestrobot@gmail.com
Gerrit-CC: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-Comment-Date: Sat, 08 Apr 2023 10:25:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-MessageType: comment