Re: [PATCH v2 11/11] powerpc/mm: drop slice DEBUG

2019-04-25 Thread Christophe Leroy
Le 26/04/2019 à 08:44, Aneesh Kumar K.V a écrit : Christophe Leroy writes: slice is now an improved functionnality. Drop the DEBUG stuff. I would like to keep that. I helped a lot when moving address ranges and it should not have any runtime impact. Ok for me. Christophe Signed-o

Re: [PATCH v2 11/11] powerpc/mm: drop slice DEBUG

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > slice is now an improved functionnality. Drop the DEBUG stuff. > I would like to keep that. I helped a lot when moving address ranges and it should not have any runtime impact. > Signed-off-by: Christophe Leroy > --- > arch/powerpc/mm/slice.c | 62 > --

Re: [PATCH v2 10/11] powerpc/mm: define subarch SLB_ADDR_LIMIT_DEFAULT

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > This patch defines a subarch specific SLB_ADDR_LIMIT_DEFAULT > to remove the #ifdefs around the setup of mm->context.slb_addr_limit > > It also generalises the use of mm_ctx_set_slb_addr_limit() helper. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Lero

Re: [PATCH v2 09/11] powerpc/mm: define get_slice_psize() all the time

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > get_slice_psize() can be defined regardless of CONFIG_PPC_MM_SLICES > to avoid ifdefs > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/slice.h | 5 + > arch/powerpc/mm/hugetlbpage.c| 4 +--- > 2 files change

Re: [PATCH v2 07/11] powerpc/mm: remove a couple of #ifdef CONFIG_PPC_64K_PAGES in mm/slice.c

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > This patch replaces a couple of #ifdef CONFIG_PPC_64K_PAGES > by IS_ENABLED(CONFIG_PPC_64K_PAGES) to improve code maintainability. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > arch/powerpc/mm/slice.c | 10 -- > 1 file changed, 4

Re: [PATCH v2 04/11] powerpc/mm: move slice_mask_for_size() into mmu.h

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Move slice_mask_for_size() into subarch mmu.h > > At the same time, replace BUG() by VM_BUG_ON() as those BUG() are not > there to catch runtime errors but to catch errors during development > cycle only. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Ler

Re: [PATCH v2 03/11] powerpc/mm: hand a context_t over to slice_mask_for_size() instead of mm_struct

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > slice_mask_for_size() only uses mm->context, so hand directly a > pointer to the context. This will help moving the function in > subarch mmu.h in the next patch by avoiding having to include > the definition of struct mm_struct > Reviewed-by: Aneesh Kumar K.V > Sign

Re: [PATCH v2 02/11] powerpc/mm: no slice for nohash/64

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Only nohash/32 and book3s/64 support mm slices. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/nohash/64/slice.h | 12 > arch/powerpc/include/asm/slice.h | 4 +--- > arch/powerpc/platforms/

Re: [PATCH v2 01/11] powerpc/mm: fix erroneous duplicate slb_addr_limit init

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Commit 67fda38f0d68 ("powerpc/mm: Move slb_addr_linit to > early_init_mmu") moved slb_addr_limit init out of setup_arch(). > > Commit 701101865f5d ("powerpc/mm: Reduce memory usage for mm_context_t > for radix") brought it back into setup_arch() by error. > > This patch

[PATCH v2 17/17] powerpc/mm: flatten function __find_linux_pte() step 3

2019-04-25 Thread Christophe Leroy
__find_linux_pte() is full of if/else which is hard to follow allthough the handling is pretty simple. Previous patches left a { } block. This patch removes it. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable.c | 98 +++ 1 file changed, 49

[PATCH v2 16/17] powerpc/mm: flatten function __find_linux_pte() step 2

2019-04-25 Thread Christophe Leroy
__find_linux_pte() is full of if/else which is hard to follow allthough the handling is pretty simple. Previous patch left { } blocks. This patch removes the first one by shifting its content to the left. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable.c | 62 +++

[PATCH v2 15/17] powerpc/mm: flatten function __find_linux_pte() step 1

2019-04-25 Thread Christophe Leroy
__find_linux_pte() is full of if/else which is hard to follow allthough the handling is pretty simple. This patch flattens the function by getting rid of as much if/else as possible. In order to ease the review, this is done in three steps. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pg

[PATCH v2 14/17] powerpc/mm: cleanup remaining ifdef mess in hugetlbpage.c

2019-04-25 Thread Christophe Leroy
Only 3 subarches support huge pages. So when it is either 2 of them, it is not the third one. And mmu_has_feature() is known by all subarches so IS_ENABLED() can be used instead of #ifdef Signed-off-by: Christophe Leroy --- arch/powerpc/mm/hugetlbpage.c | 12 +--- 1 file changed, 5 inse

[PATCH v2 13/17] powerpc/mm: cleanup HPAGE_SHIFT setup

2019-04-25 Thread Christophe Leroy
Only book3s/64 may select default among several HPAGE_SHIFT at runtime. 8xx always defines 512K pages as default FSL_BOOK3E always defines 4M pages as default This patch limits HUGETLB_PAGE_SIZE_VARIABLE to book3s/64 moves the definitions in subarches files. Signed-off-by: Christophe Leroy ---

[PATCH v2 12/17] powerpc/mm: move hugetlb_disabled into asm/hugetlb.h

2019-04-25 Thread Christophe Leroy
No need to have this in asm/page.h, move it into asm/hugetlb.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/hugetlb.h | 2 ++ arch/powerpc/include/asm/page.h| 1 - arch/powerpc/kernel/fadump.c | 1 + arch/powerpc/mm/hash_utils_64.c| 1 + 4 files changed, 4 insertion

[PATCH v2 11/17] powerpc/mm: cleanup ifdef mess in add_huge_page_size()

2019-04-25 Thread Christophe Leroy
Introduce a subarch specific helper check_and_get_huge_psize() to check the huge page sizes and cleanup the ifdef mess in add_huge_page_size() Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/hugetlb.h | 27 + arch/powerpc/include/asm/nohash/32/hugetlb-8

[PATCH v2 10/17] powerpc/mm: add a helper to populate hugepd

2019-04-25 Thread Christophe Leroy
This patchs adds a subarch helper to populate hugepd. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/hugetlb.h | 5 + arch/powerpc/include/asm/nohash/32/hugetlb-8xx.h | 8 arch/powerpc/include/asm/nohash/hugetlb-book3e.h | 6 ++ arch/powerpc/mm/hug

[PATCH v2 09/17] powerpc/mm: split asm/hugetlb.h into dedicated subarch files

2019-04-25 Thread Christophe Leroy
Three subarches support hugepages: - fsl book3e - book3s/64 - 8xx This patch splits asm/hugetlb.h to reduce the #ifdef mess. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/hugetlb.h | 40 +++ arch/powerpc/include/asm/hugetlb.h | 87 ++---

[PATCH v2 08/17] powerpc/mm: make gup_hugepte() static

2019-04-25 Thread Christophe Leroy
gup_huge_pd() is the only user of gup_hugepte() and it is located in the same file. This patch moves gup_huge_pd() after gup_hugepte() and makes gup_hugepte() static. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/pgtable.h | 3 --- arch/powerpc/mm/hugetlbpage.c | 38

[PATCH v2 07/17] powerpc/mm: make hugetlbpage.c depend on CONFIG_HUGETLB_PAGE

2019-04-25 Thread Christophe Leroy
The only function in hugetlbpage.c which doesn't depend on CONFIG_HUGETLB_PAGE is gup_hugepte(), and this function is only called from gup_huge_pd() which depends on CONFIG_HUGETLB_PAGE so all the content of hugetlbpage.c depends on CONFIG_HUGETLB_PAGE. This patch modifies Makefile to only compile

[PATCH v2 06/17] powerpc/mm: move __find_linux_pte() out of hugetlbpage.c

2019-04-25 Thread Christophe Leroy
__find_linux_pte() is the only function in hugetlbpage.c which is compiled in regardless on CONFIG_HUGETLBPAGE This patch moves it in pgtable.c. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/hugetlbpage.c | 103 - arch/powerpc/mm/pgtable.c | 104

[PATCH v2 05/17] powerpc/book3e: hugetlbpage is only for CONFIG_PPC_FSL_BOOK3E

2019-04-25 Thread Christophe Leroy
As per Kconfig.cputype, only CONFIG_PPC_FSL_BOOK3E gets to select SYS_SUPPORTS_HUGETLBFS so simplify accordingly. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/Makefile | 2 +- arch/powerpc/mm/hugetlbpage-book3e.c | 47 +++- 2 files changed, 20

[PATCH v2 04/17] powerpc/64: only book3s/64 supports CONFIG_PPC_64K_PAGES

2019-04-25 Thread Christophe Leroy
CONFIG_PPC_64K_PAGES cannot be selected by nohash/64. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 - arch/powerpc/include/asm/nohash/64/pgalloc.h | 3 --- arch/powerpc/include/asm/nohash/64/pgtable.h | 4 arch/powerpc/include/asm/nohash/pte-book3e

[PATCH v2 01/17] powerpc/mm: Don't BUG() in hugepd_page()

2019-04-25 Thread Christophe Leroy
Use VM_BUG_ON() instead of BUG_ON(), as those BUG_ON() are not there to catch runtime errors but to catch errors during development cycle only. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/hugetlb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powe

[PATCH v2 00/17] Reduce ifdef mess in hugetlbpage.c

2019-04-25 Thread Christophe Leroy
This is a split out of v1 series "Reduce ifdef mess in hugetlbpage.c and slice.c" The main purpose of this series is to reduce the amount of #ifdefs in hugetlbpage.c by moving subarch specific stuff in dedicated header files. This series also drops all CONFIG_PPC_64K_PAGES related code in book3e

[PATCH v2 03/17] powerpc/book3e: drop mmu_get_tsize()

2019-04-25 Thread Christophe Leroy
This function is not used anymore, drop it. Fixes: b42279f0165c ("powerpc/mm/nohash: MM_SLICE is only used by book3s 64") Signed-off-by: Christophe Leroy --- arch/powerpc/mm/hugetlbpage-book3e.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/mm/hugetlbpage-book3e.c b/arch/

[PATCH v2 02/17] powerpc/mm: don't BUG in add_huge_page_size()

2019-04-25 Thread Christophe Leroy
Use VM_BUG_ON() instead of BUG_ON(), as those BUG_ON() are not there to catch runtime errors but to catch errors during development cycle only. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/hugetlbpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hu

BUG: crash in __tlb_remove_page_size with STRICT_KERNEL_RWX on BOOK3S_32

2019-04-25 Thread Serge Belyshev
Hi! Commit 63b2bc61956 aka "powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX" caused my old powerbook to crash under I/O. After "dd if=/dev/hda of=/null" the crash happens in seconds. Reverting the commit helps, as well as disabling STRICT_KERNEL_RWX. Unfortunately, I was unable to capture the oop

Re: [alsa-devel] [PATCH] ASoC: fsl_sai: Add missing return 0 in remove()

2019-04-25 Thread Daniel Baluta
On Fri, Apr 26, 2019 at 6:22 AM Nicolin Chen wrote: > > Build warning being reported: > sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove': > sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in > function returning non-void [-Wreturn-type] > > So this patch just adds a "r

Re: [PATCH v3 5/6] powerpc/mm: Reduce memory usage for mm_context_t for radix

2019-04-25 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Le 17/04/2019 à 15:03, Aneesh Kumar K.V a écrit : >> Currently, our mm_context_t on book3s64 include all hash specific >> context details like slice mask and subpage protection details. We >> can skip allocating these with radix translation. This will help us to save >>

Re: [PATCH v2 3/5] kernel/cpu: Allow non-zero CPU to be primary for suspend / kexec freeze

2019-04-25 Thread Nicholas Piggin
Peter Zijlstra's on April 25, 2019 10:02 pm: > On Thu, Apr 11, 2019 at 01:34:46PM +1000, Nicholas Piggin wrote: >> This patch provides an arch option, ARCH_SUSPEND_NONZERO_CPU, to >> opt-in to allowing suspend to occur on one of the housekeeping CPUs >> rather than hardcoded CPU0. >> >> This will

Re: powerpc hugepage leak caused by 576ed913 "block: use bio_add_page in bio_iov_iter_get_pages"

2019-04-25 Thread David Gibson
On Fri, Apr 26, 2019 at 11:05:17AM +1000, David Gibson wrote: > On Thu, Apr 25, 2019 at 08:19:58AM +0200, Christoph Hellwig wrote: > > Just curious: What exact trees do you see this with? This area > > changed a lot with the multipage bvec support, and subsequent fixes. > > So, I tried it with 5

[PATCH] ASoC: fsl_sai: Add missing return 0 in remove()

2019-04-25 Thread Nicolin Chen
Build warning being reported: sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove': sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in function returning non-void [-Wreturn-type] So this patch just adds a "return 0" to fix it. Fixes: 812ad463e089 ("ASoC: fsl_sai: Add supp

Re: powerpc hugepage leak caused by 576ed913 "block: use bio_add_page in bio_iov_iter_get_pages"

2019-04-25 Thread David Gibson
On Thu, Apr 25, 2019 at 08:19:58AM +0200, Christoph Hellwig wrote: > Just curious: What exact trees do you see this with? This area > changed a lot with the multipage bvec support, and subsequent fixes. So, I tried it with 576ed913 itself and with 576ed913^ to verify that it didn't happen there.

Re: [PATCH v2] mm: Fix modifying of page protection by insert_pfn_pmd()

2019-04-25 Thread Matthew Wilcox
On Thu, Apr 25, 2019 at 05:33:04PM -0700, Dan Williams wrote: > On Thu, Apr 25, 2019 at 12:32 AM Jan Kara wrote: > > > > We also call vmf_insert_pfn_pmd() in dax_insert_pfn_mkwrite() -- does > > > > that need to change too? > > > > > > It wasn't clear to me that it was a problem. I think that one

Re: [PATCH v2] mm: Fix modifying of page protection by insert_pfn_pmd()

2019-04-25 Thread Dan Williams
On Thu, Apr 25, 2019 at 12:32 AM Jan Kara wrote: > > On Wed 24-04-19 11:13:48, Dan Williams wrote: > > On Wed, Apr 24, 2019 at 10:38 AM Matthew Wilcox wrote: > > > > > > On Wed, Apr 24, 2019 at 10:13:15AM -0700, Dan Williams wrote: > > > > I think unaligned addresses have always been passed to >

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

2019-04-25 Thread Tyrel Datwyler
On 04/23/2019 07:17 PM, 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-by: YueHaibin

Re: [PATCH v10 14/18] drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines

2019-04-25 Thread Daniel Lezcano
On 02/04/2019 08:30, William Breathitt Gray wrote: > From: Patrick Havelange > > Common #defines have been moved to "linux/fsl/ftm.h". Thus making use of > this file. > Also FTM_SC_CLK_SHIFT has been renamed to FTM_SC_CLK_MASK_SHIFT. > > Reviewed-by: Esben Haabendal > Signed-off-by: Patrick Hav

[PATCH] KVM: PPC: Book3S HV: smb->smp comment fixup

2019-04-25 Thread Palmer Dabbelt
I made the same typo when trying to grep for uses of smp_wmb and figured I might as well fix it. Signed-off-by: Palmer Dabbelt --- arch/powerpc/kvm/book3s_hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 06

Re: [PATCH v10 00/18] Introduce the Counter subsystem

2019-04-25 Thread Greg KH
On Sun, Apr 07, 2019 at 03:25:50PM +0100, Jonathan Cameron wrote: > On Tue, 2 Apr 2019 15:30:35 +0900 > William Breathitt Gray wrote: > > > Changes in v10: > > - Fix minor typographical errors in documentation > > - Merge the FlexTimer Module Quadrature decoder counter driver patches > > >

Applied "ASoC: fsl_sai: Update is_slave_mode with correct value" to the asoc tree

2019-04-25 Thread Mark Brown
The patch ASoC: fsl_sai: Update is_slave_mode with correct value has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 ho

Applied "ASoC: fsl_sai: Update is_slave_mode with correct value" to the asoc tree

2019-04-25 Thread Mark Brown
The patch ASoC: fsl_sai: Update is_slave_mode with correct value has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 ho

Re: [PATCH v4 38/63] Documentation: x86: convert boot.txt to reST

2019-04-25 Thread Changbin Du
On Wed, Apr 24, 2019 at 02:36:44PM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 24 Apr 2019 00:29:07 +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: C

Re: [PATCH v2 3/4] powerpc/boot: Add bzip2 support for uImage

2019-04-25 Thread Christophe Leroy
On 04/25/2019 02:37 PM, Adam Borowski wrote: On Tue, Apr 23, 2019 at 02:20:43PM +, Christophe Leroy wrote: This patch allows to generate bzip2 compressed uImage Please don't add bzip2 support, that's a waste of your time as we're trying to remove it kernel-wide. There's a patchset to r

Re: [PATCH v4 25/63] Documentation: add Linux PCI to Sphinx TOC tree

2019-04-25 Thread Changbin Du
On Wed, Apr 24, 2019 at 12:03:43PM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 24 Apr 2019 00:28:54 +0800 > Changbin Du escreveu: > > > Add a index.rst for PCI subsystem. More docs will be added later. > > > > Signed-off-by: Changbin Du > > Acked-by: Bjorn Helgaas > > --- > > Documentation/

[PATCH v6 24/24] Documentation: ACPI: move video_extension.txt to firmware-guide/acpi and convert to reST

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/firmware-guide/acpi/index.rst | 1 + .../acpi/video_extension.rst}

[PATCH v6 23/24] Documentation: ACPI: move ssdt-overlays.txt to admin-guide/acpi and convert to reST

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/ssdt-overlays.txt | 172 - Documentation/admin-guide/ac

[PATCH v6 22/24] Documentation: ACPI: move lpit.txt to firmware-guide/acpi and convert to reST

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/firmware-guide/acpi/index.rst| 1 + .../lpit.txt => firmware-guide/acpi/lpit.rst

[PATCH v6 21/24] Documentation: ACPI: move cppc_sysfs.txt to admin-guide/acpi and convert to reST

2019-04-25 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 --- .../acpi/cppc_sysfs.rst} | 71 ++- Documentation/admin-guide/acpi/index.rst | 1 + 2 files c

[PATCH v6 20/24] Documentation: ACPI: move apei/einj.txt to firmware-guide/acpi and convert to reST

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/apei/einj.rst} | 94 ++- Documentation/firmware-guid

[PATCH v6 19/24] Documentation: ACPI: move apei/output_format.txt to firmware-guide/acpi and convert to reST

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/apei/output_format.txt | 147 - .../acpi/apei/output_format.

[PATCH v6 18/24] Documentation: ACPI: move aml-debugger.txt to firmware-guide/acpi and convert to reST

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/aml-debugger.txt | 66 .../firmware-guide/acpi/aml-de

[PATCH v6 17/24] Documentation: ACPI: move method-tracing.txt to firmware-guide/acpi and convert to rsST

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/method-tracing.txt | 192 -- Documentation/firmware-guide/ac

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/debug.rst} | 31 ++- Documentation/firmware-guid

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/dsd/data-node-references.rst}| 36 ++- Documentation/firmware-guid

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/dsd/graph.rst} | 157 +- Documentation/firmware-guid

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/acpi-lid.rst}| 40 ++- Documentation/firmware-guid

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/i2c-muxes.txt | 58 -- .../firmware-guide/acpi/i2c-

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/dsdt-override.rst} | 8 +++- Documentation/admin-guide/a

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/initrd_table_override.txt | 111 - Documentation/admin-guide/ac

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/method-customizing.txt | 73 --- Documentation/firmware-guide/ac

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/gpio-properties.rst} | 78 +++ Documentation/firmware-guid

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/DSD-properties-rules.rst}| 21 +++ Documentation/firmware-guid

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/driver-api/acpi/index.rst | 1 + .../acpi/scan_handlers.rst}

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/driver-api/acpi/index.rst | 1 + .../acpi/linuxized-acpica.rst}

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/firmware-guide/acpi/index.rst | 1 + .../{acpi/osi.txt => firmware-guide/acpi/

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- .../acpi/enumeration.rst} | 135 ++ Documentation/firmware-guid

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

2019-04-25 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 Reviewed-by: Mauro Carvalho Chehab --- Documentation/firmware-guide/acpi/index.rst | 1 + .../acpi/namespace.rst}

[PATCH v6 01/24] Documentation: add Linux ACPI to Sphinx TOC tree

2019-04-25 Thread Changbin Du
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 Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab --- Documentation/admin-guide/acpi/index.rst| 10 ++ D

[PATCH v6 00/24] Include linux ACPI docs into Sphinx TOC tree

2019-04-25 Thread Changbin Du
Hi All, The kernel now uses Sphinx to generate intelligent and beautiful documentation from reStructuredText files. I converted all of the Linux ACPI/PCI/X86 docs to reST format in this serias. The hieararchy of ACPI docs are based on Corbet's suggestion: https://lkml.org/lkml/2019/4/3/1047 I did

Re: [PATCH v5 00/23] Include linux ACPI docs into Sphinx TOC tree

2019-04-25 Thread Changbin Du
On Thu, Apr 25, 2019 at 10:44:14AM +0200, Rafael J. Wysocki wrote: > .On Wed, Apr 24, 2019 at 7:54 PM Changbin Du wrote: > > > > Hi All, > > The kernel now uses Sphinx to generate intelligent and beautiful > > documentation > > from reStructuredText files. I converted all of the Linux ACPI/PCI/X8

Re: [PATCH v2 3/4] powerpc/boot: Add bzip2 support for uImage

2019-04-25 Thread Adam Borowski
On Tue, Apr 23, 2019 at 02:20:43PM +, Christophe Leroy wrote: > This patch allows to generate bzip2 compressed uImage Please don't add bzip2 support, that's a waste of your time as we're trying to remove it kernel-wide. There's a patchset to retire compressors beaten by alternatives on the wh

[PATCH v2 11/11] powerpc/mm: drop slice DEBUG

2019-04-25 Thread Christophe Leroy
slice is now an improved functionnality. Drop the DEBUG stuff. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/slice.c | 62 - 1 file changed, 4 insertions(+), 58 deletions(-) diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c inde

[PATCH v2 07/11] powerpc/mm: remove a couple of #ifdef CONFIG_PPC_64K_PAGES in mm/slice.c

2019-04-25 Thread Christophe Leroy
This patch replaces a couple of #ifdef CONFIG_PPC_64K_PAGES by IS_ENABLED(CONFIG_PPC_64K_PAGES) to improve code maintainability. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/slice.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/mm/slice.c b/ar

[PATCH v2 09/11] powerpc/mm: define get_slice_psize() all the time

2019-04-25 Thread Christophe Leroy
get_slice_psize() can be defined regardless of CONFIG_PPC_MM_SLICES to avoid ifdefs Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/slice.h | 5 + arch/powerpc/mm/hugetlbpage.c| 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/s

[PATCH v2 10/11] powerpc/mm: define subarch SLB_ADDR_LIMIT_DEFAULT

2019-04-25 Thread Christophe Leroy
This patch defines a subarch specific SLB_ADDR_LIMIT_DEFAULT to remove the #ifdefs around the setup of mm->context.slb_addr_limit It also generalises the use of mm_ctx_set_slb_addr_limit() helper. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/slice.h | 2 ++ arch/powerp

[PATCH v2 05/11] powerpc/mm: get rid of mm_ctx_slice_mask_xxx()

2019-04-25 Thread Christophe Leroy
Now that slice_mask_for_size() is in mmu.h, the mm_ctx_slice_mask_xxx() are not needed anymore, so drop them. Note that the 8xx ones where not used anyway. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/mmu.h | 32 arch/powerpc/include/asm

[PATCH v2 08/11] powerpc/8xx: get rid of #ifdef CONFIG_HUGETLB_PAGE for slices

2019-04-25 Thread Christophe Leroy
The 8xx only selects CONFIG_PPC_MM_SLICES when CONFIG_HUGETLB_PAGE is set. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/mmu-8xx.h | 4 1 file changed, 4 deletions(-) diff --git a/arch/powerpc/include/asm/nohash/32/mmu-8xx.h b/arch/powerpc/include/asm/nohash/32/mm

[PATCH v2 06/11] powerpc/mm: remove unnecessary #ifdef CONFIG_PPC64

2019-04-25 Thread Christophe Leroy
For PPC32 that's a noop, gcc should be smart enough to ignore it. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/slice.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index 31de91b65a64..840c4118a185 100644 --- a/arc

[PATCH v2 02/11] powerpc/mm: no slice for nohash/64

2019-04-25 Thread Christophe Leroy
Only nohash/32 and book3s/64 support mm slices. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/64/slice.h | 12 arch/powerpc/include/asm/slice.h | 4 +--- arch/powerpc/platforms/Kconfig.cputype | 4 3 files changed, 5 insertions(+), 15 delet

[PATCH v2 01/11] powerpc/mm: fix erroneous duplicate slb_addr_limit init

2019-04-25 Thread Christophe Leroy
Commit 67fda38f0d68 ("powerpc/mm: Move slb_addr_linit to early_init_mmu") moved slb_addr_limit init out of setup_arch(). Commit 701101865f5d ("powerpc/mm: Reduce memory usage for mm_context_t for radix") brought it back into setup_arch() by error. This patch reverts that erroneous regress. Fixes

[PATCH v2 00/11] Reduce ifdef mess in slice.c

2019-04-25 Thread Christophe Leroy
This series is a split out of the v1 series "Reduce ifdef mess in hugetlbpage.c and slice.c". It is also rebased after the series from Aneesh to reduce context size for Radix. See http://kisskb.ellerman.id.au/kisskb/branch/chleroy/head/f263887b4ca31f4bb0fe77823e301c28ba27c796/ for wide compil

[PATCH v2 03/11] powerpc/mm: hand a context_t over to slice_mask_for_size() instead of mm_struct

2019-04-25 Thread Christophe Leroy
slice_mask_for_size() only uses mm->context, so hand directly a pointer to the context. This will help moving the function in subarch mmu.h in the next patch by avoiding having to include the definition of struct mm_struct Signed-off-by: Christophe Leroy --- arch/powerpc/mm/slice.c | 34

[PATCH v2 04/11] powerpc/mm: move slice_mask_for_size() into mmu.h

2019-04-25 Thread Christophe Leroy
Move slice_mask_for_size() into subarch mmu.h At the same time, replace BUG() by VM_BUG_ON() as those BUG() are not there to catch runtime errors but to catch errors during development cycle only. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/mmu.h | 17 +++

Re: [PATCH v2 0/5] Allow CPU0 to be nohz full

2019-04-25 Thread Peter Zijlstra
On Thu, Apr 11, 2019 at 01:34:43PM +1000, Nicholas Piggin wrote: > Since last time, I added a compile time option to opt-out of this > if the platform does not support suspend on non-zero, and tried to > improve legibility of changelogs and explain the justification > better. > > I have been testi

Re: [PATCH v2 3/5] kernel/cpu: Allow non-zero CPU to be primary for suspend / kexec freeze

2019-04-25 Thread Peter Zijlstra
On Thu, Apr 11, 2019 at 01:34:46PM +1000, Nicholas Piggin wrote: > This patch provides an arch option, ARCH_SUSPEND_NONZERO_CPU, to > opt-in to allowing suspend to occur on one of the housekeeping CPUs > rather than hardcoded CPU0. > > This will allow CPU0 to be a nohz_full CPU with a later change

Re: [PATCH v5 00/23] Include linux ACPI docs into Sphinx TOC tree

2019-04-25 Thread Rafael J. Wysocki
.On Wed, Apr 24, 2019 at 7:54 PM Changbin Du wrote: > > Hi All, > The kernel now uses Sphinx to generate intelligent and beautiful documentation > from reStructuredText files. I converted all of the Linux ACPI/PCI/X86 docs to > reST format in this serias. > > The hieararchy of ACPI docs are based

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

2019-04-25 Thread Pingfan Liu
On Wed, Apr 24, 2019 at 4:31 PM Matthias Brugger wrote: > > [...] > > @@ -139,6 +141,8 @@ static int __init parse_crashkernel_simple(char > > *cmdline, > > pr_warn("crashkernel: unrecognized char: %c\n", *cur); > > return -EINVAL; > > } > > + if (*crash_size

Re: [PATCH v2] mm: Fix modifying of page protection by insert_pfn_pmd()

2019-04-25 Thread Jan Kara
On Wed 24-04-19 11:13:48, Dan Williams wrote: > On Wed, Apr 24, 2019 at 10:38 AM Matthew Wilcox wrote: > > > > On Wed, Apr 24, 2019 at 10:13:15AM -0700, Dan Williams wrote: > > > I think unaligned addresses have always been passed to > > > vmf_insert_pfn_pmd(), but nothing cared until this patch.