[PATCH v4 58/63] Documentation: x86: convert x86_64/uefi.txt to reST

2019-04-23 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du --- Documentation/x86/x86_64/index.rst| 1 + .../x86/x86_64/{uefi.txt => uefi.rst} | 30 ++- 2 files c

[PATCH v4 59/63] Documentation: x86: convert x86_64/mm.txt to reST

2019-04-23 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du --- Documentation/x86/x86_64/index.rst | 1 + Documentation/x86/x86_64/mm.rst| 161 + Documentation/x86/x

[PATCH v4 60/63] Documentation: x86: convert x86_64/5level-paging.txt to reST

2019-04-23 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du --- .../{5level-paging.txt => 5level-paging.rst} | 16 +++- Documentation/x86/x86_64/index.rst | 1 + 2 file

[PATCH v4 61/63] Documentation: x86: convert x86_64/fake-numa-for-cpusets to reST

2019-04-23 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du --- ...a-for-cpusets => fake-numa-for-cpusets.rst} | 18 +- Documentation/x86/x86_64/index.rst | 1 + 2 files

[PATCH v4 62/63] Documentation: x86: convert x86_64/cpu-hotplug-spec to reST

2019-04-23 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du --- .../x86/x86_64/{cpu-hotplug-spec => cpu-hotplug-spec.rst}| 5 - Documentation/x86/x86_64/index.rst |

[PATCH v4 63/63] Documentation: x86: convert x86_64/machinecheck to reST

2019-04-23 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du --- Documentation/x86/x86_64/index.rst| 1 + .../x86/x86_64/{machinecheck => machinecheck.rst} | 11 ++- 2

Re: [PATCH v4 02/63] Documentation: ACPI: move namespace.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:31 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > Documentation/firmware-guide/acpi/index.rst | 1 + > .../acp

Re: [PATCH v4 01/63] Documentation: add Linux ACPI to Sphinx TOC tree

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:30 +0800 Changbin Du escreveu: > Add below index.rst files for ACPI subsystem. More docs will be added later. > o admin-guide/acpi/index.rst > o driver-api/acpi/index.rst > o firmware-guide/index.rst Nice! you split it by usage. Reviewed-by: Mauro Carvalho Chehab

Re: [PATCH v4 03/63] Documentation: ACPI: move enumeration.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:32 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. Just looking at the conversion itself, it looks good to me. Reviewed-by: Mauro Carvalho Chehab > > Si

Re: [PATCH v4 04/63] Documentation: ACPI: move osi.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:33 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > Documentation/firmware-guide/acpi/index.rst | 1 + > .../

Re: [PATCH v4 05/63] Documentation: ACPI: move linuxized-acpica.txt to driver-api/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:34 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > Documentation/driver-api/acpi/index.rst | 1 + > .../acp

Re: [PATCH v4 06/63] Documentation: ACPI: move scan_handlers.txt to driver-api/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:35 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du For the conversion itself: Reviewed-by: Mauro Carvalho Chehab > --- >

Re: [PATCH v4 07/63] Documentation: ACPI: move DSD-properties-rules.txt to firmware-guide/acpi and covert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:36 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du For the conversion itself: Reviewed-by: Mauro Carvalho Chehab > --- >

Re: [PATCH v4 08/63] Documentation: ACPI: move gpio-properties.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:37 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > .../acpi/gpio-properties.rst} | 78 +++--

Re: [PATCH v4 09/63] Documentation: ACPI: move method-customizing.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:38 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > Documentation/acpi/method-customizing.txt | 73 -

Re: [PATCH v4 10/63] Documentation: ACPI: move initrd_table_override.txt to admin-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:39 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > Documentation/acpi/initrd_table_override.txt | 111

Re: [PATCH v4 11/63] Documentation: ACPI: move dsdt-override.txt to admin-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:40 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab > --- > .../acpi/dsdt-override.rst

Re: [PATCH v4 12/63] Documentation: ACPI: move i2c-muxes.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:41 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du For the conversion itself: Reviewed-by: Mauro Carvalho Chehab > --- >

Re: [PATCH v4 13/63] Documentation: ACPI: move acpi-lid.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:42 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > .../acpi/acpi-lid.rst}| 48 -

Re: [PATCH v4 14/63] Documentation: ACPI: move dsd/graph.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:43 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab > --- > .../acpi/dsd/graph.rst}

Re: [PATCH v4 15/63] Documentation: ACPI: move dsd/data-node-references.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:44 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > .../acpi/dsd/data-node-references.rst}| 28 +++--

Re: [PATCH v4 16/63] Documentation: ACPI: move debug.txt to firmware-guide/acpi and convert to reST

2019-04-23 Thread Mauro Carvalho Chehab
Em Wed, 24 Apr 2019 00:28:45 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > --- > .../acpi/debug.rst} | 31 ++---

[PATCH v4] powerpc/pseries: Remove limit in wait for dying CPU

2019-04-23 Thread Thiago Jung Bauermann
When testing DLPAR CPU add/remove on a system under stress, pseries_cpu_die() doesn't wait long enough for a CPU to die: [ 446.983944] cpu 148 (hwid 148) Ready to die... [ 446.984062] cpu 149 (hwid 149) Ready to die... [ 446.993518] cpu 150 (hwid 150) Ready to die... [ 446.993543] Querying DEA

Re: [PATCH v2 26/79] docs: powerpc: convert docs to ReST and rename to *.rst

2019-04-23 Thread Andrew Donnellan
On 22/4/19 11:27 pm, Mauro Carvalho Chehab wrote: Convert docs to ReST and add them to the arch-specific book. The conversion here was trivial, as almost every file there was already using an elegant format close to ReST standard. The changes were mostly to mark literal blocks and add a few mis

Re: [PATCH] powerpc/pseries: Use correct event modifier in rtas_parse_epow_errlog()

2019-04-23 Thread Russell Currey
On Tue, 2019-04-23 at 22:35 +0800, Yue Haibing wrote: > From: YueHaibing > > rtas_parse_epow_errlog() should pass 'modifier' to > handle_system_shutdown, because event modifier only use > bottom 4 bits. > > Fixes: 55fc0c561742 ("powerpc/pseries: Parse and handle EPOW > interrupts") > Signed-off-

Re: [PATCH] powerpc/pseries: Use correct event modifier in rtas_parse_epow_errlog()

2019-04-23 Thread YueHaibing
On 2019/4/24 9:29, Russell Currey wrote: > On Tue, 2019-04-23 at 22:35 +0800, Yue Haibing wrote: >> From: YueHaibing >> >> rtas_parse_epow_errlog() should pass 'modifier' to >> handle_system_shutdown, because event modifier only use >> bottom 4 bits. >> >> Fixes: 55fc0c561742 ("powerpc/pseries:

Re: [PATCH 5/6] powerpc/mmu: drop mmap_sem now that locked_vm is atomic

2019-04-23 Thread Davidlohr Bueso
On Wed, 03 Apr 2019, Daniel Jordan wrote: On Wed, Apr 03, 2019 at 06:58:45AM +0200, Christophe Leroy wrote: Le 02/04/2019 à 22:41, Daniel Jordan a écrit : > With locked_vm now an atomic, there is no need to take mmap_sem as > writer. Delete and refactor accordingly. Could you please detail th

[PATCH v2] powerpc/pseries: Use correct event modifier in rtas_parse_epow_errlog()

2019-04-23 Thread Yue Haibing
From: YueHaibing rtas_parse_epow_errlog() should pass 'modifier' to handle_system_shutdown, because event modifier only use bottom 4 bits. Fixes: 55fc0c561742 ("powerpc/pseries: Parse and handle EPOW interrupts") Signed-off-by: YueHaibing --- v2: fix compile issue by 'event_modifier'-->'modifie

Re: [PATCH 5/6] powerpc/mmu: drop mmap_sem now that locked_vm is atomic

2019-04-23 Thread Davidlohr Bueso
On Tue, 23 Apr 2019, Bueso wrote: On Wed, 03 Apr 2019, Daniel Jordan wrote: On Wed, Apr 03, 2019 at 06:58:45AM +0200, Christophe Leroy wrote: Le 02/04/2019 à 22:41, Daniel Jordan a écrit : With locked_vm now an atomic, there is no need to take mmap_sem as writer. Delete and refactor accordi

Re: [RFC PATCH 1/1] KVM: PPC: Report single stepping capability

2019-04-23 Thread Paul Mackerras
On Wed, Mar 20, 2019 at 03:39:50PM -0300, Fabiano Rosas wrote: > When calling the KVM_SET_GUEST_DEBUG ioctl, userspace might request > the next instruction to be single stepped via the > KVM_GUESTDBG_SINGLESTEP control bit of the kvm_guest_debug structure. > > We currently don't have support for g

Re: [PATCH v6 06/10] powerpc/64: Setup KUP on secondary CPUs

2019-04-23 Thread Christophe Leroy
Le 18/04/2019 à 08:51, Michael Ellerman a écrit : From: Russell Currey Some platforms (i.e. Radix MMU) need per-CPU initialisation for KUP. Any platforms that only want to do KUP initialisation once globally can just check to see if they're running on the boot CPU, or check if whatever setu

Re: [powerpc:next-test 40/58] WARNING: vmlinux.o(.text+0xb038): Section mismatch in reference from the function setup_kup() to the function .init.text:setup_kuep()

2019-04-23 Thread Russell Currey
On Tue, 2019-04-23 at 14:13 +0200, Christophe Leroy wrote: > Russel, Michael, > > Looks like the reported problem comes from b28c97505eb1 > ("powerpc/64: > Setup KUP on secondary CPUs") > ( > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=b28c97505eb1a5265e36

[PATCHv2] kernel/crash: make parse_crashkernel()'s return value more indicant

2019-04-23 Thread Pingfan Liu
At present, both return and crash_size should be checked to guarantee the success of parse_crashkernel(). Take a close look at the cases, which causes crash_size=0. Beside syntax error, three cases cause parsing to get crash_size=0. -1st. in parse_crashkernel_mem(), the demanded crash size is bigg

[PATCH 1/2] powerpc/mm/ptdump: Wrap seq_printf() to handle NULL pointers

2019-04-23 Thread Russell Currey
Lovingly borrowed from the arch/arm64 ptdump code. This doesn't seem to be an issue in practice, but is necessary for my upcoming commit. Converts a putc() into a puts(). Signed-off-by: Russell Currey --- arch/powerpc/mm/ptdump/ptdump.c | 32 ++-- 1 file changed, 22

[PATCH 2/2] powerpc/mm: Warn if W+X pages found on boot

2019-04-23 Thread Russell Currey
Implement code to walk all pages and warn if any are found to be both writable and executable. Depends on STRICT_KERNEL_RWX enabled, and is behind the DEBUG_WX config option. This only runs on boot and has no runtime performance implications. Very heavily influenced (and in some cases copied ver

Re: [PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64

2019-04-23 Thread Rasmus Villemoes
On 23/04/2019 21.36, Andrew Morton wrote: > On Tue, 23 Apr 2019 17:37:33 +0200 Christophe Leroy > wrote: > >>> --- a/arch/powerpc/Kconfig >>> +++ b/arch/powerpc/Kconfig >>> @@ -155,6 +155,7 @@ config PPC >>> select BUILDTIME_EXTABLE_SORT >>> select CLONE_BACKWARDS >>> select DCACHE_W

Re: [PATCH 1/2] powerpc/mm/ptdump: Wrap seq_printf() to handle NULL pointers

2019-04-23 Thread Christophe Leroy
Le 24/04/2019 à 08:39, Russell Currey a écrit : Lovingly borrowed from the arch/arm64 ptdump code. This doesn't seem to be an issue in practice, but is necessary for my upcoming commit. Converts a putc() into a puts(). Signed-off-by: Russell Currey --- arch/powerpc/mm/ptdump/ptdump.c | 3

<    1   2