From owner-freebsd-acpi@FreeBSD.ORG Mon Sep 9 06:28:21 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DCDF3B59 for ; Mon, 9 Sep 2013 06:28:21 +0000 (UTC) (envelope-from moto@kawasaki3.org) Received: from kawasaki3.org (blackpearl.kawasaki3.org [173.230.157.78]) by mx1.freebsd.org (Postfix) with ESMTP id CA01828F3 for ; Mon, 9 Sep 2013 06:28:21 +0000 (UTC) Received: from localhost (unknown [113.157.198.194]) (Authenticated sender: moto) by kawasaki3.org (Postfix) with ESMTPSA id 64BEE1CEA9 for ; Mon, 9 Sep 2013 02:19:10 -0400 (EDT) Date: Mon, 09 Sep 2013 15:18:06 +0900 (JST) Message-Id: <20130909.151806.1420591981150797795.moto@kawasaki3.org> To: freebsd-acpi@freebsd.org Subject: Q: how to increase ACPI_MAX_TASKS From: moto kawasaki X-Mailer: Mew version 6.5 on Emacs 24.3.50 / Mule 6.0 (HANACHIRUSATO) X-Face: )._4~w!_D$r6qNS0+; nS|]WNeI4f3o)QnH[ItB[esXuc$~hQ$.,?}$SnLe/[24Hao%^q/Is 'SJtZe#21h;7z;q+iyj[^%7\46.Gg-t7.px<}L-f_:P+6i4-a{DIL[ Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 06:28:21 -0000 Hello, Could you please advice me how to increase ACPI_MAX_TASKS from 32 (default) to 64 or 128 ? (1) I am running FreeBSD 9.1-RELEASE-p6, which was updated via freebsd-update. # uname -srmv FreeBSD 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:40:52 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 (2) Now, dmesg shows an error regarding AE_NO_MEMORY. # dmesg (snip) AcpiOsExecute: failed to enqueue task, consider increasing the debug.acpi.max_tasks tunable ACPI Error: Method parse/execution failed [\\_SB_.PCI0.HEC2.HSCI] (Node 0xfffffe001d208380), AE_NO_MEMORY (20110527/psparse-560) ACPI Error: Method parse/execution failed [\\_GPE._L06] (Node 0xfffffe001d20c6c0), AE_NO_MEMORY (20110527/psparse-560) ACPI Exception: AE_NO_MEMORY, while evaluating GPE method [_L06] (20110527/evgpe-606) AcpiOsExecute: failed to enqueue task, consider increasing the debug.acpi.max_tasks tunable (snip) If needed, I will show all dmesg output. please request. (3) This is because ACPI_MAX_TASKS is defined as 32 in /usr/src/sys/dev/acpica/acpivar.h ===== /* Default maximum number of tasks to enqueue. */ #ifndef ACPI_MAX_TASKS #define ACPI_MAX_TASKS 32 #endif ===== (4) When I rewrite it to 64, the error in dmesg disappeared. So far so good, but I have to re-compile the kernel in this case. If possible, I'd like to change ACPI_MAX_TASKS value by sysctl.conf or something like that. (5) /usr/src/sys/dev/acpica/Osd/OsdSchedule.c mentions debug.acpi.max_tasks. ===== /* * Allow the user to tune the maximum number of tasks we may enqueue. */ static int acpi_max_tasks = ACPI_MAX_TASKS; TUNABLE_INT("debug.acpi.max_tasks", &acpi_max_tasks); ===== But, I cannot write this sysctl tunable. That is "unknown oid". # sysctl debug.acpi.max_tasks sysctl: unknown oid 'debug.acpi.max_tasks' # sysctl -w debug.acpi.max_tasks=64 sysctl: unknown oid 'debug.acpi.max_tasks' (6) If I have to re-compile the GENERIC kernel, where should I define ACPI_MAX_TASKS ? /etc/make.conf? kernel configuration file? or acpivar.h ? Thank you very much!! Best Regards -- moto kawasaki 090-2464-8454