From 1034443796ced690686d2c3ab54b88ca4c9528db Mon Sep 17 00:00:00 2001 From: Kunhui-Li Date: Mon, 28 Feb 2022 11:40:22 +0800 Subject: [PATCH] config_tools: fix the issue that fail to get apic_id node Update the XPATH of apic_id to tolerate the variance of reported intermediate levels. Tracked-On: #7159 Signed-off-by: Kunhui-Li Reviewed-by: Junjie Mao --- misc/config_tools/acpi_gen/asl_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/config_tools/acpi_gen/asl_gen.py b/misc/config_tools/acpi_gen/asl_gen.py index 2566e671d..bd41b239f 100644 --- a/misc/config_tools/acpi_gen/asl_gen.py +++ b/misc/config_tools/acpi_gen/asl_gen.py @@ -860,9 +860,9 @@ def main(args): apic_ids = [] for id in dict_pcpu_list[vm_id]: - apic_id = common.get_node(f"//processors/die/core/thread[cpu_id='{id}']/apic_id/text()", board_etree) + apic_id = common.get_node(f"//processors//thread[cpu_id='{id}']/apic_id/text()", board_etree) if apic_id is None: - emsg = 'some or all of the processors/die/core/thread/cpu_id tags are missing in board xml file for cpu {}, please run board_inspector.py to regenerate the board xml file!'.format(id) + emsg = 'some or all of the processors//thread/cpu_id tags are missing in board xml file for cpu {}, please run board_inspector.py to regenerate the board xml file!'.format(id) print(emsg) err_dic['board config: processors'] = emsg return err_dic