ACPI: PPTT: Inform user that table offset used for Physical processor node ID
PATCH 1/1 ACPI: PPTT: Inform user that table offset used for Physical processor node ID
If the the Processor ID valid is not set for a Physical Processor Package node, then the node table offset is used as a substitute. As such, we may get info like this from sysfs:
root@(none)$ pwd /sys/devices/system/cpu/cpu0/topology root@(none)$ more physical_package_id 56
Inform the user of this in the bootlog, as it is much less than ideal, and they can remedy this in their FW.
This topic was originally discussed in:
https://lore.kernel.org/linux-acpi/[email protected]/T/#m0ec18637d8586f832084a8a6af22580e6174669a
drivers/acpi/pptt.c +2 -0
@@ -515,6 +515,8 @@ static int topology_get_acpi_cpu_tag(struct acpi_table_header *table,if (level ==0 || cpu_node->flags &ACPI_PPTT_ACPI_PROCESSOR_ID_VALID )return cpu_node->acpi_processor_id; +if (level ==PPTT_ABORT_PACKAGE ) +pr_notice_once ("Physical package node Processor ID valid not set, will use table offset as substitute\n" );return ACPI_PTR_DIFF (cpu_node, table); } pr_warn_once("PPTT table found, but unable to locate core %d (%d)\n",
Signature · 1 line
2.16.4
(I see 2 copies of this patch, replying on the latest)
Quoted 9 lines · John Garry
If the the Processor ID valid is not set for a Physical Processor Package node, then the node table offset is used as a substitute. As such, we may get info like this from sysfs:
root@(none)$ pwd /sys/devices/system/cpu/cpu0/topology root@(none)$ more physical_package_id 56
Quoted 6 lines
Inform the user of this in the bootlog, as it is much less than ideal, and they can remedy this in their FW.
This topic was originally discussed in:
https://lore.kernel.org/linux-acpi/[email protected]/T/#m0ec18637d8586f832084a8a6af22580e6174669a
--
Regards,
Sudeep
Quoted 1 line · Sudeep Holla
(I see 2 copies of this patch, replying on the latest)
I sent 2x copies accidentally. WFH....
Quoted 11 lines · John Garry
Quoted 9 lines
If the the Processor ID valid is not set for a Physical Processor Package node, then the node table offset is used as a substitute. As such, we may get info like this from sysfs:
root@(none)$ pwd /sys/devices/system/cpu/cpu0/topology root@(none)$ more physical_package_id 56
Quoted 8 lines
Quoted 6 lines
Inform the user of this in the bootlog, as it is much less than ideal, and they can remedy this in their FW.
This topic was originally discussed in:
https://lore.kernel.org/linux-acpi/[email protected]/T/#m0ec18637d8586f832084a8a6af22580e6174669aAcked-by Sudeep Holla <[email protected]>
thanks
Quoted 6 lines
--
Regards,
Sudeep
.
Quoted 22 lines · John Garry
If the the Processor ID valid is not set for a Physical Processor Package node, then the node table offset is used as a substitute. As such, we may get info like this from sysfs:
root@(none)$ pwd /sys/devices/system/cpu/cpu0/topology root@(none)$ more physical_package_id 56Inform the user of this in the bootlog, as it is much less than ideal, and they can remedy this in their FW.
This topic was originally discussed in:
https://lore.kernel.org/linux-acpi/[email protected]/T/#m0ec18637d8586f832084a8a6af22580e6174669aSigned-off-by John Garry <[email protected]>drivers/acpi/pptt.c +0
-0
drivers/acpi/pptt.c static int topology_get_acpi_cpu_tag(struct acpi_table_header *table, · line 522
Quoted 8 lines
drivers/acpi/pptt.c +2
-0@@ -515,6 +515,8 @@ static int topology_get_acpi_cpu_tag(struct acpi_table_header *table,if (level ==0 || cpu_node->flags &ACPI_PPTT_ACPI_PROCESSOR_ID_VALID )return cpu_node->acpi_processor_id; +if (level ==PPTT_ABORT_PACKAGE ) +pr_notice_once ("Physical package node Processor ID valid not set, will use table offset as substitute\n" );return ACPI_PTR_DIFF (cpu_node, table); } pr_warn_once("PPTT table found, but unable to locate core %d (%d)\n",
Looks good to me,
Hi,
Quoted 22 lines · John Garry
If the the Processor ID valid is not set for a Physical Processor Package node, then the node table offset is used as a substitute. As such, we may get info like this from sysfs:
root@(none)$ pwd /sys/devices/system/cpu/cpu0/topology root@(none)$ more physical_package_id 56Inform the user of this in the bootlog, as it is much less than ideal, and they can remedy this in their FW.
This topic was originally discussed in:
https://lore.kernel.org/linux-acpi/[email protected]/T/#m0ec18637d8586f832084a8a6af22580e6174669aSigned-off-by John Garry <[email protected]>drivers/acpi/pptt.c +0
-0
drivers/acpi/pptt.c static int topology_get_acpi_cpu_tag(struct acpi_table_header *table, · line 519
Quoted 5 lines
drivers/acpi/pptt.c +2
-0@@ -515,6 +515,8 @@ static int topology_get_acpi_cpu_tag(struct acpi_table_header *table,if (level ==0 || cpu_node->flags &ACPI_PPTT_ACPI_PROCESSOR_ID_VALID )return cpu_node->acpi_processor_id; +if (level ==PPTT_ABORT_PACKAGE ) +pr_notice_once ("Physical package node Processor ID valid not set, will use table offset as substitute\n" );
What happens in the find_acpi_cpu_topology_hetro_id() case, if the last IDENTICAL node isn't a socket/etc. Are we expecting to warn of a missing processor container there as well?
Quoted 4 lines
drivers/acpi/pptt.c +0
-0return ACPI_PTR_DIFF (cpu_node, table); } pr_warn_once("PPTT table found, but unable to locate core %d (%d)\n",
Quoted 21 lines · Jeremy Linton
Hi,
Quoted 18 lines · John Garry
If the the Processor ID valid is not set for a Physical Processor Package node, then the node table offset is used as a substitute. As such, we may get info like this from sysfs:
root@(none)$ pwd /sys/devices/system/cpu/cpu0/topology root@(none)$ more physical_package_id 56Inform the user of this in the bootlog, as it is much less than ideal, and they can remedy this in their FW.
This topic was originally discussed in:
https://lore.kernel.org/linux-acpi/[email protected]/T/#m0ec18637d8586f832084a8a6af22580e6174669aSigned-off-by John Garry <[email protected]>
Quoted 12 lines
Quoted 6 lines
drivers/acpi/pptt.c +0
-0@@ -515,6 +515,8 @@ static int topology_get_acpi_cpu_tag(struct acpi_table_header *table,Quoted 6 lines
if (level == 0 ||
cpu_node->flags&ACPI_PPTT_ACPI_PROCESSOR_ID_VALID) returncpu_node->acpi_processor_id;
+ if (level ==PPTT_ABORT_PACKAGE)
+pr_notice_once("Physical package node Processor ID valid not set, will use table offset as substitute\n");
Hi Jeremy,
Quoted 2 lines
What happens in the
find_acpi_cpu_topology_hetro_id()case, if the last IDENTICAL node isn't a socket/etc. Are we expecting to warn of a missing processor container there as well?
ok, I could just use this then:
if (flags & ACPI_PPTT_PHYSCIAL_PACKAGE)
pr_notice_once("Physical package node Processor ID ...")
As I recall, this tag for hetro id is not exposed to userspace (yet).
Thanks,
John
Hi,
Quoted 38 lines · John Garry
Quoted 21 lines · Jeremy Linton
Hi,
Quoted 18 lines · John Garry
If the the Processor ID valid is not set for a Physical Processor Package node, then the node table offset is used as a substitute. As such, we may get info like this from sysfs:
root@(none)$ pwd /sys/devices/system/cpu/cpu0/topology root@(none)$ more physical_package_id 56Inform the user of this in the bootlog, as it is much less than ideal, and they can remedy this in their FW.
This topic was originally discussed in:
https://lore.kernel.org/linux-acpi/[email protected]/T/#m0ec18637d8586f832084a8a6af22580e6174669aSigned-off-by John Garry <[email protected]>Quoted 12 lines
Quoted 6 lines
drivers/acpi/pptt.c +0
-0@@ -515,6 +515,8 @@ static int topology_get_acpi_cpu_tag(struct acpi_table_header *table,Quoted 6 lines
if (level == 0 ||
cpu_node->flags&ACPI_PPTT_ACPI_PROCESSOR_ID_VALID) returncpu_node->acpi_processor_id;
+ if (level ==PPTT_ABORT_PACKAGE)
+pr_notice_once("Physical package node Processor ID valid not set, will use table offset as substitute\n");Hi Jeremy,
Quoted 1 line
Quoted 6 lines
Quoted 1 line
What happens in the
find_acpi_cpu_topology_hetro_id()case, if the last IDENTICAL node isn't a socket/etc. Are we expecting to warn of a missing processor container there as well?ok, I could just use this then:
if (flags &
ACPI_PPTT_PHYSCIAL_PACKAGE)
pr_notice_once("Physical package node Processor ID ...")
I think that is a better plan.
Quoted 2 lines
As I recall, this tag for hetro id is not exposed to userspace (yet).
Correct.