RE: [EXT] Re: [PATCH 2/3] ASoC: fsl_asrc: update supported sample format

2019-09-12 Thread S.j. Wang
Hi > > On Tue, Sep 10, 2019 at 02:07:25AM +, S.j. Wang wrote: > > > On Mon, Sep 09, 2019 at 06:33:20PM -0400, Shengjiu Wang wrote: > > > > The ASRC support 24bit/16bit/8bit input width, so S20_3LE format > > > > should not be supported, it is word width is 20bit. > > > > > > I thought 3LE

Re: [PATCH v3 3/5] powerpc/numa: Use cpu node map of first sibling thread

2019-09-12 Thread Srikar Dronamraju
* Nathan Lynch [2019-09-12 13:15:03]: > Srikar Dronamraju writes: > > >> > >> I think just WARN_ON(cpu_online(fcpu)) would be satisfactory. In my > >> experience, the downstream effects of violating this condition are > >> varied and quite difficult to debug. Seems only appropriate to emit a

Re: [Bug 204789] New: Boot failure with more than 256G of memory

2019-09-12 Thread Aneesh Kumar K.V
Andrew Morton writes: > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > On Sun, 08 Sep 2019 00:04:26 + bugzilla-dae...@bugzilla.kernel.org wrote: > >> https://bugzilla.kernel.org/show_bug.cgi?id=204789 >> >> Bug ID: 204789

[powerpc:next-test 188/234] arch/powerpc/platforms/powernv/npu-dma.c:126:13: error: 'pnv_npu_set_window' defined but not used

2019-09-12 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/powerpc/linux.git next-test head: 4fead715c62a5196fa57218a1992e5eb8437dd8a commit: b4d37a7b6934c0c16930c73f43c08e9a6af22f1a [188/234] powerpc/powernv: Remove unused pnv_npu_try_dma_set_bypass() function config:

[powerpc:next-test 167/234] arch/powerpc/kernel/eeh_event.c:124:23: error: implicit declaration of function 'stack_trace_save'; did you mean 'stack_depot_save'?

2019-09-12 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/powerpc/linux.git next-test head: 4fead715c62a5196fa57218a1992e5eb8437dd8a commit: 25baf3d81614b0b8ca8958f4d6f111ccd578 [167/234] powerpc/eeh: Defer printing stack trace config: powerpc-skiroot_defconfig (attached as

Re: [PATCH 2/3] powperc/mm: read TLB Block Invalidate Characteristics

2019-09-12 Thread Aneesh Kumar K.V
On 9/13/19 12:56 AM, Laurent Dufour wrote: Le 12/09/2019 à 16:44, Aneesh Kumar K.V a écrit : Laurent Dufour writes: + +    idx = 2; +    while (idx < len) { +    unsigned int block_size = local_buffer[idx++]; +    unsigned int npsize; + +    if (!block_size) +    break;

Re: [PATCH 3/3] ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8

2019-09-12 Thread Nicolin Chen
On Wed, Sep 11, 2019 at 12:08:07PM +0100, Mark Brown wrote: > On Mon, Sep 09, 2019 at 06:52:13PM -0700, Nicolin Chen wrote: > > > And a quick feeling is that below code is mostly identical to what > > is in the soc-generic-dmaengine-pcm.c file. So I'm wondering if we > > could abstract a helper

Re: [PATCH 2/3] ASoC: fsl_asrc: update supported sample format

2019-09-12 Thread Nicolin Chen
On Tue, Sep 10, 2019 at 02:07:25AM +, S.j. Wang wrote: > > On Mon, Sep 09, 2019 at 06:33:20PM -0400, Shengjiu Wang wrote: > > > The ASRC support 24bit/16bit/8bit input width, so S20_3LE format > > > should not be supported, it is word width is 20bit. > > > > I thought 3LE used 24-bit physical

Re: [PATCH] KVM: PPC: Book3S HV: Tunable to configure maximum # of vCPUs per VM

2019-09-12 Thread David Gibson
On Wed, Sep 11, 2019 at 12:25:24PM +0200, Greg Kurz wrote: > On Wed, 11 Sep 2019 12:30:48 +1000 > David Gibson wrote: > > > On Tue, Sep 10, 2019 at 06:49:34PM +0200, Greg Kurz wrote: > > > Each vCPU of a VM allocates a XIVE VP in OPAL which is associated with > > > 8 event queue (EQ)

Re: [EXT] Re: [PATCH 1/3] ASoC: fsl_asrc: Use in(out)put_format instead of in(out)put_word_width

2019-09-12 Thread Nicolin Chen
On Tue, Sep 10, 2019 at 02:22:06AM +, S.j. Wang wrote: > Hi > > > > > On Mon, Sep 09, 2019 at 06:33:19PM -0400, Shengjiu Wang wrote: > > > snd_pcm_format_t is more formal than enum asrc_word_width, which > > has > > > two property, width and physical width, which is more accurate than > > >

Re: [PATCH 1/3] ASoC: fsl_asrc: Use in(out)put_format instead of in(out)put_word_width

2019-09-12 Thread Nicolin Chen
On Mon, Sep 09, 2019 at 06:33:19PM -0400, Shengjiu Wang wrote: > snd_pcm_format_t is more formal than enum asrc_word_width, which has > two property, width and physical width, which is more accurate than > enum asrc_word_width. So it is better to use in(out)put_format > instead of

Re: [PATCH v8 5/7] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-12 Thread Michal Suchánek
On Thu, 12 Sep 2019 21:36:11 +0200 Christophe Leroy wrote: > Le 12/09/2019 à 20:26, Michal Suchánek a écrit : > > On Thu, 12 Sep 2019 20:02:16 +0200 > > Christophe Leroy wrote: > > > >> Le 12/09/2019 à 19:26, Michal Suchanek a écrit : > >>> There are numerous references to 32bit functions

[PATCH] powerpc/perf: remove current_is_64bit()

2019-09-12 Thread Michal Suchanek
Since commit ed1cd6deb013 ("powerpc: Activate CONFIG_THREAD_INFO_IN_TASK") current_is_64bit() is quivalent to !is_32bit_task(). Remove the redundant function. Link: https://github.com/linuxppc/issues/issues/275 Link: https://lkml.org/lkml/2019/9/12/540 Fixes: linuxppc#275 Suggested-by:

Re: [PATCH v8 5/7] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-12 Thread Christophe Leroy
Le 12/09/2019 à 20:26, Michal Suchánek a écrit : On Thu, 12 Sep 2019 20:02:16 +0200 Christophe Leroy wrote: Le 12/09/2019 à 19:26, Michal Suchanek a écrit : There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek ---

Re: [PATCH 2/3] powperc/mm: read TLB Block Invalidate Characteristics

2019-09-12 Thread Laurent Dufour
Le 12/09/2019 à 16:44, Aneesh Kumar K.V a écrit : Laurent Dufour writes: The PAPR document specifies the TLB Block Invalidate Characteristics which is telling which couple base page size / page size is supported by the H_BLOCK_REMOVE hcall. A new set of feature is added to the mmu_psize_def

Re: [PATCH v8 5/7] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-12 Thread Michal Suchánek
On Thu, 12 Sep 2019 20:02:16 +0200 Christophe Leroy wrote: > Le 12/09/2019 à 19:26, Michal Suchanek a écrit : > > There are numerous references to 32bit functions in generic and 64bit > > code so ifdef them out. > > > > Signed-off-by: Michal Suchanek > > --- > > v2: > > - fix 32bit ifdef

Re: [PATCH v3 3/5] powerpc/numa: Use cpu node map of first sibling thread

2019-09-12 Thread Nathan Lynch
Srikar Dronamraju writes: >> >> I think just WARN_ON(cpu_online(fcpu)) would be satisfactory. In my >> experience, the downstream effects of violating this condition are >> varied and quite difficult to debug. Seems only appropriate to emit a >> warning and stack trace before the OS inevitably

Re: [PATCH v8 5/7] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-12 Thread Christophe Leroy
Le 12/09/2019 à 19:26, Michal Suchanek a écrit : There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant

[PATCH v8 7/7] powerpc/perf: split callchain.c by bitness

2019-09-12 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c

[PATCH v8 6/7] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-09-12 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v8 5/7] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-12 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c -

[PATCH v8 1/7] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2019-09-12 Thread Michal Suchanek
This partially reverts commit caf6f9c8a326 ("asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro") When CONFIG_COMPAT is disabled on ppc64 the kernel does not build. There is resistance to both removing the llseek syscall from the 64bit syscall tables and building the llseek interface

[PATCH v8 2/7] powerpc: move common register copy functions from signal_32.c to signal.c

2019-09-12 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+),

[PATCH v8 4/7] powerpc/perf: consolidate valid_user_sp

2019-09-12 Thread Michal Suchanek
Merge the 32bit and 64bit version. Halve the check constants on 32bit. Use STACK_TOP since it is defined. This removes a page from the valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Signed-off-by: Michal

[PATCH v8 3/7] powerpc/perf: consolidate read_user_stack_32

2019-09-12 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: new patch v8: move the consolidated function out of the

[PATCH v8 0/7] Disable compat cruft on ppc64le v8

2019-09-12 Thread Michal Suchanek
Less code means less bugs so add a knob to skip the compat stuff. This is tested on ppc64le top of https://patchwork.ozlabs.org/patch/1153850/ https://patchwork.ozlabs.org/patch/1158412/ Changes in v2: saner CONFIG_COMPAT ifdefs Changes in v3: - change llseek to 32bit instead of builing it

Re: [PATCH v3 3/5] powerpc/numa: Use cpu node map of first sibling thread

2019-09-12 Thread Srikar Dronamraju
> > I think just WARN_ON(cpu_online(fcpu)) would be satisfactory. In my > experience, the downstream effects of violating this condition are > varied and quite difficult to debug. Seems only appropriate to emit a > warning and stack trace before the OS inevitably becomes unstable. I still have

Re: [PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-12 Thread Christophe Leroy
Le 12/09/2019 à 08:02, Anshuman Khandual a écrit : This adds a test module which will validate architecture page table helpers and accessors regarding compliance with generic MM semantics expectations. This will help various architectures in validating changes to the existing page table

Re: [PATCH v3 3/5] powerpc/numa: Use cpu node map of first sibling thread

2019-09-12 Thread Nathan Lynch
Hi Srikar, Srikar Dronamraju writes: >> > @@ -496,6 +501,16 @@ static int numa_setup_cpu(unsigned long lcpu) >> >if (nid < 0 || !node_possible(nid)) >> >nid = first_online_node; >> > >> > + /* >> > + * Update for the first thread of the core. All threads of a core >> > + *

Re: [PATCH v1 3/4] powerpc: Add support for GENERIC_EARLY_IOREMAP

2019-09-12 Thread Christophe Leroy
Le 12/09/2019 à 17:50, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Le 12/09/2019 à 17:37, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Add support for GENERIC_EARLY_IOREMAP. Let's define 16 slots of 256Kbytes each for early ioremap. Signed-off-by: Christophe Leroy ---

Re: [PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-12 Thread Christophe Leroy
Le 12/09/2019 à 17:36, Christophe Leroy a écrit : Le 12/09/2019 à 17:00, Christophe Leroy a écrit : On 09/12/2019 06:02 AM, Anshuman Khandual wrote: This adds a test module which will validate architecture page table helpers and accessors regarding compliance with generic MM semantics

Re: [PATCH v1 3/4] powerpc: Add support for GENERIC_EARLY_IOREMAP

2019-09-12 Thread Christophe Leroy
Le 12/09/2019 à 17:37, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Add support for GENERIC_EARLY_IOREMAP. Let's define 16 slots of 256Kbytes each for early ioremap. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/Kbuild

Re: [PATCH 0/2] pseries/hotplug: Change the default behaviour of cede_offline

2019-09-12 Thread Nathan Lynch
"Gautham R. Shenoy" writes: > The patchset also defines a new sysfs attribute > "/sys/device/system/cpu/cede_offline_enabled" on PSeries Linux guests > to allow userspace programs to change the state into which the > offlined CPU need to be put to at runtime. A boolean sysfs interface will

Re: [PATCH v1 3/4] powerpc: Add support for GENERIC_EARLY_IOREMAP

2019-09-12 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Add support for GENERIC_EARLY_IOREMAP. > > Let's define 16 slots of 256Kbytes each for early ioremap. > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/Kconfig | 1 + > arch/powerpc/include/asm/Kbuild | 1 + > arch/powerpc/include/asm/fixmap.h

Re: [PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-12 Thread Christophe Leroy
Le 12/09/2019 à 17:00, Christophe Leroy a écrit : On 09/12/2019 06:02 AM, Anshuman Khandual wrote: This adds a test module which will validate architecture page table helpers and accessors regarding compliance with generic MM semantics expectations. This will help various architectures in

Re: [PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-12 Thread Christophe Leroy
On 09/12/2019 06:02 AM, Anshuman Khandual wrote: This adds a test module which will validate architecture page table helpers and accessors regarding compliance with generic MM semantics expectations. This will help various architectures in validating changes to the existing page table helpers

Re: [PATCH 2/3] powperc/mm: read TLB Block Invalidate Characteristics

2019-09-12 Thread Aneesh Kumar K.V
Laurent Dufour writes: > The PAPR document specifies the TLB Block Invalidate Characteristics which > is telling which couple base page size / page size is supported by the > H_BLOCK_REMOVE hcall. > > A new set of feature is added to the mmu_psize_def structure to record per > base page size

Re: [PATCH V2 0/2] mm/debug: Add tests for architecture exported page table helpers

2019-09-12 Thread Christophe Leroy
Hi, I didn't get patch 1 of this series, and it is not on linuxppc-dev patchwork either. Can you resend ? Thanks Christophe Le 12/09/2019 à 08:02, Anshuman Khandual a écrit : This series adds a test validation for architecture exported page table helpers. Patch in the series adds basic

Re: [PATCH 3/3] powerpc/mm: call H_BLOCK_REMOVE when supported

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: Instead of calling H_BLOCK_REMOVE all the time when the feature is exhibited, call this hcall only when the couple base page size, page size is supported as reported by the TLB Invalidate Characteristics. supported is not actually what we are checking

Re: [PATCH 2/3] powperc/mm: read TLB Block Invalidate Characteristics

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: The PAPR document specifies the TLB Block Invalidate Characteristics which is telling which couple base page size / page size is supported by the H_BLOCK_REMOVE hcall. A new set of feature is added to the mmu_psize_def structure to record per base page

[PATCH v1 4/4] powerpc/ioremap: warn on early use of ioremap()

2019-09-12 Thread Christophe Leroy
Powerpc now has EARLY_IOREMAP. Next step is to convert all early users of ioremap() to early_ioremap(). Add a warning to help locate those users. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ioremap_32.c | 1 + arch/powerpc/mm/ioremap_64.c | 2 ++ 2 files changed, 3 insertions(+) diff

[PATCH v1 3/4] powerpc: Add support for GENERIC_EARLY_IOREMAP

2019-09-12 Thread Christophe Leroy
Add support for GENERIC_EARLY_IOREMAP. Let's define 16 slots of 256Kbytes each for early ioremap. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/Kbuild | 1 + arch/powerpc/include/asm/fixmap.h | 12

[PATCH v1 2/4] powerpc/fixmap: Use __fix_to_virt() instead of fix_to_virt()

2019-09-12 Thread Christophe Leroy
Modify back __set_fixmap() to using __fix_to_virt() instead of fix_to_virt() otherwise the following happens because it seems GCC doesn't see idx as a builtin const. CC mm/early_ioremap.o In file included from ./include/linux/kernel.h:11:0, from mm/early_ioremap.c:11: In

[PATCH v1 1/4] powerpc/fixmap: don't clear fixmap area in paging_init()

2019-09-12 Thread Christophe Leroy
fixmap is intended to map things permanently like the IMMR region on FSL SOC (8xx, 83xx, ...), so don't clear it when initialising paging() Signed-off-by: Christophe Leroy --- arch/powerpc/mm/mem.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/mm/mem.c

[PATCH v1 0/4] powerpc: Add support for GENERIC_EARLY_IOREMAP

2019-09-12 Thread Christophe Leroy
This series adds support for GENERIC_EARLY_IOREMAP on powerpc. It also adds a warning in the standard ioremap() when it's called before vmalloc is available in order to help locate those users. Next step will be to incrementaly migrate all early users of ioremap() to using early_ioremap() or

Re: [PATCH] powerpc/mm/radix: remove useless kernel messages

2019-09-12 Thread Qian Cai
Michael, Aneesh, please take a take at this trivial patch. On Fri, 2019-08-23 at 10:22 -0400, Qian Cai wrote: > Booting a POWER9 PowerNV system generates a few messages below with > "ptrval" due to the pointers printed without a specifier > extension (i.e unadorned %p) are hashed to

Re: [PATCH 0/3] powerpc/mm: Conditionally call H_BLOCK_REMOVE

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: Since the commit ba2dd8a26baa ("powerpc/pseries/mm: call H_BLOCK_REMOVE"), the call to H_BLOCK_REMOVE is always done if the feature is exhibited. On some system, the hypervisor may not support all the combination of segment base page size and page size.

Re: [PATCH 1/3] powerpc/mm: Initialize the HPTE encoding values

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: Before reading the HPTE encoding values we initialize all of them to -1 (an invalid value) to later being able to detect the initialized ones. Signed-off-by: Laurent Dufour --- arch/powerpc/mm/book3s64/hash_utils.c | 8 ++-- 1 file changed, 6

[PATCH] powerpc/8xx: use the fixmapped IMMR in cpm_reset()

2019-09-12 Thread Christophe Leroy
Since commit f86ef74ed919 ("powerpc/8xx: Fix vaddr for IMMR early remap"), the IMMR area has been mapped at startup with fixmap. Use that fixmap directly instead of calling ioremap(), this avoids calling ioremap() early before the slab is available. Signed-off-by: Christophe Leroy ---

[PATCH] powerpc/8xx: add __init to cpm1 init functions

2019-09-12 Thread Christophe Leroy
Functions cpm1_clk_setup(), cpm1_set_pin(), cpm_pic_init() and mpc8xx_pic_init() are only called from __init functions, so mark them __init as well. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/cpm1.c | 10 +- arch/powerpc/platforms/8xx/pic.c | 2 +- 2 files changed,

Re: [PATCH v3 10/11] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2019-09-12 Thread Andrew Murray
On Tue, Sep 03, 2019 at 02:01:32AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月2日 21:06 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com;

Re: [PATCH v3 11/11] misc: pci_endpoint_test: Add LS1088a in pci_device_id table

2019-09-12 Thread Andrew Murray
On Tue, Sep 03, 2019 at 01:52:30AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月2日 20:55 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com;

Re: [PATCH v3 09/11] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-09-12 Thread Andrew Murray
On Tue, Sep 03, 2019 at 01:47:36AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月2日 20:46 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com;

RE: [PATCH v3 08/11] PCI: layerscape: Modify the MSIX to the doorbell mode

2019-09-12 Thread Gustavo Pimentel
Hi, Sorry for the delay I was in parental leave and I'm still trying not to drown in the mailing list emails...  On Mon, Sep 2, 2019 at 13:1:47, Andrew Murray wrote: > On Mon, Sep 02, 2019 at 11:17:13AM +0800, Xiaowei Bao wrote: > > dw_pcie_ep_raise_msix_irq was never called in the exisitng

Re: [PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-12 Thread Anshuman Khandual
On 09/12/2019 04:30 PM, Kirill A. Shutemov wrote: > On Thu, Sep 12, 2019 at 11:32:53AM +0530, Anshuman Khandual wrote: >> +MODULE_LICENSE("GPL v2"); >> +MODULE_AUTHOR("Anshuman Khandual "); >> +MODULE_DESCRIPTION("Test architecture page table helpers"); > > It's not module. Why? Not any more.

Re: [PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-12 Thread Kirill A. Shutemov
On Thu, Sep 12, 2019 at 11:32:53AM +0530, Anshuman Khandual wrote: > +MODULE_LICENSE("GPL v2"); > +MODULE_AUTHOR("Anshuman Khandual "); > +MODULE_DESCRIPTION("Test architecture page table helpers"); It's not module. Why? BTW, I think we should make all code here __init (or it's variants) so it

[PATCH 1/2] pseries/hotplug-cpu: Change default behaviour of cede_offline to "off"

2019-09-12 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently on Pseries Linux Guests, the offlined CPU can be put to one of the following two states: - Long term processor cede (also called extended cede) - Returned to the Hypervisor via RTAS "stop-self" call. This is controlled by the kernel boot parameter

[PATCH 2/2] pseries/hotplug-cpu: Add sysfs attribute for cede_offline

2019-09-12 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Define a new sysfs attribute "/sys/device/system/cpu/cede_offline_enabled" on PSeries Linux guests to allow userspace programs to change the state into which the offlined CPU need to be put to at runtime. This is intended for userspace programs that fold CPUs for the

[PATCH 0/2] pseries/hotplug: Change the default behaviour of cede_offline

2019-09-12 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently on Pseries Linux Guests, the offlined CPU can be put to one of the following two states: - Long term processor cede (also called extended cede) - Returned to the Hypervisor via RTAS "stop-self" call. This is controlled by the kernel boot parameter

[PATCH v3 6/8] sparc64: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for sparc64

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH v3 8/8] mips: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for loongson64

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH v3 5/8] s390: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for s390

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH v3 3/8] alpha: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for alpha

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH v3 7/8] mips: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for mips

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH v3 4/8] powerpc: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for powerpc

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH v3 2/8] x86: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for x86

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH v3 0/8] make node_to_cpumask_map() NUMA_NO_NODE aware

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN: [ 42.970381] == [ 42.977595] BUG: KASAN:

[PATCH v3 1/8] arm64: numa: make node_to_cpumask_map() NUMA_NO_NODE aware for arm64

2019-09-12 Thread Yunsheng Lin
When passing the return value of dev_to_node() to cpumask_of_node() without checking the node id if the node id is NUMA_NO_NODE, there is global-out-of-bounds detected by KASAN. >From the discussion [1], NUMA_NO_NODE really means no node affinity, which also means all cpus should be usable. So

[PATCH] powerpc: improve prom_init_check rule

2019-09-12 Thread Masahiro Yamada
This slightly improves the prom_init_check rule. [1] Avoid needless check Currently, prom_init_check.sh is invoked every time you run 'make' even if you have changed nothing in prom_init.c. With this commit, the script is re-run only when prom_init.o is recompiled. [2] Beautify the build log

[PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-12 Thread Anshuman Khandual
This adds a test module which will validate architecture page table helpers and accessors regarding compliance with generic MM semantics expectations. This will help various architectures in validating changes to the existing page table helpers or addition of new ones. Test page table and memory

[PATCH V2 0/2] mm/debug: Add tests for architecture exported page table helpers

2019-09-12 Thread Anshuman Khandual
This series adds a test validation for architecture exported page table helpers. Patch in the series adds basic transformation tests at various levels of the page table. Before that it exports gigantic page allocation function from HugeTLB. This test was originally suggested by Catalin during