[UPDATE RFC PATCH 15/15] ACPI/thinkpad: Fix wrong acpi/acpi.h inclusion in Thinkpad ACPI users.

2013-12-20 Thread Lv Zheng
...@alsa-project.org Cc: ibm-acpi-de...@lists.sourceforge.net Cc: platform-driver-...@vger.kernel.org Signed-off-by: Lv Zheng lv.zh...@intel.com --- sound/pci/hda/patch_conexant.c |2 +- sound/pci/hda/patch_realtek.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 02/17] ACPICA: Remove a redundant cast to acpi_size for ACPI_OFFSET() macro.

2014-07-29 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com It is already casted to acpi_size by ACPI_PTR_DIFF() macro. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/actypes.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[PATCH 00/17] ACPICA: 20140724 Release

2014-07-29 Thread Lv Zheng
for FADT changes. Lv Zheng (1): ACPICA: Utilities: Fix local printf issue. Sascha Wildner (1): ACPICA: Remove some extraneous printf arguments. Tomasz Nowicki (2): ACPICA/ARM: ACPI 5.1: Update for MADT changes. ACPICA/ARM: ACPI 5.1: Update for GTDT table changes. drivers/acpi/acpica

[PATCH 03/17] ACPICA: Disassembler: Add support for the ToUUID opererator (macro).

2014-07-29 Thread Lv Zheng
. Since this is a change for disassembler which is not shipped in the Linux kernel, the Linux kernel is not affected. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/aclocal.h | 13 +++-- include/acpi/acconfig.h

[PATCH 09/17] ACPICA: Debug object: Add current value of Timer() to debug line prefix.

2014-07-29 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Simplifies timing of things like control method execution. [zetalog: fixing 64-bit division link error] Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/exdebug.c | 11 ++- 1 file

[PATCH 06/17] ACPICA: Tables: Update for DMAR table changes.

2014-07-29 Thread Lv Zheng
: io...@lists.linux-foundation.org Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/iommu/dmar.c | 28 ++-- include/acpi/actbl2.h | 14 +++--- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git

[PATCH 01/17] ACPICA: Work around an ancient GCC bug.

2014-07-29 Thread Lv Zheng
Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/utprint.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/utprint.c b/drivers/acpi/acpica/utprint.c index 1031164..080e22a 100644 --- a/drivers/acpi/acpica/utprint.c +++ b/drivers

[PATCH 04/17] ACPICA: Update for comments/formatting. No functional changes.

2014-07-29 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Fix some issues detected by acpisrc utility. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/exfield.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff

[PATCH 12/17] ACPICA: ACPI 5.1: Support for the _CCA predifined name.

2014-07-29 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Full support for _CCA. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/acpredef.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/acpica/acpredef.h b/drivers/acpi

[PATCH 13/17] ACPICA/ARM: ACPI 5.1: Update for FADT changes.

2014-07-29 Thread Lv Zheng
-by: Lv Zheng lv.zh...@intel.com --- include/acpi/actbl.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h index 1cc7ef1..bee19d8 100644 --- a/include/acpi/actbl.h +++ b/include/acpi/actbl.h @@ -270,7 +270,8 @@ struct

[PATCH 08/17] ACPICA: acpihelp: Add UUID support, restructure some existing files.

2014-07-29 Thread Lv Zheng
Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/Makefile |8 +++- drivers/acpi/acpica/aclocal.h |5 ++ drivers/acpi/acpica/acutils.h |9 drivers/acpi/acpica/utdecode.c | 27 --- drivers/acpi/acpica/uthex.c| 100

[PATCH 16/17] ACPICA: ACPI 5.1: Update for PCCT table changes.

2014-07-29 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com One new subtable. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/actbl3.h | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/include/acpi/actbl3.h b

[PATCH 17/17] ACPICA: Update version to 20140724.

2014-07-29 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Version 20140724. Signed-off-by: Bob Moore robert.mo...@intel.com 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

[PATCH 15/17] ACPICA/ARM: ACPI 5.1: Update for GTDT table changes.

2014-07-29 Thread Lv Zheng
From: Tomasz Nowicki tomasz.nowi...@linaro.org New fields and new subtables. Tomasz Nowicki. tomasz.nowi...@linaro.org Signed-off-by: Tomasz Nowicki tomasz.nowi...@linaro.org Signed-off-by: Hanjun Guo hanjun@linaro.org Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng

[PATCH 14/17] ACPICA/ARM: ACPI 5.1: Update for MADT changes.

2014-07-29 Thread Lv Zheng
-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/actbl1.h | 44 +--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 9613e8e..7626bfe 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi

[PATCH 10/17] ACPICA: ACPI 5.1: Support for the _DSD predefined name.

2014-07-29 Thread Lv Zheng
From: David E. Box david.e@linux.intel.com Adds full support for _DSD. David Box. 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/acpredef.h | 13

[PATCH 11/17] ACPICA: ACPI 5.1: New notify value for System Affinity Update.

2014-07-29 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com New value for the Notify() operator. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/utdecode.c |5 +++-- include/acpi/actypes.h |3 ++- 2 files changed, 5 insertions(+), 3

[PATCH 05/17] ACPICA: Remove some extraneous printf arguments.

2014-07-29 Thread Lv Zheng
://bugs.acpica.org/show_bug.cgi?id=1090 Signed-off-by: Sascha Wildner swild...@gmail.com Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/exdump.c |6 +++--- drivers/acpi/acpica/utfileio.c |3 +-- 2 files changed, 4 insertions(+), 5

[PATCH 07/17] ACPICA: Utilities: Fix local printf issue.

2014-07-29 Thread Lv Zheng
. BZ 1094. Reported by Yizhe Wang, fixed by Lv Zheng. Since acpi_ut_vprintf() is only enabled for specific OSPM now, this patch doesn't affect Linux kernel. Reference: https://bugs.acpica.org/show_bug.cgi?id=1094 Reported-and-tested-by: Yizhe Wang yizhe.w...@intel.com Signed-off-by: Lv Zheng lv.zh

[PATCH v3 0/7] ACPICA: Enable ACPICA prototypes for CONFIG_ACPI=n builds.

2014-07-16 Thread Lv Zheng
configuration and it is confirmed that the ACPI devices are successfully created under /sys/bus/acpi/devices when CONFIG_ACPI is enabled. Lv Zheng (7): ACPICA: Linux: Add stub support for Linux specific variables and functions. ACPICA: Linux: Add stub implementation of ACPICA 64-bit mathematics

[PATCH v3 1/7] ACPICA: Linux: Add stub support for Linux specific variables and functions.

2014-07-16 Thread Lv Zheng
-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/bus.c|3 --- include/acpi/acpixf.h | 28 +--- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index c5bc8cf..8581f5b 100644 --- a/drivers/acpi/bus.c +++ b/drivers

[PATCH v3 5/7] ACPI/SFI: Fix wrong acpi/acpi.h inclusion in SFI/ACPI wrapper - table definitions.

2014-07-16 Thread Lv Zheng
This patch removes acpi/acpi.h inclusions from linux/sfi_acpi.h as linux/acpi.h has already included it for CONFIG_ACPI=n builds. Cc: Len Brown l...@kernel.org Cc: sfi-de...@simplefirmware.org Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/linux/sfi_acpi.h |3 --- 1 file changed, 3

[PATCH v3 4/7] ACPICA: Linux: Allow ACPICA inclusion for CONFIG_ACPI=n builds.

2014-07-16 Thread Lv Zheng
-by: Lv Zheng lv.zh...@intel.com --- include/linux/acpi.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 358c01b..5320153 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -29,17 +29,17 @@ #include linux

[PATCH v3 6/7] ACPI: Add support to force header inclusion rules for acpi/acpi.h.

2014-07-16 Thread Lv Zheng
messages are carefully split into a seperate patch other than the wrong inclusion cleanups. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/Makefile|2 +- include/acpi/platform/aclinux.h | 10 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH v3 3/7] ACPICA: Linux: Add support to exclude asm/acenv.h inclusion.

2014-07-16 Thread Lv Zheng
The forthcoming patch will make acpi/acpi.h to be visible to all kernel source code. Thus for the architectures that do not support ACPI and haven't implemented asm/acenv.h, we need to make it excluded. Signed-off-by: Lv Zheng lv.zh...@intel.com --- arch/ia64/include/asm/acenv.h |4

[PATCH v3 2/7] ACPICA: Linux: Add stub implementation of ACPICA 64-bit mathematics.

2014-07-16 Thread Lv Zheng
header stubs are useful to protect CONFIG_ACPI=n Linux kernel builds where ACPICA headers are included. Lv Zheng. Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/platform/aclinuxex.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/acpi/platform

[PATCH v3 7/7] ACPI: Cleanup useless ACPI inclusion.

2014-07-16 Thread Lv Zheng
The sst-haswell-dsp.c is an ACPI independent file, this patch removes ACPI header files for it. Signed-off-by: Lv Zheng lv.zh...@intel.com Cc: Liam Girdwood lgirdw...@gmail.com Cc: Mark Brown broo...@kernel.org Cc: alsa-de...@alsa-project.org --- sound/soc/intel/sst-haswell-dsp.c |3 --- 1

[PATCH 0/2] ACPI/EC: Improve EC driver's state machine to survive with firmware that refuses to respond QR_EC when SCI_EVT isn't set.

2014-08-21 Thread Lv Zheng
and PATCH 2 is a useful improvement. Lv Zheng (2): ACPI/EC: Add support to disallow QR_EC to be issued when SCI_EVT isn't set. ACPI/EC: Add support to disallow QR_EC to be issued before completing the previous QR_EC. drivers/acpi/ec.c | 21 ++--- 1 file changed, 18

[PATCH 1/2] ACPI/EC: Add support to disallow QR_EC to be issued when SCI_EVT isn't set.

2014-08-21 Thread Lv Zheng
-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index a66ab65..5e1ed31 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -197,6 +197,8 @@ static bool

[PATCH 2/2] ACPI/EC: Add support to disallow QR_EC to be issued before completing the previous QR_EC.

2014-08-21 Thread Lv Zheng
when SCI_EVT isn't set. But this patch is still useful as it can help to reduce the number of scheduled QR_EC work items. Link: https://bugzilla.kernel.org/show_bug.cgi?id=82611 Reported-and-tested-by: Alexander Mezin mezin.alexan...@gmail.com Signed-off-by: Lv Zheng lv.zh...@intel.com

[PATCH 0/6] ACPI/OSL: Rework of ACPICA memory OSLs to improve performance.

2014-10-22 Thread Lv Zheng
. By instrumentation, the 2-5 minutes time consumption overhead can be seen to happen on the synchronize_rcu() invoked in the acpi_os_unmap_memory(). This patchset removes the synchronize_rcu() from the hot path to improve the performance. Lv Zheng (6): ACPI/OSL: Split memory operation region

[PATCH 3/6] ACPI/OSL: Cleanup memory access functions by merging duplicate code.

2014-10-22 Thread Lv Zheng
This patch merges duplicate code to cleanup ACPI memory access implementations. No functional changes. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Fei Yang fei.y...@intel.com --- drivers/acpi/mem.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git

[PATCH 2/6] ACPI/OSL: Rename system memory functions.

2014-10-22 Thread Lv Zheng
This patch cleans up system memory functions to make it easier to understand the meaning of such functions. No functional cleanup. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Fei Yang fei.y...@intel.com --- drivers/acpi/mem.c | 38 ++ 1 file

[PATCH 4/6] ACPI/OSL: Add acpi_map2virt() to merge duplicate code.

2014-10-22 Thread Lv Zheng
This patch adds acpi_map2virt() so that some duplicated code can be merged. No functional changes. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Fei Yang fei.y...@intel.com --- drivers/acpi/mem.c | 45 - 1 file changed, 20 insertions(+), 25

[PATCH 6/6] ACPI/OSL: Fix performance issue in system memory lockings.

2014-10-22 Thread Lv Zheng
a real case can be seen on bugzilla.kernel.org complaining this, no further improvements are done in this patch. Signed-off-by: Lv Zheng lv.zh...@intel.com Reported-and-tested-by: Fei Yang fei.y...@intel.com --- drivers/acpi/mem.c | 87 ++-- 1

[PATCH 5/6] ACPI/OSL: Cleanup branch logics.

2014-10-22 Thread Lv Zheng
This patch cleans up trivial branch logics in acpi_os_unmap_iomem() to eliminate several lines. No functional changes. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Fei Yang fei.y...@intel.com --- drivers/acpi/mem.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff

[PATCH 1/6] ACPI/OSL: Split memory operation region implementations to a seperate file.

2014-10-22 Thread Lv Zheng
This patch moves SystemMemory operation region implementations to a seperate file before doing cleanups. No functional changes. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Fei Yang fei.y...@intel.com --- drivers/acpi/Makefile |2 +- drivers/acpi/mem.c| 395

[PATCH] ACPICA: ACPI 5.1: Add support for runtime validation of _DSD package.

2014-08-28 Thread Lv Zheng
...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/nsprepkg.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/acpi/acpica/nsprepkg.c b/drivers/acpi/acpica/nsprepkg.c index 68f7258..1b13b92 100644 --- a/drivers/acpi

[PATCH v2 0/2] ACPI/EC: Fix regressions on Samsung hardware.

2014-10-28 Thread Lv Zheng
It is reported that the Samsung EC firmware behaves differently than Acer EC firmware. And then previous 2 commits that fix Acer issues have broken Samsung hardware. This patchset fixes the regressions. Lv Zheng (2): Revert ACPI / EC: Add support to disallow QR_EC to be issued before

[PATCH v2 1/2] Revert ACPI / EC: Add support to disallow QR_EC to be issued before completing previous QR_EC

2014-10-28 Thread Lv Zheng
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=44161 Reported-and-tested-by: Ortwin Gl¨¹ck o...@odi.ch Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index

[PATCH v2 2/2] ACPI/EC: Fix a regression caused by conflict firmware behavior between Samsung and Acer.

2014-10-28 Thread Lv Zheng
the behaviors to make Acer behavior only effective for Acer EC firmware so that the breakages on Samsung EC firmware can be avoided. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=44161 Reported-and-tested-by: Ortwin Gl¨¹ck o...@odi.ch Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers

[RFC PATCH v3 1/2] ACPICA: Events: Remove duplicated sanity check in acpi_ev_enable_gpe().

2014-11-19 Thread Lv Zheng
the GPE handler is known to be available, such check isn't needed. So we can simply remove this duplicated check from acpi_ev_enable_gpe(). Lv Zheng. Signed-off-by: Lv Zheng lv.zh...@intel.com Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- drivers/acpi/acpica/evgpe.c

[RFC PATCH v3 2/2] ACPICA: Events: Introduce ACPI_GPE_HANDLER_RAW to fix 2 issues for the current GPE APIs.

2014-11-19 Thread Lv Zheng
enabling/disabling/clearing operations are bypassed to allow drivers to perform them at a proper position using the GPE APIs. Lv Zheng. Signed-off-by: Lv Zheng lv.zh...@intel.com Cc: Kirill A. Shutemov kir...@shutemov.name --- arch/x86/platform/olpc/olpc-xo15-sci.c |2 +- drivers/acpi/acpica

[RFC PATCH v4] ACPICA/Events: Add support to ensure GPE is disabled by default for handlers.

2014-11-19 Thread Lv Zheng
On some platforms, GPE is not disabled by default after ACPI hardware is enabled. This confuses GPE drivers. This patch adds support to disable GPE by default for GPE handler drivers. Signed-off-by: Lv Zheng lv.zh...@intel.com Cc: Kirill A. Shutemov kir...@shutemov.name --- drivers/acpi/acpica

[PATCH 1/6] ACPICA: Add _PSx names to the METHOD_NAME list.

2014-09-01 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Will be used by iASL. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/acnames.h |4 1 file changed, 4 insertions(+) diff --git a/include/acpi/acnames.h b/include/acpi/acnames.h index

[PATCH 2/6] ACPICA: ACPI 5.1/Disassembler: Add GICC affinity subtable to SRAT table.

2014-09-01 Thread Lv Zheng
From: Hanjun Guo hanjun@linaro.org Update template for SRAT. Add clock_domain to standard CPU affinity subtable. Mostly by Hanjun Guo hanjun@linaro.org Signed-off-by: Hanjun Guo hanjun@linaro.org Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh

[PATCH 0/6] ACPICA: 20140828 Release

2014-09-01 Thread Lv Zheng
The 20140828 ACPICA kernel-resident subsystem updates are linuxized based on the pm/linux-next branch to form this patchset. The patchset has passed the following build/boot tests. Build tests are performed as follows: 1. i386 + default + COFNIG_ACPI=y 2. i386 + allyes + CONFIG_ACPI=y 3. i386 +

[PATCH 4/6] ACPICA: Disassembler: Fix for gpio_int interrupt polarity flags.

2014-09-01 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com The field is actually 2 bits, not 1. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/utresrc.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpica

[PATCH 6/6] ACPICA: Update version to 20140828.

2014-09-01 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Version 20140828. Signed-off-by: Bob Moore robert.mo...@intel.com 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

[PATCH 5/6] ACPICA: ACPI 5.1: Add support for runtime validation of _DSD package.

2014-09-01 Thread Lv Zheng
...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/nsprepkg.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/acpi/acpica/nsprepkg.c b/drivers/acpi/acpica/nsprepkg.c index 68f7258..1b13b92 100644 --- a/drivers/acpi

[PATCH 3/6] ACPICA: Headers: Add GTDT flag definitions for the timer subtable.

2014-09-01 Thread Lv Zheng
From: Hanjun Guo hanjun@linaro.org Mostly by Hanjun Guo hanjun@linaro.org Signed-off-by: Hanjun Guo hanjun@linaro.org Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- include/acpi/actbl3.h |9 +++-- 1 file changed, 7 insertions

[UPDATE RFC PATCH 2] ACPICA: Events: Introduce ACPI_GPE_HANDLER_RAW to fix 2 issues for the current GPE APIs.

2014-11-20 Thread Lv Zheng
invoking the GPE handler and the internal enabling/disabling/clearing operations are bypassed to allow drivers to perform them at a proper position using the GPE APIs. Lv Zheng. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/acevents.h |9 - drivers/acpi/acpica/aclocal.h

[PATCH 2/6] ACPI/EC: Enhance the checks to apply to QR_EC transactions.

2014-11-02 Thread Lv Zheng
Currently a check is applied to new transactions, but QR_EC transactions are not included. This patch merges the code path to make the check also applying to the QR_EC transactions. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Ortwin Glück o...@odi.ch --- drivers/acpi/ec.c |9

[PATCH 4/6] ACPI/EC: Add command flushing support.

2014-11-02 Thread Lv Zheng
wireless switch on/off and plugging power cord in/out frequently during the suspending/resuming. The above dmesg shows that the EC driver is stopped during suspending (*) and is restarted during resuming (#) correctly. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Ortwin Glück o...@odi.ch

[PATCH 6/6] ACPI/EC: Add GPE reference counting debugging messages.

2014-11-02 Thread Lv Zheng
This patch enhances debugging with the GPE reference count messages added. No functional changes. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 7089081..5ac189b

[PATCH 0/6] ACPI/EC: Cleanups of command flushing and event polling.

2014-11-02 Thread Lv Zheng
GPE storming prevention enhancement series. The original discussion can be found at: http://www.spinics.net/lists/linux-acpi/msg51698.html Lv Zheng (6): ACPI/EC: Introduce STARTED/STOPPED flags to replace BLOCKED flag. ACPI/EC: Enhance the checks to apply to QR_EC transactions. ACPI/EC: Add

[PATCH 3/6] ACPI/EC: Add reference counting for query handlers.

2014-11-02 Thread Lv Zheng
This patch adds reference counting for query handlers in order to eliminate kmalloc()/kfree() usage. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Steffen Weber steffen.we...@gmail.com Tested-by: Ortwin Glück o...@odi.ch Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- drivers

[PATCH 1/6] ACPI/EC: Introduce STARTED/STOPPED flags to replace BLOCKED flag.

2014-11-02 Thread Lv Zheng
. This is reasonable as the GPE disabling/enabling state should only be determined by the EC driver's state machine which is protected by the EC spinlock. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Ortwin Glück o...@odi.ch --- drivers/acpi/ec.c | 56

[PATCH 5/6] ACPI/EC: Cleanup QR_SC command processing by adding a kernel thread to poll EC events.

2014-11-02 Thread Lv Zheng
://bugzilla.kernel.org/show_bug.cgi?id=77431 Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Ortwin Glück o...@odi.ch --- drivers/acpi/ec.c | 194 ++- drivers/acpi/internal.h |1 + 2 files changed, 144 insertions(+), 51 deletions(-) diff

[PATCH 0/6] ACPICA: 20141107 Release

2014-11-26 Thread Lv Zheng
The 20141107 ACPICA kernel-resident subsystem updates are linuxized based on the pm/linux-next branch to form this patchset. The patchset has passed the following build/boot tests. Build tests are performed as follows: 1. i386 + default + COFNIG_ACPI=y 2. i386 + allyes + CONFIG_ACPI=y 3. i386 +

[PATCH 2/6] ACPICA: acpiexec: Add option to specify an object initialization file.

2014-11-26 Thread Lv Zheng
is not in the Linux kernel. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/utxfinit.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/acpi/acpica/utxfinit.c b/drivers/acpi/acpica/utxfinit.c index 13380d8..b1fd688 100644

[PATCH 6/6] ACPICA: Update version to 20141107.

2014-11-26 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Version 20141107. Signed-off-by: Bob Moore robert.mo...@intel.com 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

[PATCH 5/6] ACPICA: Disassembler: Emit correct string for 0 stop bits.

2014-11-26 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Was stop_bits_none, corrected to stop_bits_zero. David E. Box. 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/utresrc.c |2 +- 1

[PATCH 4/6] ACPICA: Disassembler: Update for C-style expressions.

2014-11-26 Thread Lv Zheng
From: Bob Moore robert.mo...@intel.com Add extra set of parens for assignments within an expression. This patch only affects compiler support which is not in the Linux kernel. Signed-off-by: Bob Moore robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica

[PATCH 3/6] ACPICA: Disassembler: Add support for C-style operators and expressions.

2014-11-26 Thread Lv Zheng
-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/acglobal.h |1 + drivers/acpi/acpica/aclocal.h |2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h index ebf02cc..7f60582 100644 --- a/drivers/acpi/acpica

[PATCH 1/6] ACPICA: iASL: Add support for to_PLD macro.

2014-11-26 Thread Lv Zheng
robert.mo...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/utxface.c |4 +++- include/acpi/acbuffer.h | 14 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/acpica/utxface.c b/drivers/acpi/acpica/utxface.c index

[PATCH] ACPI/OSL: Add IRQ handler flushing support in the OSL.

2014-11-04 Thread Lv Zheng
acpi_os_wait_events_complete() hook to achieve this. After the following commit: Commit: 69c841b6dd8313c9a673246cc0e2535174272cab Author: Lv Zheng lv.zh...@intel.com Subject: ACPICA: Update use of acpi_os_wait_events_complete interface. The OSL acpi_os_wait_events_complete() is invoked after

[PATCH 03/10] ACPICA: Events: Remove acpi_ev_valid_gpe_event() due to current restriction.

2015-02-04 Thread Lv Zheng
this period and the acpi_ev_valid_gpe_event() to reflect current restriction. Lv Zheng. Link: https://github.com/acpica/acpica/commit/8823b44f Signed-off-by: Lv Zheng lv.zh...@intel.com Acked-by: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: David E. Box david.e@linux.intel.com Signed-off

[PATCH v4 4/6] ACPI / EC: Fix several GPE handling issues by deploying ACPI_GPE_DISPATCH_RAW_HANDLER mode.

2015-02-05 Thread Lv Zheng
/2014/11/4/974 https://lkml.org/lkml/2014/11/18/316 https://www.spinics.net/lists/linux-acpi/msg54340.html Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 81 +++-- 1 file changed, 73 insertions(+), 8 deletions

[PATCH v4 3/6] ACPICA: Events: Enable APIs to allow interrupt/polling adaptive request based GPE handling model.

2015-02-05 Thread Lv Zheng
a seperate GPE enabling API. Drivers then are encouraged to use this API when they need to switch to/from the GPE polling mode. Note that the acpi_set_gpe()/acpi_finish_gpe() should be first introduced to Linux using a divergence reduction patch before sending a linuxized version of this patch. Lv Zheng

[PATCH v4 2/6] ACPICA: Events: Introduce acpi_set_gpe()/acpi_finish_gpe() to reduce divergences.

2015-02-05 Thread Lv Zheng
. This driver provided lock is safe to be held in the GPE handler by the driver. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/evxfgpe.c | 105 + 1 file changed, 105 insertions(+) diff --git a/drivers/acpi/acpica/evxfgpe.c b/drivers/acpi

[PATCH v4 6/6] ACPI / EC: Update revision due to raw handler mode.

2015-02-05 Thread Lv Zheng
The bug fixes around GPE races have been done to the EC driver by the previous commits. This patch increases the revision to 3 to indicate the behavior differences between the old and the new drivers. The copyright/authorship notices are also updated. Signed-off-by: Lv Zheng lv.zh...@intel.com

[PATCH v4 5/6] ACPI / EC: Reduce ec_poll() by referencing the last register access timestamp.

2015-02-05 Thread Lv Zheng
venkat.raghav...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 2540870..e000cf7 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c

[PATCH 07/10] ACPICA: Events: Cleanup GPE dispatcher type obtaining code.

2015-02-04 Thread Lv Zheng
to prevent such issue from happening in the future, this patch introduces ACPI_GPE_DISPATCH_TYPE() macro to be used to obtain the GPE dispatcher types. Lv Zheng. Link: https://github.com/acpica/acpica/commit/7926d5ca Signed-off-by: Lv Zheng lv.zh...@intel.com Acked-by: Rafael J. Wysocki rafael.j.wyso

[PATCH 09/10] ACPICA: Update Copyright headers to 2015.

2015-02-04 Thread Lv Zheng
From: David E. Box david.e@linux.intel.com ACPICA commit 8990e73ab2aa15d6a0068b860ab54feff25bee36 Link: https://github.com/acpica/acpica/commit/8990e73a 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

[PATCH 08/10] ACPICA: Hardware: Cast GPE enable_mask before storing

2015-02-04 Thread Lv Zheng
://github.com/acpica/acpica/commit/490ec7f7 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/hwgpe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 10/10] ACPICA: Update version to 20150204.

2015-02-04 Thread Lv Zheng
-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 f81e530..96e4ef3 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h @@ -46,7 +46,7 @@ /* Current ACPICA

[PATCH 04/10] ACPICA: Events: Fix uninitialized variable

2015-02-04 Thread Lv Zheng
-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/evgpe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c index

[PATCH 05/10] ACPICA: Events: Cleanup of resetting the GPE handler to NULL before removing.

2015-02-04 Thread Lv Zheng
ACPICA commit b2b18bb38045404e253f10787b8a4ae6e94cdee6 This patch prevents acpi_remove_gpe_handler() from leaking the stale gpe_event_info-Dispatch.Handler to the caller to avoid possible NULL pointer references. Lv Zheng. Link: https://github.com/acpica/acpica/commit/b2b18bb3 Signed-off-by: Lv

[PATCH 06/10] ACPICA: Events: Cleanup to move acpi_gbl_global_event_handler invocation out of acpi_ev_gpe_dispatch().

2015-02-04 Thread Lv Zheng
(). This makes further cleanups around acpi_ev_gpe_dispatch() simpler. Lv Zheng. Link: https://github.com/acpica/acpica/commit/04f25acd Signed-off-by: Lv Zheng lv.zh...@intel.com Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com Signed-off-by: David E. Box david.e@linux.intel.com Signed-off

[PATCH 00/10] ACPICA: 20150204 Release

2015-02-04 Thread Lv Zheng
variable ACPICA: Hardware: Cast GPE enable_mask before storing ACPICA: Update Copyright headers to 2015. ACPICA: Update version to 20150204. Lv Zheng (6): ACPICA: Events: Back port ACPICA: Save current masks of enabled GPEs after enable register writes. ACPICA: Events: Remove duplicated

[PATCH 01/10] ACPICA: Events: Back port ACPICA: Save current masks of enabled GPEs after enable register writes.

2015-02-04 Thread Lv Zheng
. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/acpica/evgpeutil.c |4 ++-- drivers/acpi/acpica/evxfgpe.c |1 - drivers/acpi/acpica/hwgpe.c |4 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/evgpeutil.c b/drivers/acpi/acpica

[PATCH 02/10] ACPICA: Events: Remove duplicated sanity check in acpi_ev_enable_gpe().

2015-02-04 Thread Lv Zheng
. acpi_set_gpe(): since it is invoked by the OSPM driver where the GPE handler is known to be available, such check isn't needed. So we can simply remove this duplicated check from acpi_ev_enable_gpe(). Lv Zheng. Link: https://github.com/acpica/acpica/commit/ca103247 Signed-off-by: Lv Zheng

[PATCH v4 0/6] ACPI / EC: Fix GPE handling related races.

2015-02-05 Thread Lv Zheng
, there is no indication left for it to handle. This patchset can reduce the number of no-op EC GPE handler invocations to almost 0 by fixing the races, thus it may have fixed the potential root cause of the issues that were originally fixed by the storming condition threshold quirk. Lv Zheng (6

[PATCH v4 1/6] ACPICA: Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix 2 issues for the current GPE APIs.

2015-02-05 Thread Lv Zheng
enabling/disabling operations are bypassed to allow drivers to perform them at a proper position using the GPE APIs and ACPI_GPE_DISPATCH_RAW_HANDLER users should invoke acpi_set_gpe() instead of acpi_enable_gpe()/acpi_disable_gpe() to bypass the internal GPE clearing code in acpi_enable_gpe(). Lv Zheng

[PATCH v2 5/5] ACPI / EC: Add GPE reference counting debugging messages.

2015-02-05 Thread Lv Zheng
This patch enhances debugging with the GPE reference count messages added. No functional changes. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c

[PATCH v2 4/5] ACPI / EC: Add query flushing support.

2015-02-05 Thread Lv Zheng
/show_bug.cgi?id=77431 Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Ortwin Glück o...@odi.ch --- drivers/acpi/ec.c | 101 - 1 file changed, 85 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 982b67f

[PATCH v2 1/5] ACPI / EC: Introduce STARTED/STOPPED flags to replace BLOCKED flag.

2015-02-05 Thread Lv Zheng
this because of recent ACPICA GPE API enhancement. This is reasonable as the GPE disabling/enabling state should only be determined by the EC driver's state machine which is protected by the EC spinlock. Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Ortwin Glück o...@odi.ch --- drivers/acpi

[PATCH v2 3/5] ACPI / EC: Refine command storm prevention support.

2015-02-05 Thread Lv Zheng
quirks should take care of deleting it. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 55 +++-- 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 1fa1463..982b67f 100644

[PATCH v2 0/5] ACPI / EC: Add reference counting for requests and cleans up the grace periods support.

2015-02-05 Thread Lv Zheng
messages can be used to detect broken EC transactions. It should always drop to 1 when the driver is idle during the runtime. Note that after flushing before suspending, EC GPE is still enabled to keep the old behavior. Lv Zheng (5): ACPI/EC: Introduce STARTED/STOPPED flags to replace BLOCKED flag

[PATCH v2 2/5] ACPI / EC: Add command flushing support.

2015-02-05 Thread Lv Zheng
the flush operation. The reference increased for such kind of code path is wrapped by acpi_ec_submit_flushable_request(). Signed-off-by: Lv Zheng lv.zh...@intel.com Tested-by: Ortwin Glück o...@odi.ch --- drivers/acpi/ec.c | 68 --- drivers/acpi

[PATCH 2/2] ACPICA: Resources: Provide common part for struct acpi_resource_address structures.

2015-01-26 Thread Lv Zheng
are passed with defconfig/allnoconfig/allyesconfig and defconfig+CONFIG_ACPI=n. Original-by: Thomas Gleixner t...@linutronix.de Original-by: Jiang Liu jiang@linux.intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- arch/ia64/kernel/acpi-ext.c |6 ++-- arch/ia64/pci/pci.c

[RFC PATCH 1/2] ACPI: Introduce acpi_unload_parent_table() usages in Linux kernel.

2015-01-26 Thread Lv Zheng
between Linux and ACPICA. Signed-off-by: Lv Zheng lv.zh...@intel.com Acked-by: Bjorn Helgaas bhelg...@google.com Cc: Octavian Purdila octavian.purd...@intel.com Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: linux-...@vger.kernel.org Cc: linux-i...@vger.kernel.org

[PATCH 0/2] ACPICA: 201501xx fast path patches.

2015-01-26 Thread Lv Zheng
, build tests are passed against the following configurations: 1. ia64/i386/x86_64 defconfig 2. ia64/i386/x86_64 allyesconfig 3. ia64/i386/x86_64 allnoconfig 4. ia64/i386/x86_64 defconfig CONFIG_ACPI=n Lv Zheng (2): ACPI: Introduce acpi_unload_parent_table() usages in Linux kernel. ACPICA

[PATCH 2/2] ACPI / EC: Add GPE reference counting debugging messages.

2015-02-26 Thread Lv Zheng
This patch enhances debugging with the GPE reference count messages added. This kind of log entries can be used by the platform validators to validate if there is an EC transaction broken because of firmware/driver bugs. No functional changes. Signed-off-by: Lv Zheng lv.zh...@intel.com

[PATCH 1/2] ACPI / EC: Cleanup logging/debugging splitter support.

2015-02-26 Thread Lv Zheng
. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 108 - 1 file changed, 74 insertions(+), 34 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index a8dd2f7..07426c8 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi

[PATCH 0/2] ACPI / EC: Enhance logging/debugging.

2015-02-26 Thread Lv Zheng
This patchset enhances logging/debugging support in EC driver. Lv Zheng (2): ACPI / EC: Cleanup logging/debugging splitter support. ACPI / EC: Add GPE reference counting debugging messages. drivers/acpi/ec.c | 120 + 1 file changed, 84

[PATCH v2 3/6] ACPI / EC: Remove irqs_disabled() check.

2015-05-15 Thread Lv Zheng
and can be removed. Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 170d743..20bd43f 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -504,8 +504,7

[PATCH v2 2/6] ACPI / EC: Remove storming threashold enlarging quirk.

2015-05-15 Thread Lv Zheng
: e1d4d90fc0313d3d58cbd7912c90f8ef24df45ff Subject: ACPI / EC: Refine command storm prevention support So it's time to remove this quirk. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=45151 Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers/acpi/ec.c | 15 --- 1 file changed, 15

[PATCH v2 5/6] ACPI / EC: Add module params for polling modes.

2015-05-15 Thread Lv Zheng
+ returned 0 after 131323 usecs And this patch can significantly reduce the delay: [ 44.502625] calling PNP0C0B:00+ @ 1308, parent: platform [ 44.503760] call PNP0C0B:00+ returned 0 after 1103 usecs Tested-by: Chen Yu yu.c.c...@intel.com Signed-off-by: Lv Zheng lv.zh...@intel.com --- drivers

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