[PATCH V8 10/11] misc/pvpanic: convert to SPDX license tags

2018-11-05 Thread Peng Hao
Updates license to use SPDX-License-Identifier instead of verbose license text. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/misc/pvpanic.c

[PATCH V8 05/11] misc/pvpanic: add support to get pvpanic device info FDT

2018-11-05 Thread Peng Hao
By default, when ACPI tables and FDT coexist for ARM64, current kernel takes precedence over FDT to get device information. Virt machine in qemu provides both FDT and ACPI table. Increases the way to get information through FDT. Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc

[PATCH V8 06/11] misc/pvpanic : grouping ACPI related stuff

2018-11-05 Thread Peng Hao
Grouping ACPI related stuff and make preparation to break the ACPI dependency w/o any functional change. Reviewed-by: Andy Shevchenko Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 43 +-- 1 file changed, 21 insertions(+), 22 deletions(-) diff

[PATCH V8 08/11] misc/pvpanic: remove unnecessary header file

2018-11-05 Thread Peng Hao
Remove unnecessary header file init.h. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 83f3187..479f7ba 100644 --- a/drivers/misc

[PATCH V8 07/11] misc/pvpanic : break dependency on ACPI

2018-11-05 Thread Peng Hao
The pvpanic driver is available for architectures that do not support ACPI.So break the dependency. Reviewed-by: Andy Shevchenko Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- drivers/misc/pvpanic.c | 23 +-- 2 files changed, 22 insertions(+), 3 deletions

[PATCH V8 03/11] misc/pvpanic: add MMIO support

2018-11-05 Thread Peng Hao
On some architectures (e.g. arm64), it's preferable to use MMIO, since this can be used standalone. Add MMIO support to the pvpanic driver. Suggested-by: Andy Shevchenko [Use acpi_dev_resource_memory API. - Andy] Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Pen

[PATCH v8 02/11] misc/pvpanic: simplify the code using acpi_dev_resource_io

2018-11-05 Thread Peng Hao
Use acpi_dev_resource_io API. Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c

[PATCH V8 09/11] misc/pvpanic: change header file sort style

2018-11-05 Thread Peng Hao
Make header files alphabetical order. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 479f7ba..e365604 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers/misc/pvpanic.c

[PATCH V8 04/11] dt-bindings: misc/pvpanic: add document for pvpanic-mmio

2018-11-05 Thread Peng Hao
Add dt-bindings document for "qemu:pvpanic-mmio". Acked-by: Mark Rutland Signed-off-by: Peng Hao --- .../devicetree/bindings/misc/pvpanic-mmio.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/pvpani

[PATCH V8 11/11] misc/pvpanic: remove a redundant comma

2018-11-05 Thread Peng Hao
Remove a redundant comma in pvpanic_device_ids. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 8afb528..3150dc2

[PATCH V8 01/11] pvpanic: move pvpanic to misc as common driver

2018-11-05 Thread Peng Hao
Move pvpanic.c from drivers/platform/x86 to drivers/misc. Following patches will use pvpanic device in arm64. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 8 drivers/misc/Makefile| 1

[PATCH V7 3/9] misc/pvpanic: add MMIO support

2018-11-04 Thread Peng Hao
On some architectures (e.g. arm64), it's preferable to use MMIO, since this can be used standalone. Add MMIO support to the pvpanic driver. Suggested-by: Andy Shevchenko [Use acpi_dev_resource_memory API. - Andy] Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Pen

[PATCH V7 9/9] misc/pvpanic: remove a redundant comma

2018-11-04 Thread Peng Hao
Remove a redundant comma in pvpanic_device_ids. Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f416c01..8c4bfa6 100644 --- a/drivers/misc

[PATCH V7 1/9] pvpanic: move pvpanic to misc as common driver

2018-11-04 Thread Peng Hao
Move pvpanic.c from drivers/platform/x86 to drivers/misc. Following patches will use pvpanic device in arm64. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 8 drivers/misc/Makefile| 1

[PATCH V7 4/9] dt-bindings: misc/pvpanic: add document for pvpanic-mmio

2018-11-04 Thread Peng Hao
Add dt-bindings document for "qemu:pvpanic-mmio". Acked-by: Mark Rutland Signed-off-by: Peng Hao --- .../devicetree/bindings/misc/pvpanic-mmio.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/pvpani

[PATCH V7 5/9] misc/pvpanic: add support to get pvpanic device info by FDT

2018-11-04 Thread Peng Hao
By default, when ACPI tables and FDT coexist for ARM64, current kernel takes precedence over FDT to get device information. Virt machine in qemu provides both FDT and ACPI table. Increases the way to get information through FDT. Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc

[PATCH V7 6/9] misc/pvpanic : break dependency on ACPI

2018-11-04 Thread Peng Hao
The pvpanic driver is available for architectures that do not support ACPI.So break the dependency. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- drivers/misc/pvpanic.c | 32 ++-- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH V7 8/9] misc/pvpanic: convert to SPDX license tags

2018-11-04 Thread Peng Hao
Updates license to use SPDX-License-Identifier instead of verbose license text. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/misc/pvpanic.c

[PATCH V7 2/9] misc/pvpanic: simplify the code using acpi_dev_resource_io

2018-11-04 Thread Peng Hao
Use acpi_dev_resource_io API. Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c

[PATCH V7 7/9] misc/pvpanic: remove unnecessary header file

2018-11-04 Thread Peng Hao
Remove unnecessary header file init.h. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index fbb4d1f..e3d879b 100644 --- a/drivers/misc

[PATCH V6 6/8] misc/pvpanic: remove unnecessary header file

2018-11-01 Thread Peng Hao
Remove unnecessary header file init.h. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 5378d5f..9c9d9f8 100644 --- a/drivers/misc

[PATCH V6 2/8] misc/pvpanic: simplify the code using acpi_dev_resource_io

2018-11-01 Thread Peng Hao
Use acpi_dev_resource_io API. Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c

[PATCH V6 4/8] dt-bindings: misc/pvpanic: add document for pvpanic-mmio

2018-11-01 Thread Peng Hao
Add dt-bindings document for "qemu:pvpanic-mmio". Acked-by: Mark Rutland Signed-off-by: Peng Hao --- .../devicetree/bindings/misc/pvpanic-mmio.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/pvpani

[PATCH V6 5/8] misc/pvpanic: add support to get pvpanic device info by FDT

2018-11-01 Thread Peng Hao
By default, when ACPI tables and FDT coexist for ARM64, current kernel takes precedence over FDT to get device information. Virt machine in qemu provides both FDT and ACPI table. Increases the way to get information through FDT. Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc

[PATCH V6 8/8] misc/pvpanic: remove a redundant comma

2018-11-01 Thread Peng Hao
Remove a redundant comma in pvpanic_device_ids. Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 1826cdf..07149db 100644 --- a/drivers/misc

[PATCH V6 7/8] misc/pvpanic: convert to SPDX license tags

2018-11-01 Thread Peng Hao
Updates license to use SPDX-License-Identifier instead of verbose license text. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/misc/pvpanic.c b

[PATCH V6 1/8] pvpanic: move pvpanic to misc as common driver

2018-11-01 Thread Peng Hao
Move pvpanic.c from drivers/platform/x86 to drivers/misc. Following patches will use pvpanic device as common driver. Reviewed-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 8 drivers/misc/Makefile

[PATCH V6 3/8] misc/pvpanic: add MMIO support

2018-11-01 Thread Peng Hao
On some architectures (e.g. arm64), it's preferable to use MMIO, since this can be used standalone. Add MMIO support to the pvpanic driver. Suggested-by: Andy Shevchenko Acked-by: Mark Rutland Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 14 ++ 1 file change

[PATCH V5 2/8] misc/pvpanic: Remove one extra comma

2018-11-01 Thread Peng Hao
There is an extra comma in pvpanic_device_ids, remove it. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index fd86dab..059005c 100644 --- a/drivers/misc/pvpanic.c +++ b

[PATCH V5 8/8] dt-bindings/misc/pvpanic :add document for pvpanic-mmio

2018-11-01 Thread Peng Hao
Add dt-bindings document for "qemu:pvpanic-mmio". Signed-off-by: Peng Hao --- .../devicetree/bindings/misc/pvpanic-mmio.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/pvpanic-mmio.txt diff --git a/Doc

[PATCH V5 3/8] misc/pvpanic: revmove unnecessary header file

2018-11-01 Thread Peng Hao
remove unnecessary header file init.h. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 059005c..66534d4 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers/misc/pvpanic.c @@ -22,7 +22,6

[PATCH V5 4/8] misc/pvpanic :convert to SPDX license tags

2018-11-01 Thread Peng Hao
This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 66534d4

[PATCH V5 7/8] misc/pvpanic: add support to get pvpanic device info by FDT

2018-11-01 Thread Peng Hao
By default, when ACPI tables and FDT coexist for ARM64, current kernel takes precedence over FDT to get device information. Virt machine in qemu provides both FDT and ACPI table. This patch increases the way to get information through FDT. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 66

[PATCH V5 5/8] misc/pvpanic: simplify the code using acpi_dev_resource_io

2018-11-01 Thread Peng Hao
use acpi_dev_resource_io API. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 0bcf1cd..c20fdff 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers/misc

[PATCH V5 6/8] misc/pvpanic: add MMIO support

2018-11-01 Thread Peng Hao
On some architectures (e.g. arm64), it's preferable to use MMIO, since this can be used standalone. Add MMIO support to the pvpanic driver. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH V5 1/8] pvpanic: move pvpanic to misc as common driver

2018-11-01 Thread Peng Hao
move pvpanic.c from drivers/platform/x86 to drivers/misc. following patches will use pvpanic device in arm64. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 8 +++ drivers/misc/Makefile| 1 + drivers/{platform/x86 => misc}/pvpanic.c | 0 driv

[PATCH V5 2/8] misc/pvpanic: Remove one extra semicolon

2018-11-01 Thread Peng Hao
There is an extra semicolon in pvpanic_device_ids, remove it. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index fd86dab..059005c 100644 --- a/drivers/misc/pvpanic.c +++ b

[PATCH V4 3/5] misc/pvpanic: add MMIO support

2018-10-30 Thread Peng Hao
On some architectures (e.g. arm64), it's preferable to use MMIO, since this can be used standalone. Add MMIO support to the pvpanic driver. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH V4 2/5] misc/pvpanic : convert to SPDX license tags

2018-10-30 Thread Peng Hao
This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index fd86dab

[PATCH V4 5/5] dt-bindings/misc/pvpanic :add document for pvpanic-mmio

2018-10-30 Thread Peng Hao
Add dt-bindings document for "qemu:pvpanic-mmio". Signed-off-by: Peng Hao --- .../devicetree/bindings/misc/pvpanic-mmio.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/pvpanic-mmio.txt diff --git a/Doc

[PATCH V4 4/5] misc/pvpanic: add support to get pvpanic device info by FDT

2018-10-30 Thread Peng Hao
By default, when ACPI tables and FDT coexist for ARM64, current kernel takes precedence over FDT to get device information. Virt machine in qemu provides both FDT and ACPI table. This patch increases the way to get information through FDT. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 68

[PATCH V4 1/5] pvpanic: move pvpanic to misc as common driver

2018-10-30 Thread Peng Hao
move pvpanic.c from drivers/platform/x86 to drivers/misc. following patches will use pvpanic device in arm64. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 7 +++ drivers/misc/Makefile| 1 + drivers/{platform/x86 => misc}/pvpanic.c | 0 driv

[PATCH V3 3/5] misc/pvpanic: add MMIO support

2018-10-28 Thread Peng Hao
On some architectures (e.g. arm64), it's preferable to use MMIO, since this can be used standalone. Add MMIO support to the pvpanic driver. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 5/5] dt-bindings/misc/pvpanic :add document for pvpanic-mmio

2018-10-28 Thread Peng Hao
Add dt-bindings document for "qemu:pvpanic-mmio". Signed-off-by: Peng Hao --- .../devicetree/bindings/misc/pvpanic-mmio.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/pvpanic-mmio.txt diff --git a/Doc

[PATCH V3 2/5] misc/pvpanic : convert to SPDX license tags

2018-10-28 Thread Peng Hao
This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index fd86dab

[PATCH V4 4/5] misc/pvpanic: add support to get pvpanic device info by FDT

2018-10-28 Thread Peng Hao
By default, when ACPI tables and FDT coexist for ARM64, current kernel takes precedence over FDT to get device information. Virt machine in qemu provides both FDT and ACPI table. This patch increases the way to get information through FDT. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 63

[PATCH V3 1/5] pvpanic: move pvpanic to misc as common driver

2018-10-28 Thread Peng Hao
move pvpanic.c from drivers/platform/x86 to drivers/misc. following patches will use pvpanic device in arm64. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 7 +++ drivers/misc/Makefile | 1 + drivers/misc/pvpanic.c | 124

[RFC PATCH V2] kvm: x86: reduce rtc 0x70 access vm-exit time

2017-08-13 Thread Peng Hao
Samples Samples% Time% Min Time Max Time Avg time 0x70:POUT 10632.02%29.47%0us 10us 1.57us (+- 7.38%) the patch is a part of optimizing rtc 0x70 port access. Another is in qemu. Signed-off-by: Peng Hao --- Documentation/virtual/kvm/00-INDEX | 2