Re: [PATCH] powerpc/mm: Invalidate subpage_prot() system call on radix platforms

2017-12-01 Thread Aneesh Kumar K.V
On 12/01/2017 04:01 PM, Michael Ellerman wrote: Anshuman Khandual writes: Radix enabled platforms don't support subpage_prot() system calls. But at present the system calls goes through without an error and fails later on while validating expected subpage

Re: [PATCH v4 1/2] livepatch: send a fake signal to all blocking tasks

2017-12-01 Thread Michael Ellerman
Jiri Kosina writes: > On Wed, 15 Nov 2017, Miroslav Benes wrote: >> Live patching consistency model is of LEAVE_PATCHED_SET and >> SWITCH_THREAD. This means that all tasks in the system have to be marked >> one by one as safe to call a new patched function. Safe means when a >>

Re: [PATCH] powerpc/mm: Invalidate subpage_prot() system call on radix platforms

2017-12-01 Thread Michael Ellerman
Anshuman Khandual writes: > Radix enabled platforms don't support subpage_prot() system calls. But > at present the system calls goes through without an error and fails > later on while validating expected subpage accesses. Lets not allow > the system call on powerpc

[PATCH V3 1/9] powerpc/numa: Look up device node in of_get_assoc_arrays()

2017-12-01 Thread Nathan Fontenot
Look up the device node for the associativity array property instead of having it passed in as a parameter. This changes precedes an update in which the calling routines for of_get_assoc_arrays() will not have the device node pointer to pass in. Signed-off-by: Nathan Fontenot

[PATCH V3 5/9] powerpc/numa: Update numa code use walk_drmem_lmbs

2017-12-01 Thread Nathan Fontenot
Update code in powerpc/numa.c to use the walk_drmem_lmbs() routine instead of parsing the device tree directly. This is in anticipation of introducing a new ibm,dynamic-memory-v2 property with a different format. This will allow the numa code to use a single initialization routine per-LMB

[PATCH V3 7/9] powerpc: Move of_drconf_cell struct to asm/drmem.h

2017-12-01 Thread Nathan Fontenot
Now that the powerpc code parses dynamic reconfiguration memory LMB information from the LMB array and not the device tree directly we can move the of_drconf_cell struct to drmem.h where it fits better. In addition, the struct is renamed to of_drconf_cell_v1 in anticipation of upcoming support

[PATCH V3 2/9] powerpc/numa: Look up device node in of_get_usable_memory()

2017-12-01 Thread Nathan Fontenot
Look up the device node for the usable memory property instead of having it passed in as a parameter. This changes precedes an update in which the calling routines for of_get_usable_memory() will not have the device node pointer to pass in. Signed-off-by: Nathan Fontenot

Re: a3b2cb30 broken panic reporting for qemu guests

2017-12-01 Thread Nicholas Piggin
On Fri, 01 Dec 2017 22:11:50 +1100 Michael Ellerman wrote: > David Gibson writes: > > > On Wed, Nov 29, 2017 at 02:23:43PM +1000, Nicholas Piggin wrote: > >> On Wed, 29 Nov 2017 15:06:52 +1100 > >> David Gibson

Re: [PATCH v5 0/3] Prepartion for SR-IOV PowerVM Enablement

2017-12-01 Thread Michael Ellerman
"Bryant G. Ly" writes: > On 11/9/17 8:00 AM, Bryant G. Ly wrote: > >> v1 - Initial patch >> v2 - Addressed Bjorn's comment on creating a highly platform >> dependent global exported symbol. >> v3 - Based patch off linux-ppc/master >> v4 - Using the

[PATCH v2 1/2] powerpc/powernv: Enable tunneled operations

2017-12-01 Thread Philippe Bergheaud
P9 supports PCI tunneled operations (atomics and as_notify). This patch adds support for tunneled operations on powernv, with a new API, to be called by device drivers: pnv_pci_get_tunnel_ind() Tell driver the 16-bit ASN indication used by kernel. pnv_pci_set_tunnel_bar() Tell kernel the

[PATCH v2 5/7] media: rc keymaps: add SPDX identifiers to the code I wrote

2017-12-01 Thread Mauro Carvalho Chehab
As we're now using SPDX identifiers, on the several RC keymap files I wrote, add the proper SPDX, identifying the license I meant. As we're now using the short license, it doesn't make sense to keep the original license text. Also, fix MODULE_LICENSE to identify GPL v2, as this is the minimal

Memory corruption in powerpc guests with virtio_balloon (was Re: [PATCH v3] virtio_balloon: fix deadlock on OOM)

2017-12-01 Thread Michael Ellerman
"Michael S. Tsirkin" writes: > fill_balloon doing memory allocations under balloon_lock > can cause a deadlock when leak_balloon is called from > virtballoon_oom_notify and tries to take same lock. > > To fix, split page allocation and enqueue and do allocations outside the

Re: a3b2cb30 broken panic reporting for qemu guests

2017-12-01 Thread Michael Ellerman
David Gibson writes: > On Wed, Nov 29, 2017 at 02:23:43PM +1000, Nicholas Piggin wrote: >> On Wed, 29 Nov 2017 15:06:52 +1100 >> David Gibson wrote: >> >> > a3b2cb30 "powerpc: Do not call ppc_md.panic in fadump panic notifier" >> >

[GIT PULL] Please pull powerpc/linux.git powerpc-4.15-3 tag

2017-12-01 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.15: The following changes since commit 4d6c51b107cc73b15a377224549aa5593f90df89: powerpc/64s: Fix Power9 DD2.1 logic in DT CPU features (2017-11-22 23:17:01 +1100) are available in the Git repository at:

[PATCH v2 2/2] cxl: read PHB indications from the device tree

2017-12-01 Thread Philippe Bergheaud
Configure the P9 XSL_DSNCTL register with PHB indications found in the device tree, or else use legacy hard-coded values. Signed-off-by: Philippe Bergheaud --- Changelog: v2: New patch. Use the new device tree property "ibm,phb-indications". This patch depends on the

Re: Memory corruption in powerpc guests with virtio_balloon (was Re: [PATCH v3] virtio_balloon: fix deadlock on OOM)

2017-12-01 Thread Michael S. Tsirkin
On Fri, Dec 01, 2017 at 11:31:08PM +1100, Michael Ellerman wrote: > "Michael S. Tsirkin" writes: > > > fill_balloon doing memory allocations under balloon_lock > > can cause a deadlock when leak_balloon is called from > > virtballoon_oom_notify and tries to take same lock. > > >

[PATCH v2 2/4] 44x/fsp2: interrupt handling setup

2017-12-01 Thread Ivan Mikhaylov
* clear out any possible plb6 errors * board interrupt handling setup within l2 reg set * fsp2 parity error setup All those points are needed for correct interrupt handling on board level including error handling report. Reviewed-by: Alistair Popple Signed-off-by: Ivan

[PATCH V2] cxl: Add support for ASB_Notify on POWER9

2017-12-01 Thread Christophe Lombard
The POWER9 core supports a new feature: ASB_Notify which requires the support of the Special Purpose Register: TIDR. The ASB_Notify command, generated by the AFU, will attempt to wake-up the host thread identified by the particular LPID:PID:TID. This patch assign a unique TIDR (thread id) for

[PATCH v2 3/4] 44x/fsp2: tvsense workaround for dd1

2017-12-01 Thread Ivan Mikhaylov
TVSENSE(temperature and voltage sensors) reset is blocked (clock gated) by the POR default of the TVS sleep config bit. As a consequence, TVSENSE will provide erratic sensor values, which may result in spurious (parity) errors recorded in the CMU FIR and leading to erroneous interrupt requests

[PATCH v2 1/4] 44x/fsp2: add fsp2 headers

2017-12-01 Thread Ivan Mikhaylov
add cmu, plbX, l2, ddr3/4, crcs register definitions. add mfcmu, mtcmu functions for indirect access to cmu. add mtl2, mfl2 same for l2 cache core reg set. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.h | 272 + 1 files

Re: [PATCH] powerpc/40x: acadia: Fix the 'interrupt-parent' property

2017-12-01 Thread Fabio Estevam
Hi Michael, On Tue, Oct 17, 2017 at 11:01 AM, Fabio Estevam wrote: > 'interrupts-parent' property does not exist. Fix the typo. > > Fixes: 00f3ca740a9c26 ("powerpc/40x: AMCC PowerPC 405EZ Acadia DTS") > Signed-off-by: Fabio Estevam > --- >

[PATCH v2 4/4] 44x/fsp2: add irq error handlers

2017-12-01 Thread Ivan Mikhaylov
add irq error handlers for cmu, plb, opb, mcue, conf with debug information output in case of problems. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 205 - 1 files changed, 204 insertions(+), 1 deletions(-) diff

[PATCH V3 0/9] powerpc: Support for ibm,dynamic-memory-v2

2017-12-01 Thread Nathan Fontenot
This patch set provides a series of updates to de-couple the LMB information provided in the device tree property from the device tree property format. This eases the ability to support a new format for the dynamic memory property, ibm,dynamic-memory-v2. This series of patches consolidates the

[PATCH V3 3/9] powerpc/numa: Look up associativity array in of_drconf_to_nid_single

2017-12-01 Thread Nathan Fontenot
Look up the associativity arrays in of_drconf_to_nid_single when deriving the nid for a LMB instead of having it passed in as a parameter. Signed-off-by: Nathan Fontenot --- arch/powerpc/mm/numa.c | 40 +--- 1 file changed, 17

[PATCH V3 8/9] powerpc/drmem: Add support for ibm, dynamic-memory-v2 property

2017-12-01 Thread Nathan Fontenot
The Power Hypervisor has introduced a new device tree format for the property describing the dynamic reconfiguration LMBs for a system, ibm,dynamic-memory-v2. This new format condenses the size of the property, especially on large memory systems, by reporting sets of LMBs that have the same

[PATCH V3 4/9] powerpc/mm: Separate ibm, dynamic-memory data from DT format

2017-12-01 Thread Nathan Fontenot
We currently have code to parse the dynamic reconfiguration LMB information from the ibm,dynamic-meory device tree property in multiple locations; numa.c, prom.c, and pseries/hotplug-memory.c. In anticipation of adding support for a version 2 of the ibm,dynamic-memory property this patch aims to

[PATCH V3 6/9] powerpc/pseries: Update memory hotplug code to use drmem LMB array

2017-12-01 Thread Nathan Fontenot
Update the pseries memory hotplug code to use the newly added dynamic reconfiguration LMB array. Doing this is required for the upcoming support of version 2 of the dynamic reconfiguration device tree property. In addition, making this change cleans up the code that parses the LMB information as

[PATCH V3 9/9] powerpc: Enable support of ibm,dynamic-memory-v2

2017-12-01 Thread Nathan Fontenot
Add required bits to the architecture vector to enable support of the ibm,dynamic-memory-v2 device tree property. Signed-off-by: Nathan Fontenot --- arch/powerpc/include/asm/firmware.h |3 ++- arch/powerpc/include/asm/prom.h |1 +

Re: Resend: [PATCH V5 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-12-01 Thread Michael Bringmann
See below. On 11/30/2017 01:28 PM, Nathan Fontenot wrote: > On 11/28/2017 05:07 PM, Michael Bringmann wrote: >> pseries/drc-info: Provide parallel routines to convert between >> drc_index and CPU numbers at runtime, using the older device-tree >> properties ("ibm,drc-indexes", "ibm,drc-names",

Re: Resend: [PATCH V5 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-12-01 Thread Michael Bringmann
See below. On 11/30/2017 01:51 PM, Nathan Fontenot wrote: > > > On 11/28/2017 05:07 PM, Michael Bringmann wrote: >> rpadlpar_core.c: Provide parallel routines to search the older device- >> tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" >> and "ibm,drc-power-domains"), or

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-01 Thread Christian Zigotzky
On 30.11.2017 23:42, Bjorn Helgaas wrote: > > 00:11.0 claims to be a PCIe Root Port leading to [bus 05-06]. That > means there's a Link (presumably this A-Link II Express thing), and the > downstream end of the Link *should* be a PCIe Upstream Port on bus 05, > but no such device is visible.  I

[PATCH 1/1]: powerpc: block interrupts when updating TIDR

2017-12-01 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Tue, 28 Nov 2017 13:39:43 -0600 Subject: [PATCH 1/1]: powerpc: block interrupts when updating TIDR clear_thread_tidr() is called in interrupt context as a part of delayed put of the task structure (i.e as a part of timer interrupt). To

[PATCH V6 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-12-01 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,drc-info". Signed-off-by: Michael Bringmann

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-01 Thread Bjorn Helgaas
On Fri, Dec 01, 2017 at 11:08:46PM +0100, Christian Zigotzky wrote: > On 30.11.2017 23:42, Bjorn Helgaas wrote: > > > > 00:11.0 claims to be a PCIe Root Port leading to [bus 05-06]. That > > means there's a Link (presumably this A-Link II Express thing), and the > > downstream end of the Link

[PATCH V6 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-12-01 Thread Michael Bringmann
Several properties in the DRC device tree format are replaced by more compact representations to allow, for example, for the encoding of vast amounts of memory, and or reduced duplication of information in related data structures. "ibm,drc-info": This property, when present, replaces the

[PATCH V6 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-12-01 Thread Michael Bringmann
Firmware Features: Define new bit flag representing the presence of new device tree property "ibm,drc-info". The flag is used to tell the front end processor whether the Linux kernel supports the new property, and by the front end processor to tell the Linux kernel that the new property is

[PATCH V6 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-12-01 Thread Michael Bringmann
rpadlpar_core.c: Provide parallel routines to search the older device- tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,drc-info". The interface to examine the DRC information is changed from a "get" function that returns

[PATCH V6 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-12-01 Thread Michael Bringmann
To: linuxppc-dev@lists.ozlabs.org From: Michael Bringmann Cc: Michael Bringmann Cc: nf...@linux.vnet.ibm.com Subject: [PATCH V6 4/4] powerpc: Enable support for ibm,drc-info devtree property prom_init.c: Enable support for new DRC device tree

[PATCH v1] PCI: Make PCI_SCAN_ALL_PCIE_DEVS work for Root as well as Downstream Ports

2017-12-01 Thread Bjorn Helgaas
From: Bjorn Helgaas PCIe Downstream Ports normally have only a Device 0 below them. To optimize enumeration, we don't scan for other devices *unless* the PCI_SCAN_ALL_PCIE_DEVS flag is set by set by quirks or the "pci=pcie_scan_all" kernel parameter. Previously