linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: Increase ACPI_MAX_HANDLES
@ 2021-05-18 22:20 Raul E Rangel
  0 siblings, 0 replies; only message in thread
From: Raul E Rangel @ 2021-05-18 22:20 UTC (permalink / raw)
  To: linux-acpi
  Cc: Raul E Rangel, Erik Kaneda, Len Brown, Rafael J. Wysocki,
	Robert Moore, devel, linux-kernel

acpi_handle_list is used to store the references returned by
ThermalZone._PSL. With processors supporting Hyper-threading and more
cores, the previous limit is not enough for common cases. If _PSL
returns more than the limit, the passive thermal threshold fails to
initialize.

This change increase the limit to 32, so we can support at least 16 core
CPUs with Hyper-threads.

I acknowledge that this change is just kicking the can down the road.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
---

 include/acpi/acpi_bus.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 37dac195adbb..fdce8e7c4718 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -13,7 +13,7 @@
 #include <linux/property.h>
 
 /* TBD: Make dynamic */
-#define ACPI_MAX_HANDLES	10
+#define ACPI_MAX_HANDLES	32
 struct acpi_handle_list {
 	u32 count;
 	acpi_handle handles[ACPI_MAX_HANDLES];
-- 
2.31.1.751.gd2f1c929bd-goog


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-18 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 22:20 [PATCH] ACPI: Increase ACPI_MAX_HANDLES Raul E Rangel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).