Revision fdf6e7a8c96ebe115b6460768c82dd136ecbd8db authored by Hanjun Guo on 26 July 2017, 10:15:49 UTC, committed by Marc Zyngier on 10 August 2017, 15:22:50 UTC
When enabling ITS NUMA support on D05, I got the boot log: [ 0.000000] SRAT: PXM 0 -> ITS 0 -> Node 0 [ 0.000000] SRAT: PXM 0 -> ITS 1 -> Node 0 [ 0.000000] SRAT: PXM 0 -> ITS 2 -> Node 0 [ 0.000000] SRAT: PXM 1 -> ITS 3 -> Node 1 [ 0.000000] SRAT: ITS affinity exceeding max count[4] This is wrong on D05 as we have 8 ITSs with 4 NUMA nodes. So dynamically alloc the memory needed instead of using its_srat_maps[MAX_NUMNODES], which count the number of ITS entry(ies) in SRAT and alloc its_srat_maps as needed, then build the mapping of numa node to ITS ID. Of course, its_srat_maps will be freed after ITS probing because we don't need that after boot. After doing this, I got what I wanted: [ 0.000000] SRAT: PXM 0 -> ITS 0 -> Node 0 [ 0.000000] SRAT: PXM 0 -> ITS 1 -> Node 0 [ 0.000000] SRAT: PXM 0 -> ITS 2 -> Node 0 [ 0.000000] SRAT: PXM 1 -> ITS 3 -> Node 1 [ 0.000000] SRAT: PXM 2 -> ITS 4 -> Node 2 [ 0.000000] SRAT: PXM 2 -> ITS 5 -> Node 2 [ 0.000000] SRAT: PXM 2 -> ITS 6 -> Node 2 [ 0.000000] SRAT: PXM 3 -> ITS 7 -> Node 3 Fixes: dbd2b8267233 ("irqchip/gic-v3-its: Add ACPI NUMA node mapping") Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> Cc: John Garry <john.garry@huawei.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent c017d21
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 7.1 KB |
Makefile | -rw-r--r-- | 1.5 KB |
alauda.c | -rw-r--r-- | 33.0 KB |
cypress_atacb.c | -rw-r--r-- | 8.7 KB |
datafab.c | -rw-r--r-- | 19.8 KB |
debug.c | -rw-r--r-- | 7.4 KB |
debug.h | -rw-r--r-- | 2.4 KB |
ene_ub6250.c | -rw-r--r-- | 66.9 KB |
freecom.c | -rw-r--r-- | 15.7 KB |
initializers.c | -rw-r--r-- | 3.5 KB |
initializers.h | -rw-r--r-- | 2.1 KB |
isd200.c | -rw-r--r-- | 45.2 KB |
jumpshot.c | -rw-r--r-- | 17.8 KB |
karma.c | -rw-r--r-- | 6.0 KB |
onetouch.c | -rw-r--r-- | 8.3 KB |
option_ms.c | -rw-r--r-- | 4.5 KB |
option_ms.h | -rw-r--r-- | 98 bytes |
protocol.c | -rw-r--r-- | 6.0 KB |
protocol.h | -rw-r--r-- | 2.4 KB |
realtek_cr.c | -rw-r--r-- | 26.9 KB |
scsiglue.c | -rw-r--r-- | 20.5 KB |
scsiglue.h | -rw-r--r-- | 2.0 KB |
sddr09.c | -rw-r--r-- | 44.7 KB |
sddr55.c | -rw-r--r-- | 25.1 KB |
shuttle_usbat.c | -rw-r--r-- | 49.0 KB |
sierra_ms.c | -rw-r--r-- | 5.3 KB |
sierra_ms.h | -rw-r--r-- | 98 bytes |
transport.c | -rw-r--r-- | 43.9 KB |
transport.h | -rw-r--r-- | 4.1 KB |
uas-detect.h | -rw-r--r-- | 4.1 KB |
uas.c | -rw-r--r-- | 31.4 KB |
unusual_alauda.h | -rw-r--r-- | 1.1 KB |
unusual_cypress.h | -rw-r--r-- | 1.4 KB |
unusual_datafab.h | -rw-r--r-- | 3.0 KB |
unusual_devs.h | -rw-r--r-- | 66.7 KB |
unusual_ene_ub6250.h | -rw-r--r-- | 968 bytes |
unusual_freecom.h | -rw-r--r-- | 1017 bytes |
unusual_isd200.h | -rw-r--r-- | 1.7 KB |
unusual_jumpshot.h | -rw-r--r-- | 1.0 KB |
unusual_karma.h | -rw-r--r-- | 996 bytes |
unusual_onetouch.h | -rw-r--r-- | 1.3 KB |
unusual_realtek.h | -rw-r--r-- | 1.4 KB |
unusual_sddr09.h | -rw-r--r-- | 1.8 KB |
unusual_sddr55.h | -rw-r--r-- | 1.5 KB |
unusual_uas.h | -rw-r--r-- | 5.2 KB |
unusual_usbat.h | -rw-r--r-- | 1.4 KB |
usb.c | -rw-r--r-- | 31.1 KB |
usb.h | -rw-r--r-- | 7.7 KB |
usual-tables.c | -rw-r--r-- | 3.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...