Re: [PATCH] libnvdimm: Add a NULL entry to 'nvdimm_firmware_attributes'

2020-08-14 Thread Verma, Vishal L
On Fri, 2020-08-14 at 10:10 -0700, Ira Weiny wrote: > On Fri, Aug 14, 2020 at 08:35:09PM +0530, Vaibhav Jain wrote: > > We recently discovered a kernel oops with 'papr_scm' module while > > booting ppc64 phyp guest with following back-trace: > > > > BUG: Kernel NULL pointer dereference on write at

Re: [PATCH net 0/5] refactoring of ibmvnic code

2020-08-14 Thread David Miller
From: Lijun Pan Date: Fri, 14 Aug 2020 02:59:16 -0500 > This patch series refactor reset_init and init functions, > improve the debugging messages, and make some other cosmetic changes > to make the code easier to read and debug. Cosmetic changes and cleanups are not appropriate at this time as

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.9-2 tag

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 22:56:04 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.9-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7fca4dee610dffbe119714231cac0d59496bc193 Thank you! -- Deet-doot-do

[PATCH 1/1] powerpc/numa: do not skip node 0 when init lookup table

2020-08-14 Thread Daniel Henrique Barboza
associativity_to_nid() is skipping node 0 when initializing the distance lookup table. This has no practical effect when the associativity of node 0 is always zero, which seems to be case for a long time. As such, this line got introduced in commit 41eab6f88f24 from 2010 and never revisited. Howev

[PATCH 0/1] powerpc/numa: do not skip node 0 in lookup table

2020-08-14 Thread Daniel Henrique Barboza
Hi, This is a simple fix that I made while testing NUMA changes I'm making in QEMU [1]. Setting any non-zero value to the associativity of NUMA node 0 has no impact in the output of 'numactl' because the distance_lookup_table is never initialized for node 0. Seeing through the LOPAPR spec and git

Re: [PATCH v3] pseries/drmem: don't cache node id in drmem_lmb struct

2020-08-14 Thread Nathan Lynch
Nathan Lynch writes: > I'm satisfied that this change does not reintroduce that problem. The > removal path still derives the node without going to the device tree, > but now performs a more efficient lookup. Er, actually it's slightly less efficient in the remove path, as you note in your commit

Re: [PATCH v3] pseries/drmem: don't cache node id in drmem_lmb struct

2020-08-14 Thread Nathan Lynch
Scott Cheloha writes: > At memory hot-remove time we can retrieve an LMB's nid from its > corresponding memory_block. There is no need to store the nid > in multiple locations. > > Note that lmb_to_memblock() uses find_memory_block() to get the > corresponding memory_block. As find_memory_block(

Re: [PATCH] libnvdimm: Add a NULL entry to 'nvdimm_firmware_attributes'

2020-08-14 Thread Ira Weiny
On Fri, Aug 14, 2020 at 08:35:09PM +0530, Vaibhav Jain wrote: > We recently discovered a kernel oops with 'papr_scm' module while > booting ppc64 phyp guest with following back-trace: > > BUG: Kernel NULL pointer dereference on write at 0x0188 > Faulting instruction address: 0xc05d7084

[PATCH] libnvdimm: Add a NULL entry to 'nvdimm_firmware_attributes'

2020-08-14 Thread Vaibhav Jain
We recently discovered a kernel oops with 'papr_scm' module while booting ppc64 phyp guest with following back-trace: BUG: Kernel NULL pointer dereference on write at 0x0188 Faulting instruction address: 0xc05d7084 Oops: Kernel access of bad area, sig: 11 [#1] Call Trace: internal_cr

[PATCH] kernel/watchdog: fix warning -Wunused-variable for watchdog_allowed_mask in ppc64

2020-08-14 Thread Balamuruhan S
In ppc64 config if `CONFIG_SOFTLOCKUP_DETECTOR` is not set then it warns for unused declaration of `watchdog_allowed_mask` while building, move the declaration inside ifdef later in the code. ``` kernel/watchdog.c:47:23: warning: ‘watchdog_allowed_mask’ defined but not used [-Wunused-variable] s

Re: [PATCH 2/4] powerpc: Introduce asm-prototypes.h

2020-08-14 Thread Christophe Leroy
On 08/14/2020 01:04 PM, Michael Ellerman wrote: Christophe Leroy writes: Le 18/05/2016 à 03:16, Daniel Axtens a écrit : Sparse picked up a number of functions that are implemented in C and then only referred to in asm code. This introduces asm-prototypes.h, which provides a place for proto

Re: [PATCH] kernel/watchdog: fix warning -Wunused-variable for watchdog_allowed_mask in ppc64

2020-08-14 Thread Michael Ellerman
Balamuruhan S writes: > In ppc64 config if `CONFIG_SOFTLOCKUP_DETECTOR` is not set then it > warns for unused declaration of `watchdog_allowed_mask` while building, > move the declaration inside ifdef later in the code. > > ``` > kernel/watchdog.c:47:23: warning: ‘watchdog_allowed_mask’ defined bu

Re: [PATCH 2/4] powerpc: Introduce asm-prototypes.h

2020-08-14 Thread Michael Ellerman
Christophe Leroy writes: > Le 18/05/2016 à 03:16, Daniel Axtens a écrit : >> Sparse picked up a number of functions that are implemented in C and >> then only referred to in asm code. >> >> This introduces asm-prototypes.h, which provides a place for >> prototypes of these functions. > > It looks

[GIT PULL] Please pull powerpc/linux.git powerpc-5.9-2 tag

2020-08-14 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull a powerpc fix for 5.9: The following changes since commit 7b9de97711225559af213dc52b6ea883ef1ea7a8: powerpc/ptrace: Fix build error in pkey_get() (2020-08-07 18:27:26 -0700) are available in the git repository at: https

Re: [PATCH 2/4] powerpc: Introduce asm-prototypes.h

2020-08-14 Thread Christophe Leroy
On 08/14/2020 09:53 AM, Daniel Axtens wrote: Christophe Leroy writes: Le 18/05/2016 à 03:16, Daniel Axtens a écrit : Sparse picked up a number of functions that are implemented in C and then only referred to in asm code. This introduces asm-prototypes.h, which provides a place for prototy

Re: [PATCH 2/4] powerpc: Introduce asm-prototypes.h

2020-08-14 Thread Daniel Axtens
Christophe Leroy writes: > Le 18/05/2016 à 03:16, Daniel Axtens a écrit : >> Sparse picked up a number of functions that are implemented in C and >> then only referred to in asm code. >> >> This introduces asm-prototypes.h, which provides a place for >> prototypes of these functions. > > It look

Re: [PATCH 2/4] powerpc: Introduce asm-prototypes.h

2020-08-14 Thread Christophe Leroy
Le 18/05/2016 à 03:16, Daniel Axtens a écrit : Sparse picked up a number of functions that are implemented in C and then only referred to in asm code. This introduces asm-prototypes.h, which provides a place for prototypes of these functions. It looks like this is a mis-use of asm-prototype

Re: [PATCH v2] powerpc: Add POWER10 raw mode cputable entry

2020-08-14 Thread Christophe Leroy
Le 14/08/2020 à 09:45, Madhavan Srinivasan a écrit : Add a raw mode cputable entry for POWER10. Copies most of the fields from commit a3ea40d5c736 ("powerpc: Add POWER10 architected mode") except for oprofile_cpu_type, machine_check_early, pvr_mask and pvr_mask fields. On bare metal systems we

Re: [PATCH 14/16] debug_vm_pgtable/hugetlb: Disable hugetlb test on ppc64

2020-08-14 Thread Anshuman Khandual
On 08/12/2020 07:22 PM, Aneesh Kumar K.V wrote: > On 8/12/20 7:04 PM, Anshuman Khandual wrote: >> >> >> On 08/12/2020 06:46 PM, Aneesh Kumar K.V wrote: >>> On 8/12/20 6:33 PM, Anshuman Khandual wrote: On 08/12/2020 12:03 PM, Aneesh Kumar K.V wrote: > The seems to be missing qu

Re: [PATCH 16/16] debug_vm_pgtable/ppc64: Add a variant of pfn_pte/pmd

2020-08-14 Thread Anshuman Khandual
On 08/13/2020 12:07 PM, Aneesh Kumar K.V wrote: > On 8/13/20 11:00 AM, Anshuman Khandual wrote: >> >> On 08/12/2020 12:03 PM, Aneesh Kumar K.V wrote: >>> The tests do expect _PAGE_PTE bit set by different page table accessors. >>> This is not true for the kernel. Within the kernel, _PAGE_PTE bit

[PATCH net 5/5] ibmvnic: merge ibmvnic_reset_init and ibmvnic_init

2020-08-14 Thread Lijun Pan
These two functions share the majority of the code, hence merge them together. In the meanwhile, add a reset pass-in parameter to differentiate them. Thus, the code is easier to read and to tell the difference between reset_init and regular init. Signed-off-by: Lijun Pan --- drivers/net/ethernet

[PATCH net 0/5] refactoring of ibmvnic code

2020-08-14 Thread Lijun Pan
This patch series refactor reset_init and init functions, improve the debugging messages, and make some other cosmetic changes to make the code easier to read and debug. Lijun Pan (5): ibmvnic: print caller in several error messages ibmvnic: compare adapter->init_done_rc with more readable

[PATCH net 4/5] ibmvnic: remove never executed if statement

2020-08-14 Thread Lijun Pan
At the beginning of the function, from_passive_init is set false by "adapter->from_passive_init = false;", hence the if statement will never run. Signed-off-by: Lijun Pan --- drivers/net/ethernet/ibm/ibmvnic.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/net/ethernet/

[PATCH net 2/5] ibmvnic: compare adapter->init_done_rc with more readable ibmvnic_rc_codes

2020-08-14 Thread Lijun Pan
Instead of comparing (adapter->init_done_rc == 1), let it be (adapter->init_done_rc == PARTIALSUCCESS). Signed-off-by: Lijun Pan --- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/i

[PATCH net 3/5] ibmvnic: improve ibmvnic_init and ibmvnic_reset_init

2020-08-14 Thread Lijun Pan
When H_SEND_CRQ command returns with H_CLOSED, it means the server's CRQ is not ready yet. Instead of resetting immediately, we wait for the server to launch passive init. ibmvnic_init() and ibmvnic_reset_init() should also return the error code from ibmvnic_send_crq_init() call. Signed-off-by: Li

[PATCH net 1/5] ibmvnic: print caller in several error messages

2020-08-14 Thread Lijun Pan
The error messages in the changed functions are exactly the same. In order to differentiate them and make debugging easier, we print the function names in the error messages. Signed-off-by: Lijun Pan --- drivers/net/ethernet/ibm/ibmvnic.c | 14 +++--- 1 file changed, 7 insertions(+), 7 d

[PATCH v2] powerpc: Add POWER10 raw mode cputable entry

2020-08-14 Thread Madhavan Srinivasan
Add a raw mode cputable entry for POWER10. Copies most of the fields from commit a3ea40d5c736 ("powerpc: Add POWER10 architected mode") except for oprofile_cpu_type, machine_check_early, pvr_mask and pvr_mask fields. On bare metal systems we use DT CPU features, which doesn't need a cputable entry.

Re: [PATCH] powerpc: Add POWER10 raw mode cputable entry

2020-08-14 Thread Madhavan Srinivasan
On 8/14/20 11:57 AM, kernel test robot wrote: Hi Madhavan, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.8 next-20200814] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting