[PATCH v2 1/7] ACPICA: Debugger: Remove unnecessary status check

2015-11-10 Thread Lv Zheng
t;colin.k...@canonical.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dbinput.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/acpica/dbinput.c b/drivers/acpi/acpica/dbinput.c index 0480254..fe93f67 1

[PATCH v2 0/7] ACPICA / debugger: Add in-kernel AML debugger support

2015-11-10 Thread Lv Zheng
os_readable() support. Chen Yu (1): ACPI / x86: introduce acpi_os_readable() support Colin Ian King (1): ACPICA: Debugger: Remove unnecessary status check Lv Zheng (5): ACPICA: Debugger: Convert some mechanisms to OSPM specific ACPICA: Debugger: Fix runtime stub issues of ACPI_DEBUGGER_EXEC

[PATCH v2 7/7] ACPI / debugger: Add module support for ACPI debugger

2015-11-10 Thread Lv Zheng
This patch converts AML debugger into a loadable module. Note that, it implements driver unloading at the level dependent on the module reference count. Which means if ACPI debugger is being used by a userspace program, "rmmod acpi_dbg" should result in failure. Signed-off-by: Lv Zh

[PATCH v2 3/7] ACPICA: Debugger: Fix runtime stub issues of ACPI_DEBUGGER_EXEC using different stub mechanism

2015-11-10 Thread Lv Zheng
print messages logged into OSPMs' kernel logs when a debugger driver is not loaded to enable the debugger during runtime. This patch fixes this issue by introducing new stub mechanism instead of ACPI_DEBUGGER_EXEC. Lv Zheng. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/

[PATCH v2 4/7] ACPI / debugger: Add IO interface to access debugger functionalities

2015-11-10 Thread Lv Zheng
() filesystem operation. While this patch doesn't go that far. It then becomes userspace tool's duty now to flush old commands before executing new batch mode commands. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/Kconfig |3 +- drivers/acpi/Ma

[PATCH v2 2/7] ACPICA: Debugger: Convert some mechanisms to OSPM specific

2015-11-10 Thread Lv Zheng
. This patch also implements acpiexec batch mode in a multi-threading mode comaptible style as a demo (this can be confirmed by configuring acpiexec into DEBUGGER_MULTI_THREADED mode where the batch mode is still working). Lv Zheng. Note that the OSPM specific command handshake mechanism

[RFC PATCH v2 4/5] tools/power/acpi: Add userspace AML interface support

2015-11-05 Thread Lv Zheng
blocked. To exit the utility, currently "exit/quit" commands are recommended, but ctrl-C" can also be used. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- tools/power/acpi/Makefile| 16 +- tools/power/acpi/tools/acpidbg/Makefile | 27 ++ tools/pow

[RFC PATCH v2 2/5] ACPICA: Debugger: Convert some mechanisms to OSPM specific

2015-11-05 Thread Lv Zheng
. This patch also implements acpiexec batch mode in a multi-threading mode comaptible style as a demo (this can be confirmed by configuring acpiexec into DEBUGGER_MULTI_THREADED mode where the batch mode is still working). Lv Zheng. Note that the OSPM specific command handshake mechanism

[RFC PATCH v2 3/5] ACPI / debugger: Add IO interface to access debugger functionalities

2015-11-05 Thread Lv Zheng
() filesystem operation. While this patch doesn't go that far. It then becomes userspace tool's duty now to flush old commands before executing new batch mode commands. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/Kconfig |2 +- drivers/acpi/Ma

[RFC PATCH v2 1/5] ACPICA: Debugger: Remove unnecessary status check

2015-11-05 Thread Lv Zheng
t;colin.k...@canonical.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dbinput.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/acpica/dbinput.c b/drivers/acpi/acpica/dbinput.c index 0480254..fe93f67 1

[RFC PATCH v2 0/5] ACPICA / debugger: Add in-kernel AML debugger support

2015-11-05 Thread Lv Zheng
rom kernel: # rmmod acpi_dbg The following tasks are not completed: 1. .flush() support in the kernel debugger IO driver. 2. multi-commands batch mode. 3. upstream the userspace acpidbg to the ACPICA upstream. Colin Ian King (1): ACPICA: Debugger: Remove unnecessary status check Lv Zheng (4): ACPICA: Debugge

[RFC PATCH v2 5/5] ACPI / debugger: Add module support for ACPI debugger

2015-11-05 Thread Lv Zheng
This patch converts AML debugger into a loadable module. Note that, it implements driver unloading at the level dependent on the module reference count. Which means if ACPI debugger is being used by a userspace program, "rmmod acpi_dbg" should result in failure. Signed-off-by: Lv Zh

[PATCH v2 13/14] ACPICA: Debugger: Fix dead lock issue ocurred in single stepping mode

2015-10-18 Thread Lv Zheng
ACPICA commit 35273add90da19cd8790fdb5735f52e3c9861684 When single step execution is not ended, executing another control methods leads to dead locks around interpreter lock/namespace lock/method serialization lock. So we should only allow one execution from the debugger at same time. Lv Zheng

[PATCH v2 09/14] ACPICA: Debugger: Fix "quit/exit" command by cleaning up user commands termination logic

2015-10-18 Thread Lv Zheng
should only be terminated by its users (acpi_terminate_debugger()) rather than being terminated itself. Leaving such invocations causes kernel panic when the debugger is shipped in the Linux kernel. This patch fixes this issue. Lv Zheng. Link: https://github.com/acpica/acpica/commit/0dd68e16 Signed

[PATCH v2 02/14] ACPICA: iASL: Add symbolic operator support for Index() operator.

2015-10-18 Thread Lv Zheng
m> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/aclocal.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h index 6f70826..8a66fef 100644 --- a/drivers/acpi/acpica/aclocal.h +++ b/d

[PATCH v2 06/14] ACPICA: Improve typechecking, both compile-time and runtime

2015-10-18 Thread Lv Zheng
Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/aclocal.h |8 ++- drivers/acpi/acpica/acopcode.h |4 +- drivers/acpi/acpica/amlcode.h | 11 ++-- drivers/acpi/acpica/exconvrt.c |1 + drivers/acpi/acpica/exresolv.c |1 - d

[PATCH v2 00/14] ACPICA: 20150930 Release

2015-10-18 Thread Lv Zheng
pechecking, both compile-time and runtime ACPICA: iASL: General cleanup of the file suffix #defines ACPICA: Update version to 20150930 Lv Zheng (6): ACPICA: Linuxize: Export debugger files to Linux ACPICA: Debugger: Fix "quit/exit" command by cleaning up user commands t

[PATCH v2 01/14] ACPICA: Remove unnecessary conditional compilation.

2015-10-18 Thread Lv Zheng
acpica/commit/eea1f0e5 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/Makefile |2 +- drivers/acpi/acpica/acdebug.h |6 ++ drivers/acpi/acpica/rsdump.c |3 --- include/acpi/platform/acenv.h |2 +

[PATCH v2 05/14] ACPICA: Update NFIT table to rename a flags field

2015-10-18 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit 534deab97fb416a13bfede15c538e2c9eac9384a Updated one of the memory subtable flags to clarify. Link: https://github.com/acpica/acpica/commit/534deab9 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv

[PATCH v2 04/14] ACPICA: Debugger: Update mutexes used for multithreaded debugger

2015-10-18 Thread Lv Zheng
y: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acglobal.h |3 +++ drivers/acpi/acpica/aclocal.h |4 +--- drivers/acpi/acpica/utdecode.c |2 -- drivers/acpi/acpica/utmutex.c | 21 + inc

[PATCH v2 10/14] ACPICA: Debugger: Fix "terminate" command by cleaning up subsystem shutdown logic

2015-10-18 Thread Lv Zheng
ACPICA commit 7e823714911480be47e310fb1b3590d289b9fd99 Segmentation fault can be seen for executing the "terminate" command. This is because acpi_ut_subsystem_shutdown() is errnously called multiple times. This patch cleans up acpi_ut_subsystem_shutdown() logics to fix this issue

[PATCH v2 12/14] ACPI: Enable build of AML interpreter debugger

2015-10-18 Thread Lv Zheng
: acpi_ps_get_name() Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/Kconfig |9 + drivers/acpi/acpica/Makefile | 18 +- drivers/acpi/acpica/acinterp.h|2 -- drivers/acpi/acpica/acnamesp.h|4 drivers/acpi/

[PATCH v2 11/14] ACPICA: Debugger: Add thread ID support so that single step mode can only apply to the debugger thread

2015-10-18 Thread Lv Zheng
acpi_db_single_step() for an application debugger - acpiexec. Note that the debugger thread ID can also be used by acpi_os_printf() to filter out debugger output. Lv Zheng. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acglobal.h |1 + drivers/acpi/acpica/aclocal.h

[PATCH v2 07/14] ACPICA: iASL: General cleanup of the file suffix #defines

2015-10-18 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit bed456ed2976bdaafdef406b982fdf6c539befc0 Removed some extraneous defines, reordered others. Link: https://github.com/acpica/acpica/commit/bed456ed Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

[PATCH v2 03/14] ACPICA: Update exception code for "file not found" error

2015-10-18 Thread Lv Zheng
; Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/utfileio.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/acpica/utfileio.c b/drivers/acpi/acpica/utfileio.c index 75a94f5..d435b7b 100644 --- a/drivers/acpi/acpica/utfileio.c +++ b/drivers/acpi

[PATCH v2 14/14] ACPICA: Update version to 20150930

2015-10-18 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit e9c75ca267262326e80d49a290e8387a5963e2d2 Version 20150930. Link: https://github.com/acpica/acpica/commit/e9c75ca2 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- inc

[PATCH] ACPICA: Tables: Fix FADT dependency regression

2015-10-13 Thread Lv Zheng
fixes this regression by cleaning up the code. Lv Zheng. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=105351 Reported-and-tested-by: Meelis Roos <mr...@linux.ee> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acglobal.h |1 + drivers/acpi/acpica/actab

[PATCH 05/13] ACPICA: Update NFIT table to rename a flags field

2015-10-14 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit 534deab97fb416a13bfede15c538e2c9eac9384a Updated one of the memory subtable flags to clarify. Link: https://github.com/acpica/acpica/commit/534deab9 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv

[PATCH 01/13] ACPICA: Remove unnecessary conditional compilation.

2015-10-14 Thread Lv Zheng
acpica/commit/eea1f0e5 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acdebug.h |6 ++ drivers/acpi/acpica/rsdump.c |3 --- include/acpi/platform/acenv.h |2 +- 3 files changed, 7 insertions(+), 4

[PATCH 07/13] ACPICA: iASL: General cleanup of the file suffix #defines

2015-10-14 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit bed456ed2976bdaafdef406b982fdf6c539befc0 Removed some extraneous defines, reordered others. Link: https://github.com/acpica/acpica/commit/bed456ed Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

[PATCH 09/13] ACPICA: Debugger: Fix "quit/exit" command by cleaning up user commands termination logic

2015-10-14 Thread Lv Zheng
should only be terminated by its users (acpi_terminate_debugger()) rather than being terminated itself. Leaving such invocations causes kernel panic when the debugger is shipped in the Linux kernel. This patch fixes this issue. Lv Zheng. Link: https://github.com/acpica/acpica/commit/0dd68e16 Signed

[PATCH 06/13] ACPICA: Improve typechecking, both compile-time and runtime

2015-10-14 Thread Lv Zheng
Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/aclocal.h |8 ++- drivers/acpi/acpica/acopcode.h |4 +- drivers/acpi/acpica/amlcode.h | 11 ++-- drivers/acpi/acpica/exconvrt.c |1 + drivers/acpi/acpica/exresolv.c |1 - d

[PATCH 00/13] ACPICA: 20150930 Release

2015-10-14 Thread Lv Zheng
pdate exception code for "file not found" error ACPICA: Debugger: Update mutexes used for multithreaded debugger ACPICA: Update NFIT table to rename a flags field ACPICA: Improve typechecking, both compile-time and runtime ACPICA: iASL: General cleanup of the file suffix #defines

[PATCH 11/13] ACPI: Enable build of AML interpreter debugger

2015-10-14 Thread Lv Zheng
: acpi_ps_get_name() Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/Kconfig |9 + drivers/acpi/acpica/Makefile | 16 drivers/acpi/acpica/acinterp.h|2 -- drivers/acpi/acpica/acnamesp.h|4 drivers/acpi/

[PATCH 13/13] ACPICA: Update version to 20150930

2015-10-14 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit e9c75ca267262326e80d49a290e8387a5963e2d2 Version 20150930. Link: https://github.com/acpica/acpica/commit/e9c75ca2 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- inc

[PATCH 03/13] ACPICA: Update exception code for "file not found" error

2015-10-14 Thread Lv Zheng
; Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/utfileio.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/acpica/utfileio.c b/drivers/acpi/acpica/utfileio.c index 75a94f5..d435b7b 100644 --- a/drivers/acpi/acpica/utfileio.c +++ b/drivers/acpi

[PATCH 10/13] ACPICA: Debugger: Fix "terminate" command by cleaning up subsystem shutdown logic

2015-10-14 Thread Lv Zheng
ACPICA commit 7e823714911480be47e310fb1b3590d289b9fd99 Segmentation fault can be seen for executing the "terminate" command. This is because acpi_ut_subsystem_shutdown() is errnously called multiple times. This patch cleans up acpi_ut_subsystem_shutdown() logics to fix this issue

[PATCH 12/13] ACPICA: Debugger: Fix dead lock issue ocurred in single stepping mode

2015-10-14 Thread Lv Zheng
ACPICA commit 35273add90da19cd8790fdb5735f52e3c9861684 When single step execution is not ended, executing another control methods leads to dead locks around interpreter lock/namespace lock/method serialization lock. So we should only allow one execution from the debugger at same time. Lv Zheng

[PATCH 04/13] ACPICA: Debugger: Update mutexes used for multithreaded debugger

2015-10-14 Thread Lv Zheng
y: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acglobal.h |3 +++ drivers/acpi/acpica/aclocal.h |4 +--- drivers/acpi/acpica/utdecode.c |2 -- drivers/acpi/acpica/utmutex.c | 21 + inc

[PATCH 02/13] ACPICA: iASL: Add symbolic operator support for Index() operator.

2015-10-14 Thread Lv Zheng
m> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/aclocal.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h index 6f70826..8a66fef 100644 --- a/drivers/acpi/acpica/aclocal.h +++ b/d

[PATCH 11/20] ACPICA: Table handling: Cleanup and update debug output for tools.

2015-08-24 Thread Lv Zheng
...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/dsinit.c | 11 + drivers/acpi/acpica/tbxfload.c | 53 ++-- 2 files changed, 30 insertions(+), 34 deletions(-) diff --git a/drivers/acpi/acpica/dsinit.c b/drivers/acpi/acpica

[PATCH 12/20] ACPICA: Add additional debug info/statements.

2015-08-24 Thread Lv Zheng
Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/aclocal.h |7 +++ drivers/acpi/acpica/evregion.c | 22 ++ drivers/acpi/acpica/nseval.c |3 ++- drivers/acpi/acpica/nsutils.c | 17 + drivers/acpi

[PATCH 10/20] ACPICA: acpiexec/acpinames: Support very large number of ACPI tables.

2015-08-24 Thread Lv Zheng
. Link: https://github.com/acpica/acpica/commit/ca3bd4c5 Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/actables.h |5 + drivers/acpi/acpica/tbxfload.c | 17 - drivers/acpi/acpica/utfileio.c |2 +- 3 files

[PATCH 13/20] ACPICA: Debugger: Add option to display namespace summary/counts.

2015-08-24 Thread Lv Zheng
. Link: https://github.com/acpica/acpica/commit/bba222c1 Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/acglobal.h |4 ++-- drivers/acpi/acpica/aclocal.h |4 include/acpi/actypes.h |2 ++ 3 files changed, 8

[PATCH 08/20] ACPICA: Headers: Fix some comments, no functional change.

2015-08-24 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com ACPICA commit 539f8c03fe64305725bd85343e42f3b6c42aad14 A couple typos and long lines. Link: https://github.com/acpica/acpica/commit/539f8c03 Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi

[PATCH 20/20] ACPICA: Update version to 20150818.

2015-08-24 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com ACPICA commit d93470de8febeecdc20633fde11cb0b200fa773b Version 20150818. Link: https://github.com/acpica/acpica/commit/d93470de Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/acpixf.h |2

[PATCH 17/20] ACPICA: Disassembler: Cleanup acpi_gbl_db_opt_disasm.

2015-08-24 Thread Lv Zheng
to ad_aml_disassemble(). This patch thus renames this global option to acpi_gbl_dm_opt_disasm and removes all acpiexec and debugger references on it. Lv Zheng. This patch doesn't affect Linux kernel. Link: https://github.com/acpica/acpica/commit/969989cf Signed-off-by: Lv Zheng lv.zh...@intel.com

[PATCH 19/20] ACPICA: Debugger: Cleanup debugging outputs to dump name path without trailing underscores.

2015-08-24 Thread Lv Zheng
): - - dump \_GPE Object (003A0E08) Pathname: \_GPE - 10.ae_miscellaneous_tests (acpi_get_name): No output available This patch cleans up all of the above usages. ACPICA BZ 1178, Lv Zheng. Linux kernel's ACPICA debugging

[PATCH 18/20] ACPICA: Disassembler: Cleanup acpi_gbl_db_opt_verbose acpiexec usage.

2015-08-24 Thread Lv Zheng
, ACPI_DEBUGGER conditioned code needn't link to this option. Since it is a disassembler exported variable, it is renamed to acpi_gbl_dm_opt_Verbose in this patch. As VERBOSE_PRINT() macro has only one user, this patch also removes the definition of this macro. Lv Zheng. This patch doesn't affect Linux

[PATCH 14/20] ACPICA: Make the max-number-of-loops runtime configurable.

2015-08-24 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com ACPICA commit a9d9c2d0c2d077bb3175ec9c252cf0e5da3efd45 Was previously compile-time only. Add support option for acpiexec. Link: https://github.com/acpica/acpica/commit/a9d9c2d0 Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh

[PATCH 15/20] ACPICA: Header support to improve compatibility with MSVC.

2015-08-24 Thread Lv Zheng
Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/platform/acenv.h |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index 1332537..ec00e2b 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi

[PATCH 04/20] ACPICA: Disassembler: Update for new listing mode.

2015-08-24 Thread Lv Zheng
Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/acglobal.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h index 79eb35d..1283b19 100644 --- a/drivers/acpi/acpica

[PATCH 06/20] ACPICA: Tables: Fix global table list issues by removing fixed table indexes.

2015-08-24 Thread Lv Zheng
fixes all above issues by removing the fixed table indexes mechanism which is too complicated to be maintained in a regression safe manner. After removal, the table loader will determine the indexes of the fixed tables. Lv Zheng. Link: https://github.com/acpica/acpica/commit/c0b38b4c Cc: sta

[PATCH 05/20] ACPICA: Update info messages during ACPICA init.

2015-08-24 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com ACPICA commit 4ccf8a1cc499ec8f00345f662a5887483980e1dd Small cleanup of messages. Link: https://github.com/acpica/acpica/commit/4ccf8a1c Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica

[PATCH 09/20] ACPICA: acpinames: Add new options and wildcard support.

2015-08-24 Thread Lv Zheng
debug level. Linux kernel is not affected by this commit. Link: https://github.com/acpica/acpica/commit/0ecf5b5a Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/acutils.h |2 +- drivers/acpi/acpica/utmisc.c |2 +- 2 files

[PATCH 07/20] ACPICA: Tables: Cleanup to reduce FACS globals.

2015-08-24 Thread Lv Zheng
ACPICA commit 3f42ba76e2a0453976d3108296d5f656fdf2bd6e In this patch, FACS table mapping is also tuned a bit so that only the selected FACS table will be mapped by the OSPM (mapped on demand) and the FACS related global variables can be reduced. Lv Zheng. Link: https://github.com/acpica/acpica

[PATCH 03/20] ACPICA: Update parameter validation for data_table_region and load_table.

2015-08-24 Thread Lv Zheng
: https://github.com/acpica/acpica/commit/51ab555e Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/actables.h |2 ++ drivers/acpi/acpica/dsopcode.c | 31 --- drivers/acpi/acpica/exconfig.c |8

[PATCH 01/20] ACPICA: Correctly cleanup after a ACPI table load failure.

2015-08-24 Thread Lv Zheng
the unitialized node problem to prevent possible faults. ACPICA BZ 1185. Link: https://github.com/acpica/acpica/commit/ed7769e8 Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/exresnte.c |2 +- drivers/acpi/acpica/exresolv.c | 16

[PATCH 00/20] ACPICA: 20150818 Release

2015-08-24 Thread Lv Zheng
. ACPICA: Make the max-number-of-loops runtime configurable. ACPICA: Header support to improve compatibility with MSVC. ACPICA: Update version to 20150818. Lv Zheng (6): ACPICA: Tables: Fix global table list issues by removing fixed table indexes. ACPICA: Tables: Cleanup to reduce FACS

[PATCH 16/20] ACPICA: Debugger: Split debugger initialization/termination APIs.

2015-08-24 Thread Lv Zheng
need to call the new APIs by itself. And BSD developers may also get notified to invoke the APIs for DDB enabling. Lv Zheng. This patch doesn't affect Linux kernel as debugger is currently not enabled in the Linux kernel. Link: https://github.com/acpica/acpica/commit/7a3f22ba Signed-off-by: Lv Zheng

[PATCH 02/20] ACPICA: Disassembler: Remove duplicate code in _PLD processing.

2015-08-24 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com ACPICA commit 6d9c827b540837b6e54059e17756a06985e4a196 ACPICA BZ 1176. Link: https://bugs.acpica.org/show_bug.cgi?id=1176 Link: https://github.com/acpica/acpica/commit/6d9c827b Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh

[PATCH 2/3] ACPI / EC: Fix query handler related issues

2015-09-24 Thread Lv Zheng
put the mutex_lock() around schedule_work(). Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/ec.c | 73 + 1 file changed, 45 insertions(+), 28 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 4

[PATCH 3/3] ACPI / EC: Fix a race issue in acpi_ec_guard_event()

2015-09-24 Thread Lv Zheng
-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/ec.c | 42 +- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index ddaaa9d..2687a01 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -

[PATCH 1/3] ACPI / EC: Fix a memory leak issue in acpi_ec_query()

2015-09-24 Thread Lv Zheng
duced by this commit: Commit: 02b771b64b73226052d6e731a0987db3b47281e9 Subject: ACPI / EC: Fix an issue caused by the serialized _Qxx This patch fixes such memory leakage. Cc: sta...@vger.kernel.org # 4.3.1+ Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/ec.c |2 ++ 1 file

[PATCH 0/3] ACPI / EC: Fix several code coverity issues

2015-09-24 Thread Lv Zheng
This patch fixes several code coverity issues in the EC driver. One serious issue that can cause memory leak is marked as stable material. Lv Zheng (3): ACPI / EC: Fix a memory leak issue in acpi_ec_query() ACPI / EC: Fix query handler related issues ACPI / EC: Fix a race issue

[PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support

2015-12-02 Thread Lv Zheng
From: Chen Yu <yu.c.c...@intel.com> This patch implements acpi_os_readable(). The function is used by ACPICA AML debugger to validate user specified pointers for dumping the memory as ACPICA descriptor objects. Signed-off-by: Chen Yu <yu.c.c...@intel.com> Tested-by: Lv Zheng <lv.

[PATCH v4 0/7] ACPICA / debugger: Add in-kernel AML debugger support

2015-12-02 Thread Lv Zheng
x86: introduce acpi_os_readable() support Colin Ian King (1): ACPICA: Debugger: Remove unnecessary status check Lv Zheng (5): ACPICA: Debugger: Convert some mechanisms to OSPM specific ACPICA: Debugger: Fix runtime stub issues of ACPI_DEBUGGER_EXEC using different stub mech

[PATCH v4 4/7] ACPI / debugger: Add IO interface to access debugger functionalities

2015-12-02 Thread Lv Zheng
() filesystem operation. While this patch doesn't go that far. It then becomes userspace tool's duty now to flush old commands before executing new batch mode commands. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/Kconfig |3 +- drivers/acpi/Ma

[PATCH v4 3/7] ACPICA: Debugger: Fix runtime stub issues of ACPI_DEBUGGER_EXEC using different stub mechanism

2015-12-02 Thread Lv Zheng
stub, users may still do not want to see the debugger print messages logged into OSPMs' kernel logs when a debugger driver is not loaded to enable the debugger during runtime. This patch fixes this issue by introducing new stub mechanism instead of ACPI_DEBUGGER_EXEC. Lv Zheng. Link: https

[PATCH v4 1/7] ACPICA: Debugger: Remove unnecessary status check

2015-12-02 Thread Lv Zheng
t;colin.k...@canonical.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dbinput.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/acpica/dbinput.c b/drivers/acpi/acpica/dbinput.c index 0480254..fe93f67 1

[PATCH v4 2/7] ACPICA: Debugger: Convert some mechanisms to OSPM specific

2015-12-02 Thread Lv Zheng
. This patch also implements acpiexec batch mode in a multi-threading mode comaptible style as a demo (this can be confirmed by configuring acpiexec into DEBUGGER_MULTI_THREADED mode where the batch mode is still working). Lv Zheng. Note that the OSPM specific command handshake mechanism

[PATCH v4 5/7] tools/power/acpi: Add userspace AML interface support

2015-12-02 Thread Lv Zheng
blocked. To exit the utility, currently "exit/quit" commands are recommended, but ctrl-C" can also be used. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- tools/power/acpi/Makefile| 16 +- tools/power/acpi/tools/acpidbg/Makefile | 27 ++ tools/pow

[PATCH v4 6/7] ACPI / debugger: Add module support for ACPI debugger

2015-12-02 Thread Lv Zheng
This patch converts AML debugger into a loadable module. Note that, it implements driver unloading at the level dependent on the module reference count. Which means if ACPI debugger is being used by a userspace program, "rmmod acpi_dbg" should result in failure. Signed-off-by: Lv Zh

[PATCH] ACPI / debugger: Fix a redundant mutex unlock issue in acpi_aml_open()

2015-12-24 Thread Lv Zheng
Fix a double mutex_unlock() issue where acpi_initialize_debugger() is called with the mutex already unlocked. Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpi_dbg.c |3 ++- 1 file changed, 2 insertions(+)

[PATCH 13/42] ACPICA: Debugger: Remove some unecessary NULL checks

2015-12-28 Thread Lv Zheng
cpica/commit/36fcc1b9 Signed-off-by: Markus Elfring <elfr...@users.sourceforge.net> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dbcmds.c |9 ++--- drivers/acpi/acpica/dbinput.c |4 +--- 2 file

[PATCH 10/42] ACPICA: acpiexec: Add support for AML files containing multiple tables

2015-12-28 Thread Lv Zheng
m> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acutils.h |4 drivers/acpi/acpica/utfileio.c | 23 +++ 2 files changed, 27 insertions(+) diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index 74954

[PATCH 11/42] ACPICA: Disassembler/tools: Support for multiple ACPI tables in one file

2015-12-28 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit 5be7dc4d0d69b2953d156f5bc4d3e8a65a390837 Matches the support in iASL and acpi_exec. Link: https://github.com/acpica/acpica/commit/5be7dc4d Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

[PATCH 09/42] ACPICA: Split interpreter tracing functions to a new file

2015-12-28 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit a3f85a7d26a52ee0d9103feb4fbec8d7b6ba4c11 Split out functions from exdebug.c to extrace.c Link: https://github.com/acpica/acpica/commit/a3f85a7d Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

[PATCH 06/42] ACPICA: Add "const" to some functions that return fixed strings

2015-12-28 Thread Lv Zheng
com> and backported to ACPICA. Link: https://github.com/acpica/acpica/commit/28645f8a Signed-off-by: LABBE Corentin <clabbe.montj...@gmail.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acutils.h |

[PATCH 07/42] ACPICA: exmutex: General cleanup, restructured some code

2015-12-28 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit c2a7d000b6be34313b1c50c8a718df16113f0f32 Should be no functional change. Link: https://github.com/acpica/acpica/commit/c2a7d000 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com>

[PATCH 34/42] ACPICA: Events: Uses common_notify for address space handlers

2015-12-28 Thread Lv Zheng
ACPICA commit 5ea0fb75fdf1aa7c0aba067dfa4d5dc3a9279461 The address space handlers can be attached to not only Device but also Processor/thermal_zone objects, so it is better to use their common class 'CommonNotify' instead. Lv Zheng. Link: https://github.com/acpica/acpica/commit/5ea0fb75 Signed

[PATCH 35/42] ACPICA: Utilities: Reorder initialization code

2015-12-28 Thread Lv Zheng
clearer for the reviewers: https://github.com/acpica/acpica/commit/071eff73 https://github.com/acpica/acpica/commit/3894fa9d And additional change to remove the global variable and unused code fragments due to the test result. Lv Zheng. Link: https://github.com/acpica/acpica/commit/3894fa9d Signed

[PATCH 33/42] ACPICA: Events: Deploys acpi_ev_find_region_handler()

2015-12-28 Thread Lv Zheng
ACPICA commit b916a0a0ae9e81db1a85523c63ec6aa32d5c70c8 There are code fragments that can be substituted by acpi_ev_find_region_handler(). This patch cleans up these code fragments. Lv Zheng. Link: https://github.com/acpica/acpica/commit/b916a0a0 Signed-off-by: Lv Zheng <lv.zh...@intel.

[PATCH 32/42] ACPICA: Cleanup code related to the per-table module level improvement

2015-12-28 Thread Lv Zheng
no-op change. Link: https://github.com/acpica/acpica/commit/071eff73 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acglobal.h |1 + drivers/acpi/acpica/evhandler.c | 113 +--

[PATCH 31/42] ACPICA: Update for CondRefOf and RefOf operators

2015-12-28 Thread Lv Zheng
y: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acopcode.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/acpica/acopcode.h b/drivers/acpi/acpica/acopcode.h index c6b2f42..324512d 100644

[PATCH 39/42] ACPICA: Events: Introduce ACPI_REG_DISCONNECT invocation to acpi_ev_execute_reg_methods()

2015-12-28 Thread Lv Zheng
a real change. Lv Zheng. Link: https://github.com/acpica/acpica/commit/1cf1a1e0 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> --- drivers/acpi/acpica/acevents.h |4 ++-- drivers/acpi/acpica/aclocal.h |1 + drivers/acpi/acpic

[PATCH 38/42] ACPICA: Events: Enhance acpi_ev_execute_reg_method() to ensure no _REG evaluations can happen during OS early boot stages

2015-12-28 Thread Lv Zheng
, we can ensure _REG(DISCONNECT) is always paired to _REG(CONNECT). Lv Zheng Link: https://github.com/acpica/acpica/commit/31178590 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> --- drivers/acpi/acpica/acglobal.h |2 +- drivers

[PATCH 37/42] ACPICA: Events: Split acpi_ev_associate_reg_method() from region initialization code

2015-12-28 Thread Lv Zheng
the code using this new function. Lv Zheng. Link: https://github.com/acpica/acpica/commit/87c85610 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> --- drivers/acpi/acpica/acevents.h |2 ++ drivers/acpi/acpica/evreg

[PATCH 42/42] ACPICA: Update version to 20151218

2015-12-28 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit e81cedadd3a847d40f30bc9c52dfe441620ed12f Version 20151218. Link: https://github.com/acpica/acpica/commit/e81cedad Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- inc

[PATCH 41/42] ACPICA: Add per-table execution of module-level code

2015-12-28 Thread Lv Zheng
r ACPI implementations and is required to support BIOS code that depends on this behavior. Link: https://github.com/acpica/acpica/commit/071eff73 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/nsload.c | 17 +

[PATCH 40/42] ACPICA: Add "root node" case to the ACPI name repair code

2015-12-28 Thread Lv Zheng
b40b31 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/utstring.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/acpica/utstring.c b/drivers/acpi/acpica/utstring.c index 0c2e2

[PATCH 36/42] ACPICA: Events: Fix an issue that region object is re-attached to another scope when it is already attached

2015-12-28 Thread Lv Zheng
ACPICA commit 6ebcb24d3225b6c7715a3ce061c327b4c3a6b76e The logic in acpi_ev_attach_region() is not correct, it can break address space handler link. This patch fixes this problem. But be aware that this fix must be applied along with a region object race issue fix. Lv Zheng. Link: https

[PATCH 01/42] ACPICA: Linuxize: reduce divergences for 20151218 release

2015-12-28 Thread Lv Zheng
changes, so instead of update the affected lines of pscode.c, this patch synchronizes entire pscode.c file. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dsfield.c |8 +- drivers/acpi/acpica/dsutils.c |4 +- drivers/acpi/acpica/exconvrt.c|4 +- d

[PATCH 00/42] ACPICA: 20151218 Release

2015-12-28 Thread Lv Zheng
alization LABBE Corentin (1): ACPICA: Add "const" to some functions that return fixed strings Lv Zheng (12): ACPICA: Linuxize: reduce divergences for 20151218 release ACPICA: Namespace: Fix wrong error log ACPICA: Debugger: reduce old external path format ACPICA: Namespace: Ad

[PATCH 04/42] ACPICA: Debugger: reduce old external path format

2015-12-28 Thread Lv Zheng
) where possible. Along with some error log fixes, the following debugger commands are fixed: resources, handlers, paths. Lv Zheng. Link: https://github.com/acpica/acpica/commit/75c0da9e Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> ---

[PATCH 03/42] ACPICA: Namespace: Fix wrong error log

2015-12-28 Thread Lv Zheng
ACPICA commit 20228e39e125d92f9d80c6e07d3767b225d0536e The Info->Node in acpi_ns_init_one_device() may not be initialized. Even it is initialized, the redundant "._INI" can be seen for this log entry. This patch fixes this issue by using device_node instead. Lv Zheng. Link: https

[PATCH 02/42] ACPICA: acpi_get_sleep_type_data: Reduce warnings

2015-12-28 Thread Lv Zheng
tps://github.com/acpica/acpica/commit/7bb77313 Link: https://bugs.acpica.org/show_bug.cgi?id=1208 Signed-off-by: Prarit Bhargava <pra...@redhat.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/hwxface.c | 2

[PATCH 05/42] ACPICA: Fix SyncLevel support interaction with method auto-serialization

2015-12-28 Thread Lv Zheng
tion transparent to the SyncLevel support and management. David Box. Link: https://github.com/acpica/acpica/commit/253e3c03 Signed-off-by: David E. Box <david.e@linux.intel.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- dri

[PATCH 08/42] ACPICA: Core: Major update for code formatting, no functional changes

2015-12-28 Thread Lv Zheng
; Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dbstats.c |1 + drivers/acpi/acpica/dbutils.c |1 + drivers/acpi/acpica/dsargs.c |7 +- drivers/acpi/acpica/dsdebug.c |

[PATCH 28/42] ACPICA: Parser: Fix for SuperName method invocation

2015-12-28 Thread Lv Zheng
ations. This affects about 14 different ASL operators that contain SuperName parameters. ACPICA BZ 1002. Link: https://github.com/acpica/acpica/commit/4b86d104 Link: https://bugs.acpica.org/show_bug.cgi?id=1002 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

<    1   2   3   4   5   6   7   8   9   10   >