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

2019-09-13 Thread Xiaowei Bao
> -Original Message- > From: Gustavo Pimentel > Sent: 2019年9月12日 19:24 > To: Andrew Murray ; Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. > Lian ; Mingkai Hu ; Roy > Zang ; jingooh...@gmail.c

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

2019-09-13 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年9月12日 21:02 > To: Xiaowei Bao > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. > Lian ; Mingkai Hu ; Roy > Zang ; jingooh...@gmail.com; > gustavo.pimen..

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

2019-09-13 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年9月12日 21:00 > To: Xiaowei Bao ; helg...@kernel.org > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. > Lian ; Mingkai Hu ; Roy > Zang ; jingooh...@gmail.co

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

2019-09-13 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年9月12日 20:50 > To: Xiaowei Bao > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. > Lian ; Mingkai Hu ; Roy > Zang ; jingooh...@gmail.com; > gustavo.pimen..

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

2019-09-13 Thread Cameron Berkenpas
Running against the kernel I built against 0034d395f89d and the problem is still there. However, running against the kernel I built against the previous commit, a35a3c6f6065, and the system boots. This being due to 0034d395f89d confirmed. Thanks! On 9/13/19 9:13 AM, Aneesh Kumar K.V wrote:

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

2019-09-13 Thread Aneesh Kumar K.V
On 9/13/19 8:35 PM, Cameron Berkenpas wrote: Yep, the box comes up now, but with 256G memory as expected. I'll get back to you on when I'll be able to bisect. Thanks! I am sure this is due to commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in the same 0xc range"), We

[Bug 204819] KASAN still got problems loading some modules at boot

2019-09-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #5 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284953 --> https://bugzilla.kernel.org/attachment.cgi?id=284953&action=edit objdump sungem (5.3-rc8, PowerMac G4 DP) -- You are receiving this mail because: You are wa

[Bug 204819] KASAN still got problems loading some modules at boot

2019-09-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #4 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284951 --> https://bugzilla.kernel.org/attachment.cgi?id=284951&action=edit kernel_page_tables (5.3-rc8, PowerMac G4 DP) -- You are receiving this mail because: You ar

[Bug 204819] KASAN still got problems loading some modules at boot

2019-09-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204819 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #284931|0 |1 is obsolete|

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

2019-09-13 Thread Cameron Berkenpas
Yep, the box comes up now, but with 256G memory as expected. I'll get back to you on when I'll be able to bisect. Thanks! On 9/13/19 7:21 AM, Aneesh Kumar K.V wrote: Aneesh Kumar K.V writes: Andrew Morton writes: (switched to email. Please respond via emailed reply-to-all, not via the b

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

2019-09-13 Thread Aneesh Kumar K.V
Aneesh Kumar K.V writes: > 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=20478

Re: [PATCH v2 4/8] powerpc/vdso32: inline __get_datapage()

2019-09-13 Thread Santosh Sivaraj
Christophe Leroy writes: > Le 13/09/2019 à 15:31, Santosh Sivaraj a écrit : >> Christophe Leroy writes: >> >>> Hi Santosh, >>> >>> Le 26/08/2019 à 07:44, Santosh Sivaraj a écrit : Hi Christophe, Christophe Leroy writes: > __get_datapage() is only a few instructions to r

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

2019-09-13 Thread Laurent Dufour
Le 12/09/2019 à 16:16, Aneesh Kumar K.V a écrit : 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 th

Re: [PATCH v2 4/8] powerpc/vdso32: inline __get_datapage()

2019-09-13 Thread Christophe Leroy
Le 13/09/2019 à 15:31, Santosh Sivaraj a écrit : Christophe Leroy writes: Hi Santosh, Le 26/08/2019 à 07:44, Santosh Sivaraj a écrit : Hi Christophe, Christophe Leroy writes: __get_datapage() is only a few instructions to retrieve the address of the page where the kernel stores data t

Re: [PATCH v2 4/8] powerpc/vdso32: inline __get_datapage()

2019-09-13 Thread Santosh Sivaraj
Christophe Leroy writes: > Hi Santosh, > > Le 26/08/2019 à 07:44, Santosh Sivaraj a écrit : >> Hi Christophe, >> >> Christophe Leroy writes: >> >>> __get_datapage() is only a few instructions to retrieve the >>> address of the page where the kernel stores data to the VDSO. >>> >>> By inlining

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

2019-09-13 Thread Laurent Dufour
Le 12/09/2019 à 16:20, Aneesh Kumar K.V a écrit : 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.

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

2019-09-13 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 a/arch/powerpc/K

[PATCH v9 8/8] powerpc/perf: split callchain.c by bitness

2019-09-13 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 v9 5/8] powerpc/perf: remove current_is_64bit()

2019-09-13 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: Christophe

[PATCH v9 6/8] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-13 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 v9 4/8] powerpc/perf: consolidate valid_user_sp

2019-09-13 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 S

[PATCH v9 3/8] powerpc/perf: consolidate read_user_stack_32

2019-09-13 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 i

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

2019-09-13 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(+), 140

[PATCH v9 0/8] Disable compat cruft on ppc64le v9

2019-09-13 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 unco

[PATCH v9 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2019-09-13 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 uncon

[PATCH v4 5/5] powerpc/numa: Remove late request for home node associativity

2019-09-13 Thread Srikar Dronamraju
With commit ("powerpc/numa: Early request for home node associativity"), commit 2ea626306810 ("powerpc/topology: Get topology for shared processors at boot") which was requesting home node associativity becomes redundant. Hence remove the late request for home node associativity. Signed-off-by: S

[PATCH v4 4/5] powerpc/numa: Early request for home node associativity

2019-09-13 Thread Srikar Dronamraju
Currently the kernel detects if its running on a shared lpar platform and requests home node associativity before the scheduler sched_domains are setup. However between the time NUMA setup is initialized and the request for home node associativity, workqueue initializes its per node cpumask. The pe

[PATCH v4 1/5] powerpc/vphn: Check for error from hcall_vphn

2019-09-13 Thread Srikar Dronamraju
There is no value in unpacking associativity, if H_HOME_NODE_ASSOCIATIVITY hcall has returned an error. Signed-off-by: Srikar Dronamraju Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Nathan Lynch Cc: linuxppc-dev@lists.ozlabs.org Cc: Satheesh Rajendran Reported-by: Abdul Haleem --- Changelog

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

2019-09-13 Thread Srikar Dronamraju
All the sibling threads of a core have to be part of the same node. To ensure that all the sibling threads map to the same node, always lookup/update the cpu-to-node map of the first thread in the core. Signed-off-by: Srikar Dronamraju --- Changelog: v3->v4 As suggested by Nathan, add a warning w

[PATCH v4 2/5] powerpc/numa: Handle extra hcall_vphn error cases

2019-09-13 Thread Srikar Dronamraju
Currently code handles H_FUNCTION, H_SUCCESS, H_HARDWARE return codes. However hcall_vphn can return other return codes. Now it also handles H_PARAMETER return code. Also the rest return codes are handled under the default case. Signed-off-by: Srikar Dronamraju Cc: Michael Ellerman Cc: Nicholas

[PATCH v4 0/5] Early node associativity

2019-09-13 Thread Srikar Dronamraju
Note: (Only patch 3 changes from v3) Abdul reported a warning on a shared lpar. "WARNING: workqueue cpumask: online intersect > possible intersect". This is because per node workqueue possible mask is set very early in the boot process even before the system was querying the home node associativi

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

2019-09-13 Thread Laurent Dufour
Le 12/09/2019 à 15:44, Aneesh Kumar K.V a écrit : 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 co

Re: [PATCH v2 4/8] powerpc/vdso32: inline __get_datapage()

2019-09-13 Thread Christophe Leroy
Hi Santosh, Le 26/08/2019 à 07:44, Santosh Sivaraj a écrit : Hi Christophe, Christophe Leroy writes: __get_datapage() is only a few instructions to retrieve the address of the page where the kernel stores data to the VDSO. By inlining this function into its users, a bl/blr pair and a mflr/m

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

2019-09-13 Thread Laurent Dufour
Le 12/09/2019 à 15:37, Aneesh Kumar K.V a écrit : 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/book3s6

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

2019-09-13 Thread Christophe Leroy
Le 13/09/2019 à 11:02, Anshuman Khandual a écrit : +#if !defined(__PAGETABLE_PMD_FOLDED) && !defined(__ARCH_HAS_4LEVEL_HACK) #ifdefs have to be avoided as much as possible, see below Yeah but it has been bit difficult to avoid all these $ifdef because of the availability (or lack of it)

[PATCH V2 2/2] ASoC: fsl_mqs: Add MQS component driver

2019-09-13 Thread Shengjiu Wang
MQS (medium quality sound), is used to generate medium quality audio via a standard digital output pin. It can be used to connect stereo speakers or headphones simply via power amplifier stages without an additional DAC chip. It only accepts 2-channel, LSB-valid 16bit, MSB shift-out first, frame sy

[PATCH V2 1/2] ASoC: fsl_mqs: add DT binding documentation

2019-09-13 Thread Shengjiu Wang
Add the DT binding documentation for NXP MQS driver Signed-off-by: Shengjiu Wang --- Changes in v2 -refine the comments for properties .../devicetree/bindings/sound/fsl,mqs.txt | 36 +++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/s

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

2019-09-13 Thread Kirill A. Shutemov
On Fri, Sep 13, 2019 at 02:32:04PM +0530, Anshuman Khandual wrote: > > On 09/12/2019 10:44 PM, Christophe Leroy wrote: > > > > > > 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 comp

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

2019-09-13 Thread Laurent Dufour
Le 13/09/2019 à 04:00, Aneesh Kumar K.V a écrit : 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

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

2019-09-13 Thread Anshuman Khandual
On 09/12/2019 10:44 PM, Christophe Leroy wrote: > > > 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 archite

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Kirill A. Shutemov
On Fri, Sep 13, 2019 at 02:12:45PM +0530, Anshuman Khandual wrote: > > > On 09/13/2019 12:41 PM, Christophe Leroy wrote: > > > > > > Le 13/09/2019 à 09:03, Christophe Leroy a écrit : > >> > >> > >> Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : > >>> On 09/13/2019 11:53 AM, Christophe Leroy

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Anshuman Khandual
On 09/13/2019 12:41 PM, Christophe Leroy wrote: > > > Le 13/09/2019 à 09:03, Christophe Leroy a écrit : >> >> >> Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : >>> On 09/13/2019 11:53 AM, Christophe Leroy wrote: Fix build failure on powerpc. Fix preemption imbalance. >>

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Christophe Leroy
Le 13/09/2019 à 09:03, Christophe Leroy a écrit : Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : On 09/13/2019 11:53 AM, Christophe Leroy wrote: Fix build failure on powerpc. Fix preemption imbalance. Signed-off-by: Christophe Leroy ---   mm/arch_pgtable_test.c | 3 +++   1 file chan

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-13 Thread Christophe Leroy
Le 13/09/2019 à 08:58, Anshuman Khandual a écrit : On 09/13/2019 11:53 AM, Christophe Leroy wrote: Fix build failure on powerpc. Fix preemption imbalance. Signed-off-by: Christophe Leroy --- mm/arch_pgtable_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/arch_pgtable_te