Re: Build regressions/improvements in v4.9-rc1

2016-10-17 Thread Geert Uytterhoeven
On Mon, Oct 17, 2016 at 9:21 AM, Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v4.9-rc1[1] compared to v4.8[2]. > [1] http://kisskb.ellerman.id.au/kisskb/head/11053/ (all 262 configs) > [2]

Re: [PATCH 06/10] mm: replace get_user_pages() write/force parameters with gup_flags

2016-10-17 Thread Jesper Nilsson
On Thu, Oct 13, 2016 at 01:20:16AM +0100, Lorenzo Stoakes wrote: > This patch removes the write and force parameters from get_user_pages() and > replaces them with a gup_flags parameter to make the use of FOLL_FORCE > explicit > in callers as use of this flag can result in surprising behaviour

Re: [PATCH 10/10] mm: replace access_process_vm() write parameter with gup_flags

2016-10-17 Thread Jesper Nilsson
On Thu, Oct 13, 2016 at 01:20:20AM +0100, Lorenzo Stoakes wrote: > This patch removes the write parameter from access_process_vm() and replaces > it > with a gup_flags parameter as use of this function previously _implied_ > FOLL_FORCE, whereas after this patch callers explicitly pass this flag.

Re: [PATCH kernel 14/15] vfio/spapr_tce: Export container API for external users

2016-10-17 Thread David Gibson
On Mon, Oct 17, 2016 at 05:06:28PM +1100, Alexey Kardashevskiy wrote: > So far I got one question, below. > > > On 23/09/16 17:12, David Gibson wrote: > > On Wed, Sep 21, 2016 at 04:56:52PM +1000, Alexey Kardashevskiy wrote: > >> On 07/09/16 19:09, Alexey Kardashevskiy wrote: > >>> On 29/08/16

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Michael Ellerman
Balbir Singh writes: > On 17/10/16 23:24, Michael Ellerman wrote: >> That happened because we haven't yet called set_cpu_numa_node() for the >> non-boot >> cpus, because that happens in smp_prepare_cpus(), and >> workqueue_init_early() is called much earlier than that. >>

Re: [PATCH v2] console: Don't prefer first registered if DT specifies stdout-path

2016-10-17 Thread Andreas Schwab
On Okt 17 2016, Paul Burton wrote: > Could you share the device tree from your system? This is the contents of chosen/linux,stdout-path on the systems I have: chosen/linux,stdout-path "/pci@f000/ATY,SnowyParent@10/ATY,Snowy_A@0"

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Tejun Heo
Hello, Michael. On Mon, Oct 17, 2016 at 11:24:34PM +1100, Michael Ellerman wrote: > The bad case (where we hit the BUG_ON I added above) is where we are > creating a wq for node 1. > > In wq_calc_node_cpumask() we do: > > cpumask_and(cpumask, attrs->cpumask,

[PATCH] powerpc: ignore the pkey system calls for now

2016-10-17 Thread Stephen Rothwell
Eliminates warning messages: :1316:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] :1319:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] :1322:2: warning: #warning syscall pkey_free not implemented [-Wcpp] Hopefully we will remember to revert this commit if we

Re: [PATCH kernel 14/15] vfio/spapr_tce: Export container API for external users

2016-10-17 Thread Alexey Kardashevskiy
So far I got one question, below. On 23/09/16 17:12, David Gibson wrote: > On Wed, Sep 21, 2016 at 04:56:52PM +1000, Alexey Kardashevskiy wrote: >> On 07/09/16 19:09, Alexey Kardashevskiy wrote: >>> On 29/08/16 23:27, David Gibson wrote: On Mon, Aug 29, 2016 at 04:35:15PM +1000, Alexey

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Balbir Singh
On 17/10/16 23:24, Michael Ellerman wrote: > Tejun Heo writes: > >> Hello, Michael. >> >> On Tue, Oct 11, 2016 at 10:22:13PM +1100, Michael Ellerman wrote: >>> The oops happens because we're in enqueue_task_fair() and p->se->cfs_rq >>> is NULL. >>> >>> The cfs_rq is NULL

Re: [PATCH v2] console: Don't prefer first registered if DT specifies stdout-path

2016-10-17 Thread Paul Burton
On Sunday, 16 October 2016 20:07:18 BST Andreas Schwab wrote: > On Aug 09 2016, Paul Burton wrote: > > Fix this by not automatically preferring the first registered console if > > one is specified by the device tree. This allows consoles to be > > registered but not

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Michael Ellerman
Tejun Heo writes: > Hello, Michael. > > On Tue, Oct 11, 2016 at 10:22:13PM +1100, Michael Ellerman wrote: >> The oops happens because we're in enqueue_task_fair() and p->se->cfs_rq >> is NULL. >> >> The cfs_rq is NULL because we did set_task_rq(p, 2048), where 2048 is >>

[PATCH -next] KVM: PPC: Book3S HV: Use list_move_tail instead of list_del/list_add_tail

2016-10-17 Thread Wei Yongjun
From: Wei Yongjun Using list_move_tail() instead of list_del() + list_add_tail(). Signed-off-by: Wei Yongjun --- arch/powerpc/kvm/book3s_hv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kvm/book3s_hv.c

[PATCH -next] PCI: layerscape: Remove redundant dev_err call in ls_pcie_probe()

2016-10-17 Thread Wei Yongjun
From: Wei Yongjun There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/pci/host/pci-layerscape.c | 4 +--- 1 file changed, 1

[Patch v5 04/12] irqchip: xilinx: Add support for parent intc

2016-10-17 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebased to v4.9-rc1 Missing

[Patch v5 00/12] microblaze/MIPS/PowerPC: Xilinx intc

2016-10-17 Thread Zubair Lutfullah Kakakhel
Hi, The MIPS based Xilfpga platform uses the axi interrupt controller daisy chained to the MIPS microAptiv cpu interrupt controller. This patch series moves the axi interrupt controller driver out of arch/microblaze to drivers/irqchip and then cleans it up a bit. And then remove another

[Patch v5 02/12] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-10-17 Thread Zubair Lutfullah Kakakhel
The drivers read/write function handling is a bit quirky. And the irqmask is passed directly to the handler. Add a new irqchip struct to pass to the handler and cleanup read/write handling. Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebased to v4.9-rc1

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Tejun Heo
Hello, On Sat, Oct 15, 2016 at 08:48:01PM +1100, Michael Ellerman wrote: > > Hmm... it doesn't reproduce it here and can't see how the commit would > > affect this given that it doesn't really change when the kworker > > kthreads are being created. > > Try turning on CONFIG_DEBUG_PER_CPU_MAPS=y

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Tejun Heo
Hello, Michael. Other NUMA archs are lazy-initializing cpu to node mapping too, so we need to fix it from workqueue side. This also means that we've been getting NUMA node wrong for percpu pools on those archs. Can you please try the following patch and if it resolves the issue, report the

[Patch v5 03/12] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-10-17 Thread Zubair Lutfullah Kakakhel
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebased to v4.9-rc1 Use __func__ in pr_err V3 -> V4 New patch. ---

[Patch v5 01/12] microblaze: irqchip: Move intc driver to irqchip

2016-10-17 Thread Zubair Lutfullah Kakakhel
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Signed-off-by: Zubair Lutfullah Kakakhel --- V4 ->

[Patch v5 09/12] MIPS: xilfpga: Update DT node and specify uart irq

2016-10-17 Thread Zubair Lutfullah Kakakhel
Update the DT node with the UART irq Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 No change --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git

[Patch v5 11/12] MIPS: xilfpga: Add DT node for AXI emaclite

2016-10-17 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has a Xilinx AXI emaclite block. Add the DT node to use it. Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 Removed accidental local-mac-address entry --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts |

[Patch v5 08/12] MIPS: xilfpga: Use Xilinx Interrupt Controller

2016-10-17 Thread Zubair Lutfullah Kakakhel
IRQs from peripherals such as i2c/uart/ethernet come via the AXI Interrupt controller. Select it in Kconfig for xilfpga and add the DT node Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebase to v4.9-rc1 Renamed XILINX_AXI_INTC to XILINX_INTC V3 -> V4 No

[Patch v5 06/12] powerpc/virtex: Use generic xilinx irqchip driver

2016-10-17 Thread Zubair Lutfullah Kakakhel
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Signed-off-by: Zubair Lutfullah Kakakhel --- V5 New patch Tested on virtex440-ml507 using qemu --- arch/powerpc/include/asm/xilinx_intc.h | 2 +-

[Patch v5 05/12] irqchip: xilinx: Try to fall back if xlnx, kind-of-intr not provided

2016-10-17 Thread Zubair Lutfullah Kakakhel
The powerpc dts file upstream does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Signed-off-by: Zubair Lutfullah Kakakhel

[Patch v5 07/12] MIPS: xilfpga: Use irqchip instead of the legacy way

2016-10-17 Thread Zubair Lutfullah Kakakhel
This prepares the code use the Xilinx Interrupt Controller driver now available in drivers/irqchip Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Better commit message V3 -> V4 Corrected commit message. Was irq-xilinx.c. Now irq-axi-intc.c V2 -> V3 No change

[Patch v5 10/12] MIPS: xilfpga: Add DT node for AXI I2C

2016-10-17 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has an AXI I2C Bus master with a temperature sensor connected to it. Add the device tree node to use them. Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 changed compatible string from "adt7420" to "adi,adt7420" V2 -> V3 No change V1 ->

[Patch v5 12/12] MIPS: xilfpga: Update defconfig

2016-10-17 Thread Zubair Lutfullah Kakakhel
Update defconfig to enable emaclite, i2c, temp sensor found on the xilfpga platform Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 No change --- arch/mips/configs/xilfpga_defconfig | 37