[PATCH 30/42] ACPICA: Update internal #defines for ObjectType operator. No functional change

2015-12-28 Thread Lv Zheng
intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acopcode.h |4 ++-- drivers/acpi/acpica/amlcode.h |2 +- drivers/acpi/acpica/exoparg1.c |2 +- drivers/acpi/acpica/psopcode.c |2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --

[PATCH 29/42] ACPICA: Update parameter type for ObjectType operator

2015-12-28 Thread Lv Zheng
erName, the lone argument now requires a new ARGP_ type. Link: https://github.com/acpica/acpica/commit/67953304 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acopcode.h |2 +- drivers/acpi/acpica/amlcode.h |

[PATCH 23/42] ACPICA: getopt: Comment update, no functional change

2015-12-28 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit 0d784a90bc3aac75227c4459c3553de18b9ebe7a Document one of the option string operators. Link: https://github.com/acpica/acpica/commit/0d784a90 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

[PATCH 22/42] ACPICA: Namespace: Add String -> ObjectReference conversion support

2015-12-28 Thread Lv Zheng
methods on some platforms. This patch implements a workaround to correct it. Reported by Bastien Nocera. Fixed by Lv Zheng. Link: https://github.com/acpica/acpica/commit/80e60d72 Reference: https://bugzilla.kernel.org/show_bug.cgi?id=106231 Reported-and-tested-by: Bastien Nocera <bugzi...@hadess.

[PATCH 26/42] ACPICA: iasl/Disassembler: Support ASL ElseIf operator

2015-12-28 Thread Lv Zheng
large Switch statements. This patch only applies to iasl, and is no-op for Linux kernel. Link: https://github.com/acpica/acpica/commit/918a840d Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/aclocal.h |1 +

[PATCH 25/42] ACPICA: Add new exception code, AE_IO_ERROR

2015-12-28 Thread Lv Zheng
intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- include/acpi/acexcep.h |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/acpi/acexcep.h b/include/acpi/acexcep.h index 204f581..cd84b12 100644 --- a/include/acpi/acexcep.h +++ b/include/acpi/acexcep.

[PATCH 24/42] ACPICA: Tools: Add spacing and missing options in acpibin tool

2015-12-28 Thread Lv Zheng
rom 18 to 20 characters in the ACPI_OPTION macro. Link: https://github.com/acpica/acpica/commit/e7c8ffbb Signed-off-by: Colin Ian King <colin.k...@canonical.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpi

[PATCH 27/42] ACPICA: Parser: Add constants for internal namepath function

2015-12-28 Thread Lv Zheng
ert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acparser.h |8 +++- drivers/acpi/acpica/psargs.c |4 ++-- drivers/acpi/acpica/psloop.c |8 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/acpi/acpi

[PATCH 21/42] ACPICA: Namespace: Add scope information to the simple object repair mechanism

2015-12-28 Thread Lv Zheng
ACPICA commit 51cbd324420ca5e381cb2c57ce95139053518a35 The acpi_object_converter callbacks are lack in scope information to convert name_string. This patch fixes this issue by passing the evaluation method/object node to the converter callbacks. Lv Zheng. Link: https://github.com/acpica/acpica

[PATCH 14/42] ACPICA: Revert "acpi_get_object_info: Add support for ACPI 5.0 _SUB method."

2015-12-28 Thread Lv Zheng
onents/utilities/utids.c source/include/acnames.h source/include/actypes.h source/tools/acpinames/anstubs.c Link: https://github.com/acpica/acpica/commit/e4743959 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- d

[PATCH 16/42] ACPICA: acpiexec/acpinames: Update for error checking macros

2015-12-28 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit 5bdfb4f43f4d315d23b31b39bac5a0b1ca420c2b Standardize naming, deploy in common header. Link: https://github.com/acpica/acpica/commit/5bdfb4f4 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

[PATCH 17/42] ACPICA: Concatenate operator: Add extensions to support all ACPI objects

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 |2 +- drivers/acpi/acpica/exmisc.c | 41 +++- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/a

[PATCH 20/42] ACPICA: Update for output of the Debug Object

2015-12-28 Thread Lv Zheng
robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/exdebug.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/exdebug.c b/drivers/acpi/acpica/exdebug.c index ca6e379..b223090 100644 --- a/d

[PATCH 15/42] ACPICA: Add comment explaining _SUB removal

2015-12-28 Thread Lv Zheng
a89968 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/nsxfname.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/acpi/acpica/nsxfname.c b/drivers/acpi/acpica/nsxfname.c index 0e4e6b7..669e0f1 10

[PATCH 12/42] ACPICA: iasl/acpiexec: Update input file handling and verification

2015-12-28 Thread Lv Zheng
no-op chage for Linux kernel. Link: https://github.com/acpica/acpica/commit/3a6f2a51 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acapps.h | 10 +++--- drivers/acpi/acpica/dbinput.c |7 +++ d

[PATCH 19/42] ACPICA: Debug object: Fix output for a NULL object

2015-12-28 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit e4414f067c726ef746dac990c0bae7f433045843 Was broken by addition of "null string" feature to emit simple blank lines. Link: https://github.com/acpica/acpica/commit/e4414f06 Signed-off-by: Bob Moore <robert.mo...@intel.com

[PATCH 18/42] ACPICA: Debug Object: Cleanup output

2015-12-28 Thread Lv Zheng
Link: https://github.com/acpica/acpica/commit/05492c4a Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/exdebug.c | 67 + include/acpi/acpixf.h |4 +++ 2 files chan

[PATCH] ACPI / debugger: Fix an issue a flag is modified without locking

2015-12-23 Thread Lv Zheng
There is one line of code, executed out of locking due to rebase mistakes. This patch fixes this issue. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpi_dbg.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_dbg.c b/driver

[PATCH v3 0/6] ACPICA / debugger: Add in-kernel AML debugger support

2015-11-18 Thread Lv Zheng
eadable() support. v3: 1. Remove acpi_os_readable() support from this patchset. It's sent separately. 2. Delete some deprecated comments. Colin Ian King (1): ACPICA: Debugger: Remove unnecessary status check Lv Zheng (5): ACPICA: Debugger: Convert some mechanisms to OSPM specific ACPICA: D

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

2015-11-18 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 v3 2/6] ACPICA: Debugger: Convert some mechanisms to OSPM specific

2015-11-18 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 v3 1/6] ACPICA: Debugger: Remove unnecessary status check

2015-11-18 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 v3 4/6] ACPI / debugger: Add IO interface to access debugger functionalities

2015-11-18 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 v3] ACPI / x86: introduce acpi_os_readable() support

2015-11-18 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 v3 5/6] tools/power/acpi: Add userspace AML interface support

2015-11-18 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 v3 6/6] ACPI / debugger: Add module support for ACPI debugger

2015-11-18 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

[UPDATE PATCH] ACPI / EC: Fix a boot EC regresion by restoring boot EC support for the DSDT EC

2016-06-02 Thread Lv Zheng
switched the "table loading"/"ECDT support" to be ACPI spec 2.0 compliant. Fixes: 59f0aa9480cf ("ACPI 2.0 / ECDT: Remove early namespace reference from EC") Link: https://bugzilla.kernel.org/show_bug.cgi?id=119261 Reported-and-tested-by: Gabriele Mazzotta <gabriele

[PATCH] ACPICA: Namespace: Fix wrong cleanup code in acpi_ns_execute_table()

2016-06-06 Thread Lv Zheng
An error was captured by the static checker. This patch fixes the issue. introduced in: Subject: ACPICA: ACPI 2.0, Interpreter: Fix MLC issues by switching to new TermList grammar for table loading Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Lv Zheng

[RFC PATCH v2] ACPICA / Hardware: Fix old register check in acpi_hw_get_access_bit_width()

2016-05-31 Thread Lv Zheng
: Mike Marshall <hub...@omnibond.com> Suggested-by: Jan Beulich <jbeul...@suse.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/hwregs.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/acpi/acpica/hwregs.c

[PATCH v3] ACPICA / Hardware: Fix old register check in acpi_hw_get_access_bit_width()

2016-05-31 Thread Lv Zheng
mnibond.com> Suggested-by: Jan Beulich <jbeul...@suse.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/hwregs.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/acpi/acpica/hwregs.c b/drivers/acpi/acpica

[PATCH] ACPICA / hardware: Fix address check in acpi_hw_get_access_bit_width()

2016-05-26 Thread Lv Zheng
The address check in acpi_hw_get_access_bit_width() should be byte size based, not bit width based. This patch fixes this mistake. Reported-by: Boris Ostrovsky <boris.ostrov...@oracle.com> Suggested-by: Jan Beulich <jbeul...@suse.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com>

[PATCH v2 2/3] ACPI / button: Refactor functions to eliminate redundant code

2016-05-27 Thread Lv Zheng
This patch simplies the code by merging the redundant code. No functional changes. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/button.c | 92 +++-- 1 file changed, 50 insertions(+), 42 deletions(-) diff --git a/driver

[PATCH v2 0/3] ACPI / button: Clarify initial lid state

2016-05-27 Thread Lv Zheng
to this fact. Lv Zheng (3): ACPI / button: Remove initial lid state notification ACPI / button: Refactor functions to eliminate redundant code ACPI / button: Send "open" state after boot/resume drivers/acpi/button.c | 96 ++--- 1 file c

[PATCH v2 3/3] ACPI / button: Send "open" state after boot/resume

2016-05-27 Thread Lv Zheng
k 1: https://lkml.org/2016/3/7/460 Link 2: https://github.com/systemd/systemd/issues/2087 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Cc: Bastien Nocera: <had...@hadess.net> --- drivers/acpi/button.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/button.c b/drive

[PATCH v2 1/3] ACPI / button: Remove initial lid state notification

2016-05-27 Thread Lv Zheng
: send initial lid state after add and resume Link 1: https://bugzilla.kernel.org/show_bug.cgi?id=89211 https://bugzilla.kernel.org/show_bug.cgi?id=106151 https://bugzilla.kernel.org/show_bug.cgi?id=106941 Link 2: https://bugzilla.novell.com/show_bug.cgi?id=326814 Signed-off-by

[PATCH] ACPI / EC: Fix a boot EC regresion by restoring boot EC support for the DSDT EC

2016-06-01 Thread Lv Zheng
m EC") Link: https://bugzilla.kernel.org/show_bug.cgi?id=119261 Reported-and-tested-by: Gabriele Mazzotta <m...@gmail.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- Index: linux-acpica/drivers/acpi/ec.c ===

[PATCH v3 3/3] ACPI / button: Add quirks for initial lid state notification

2016-06-01 Thread Lv Zheng
be making button.lid_init_state=ignore the default behavior. This patch implements the 2 options and keep the old behavior (button.lid_init_state=method). Link 1: https://lkml.org/2016/3/7/460 Link 2: https://github.com/systemd/systemd/issues/2087 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Cc: Bast

[PATCH v3 1/3] ACPI / button: Remove initial lid state notification

2016-06-01 Thread Lv Zheng
: send initial lid state after add and resume Link 1: https://bugzilla.kernel.org/show_bug.cgi?id=89211 https://bugzilla.kernel.org/show_bug.cgi?id=106151 https://bugzilla.kernel.org/show_bug.cgi?id=106941 Link 2: https://bugzilla.novell.com/show_bug.cgi?id=326814 Signed-off-by

[PATCH v3 2/3] ACPI / button: Refactor functions to eliminate redundant code

2016-06-01 Thread Lv Zheng
(Correct a wrong macro usage.) This patch simplies the code by merging the redundant code. No functional changes. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/button.c | 91 ++--- 1 file changed, 49 insertions(+), 42 del

[PATCH 1/2] ACPI / EC: Cleanup boot EC code using acpi_ec_alloc()

2016-06-21 Thread Lv Zheng
Failure handling of the boot EC code is not tidy. This patch cleans them up with acpi_ec_alloc(). This patch also changes acpi_ec_dsdt_probe(), always switches the boot EC from the ECDT one to the DSDT one in this function. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acp

[PATCH 2/2] ACPI / EC: Remove wrong ECDT correction quirks

2016-06-21 Thread Lv Zheng
quirk. In this table, EC._REG flags a named object whose default value is One, thus BAT1._STA surely should invoke EC accesses whatever we invoke EC._REG or not. We have to keep the quirk for it before we can root cause the issue. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi

[PATCH v2 0/3] ACPI / gpe: Add GPE masking/unmasking mechanism

2016-06-23 Thread Lv Zheng
This patchset adds a new mechanism that can be used to mask/unmask GPEs. Lv Zheng (3): ACPICA: Events: Introduce acpi_mask_gpe()/acpi_unmask_gpe() to implement GPE masking mechanism ACPI / sys: Update /sys/firmware/acpi/interrupts/gpexx using new GPE masking mechanism ACPI / sysfs

[PATCH v2 1/3] ACPICA: Events: Introduce acpi_mask_gpe()/acpi_unmask_gpe() to implement GPE masking mechanism

2016-06-23 Thread Lv Zheng
()/acpi_unmask_gpe() are provided to the OSPMs to mask/unmask GPEs in the above mentioned situation instead of acpi_enable_gpe()/acpi_disable_gpe(). ACPICA BZ 1102. Lv Zheng. Link: https://bugs.acpica.org/show_bug.cgi?id=1102 Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acev

[PATCH v2 2/3] ACPI / sys: Update /sys/firmware/acpi/interrupts/gpexx using new GPE masking mechanism

2016-06-23 Thread Lv Zheng
re register's EN/STS bits are flagged, and new "masked/unmasked" attribute to indicate the status of the masking mechanism. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/sleep.c |2 +- drivers/acpi/sysfs.c | 33 + 2 files ch

[PATCH v2 3/3] ACPI / sysfs: Provide quirk mechanism to prevent GPE flooding

2016-06-23 Thread Lv Zheng
/linux/+bug/887793 Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- Documentation/kernel-parameters.txt | 10 +++ drivers/acpi/internal.h |1 + drivers/acpi/scan.c |1 + drivers/acpi/sysfs.c| 56 +++ 4

[PATCH v4 4/5] ACPI 2.0 / AML: Enable correct ACPI subsystem initialization order for new table loading mode

2016-06-20 Thread Lv Zheng
the table and execute the module level AML opcodes instantly. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/bus.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 262ca31..4582db3 100644 --- a/driver

[PATCH v4 1/5] ACPICA: Namespace: Fix a regression that MLC support triggers dead lock in dynamic table loading

2016-06-20 Thread Lv Zheng
invoking MLC. However the unlocking is done to the acpi_ns_load_table(), in which, the interpreter lock should be locked by acpi_ns_parse_table() but wasn't. Reported by Mika Westerberg. Fixed by Lv Zheng. Fixes: 2785ce8d0da1 ("ACPICA: Add per-table execution of module-level code"

[PATCH v4 3/5] ACPICA: ACPI 2.0, Interpreter: Fix MLC issues by switching to new TermList grammar for table loading

2016-06-20 Thread Lv Zheng
patch also prepares a global option to be used to roll back to the old grammar during the period between a regression is reported and the regression is root-cause-fixed. ACPICA BZ 963, fixed by Lv Zheng. Link 1: https://bugzilla.kernel.org/show_bug.cgi?id=112911 Link 2: https://bugs.acpica.org/show_b

[PATCH v4 0/5] ACPI 2.0: Enable TermList interpretion for table loading

2016-06-20 Thread Lv Zheng
ammar switch released from the Linux upstream. It's safe to do so because we have implemented regression protection (acpi_gbl_parse_table_as_term_list) in the fixes. The earlier the fix is tested by more real users, the better quality can be achieved by knowing the unknown cases (if any). Lv Zheng (5): ACPICA: Namespace: F

[PATCH v4 2/5] ACPICA: Dispatcher: Fix an issue that the opregions created by the linked MLC were not tracked

2016-06-20 Thread Lv Zheng
Operation regions created by MLC were not tracked by acpi_check_address_range(), this patch fixes this issue. ACPICA BZ 1279. Fixed by Lv Zheng. Link: https://bugs.acpica.org/show_bug.cgi?id=1279 Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dsopcode.c |6 +++

[PATCH v4 5/5] ACPI 2.0 / AML: Fix module level execution by correctly parsing table as TermList

2016-06-20 Thread Lv Zheng
. Please report the regressions to the kernel bugzilla for further root causing. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- include/acpi/acpixf.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 22b0397..e

[RFC PATCH 0/3] ACPI / PM: Move _PTS/_WAK invocations out of the noirq stage

2016-06-28 Thread Lv Zheng
Currently _PTS/_WAK are invoked during noirq stages, while in _PTS/_WAK, there can be EC transactions. Though the EC driver is able to handle transactions using polling mode, for the performance reason, it is better to move _PTS/_WAK out of the noirq stage. Lv Zheng (3): PM: Rename prepare_late

[RFC PATCH 1/3] PM: Rename prepare_late/wake suspend_ops callbacks to prepare_noirq/finish_noirq

2016-06-28 Thread Lv Zheng
Rename the names of the PM callbacks, making them consistent with their caller names. Particularly: .prepare_late -> .prepare_noirq .wake -> .finish_noirq Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- arch/powerpc/platforms/pseries/suspend.c |6 +++--- drivers/

[RFC PATCH 3/3] ACPI / PM: Fix EC polling issue by implementing prepare_late/finish_early suspend_ops callbacks

2016-06-28 Thread Lv Zheng
_PTS/_WAK may contain EC transactions, it is better to have them handled with IRQ enabled. This patch moves the 2 suspend PM ops from noirq stage to late/early stage. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/sleep.c |5 +++-- 1 file changed, 3 insertions(+), 2 del

[RFC PATCH 2/3] PM: Add prepare_late/finish_early suspend_ops callbacks

2016-06-28 Thread Lv Zheng
This patch adds prepare_late/finish_early callbacks for suspend_ops. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- include/linux/suspend.h | 34 +++--- kernel/power/suspend.c | 10 -- 2 files changed, 35 insertions(+), 9 deletions(-) diff

[PATCH 01/14] ACPI / OSL: Cleanup initrd table override code

2016-02-05 Thread Lv Zheng
This patch cleans up initrd table override code, merging redundant logics and re-ordering code blocks. No functional changes. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/osl.c | 114 1 file changed, 52 insertions(

[PATCH 08/14] ACPI 2.0 / ECDT: Split EC_FLAGS_HANDLERS_INSTALLED

2016-02-05 Thread Lv Zheng
. Since acpi_ec_start()/acpi_ec_stop() will be entered multiple times after applying this change, it is also required to protect acpi_enable_gpe()/ acpi_disable_gpe() invocations. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/ec.c

[PATCH 09/14] ACPI 2.0 / ECDT: Remove early namespace reference from EC

2016-02-05 Thread Lv Zheng
bug.cgi?id=11880 Link 3: https://bugzilla.kernel.org/show_bug.cgi?id=11884 https://bugzilla.kernel.org/show_bug.cgi?id=14081 https://bugzilla.kernel.org/show_bug.cgi?id=14086 https://bugzilla.kernel.org/show_bug.cgi?id=14446 Signed-off-by: Lv Zheng <lv.zh...@intel.com>

[PATCH 00/14] ACPI 2.0: Enable TermList interpretion and early opeartion region accesses for table loading

2016-02-05 Thread Lv Zheng
nd GPEs/EC events are correctly handled. PATCH 01-02: The initrd installation testing facility. PATCH 03-07: Entropy reduction stuff in ACPICA. PATCH 08-10: Entropy reduction stuff in EC driver and ACPI subsystem's initialization order. PATCH 12:The first step enabling. PATCH

[PATCH 14/14] ACPI 2.0 / AML: Fix module level execution by correctly parsing table as TermList

2016-02-05 Thread Lv Zheng
the regressions to the kernel bugzilla for further root causing. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- include/acpi/acpixf.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 19c98a3..fd07392 100644 --- a/includ

[PATCH 07/14] ACPICA: Events: Fix an issue that _REG association can happen before namespace is initialized

2016-02-05 Thread Lv Zheng
important the root cause why ACPICA table loading is split into 2 load passes. Lv Zheng. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acevents.h |2 -- drivers/acpi/acpica/evregion.c | 71 ++-- drivers/acpi/acpica/evrgnini.c

[PATCH 13/14] ACPI 2.0 / AML: Enable correct ACPI subsystem initialization order for new table loading mode

2016-02-05 Thread Lv Zheng
the table and execute the module level AML opcodes instantly. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/bus.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 8752860..0d6bb22 100644 --- a/driver

[PATCH 06/14] ACPI 2.0 / AML: Rename acpi_gbl_reg_methods_enabled to acpi_gbl_namespace_initialized

2016-02-05 Thread Lv Zheng
ACPICA commit 4be3b82cf45d324366ea8567102d5108c5ef47cb The global variable actually means the availability of the namespace, and control methods evaluations should happen after namespace readiness. Thus this patch renames the global variable to reflect this logic. Lv Zheng. Link: https

[PATCH 10/14] ACPI 2.0 / ECDT: Enable correct ECDT initialization order

2016-02-05 Thread Lv Zheng
when all necessary corrections are upstreamed. Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/bus.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/drivers/

[PATCH 12/14] ACPI 2.0 / AML: Add TermList parsing support for table loading

2016-02-05 Thread Lv Zheng
objects created by loading the table should only be freed after the table is unloaded. So this patch follows the spec and the de-facto standard behavior, enables TermList evaluations when the table is loaded. Lv Zheng. Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acna

[PATCH 11/14] ACPI 2.0 / AML: Improve module level execution by moving the If/Else/While execution to per-table basis

2016-02-05 Thread Lv Zheng
This experiment moves module level If/Else/While executions to per-table basis. If regressions are found against the enabling of this improvement, this patch is the only one should get bisected. Please report the regressions to the kernel bugzilla for further root causing. Signed-off-by: Lv

[PATCH 05/14] ACPI 2.0 / AML: Ensure \_SB._INI executed before any _REG

2016-02-05 Thread Lv Zheng
. Before revealing Windows true behavior by more validations, this patch only ensures \_SB._INI evaluated before any _REG control methods. This can help to make progress to other initialization order fixes. Lv Zheng. Link: https://github.com/acpica/acpica/commit/8ae25b8d Link: https://github.com/acpica

[PATCH 02/14] ACPI / OSL: Add support to install tables via initrd

2016-02-05 Thread Lv Zheng
ed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/internal.h |1 + drivers/acpi/osl.c | 50 ++- drivers/acpi/tables.c |2 ++ 3 files changed, 52 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/internal.h b/drivers/acp

[PATCH 03/14] ACPI 2.0 / AML: Make default region accessible during the table load

2016-02-05 Thread Lv Zheng
acpi_install_address_space_handler() return value to determine if acpi_remove_address_space_handler() should be invoked before installing new address space handler. Lv Zheng. Link: https://github.com/acpica/acpica/commit/016b2a09 Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/tbxfload.c

[PATCH 04/14] ACPI 2.0 / AML: Tune _REG evaluations order in the initialization steps

2016-02-05 Thread Lv Zheng
this in a deferred way. Control method evaluation should happen after loading the tables. So this patch changes the order of _REG evaluation when acpi_gbl_group_module_level_code experiment is enabled. Lv Zheng. Link: https://github.com/acpica/acpica/commit/77e0c7a4 Signed-off-by: Lv Zheng <lv

[PATCH 03/15] ACPICA: iASL: Fix some typos with the name strtoul64

2016-02-18 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit e9622aa824e00997dc92e8638733b7553a4dba26 Was defined as stroul64 in some places. Link: https://github.com/acpica/acpica/commit/e9622aa8 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.

[PATCH 01/15] ACPICA: aclocal: Put parens around some definitions.

2016-02-18 Thread Lv Zheng
ed-off-by: waddlesplash <waddlespl...@gmail.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/aclocal.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/aclocal

[PATCH 02/15] ACPICA: Remove incorrect "static" from a global structure

2016-02-18 Thread Lv Zheng
intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acpredef.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/acpredef.h b/drivers/acpi/acpica/acpredef.h index 52f6bee..5faeab4 100644 --- a/drivers/acpi/acpica/acpred

[PATCH 04/15] ACPICA: iASL: Update to use internal acpi_ut_strtoul64 function

2016-02-18 Thread Lv Zheng
robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/utnonansi.c | 244 +-- 1 file changed, 206 insertions(+), 38 deletions(-) diff --git a/drivers/acpi/acpica/utnonansi.c b/drivers/acpi/acpica/utnonansi.c index d1f4a

[PATCH 00/15] ACPICA: 20160212 Release

2016-02-18 Thread Lv Zheng
dbconvert: free pld_info on error return path David E. Box (1): ACPICA: ACPI 6.0/iASL: Add support for the External AML opcode Lv Zheng (4): ACPICA: Tables: make default region accessible during the table load ACPICA: ACPICA: Tune _REG evaluations order in the initialization steps

[PATCH 11/15] ACPICA: Namespace: Rename acpi_gbl_reg_methods_enabled to acpi_gbl_namespace_initialized

2016-02-18 Thread Lv Zheng
to reflect this logic. Lv Zheng. Link: https://github.com/acpica/acpica/commit/4be3b82c Link: https://github.com/acpica/acpica/commit/19f84c24 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Bob Moore <robert.mo...@intel.com> --- drivers/acpi/acpica/acglobal.h |2 +-

[PATCH 12/15] ACPICA: ACPI 6.1: Add full support for this version of ACPI spec

2016-02-18 Thread Lv Zheng
intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/acpredef.h |9 + drivers/acpi/acpica/utdecode.c | 30 +- include/acpi/actbl.h |2 +- include/acpi/actbl1.h | 29 ++--- incl

[PATCH 07/15] ACPICA: ACPI 6.0/iASL: Add support for the External AML opcode

2016-02-18 Thread Lv Zheng
ithub.com/acpica/acpica/commit/882892fe 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> --- drivers/acpi/acpica/exoparg3.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 08/15] ACPICA: Tables: make default region accessible during the table load

2016-02-18 Thread Lv Zheng
acpi_install_address_space_handler() return value to determine if acpi_remove_address_space_handler() should be invoked before installing new address space handler. Lv Zheng. Link: https://github.com/acpica/acpica/commit/016b2a09 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Bob Moore <robert.mo...@

[PATCH 10/15] ACPICA: Namespace: Ensure \_SB._INI executed before any _REG

2016-02-18 Thread Lv Zheng
validations, this patch only ensures \_SB._INI evaluated before any _REG control methods. This can help to make progress to other initialization order fixes. Lv Zheng. Link: https://github.com/acpica/acpica/commit/8ae25b8d Signed-off-by: Lv Zheng <lv.zh...@intel.com> Signed-off-by: Bob Moore <

[PATCH 06/15] ACPICA: Remove unnecessary arguments to ACPI_INFO

2016-02-18 Thread Lv Zheng
ACPICA BZ 872. Link: https://github.com/acpica/acpica/commit/181f5660 Link: https://bugs.acpica.org/show_bug.cgi?id=872 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/dbcmds.c|2 +- drivers/acpi/acpica/

[PATCH 05/15] ACPICA: debugger: dbconvert: free pld_info on error return path

2016-02-18 Thread Lv Zheng
acpica/acpica/commit/23e64467 Signed-off-by: Colin Ian King <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/dbconvert.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) d

[PATCH 14/15] ACPICA: Utilities: Update trace mechinism for acquire_object

2016-02-18 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit 0824ab90e03c2e4239e890615f447e7962b1daa2 Was not using the correct macro. Updated a comment in acoutput.h Link: https://github.com/acpica/acpica/commit/0824ab90 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-

[PATCH 15/15] ACPICA: Update version to 20160212

2016-02-18 Thread Lv Zheng
From: Bob Moore <robert.mo...@intel.com> ACPICA commit 6b06645ea778cc054f48b03dd1842260a1606532 Version 20160212 Link: https://github.com/acpica/acpica/commit/6b06645e Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- inc

[PATCH 13/15] ACPICA: Revert "Parser: Fix for SuperName method invocation"

2016-02-18 Thread Lv Zheng
pports it. Link: https://github.com/acpica/acpica/commit/eade8f78 Signed-off-by: Bob Moore <robert.mo...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/psargs.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/acpi

[PATCH 09/15] ACPICA: ACPICA: Tune _REG evaluations order in the initialization steps

2016-02-18 Thread Lv Zheng
this in a deferred way. Control method evaluation should happen after loading the tables. So this patch changes the order of _REG evaluation when acpi_gbl_group_module_level_code experiment is enabled. Lv Zheng. Link: https://github.com/acpica/acpica/commit/77e0c7a4 Signed-off-by: Lv Zheng <lv

[PATCH] ACPICA / Interpreter: Fix a regression triggered because of wrong Linux ECDT support

2016-03-09 Thread Lv Zheng
es useless acpi_gbl_group_module_level_code check accordingly. Reported by Chris Bainbridge, Fixed by Lv Zheng. Reported-and-tested-by: Chris Bainbridge <chris.bainbri...@gmail.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- drivers/acpi/acpica/nsinit.c |2 ++ drivers/acpi/ac

[PATCH 1/3] ACPI / tables: Move table override mechanisms to tables.c

2016-04-08 Thread Lv Zheng
() -> renamed to early_acpi_table_init(), which invokes acpi_table_initrd_init() 2. acpi_os_physical_table_override() -> which invokes acpi_table_initrd_override() 3. acpi_initialize_initrd_tables() -> renamed to acpi_table_initrd_scan() Signed-off-by: Lv Zheng <lv.zh...@intel.com>

[PATCH 2/3] ACPI / x86: Cleanup initrd related code

2016-04-08 Thread Lv Zheng
, early_initrd_acpi_init() is still a stub because of the stub prepared for early_acpi_table_init(). Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- arch/x86/kernel/setup.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c

[PATCH 3/3] ACPI / tables: Convert the initrd table override mechanisms to the table upgrade mechanism

2016-04-08 Thread Lv Zheng
Purdila <octavian.purd...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- Documentation/acpi/initrd_table_override.txt | 65 +++--- drivers/acpi/Kconfig |8 ++-- drivers/acpi/tables.c

[PATCH 0/3] ACPI / tables: Add table upgrade mechanism

2016-04-08 Thread Lv Zheng
This patch introduces a table upgrade mechanism based on the existing initrd table override mechanism. Lv Zheng (3): ACPI / tables: Move table override mechanisms to tables.c ACPI / x86: Cleanup initrd related code ACPI / tables: Convert the initrd table override mechanisms to the table

[PATCH v2 3/3] ACPI / tables: Convert the initrd table override mechanisms to the table upgrade mechanism

2016-04-10 Thread Lv Zheng
Purdila <octavian.purd...@intel.com> Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- Documentation/acpi/initrd_table_override.txt | 65 +++--- drivers/acpi/Kconfig |8 ++-- drivers/acpi/tables.c| 48 ++

[PATCH v2 1/3] ACPI / tables: Move table override mechanisms to tables.c

2016-04-10 Thread Lv Zheng
() -> renamed to early_acpi_table_init(), which invokes acpi_table_initrd_init() 2. acpi_os_physical_table_override() -> which invokes acpi_table_initrd_override() 3. acpi_initialize_initrd_tables() -> renamed to acpi_table_initrd_scan() Signed-off-by: Lv Zheng <lv.zh...@intel.com>

[PATCH v2 0/3] ACPI / tables: Add table upgrade mechanism

2016-04-10 Thread Lv Zheng
This patch introduces a table upgrade mechanism based on the existing initrd table override mechanism. Updated due to a build error reported against early_acpi_table_init() stub. Lv Zheng (3): ACPI / tables: Move table override mechanisms to tables.c ACPI / x86: Cleanup initrd related code

[PATCH v2 2/3] ACPI / x86: Cleanup initrd related code

2016-04-10 Thread Lv Zheng
, early_initrd_acpi_init() is still a stub because of the stub prepared for early_acpi_table_init(). Signed-off-by: Lv Zheng <lv.zh...@intel.com> --- arch/x86/kernel/setup.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c

[PATCH 3/4] ACPI 2.0 / ECDT: Enable correct ECDT initialization order

2016-03-23 Thread Lv Zheng
it later when all necessary corrections are upstreamed. Link 4: https://bugzilla.kernel.org/show_bug.cgi?id=112911 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Tested-by: Chris Bainbridge <chris.bainbri...@gmail.com> --- drivers/acpi/bus.c | 39 +-- 1

[PATCH 2/4] ACPI 2.0 / ECDT: Remove early namespace reference from EC

2016-03-23 Thread Lv Zheng
gi?id=112911 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Tested-by: Chris Bainbridge <chris.bainbri...@gmail.com> --- drivers/acpi/ec.c | 145 - 1 file changed, 54 insertions(+), 91 deletions(-) diff --git a/drivers/acpi/ec.c b/drive

[PATCH 4/4] ACPI 2.0 / AML: Improve module level execution by moving the If/Else/While execution to per-table basis

2016-03-23 Thread Lv Zheng
. Link: https://bugzilla.kernel.org/show_bug.cgi?id=112911 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Tested-by: Chris Bainbridge <chris.bainbri...@gmail.com> --- include/acpi/acpixf.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/acpixf.h b/

[PATCH 1/4] ACPI 2.0 / ECDT: Split EC_FLAGS_HANDLERS_INSTALLED

2016-03-23 Thread Lv Zheng
. Since acpi_ec_start()/acpi_ec_stop() will be entered multiple times after applying this change, it is also required to protect acpi_enable_gpe()/ acpi_disable_gpe() invocations. Link: https://bugzilla.kernel.org/show_bug.cgi?id=112911 Signed-off-by: Lv Zheng <lv.zh...@intel.com> Tested-by:

[PATCH 0/4] ACPI 2.0 / ECDT: Enable ECDT support

2016-03-23 Thread Lv Zheng
to the evaluation of _REG/_GPE/_CRS and namespace walk before executing the module level AML opcodes. And the fixes in fact finally disable early EC usages (used during table loading and early device enumeration processes). Lv Zheng (4): ACPI 2.0 / ECDT: Split EC_FLAGS_HANDLERS_INSTALLED ACPI 2.0 / ECDT

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