Re: [bug report] powerpc/perf: Add nest IMC PMU support

2018-02-01 Thread Madhavan Srinivasan
On Wednesday 31 January 2018 08:55 PM, Dan Carpenter wrote: Hello Anju T Sudhakar, The patch 885dcd709ba9: "powerpc/perf: Add nest IMC PMU support" from Jul 19, 2017, leads to the following static checker warning: arch/powerpc/perf/imc-pmu.c:1393 init_imc_pmu() warn:

Re: powerpc/mm/radix: Fix build error when RADIX_MMU=n

2018-02-01 Thread Michael Ellerman
On Wed, 2018-01-31 at 14:13:10 UTC, Michael Ellerman wrote: > The recent TLB flush rework broke the build when the Radix MMU is > disabled at build time, eg: > > (.text+0x264): undefined reference to `.radix__tlbiel_all' > > We could add an empty version, but if we ever called it by accident >

[PATCH v4 0/1] Implements MMIO emulation for lvx/stvx instructions

2018-02-01 Thread Jose Ricardo Ziviani
v4: - Changed KVM_MMIO_REG_VMX to 0xc0 because there are 64 VSX registers v3: - Added Reported-by in the commit message v2: - kvmppc_get_vsr_word_offset() moved back to its original place - EA AND ~0xF, following ISA. - fixed BE/LE cases TESTS: For testing purposes I wrote a small

[PATCH, net] ibmvnic: fix firmware version when no firmware level has been provided by the VIOS server

2018-02-01 Thread Desnes Augusto Nunes do Rosario
Older versions of VIOS servers do not send the firmware level in the VPD buffer for the ibmvnic driver. Thus, not only the current message is mis- leading but the firmware version in the ethtool will be NULL. Therefore, this patch fixes the firmware string and its warning. Fixes: 4e6759be28e4

[PATCH v5 0/1] Implements MMIO emulation for lvx/stvx instructions

2018-02-01 Thread Jose Ricardo Ziviani
v5: - Fixed the mask off of the effective address v4: - Changed KVM_MMIO_REG_VMX to 0xc0 because there are 64 VSX registers v3: - Added Reported-by in the commit message v2: - kvmppc_get_vsr_word_offset() moved back to its original place - EA AND ~0xF, following ISA. - fixed BE/LE

[PATCH v5 1/1] KVM: PPC: Book3S: Add MMIO emulation for VMX instructions

2018-02-01 Thread Jose Ricardo Ziviani
This patch provides the MMIO load/store vector indexed X-Form emulation. Instructions implemented: lvx: the quadword in storage addressed by the result of EA & 0x___fff0 is loaded into VRT. stvx: the contents of VRS are stored into the quadword in storage addressed by the result of

[RFC] powerpc/mm/pgtable: Split mappings on hot-unplug

2018-02-01 Thread Balbir Singh
This patch splits the a linear mapping if the hot-unplug range is smaller than the mapping size. The code detects if the mapping needs to be split into a smaller size and if so, uses the stop machine infrastructure to map the current linear mapping with a smaller size mapping. Then the requested

[PATCH v11 07/10] mm: Add address parameter to arch_validate_prot()

2018-02-01 Thread Khalid Aziz
A protection flag may not be valid across entire address space and hence arch_validate_prot() might need the address a protection bit is being set on to ensure it is a valid protection flag. For example, sparc processors support memory corruption detection (as part of ADI feature) flag on memory

Re: [PATCH, net] ibmvnic: fix firmware version when no firmware level has been provided by the VIOS server

2018-02-01 Thread David Miller
From: Desnes Augusto Nunes do Rosario Date: Thu, 1 Feb 2018 16:04:30 -0200 > Older versions of VIOS servers do not send the firmware level in the VPD > buffer for the ibmvnic driver. Thus, not only the current message is mis- > leading but the firmware version in the

[PATCH v2] powerpc: pseries: use of_irq_get helper in request_event_sources_irqs

2018-02-01 Thread Rob Herring
Instead of calling both of_irq_parse_one and irq_create_of_mapping, call of_irq_get instead which does essentially the same thing. of_irq_get also calls irq_find_host for deferred probe support, but this should be fine as irq_create_of_mapping also calls that internally. This gets us closer to

[PATCH v4 1/1] KVM: PPC: Book3S: Add MMIO emulation for VMX instructions

2018-02-01 Thread Jose Ricardo Ziviani
This patch provides the MMIO load/store vector indexed X-Form emulation. Instructions implemented: lvx: the quadword in storage addressed by the result of EA & 0x___fff0 is loaded into VRT. stvx: the contents of VRS are stored into the quadword in storage addressed by the result of

Re: [RFC PATCH v2 0/1] of: easier debugging for node life cycle issues

2018-02-01 Thread Steven Rostedt
On Thu, 25 Jan 2018 16:46:06 -0800 Frank Rowand wrote: > The point is that using ftrace means there are use cases for the > debug information where the information will not be available. Note, this email came out when I was traveling. I'm now looking at the code and

[PATCH] powerpc/hotplug/drcinfo: Fix bugs parsing ibm,drc-info structs

2018-02-01 Thread Michael Bringmann
This patch fixes a memory parsing bug when using of_prop_next_u32 calls at the start of a structure. Depending upon the value of "cur" memory pointer argument to of_prop_next_u32, it will or it won't advance the value of the returned memory pointer by the size of one u32. This patch corrects the

[PATCH v11 00/10] Application Data Integrity feature introduced by SPARC M7

2018-02-01 Thread Khalid Aziz
V11 changes: This series is same as v10 and was simply rebased on 4.15 kernel. Can mm maintainers please review patches 2, 7, 8 and 9 which are arch independent, and include/linux/mm.h and mm/ksm.c changes in patch 10 and ack these if everything looks good? SPARC M7 processor adds additional

[PATCH] powerpc/hotplug/drcinfo: Fixes bug with hot-add of CPUs

2018-02-01 Thread Michael Bringmann
This patch fixes a bug matching drc-indexes of CPUs that are being hot-added to a system either individually or by count. This patch inserts a couple of missing checks and parsing code for the new representation of device-tree information provided by the property "ibm,drc-info". Signed-off-by:

Re: [PATCH, net] ibmvnic: fix firmware version when no firmware level has been provided by the VIOS server

2018-02-01 Thread Tyrel Datwyler
On 02/01/2018 10:04 AM, Desnes Augusto Nunes do Rosario wrote: > Older versions of VIOS servers do not send the firmware level in the VPD > buffer for the ibmvnic driver. Thus, not only the current message is mis- > leading but the firmware version in the ethtool will be NULL. Therefore, > this

Re: [PATCH] powerpc/tm: Remove struct thread_info param from tm_reclaim_thread()

2018-02-01 Thread Cyril Bur
On Thu, 2018-02-01 at 15:46 +1100, Michael Ellerman wrote: > Cyril Bur writes: > > > tm_reclaim_thread() doesn't use the parameter anymore, both callers have > > to bother getting it as they have no need for a struct thread_info > > either. > > In future please tell me why

Re: [RFC] powerpc/mm/pgtable: Split mappings on hot-unplug

2018-02-01 Thread Balbir Singh
On Thu, Feb 1, 2018 at 11:48 PM, Balbir Singh wrote: > This patch splits the a linear mapping if the hot-unplug range > is smaller than the mapping size. The code detects if the mapping > needs to be split into a smaller size and if so, uses the stop > machine

Re: [PATCH v5 0/1] Implements MMIO emulation for lvx/stvx instructions

2018-02-01 Thread Paul Mackerras
On Thu, Feb 01, 2018 at 04:15:38PM -0200, Jose Ricardo Ziviani wrote: > v5: > - Fixed the mask off of the effective address > > v4: > - Changed KVM_MMIO_REG_VMX to 0xc0 because there are 64 VSX registers > > v3: > - Added Reported-by in the commit message > > v2: > -

Re: [PATCH v5 1/1] KVM: PPC: Book3S: Add MMIO emulation for VMX instructions

2018-02-01 Thread Paul Mackerras
On Thu, Feb 01, 2018 at 04:15:39PM -0200, Jose Ricardo Ziviani wrote: > This patch provides the MMIO load/store vector indexed > X-Form emulation. > > Instructions implemented: > lvx: the quadword in storage addressed by the result of EA & > 0x___fff0 is loaded into VRT. > > stvx:

Re: [PATCH v11 00/10] Application Data Integrity feature introduced by SPARC M7

2018-02-01 Thread Eric W. Biederman
Khalid Aziz writes: > V11 changes: > This series is same as v10 and was simply rebased on 4.15 kernel. Can > mm maintainers please review patches 2, 7, 8 and 9 which are arch > independent, and include/linux/mm.h and mm/ksm.c changes in patch 10 > and ack these if

Re: [RFC] powerpc/mm/pgtable: Split mappings on hot-unplug

2018-02-01 Thread Bharata B Rao
On Fri, Feb 2, 2018 at 8:38 AM, Balbir Singh wrote: > On Thu, Feb 1, 2018 at 11:48 PM, Balbir Singh > wrote: > > This patch splits the a linear mapping if the hot-unplug range > > is smaller than the mapping size. The code detects if the mapping > >

Re: [PATCH v11 3/3] mm, x86: display pkey in smaps only if arch supports pkeys

2018-02-01 Thread kbuild test robot
Hi Ram, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.15 next-20180201] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH v11 3/3] mm, x86: display pkey in smaps only if arch supports pkeys

2018-02-01 Thread Ram Pai
On Fri, Feb 02, 2018 at 12:27:27PM +0800, kbuild test robot wrote: > Hi Ram, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.15 next-20180201] > [if your patch is applied to the wrong git

Re: [bug report] powerpc/mm/radix: Add tlbflush routines

2018-02-01 Thread Dan Carpenter
On Wed, Jan 31, 2018 at 08:58:50PM -0800, Michael Ellerman wrote: > Dan Carpenter writes: > > > Hello Aneesh Kumar K.V, > > > > The patch 1a472c9dba6b: "powerpc/mm/radix: Add tlbflush routines" > > from Apr 29, 2016, leads to the following static checker warning: > > >

[PATCH] QE: Correct a clerical mistake

2018-02-01 Thread Zhao Qiang
Shift should be TX_SYNC_SHIFT_BASE if mode != COMM_DIR_RX Signed-off-by: Zhao Qiang --- drivers/soc/fsl/qe/ucc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/soc/fsl/qe/ucc.c b/drivers/soc/fsl/qe/ucc.c index c646d87..681f7d4 100644 ---