Re: [PATCH kernel] KVM: PPC: Avoid mapping compound pages to TCEs in real mode

2018-09-02 Thread David Gibson
On Mon, Sep 03, 2018 at 03:15:29PM +1000, Paul Mackerras wrote: > On Mon, Sep 03, 2018 at 01:28:44PM +1000, David Gibson wrote: > > On Fri, Aug 31, 2018 at 04:08:50PM +1000, Alexey Kardashevskiy wrote: > > > At the moment the real mode handler of H_PUT_TCE calls iommu_tce_xchg_rm() > > > which in

Re: [PATCH kernel] KVM: PPC: Avoid mapping compound pages to TCEs in real mode

2018-09-02 Thread Paul Mackerras
On Mon, Sep 03, 2018 at 01:28:44PM +1000, David Gibson wrote: > On Fri, Aug 31, 2018 at 04:08:50PM +1000, Alexey Kardashevskiy wrote: > > At the moment the real mode handler of H_PUT_TCE calls iommu_tce_xchg_rm() > > which in turn reads the old TCE and if it was a valid entry - marks > > the

Re: [PATCH v7 1/4] gpiolib: Pass bitmaps, not integer arrays, to get/set array

2018-09-02 Thread Matthew Wilcox
> +++ b/drivers/auxdisplay/hd44780.c > @@ -62,17 +62,12 @@ static void hd44780_strobe_gpio(struct hd44780 *hd) > /* write to an LCD panel register in 8 bit GPIO mode */ > static void hd44780_write_gpio8(struct hd44780 *hd, u8 val, unsigned int rs) > { > - int values[10]; /* for DATA[0-7],

Re: [PATCH kernel] KVM: PPC: Avoid mapping compound pages to TCEs in real mode

2018-09-02 Thread David Gibson
On Fri, Aug 31, 2018 at 04:08:50PM +1000, Alexey Kardashevskiy wrote: > At the moment the real mode handler of H_PUT_TCE calls iommu_tce_xchg_rm() > which in turn reads the old TCE and if it was a valid entry - marks > the physical page dirty if it was mapped for writing. Since it is > the real

Re: [PATCH] powerpc/powernv: Make possible for user to force a full ipl cec reboot

2018-09-02 Thread Andrew Donnellan
On 01/09/18 18:17, Vaibhav Jain wrote: Ever since fast reboot is enabled by default in opal, opal_cec_reboot() will use fast-reset instead of full IPL to perform system reboot. This leaves the user with no direct way to force a full IPL reboot except changing an nvram setting that persistently

RE: [PATCH 3/5] drivers: clk-qoriq: Add clockgen support for lx2160a

2018-09-02 Thread Andy Tang
Hi Scott, Please see my replay in line. > -Original Message- > From: Linuxppc-dev > On > Behalf Of Scott Wood > Sent: 2018年9月1日 4:29 > To: Andy Tang ; Vabhav Sharma > ; linux-ker...@vger.kernel.org; > devicet...@vger.kernel.org; robh...@kernel.org; > mark.rutl...@arm.com;

Re: [PATCH] powerpc/powernv: Make possible for user to force a full ipl cec reboot

2018-09-02 Thread Vaibhav Jain
Thanks for looking into this patch Nick, Nicholas Piggin writes: > This is nice but I wonder if the default should be IPL and fast > should be the option. Fast-reset should work most of the times so I think it should be default. Its also the current default which I am bit relunctant to change.

[PATCH AUTOSEL 4.4 12/47] perf tools: Allow overriding MAX_NR_CPUS at compile time

2018-09-02 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 21b8732eb4479b579bda9ee38e62b2c312c2a0e5 ] After update of kernel, the perf tool doesn't run anymore on my 32MB RAM powerpc board, but still runs on a 128MB RAM board: ~# strace perf execve("/usr/sbin/perf", ["perf"], [/* 12 vars */]) = -1 ENOMEM

[PATCH AUTOSEL 4.9 14/62] perf tools: Allow overriding MAX_NR_CPUS at compile time

2018-09-02 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 21b8732eb4479b579bda9ee38e62b2c312c2a0e5 ] After update of kernel, the perf tool doesn't run anymore on my 32MB RAM powerpc board, but still runs on a 128MB RAM board: ~# strace perf execve("/usr/sbin/perf", ["perf"], [/* 12 vars */]) = -1 ENOMEM

[PATCH AUTOSEL 4.14 29/89] perf tools: Allow overriding MAX_NR_CPUS at compile time

2018-09-02 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 21b8732eb4479b579bda9ee38e62b2c312c2a0e5 ] After update of kernel, the perf tool doesn't run anymore on my 32MB RAM powerpc board, but still runs on a 128MB RAM board: ~# strace perf execve("/usr/sbin/perf", ["perf"], [/* 12 vars */]) = -1 ENOMEM

[PATCH AUTOSEL 4.18 044/131] perf tools: Allow overriding MAX_NR_CPUS at compile time

2018-09-02 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 21b8732eb4479b579bda9ee38e62b2c312c2a0e5 ] After update of kernel, the perf tool doesn't run anymore on my 32MB RAM powerpc board, but still runs on a 128MB RAM board: ~# strace perf execve("/usr/sbin/perf", ["perf"], [/* 12 vars */]) = -1 ENOMEM

[PATCH RFC] powerpc/kernel: Don't check for dev->dma_mask in fsl_set_dma_mask

2018-09-02 Thread Darren Stevens
To enable use of dma to all ram on a corenet generic system, we add the function fsl_pci_dma_set_mask, and link it into the ppc.md structure. But this function checks for the presence of dev->dma_mask and dma_ops at entry, and fails if one or other are missing. Powerpc's dma_set_mask (which it