RE: [PATCH] net: ethernet: fs-enet: remove casting dma_alloc_coherent

2020-12-11 Thread David Laight
From: Christophe Leroy > Sent: 11 December 2020 15:22 > > Le 11/12/2020 à 09:52, Xu Wang a écrit : > > Remove casting the values returned by dma_alloc_coherent. > > Can you explain more in the commit log ? > > As far as I can see, dma_alloc_coherent() doesn't return __iomem, and > ring_base mem

RE: [PATCH] net: ethernet: fs-enet: remove casting dma_alloc_coherent

2020-12-11 Thread David Laight
From: Christophe Leroy > Sent: 11 December 2020 16:43 > > Le 11/12/2020 à 17:07, David Laight a écrit : > > From: Christophe Leroy > >> Sent: 11 December 2020 15:22 > >> > >> Le 11/12/2020 à 09:52, Xu Wang a écrit : > >>> Remove casting the values returned by dma_alloc_coherent. > >> > >> Can you

Re: [RFC HACK PATCH] PCI: dwc: layerscape: Hack around enumeration problems with Honeycomb LX2K

2020-12-11 Thread Daniel Thompson
On Fri, Dec 11, 2020 at 08:37:40AM -0600, Rob Herring wrote: > On Fri, Dec 11, 2020 at 6:15 AM Daniel Thompson > wrote: > > > > I have been chasing down a problem enumerating an NVMe drive on a > > Honeycomb LX2K (NXP LX2160A). Specifically the drive can only enumerate > > successfully if the we a

Re: [PATCH] net: ethernet: fs-enet: remove casting dma_alloc_coherent

2020-12-11 Thread Christophe Leroy
Le 11/12/2020 à 17:07, David Laight a écrit : From: Christophe Leroy Sent: 11 December 2020 15:22 Le 11/12/2020 à 09:52, Xu Wang a écrit : Remove casting the values returned by dma_alloc_coherent. Can you explain more in the commit log ? As far as I can see, dma_alloc_coherent() doesn't

Re: [PATCH] powerpc/mm: Refactor the floor/ceiling check in hugetlb range freeing functions

2020-12-11 Thread Qian Cai
BUG at arch/powerpc/mm/book3s64/pgtable.c:387! [ 7703.158306][ C99] Oops: Exception in kernel mode, sig: 5 [#1] [ 7703.158330][ C99] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=256 NUMA PowerNV [ 7703.158343][ C99] Modules linked in: vfio_pci vfio_virqfd vfio_iommu_spapr_tce vfio vfio_sp

[RFC PATCH v1] powerpc/net: Implement eBPF on PPC32

2020-12-11 Thread Christophe Leroy
This first draft of eBPF for PPC32. This is still dirty WIP. Don't pay too much attention on comments, most of them are copied as is from PPC64 implementation. Test result: test_bpf: Summary: 378 PASSED, 0 FAILED, [332/366 JIT'ed] Registers mapping: [BPF_REG_0] = r21-r22

Re: [PATCH] net: ethernet: fs-enet: remove casting dma_alloc_coherent

2020-12-11 Thread Christophe Leroy
Le 11/12/2020 à 09:52, Xu Wang a écrit : Remove casting the values returned by dma_alloc_coherent. Can you explain more in the commit log ? As far as I can see, dma_alloc_coherent() doesn't return __iomem, and ring_base member is __iomem Christophe Signed-off-by: Xu Wang --- drivers

[PATCH] powerpc/memhotplug: quieting some DLPAR operations

2020-12-11 Thread Laurent Dufour
When attempting to remove by index a set of LMB a lot of messages are displayed on the console, even when everything goes fine: pseries-hotplug-mem: Attempting to hot-remove LMB, drc index 802d Offlined Pages 4096 pseries-hotplug-mem: Memory at 2d000 was hot-removed The 2 messages pref

Re: [RFC HACK PATCH] PCI: dwc: layerscape: Hack around enumeration problems with Honeycomb LX2K

2020-12-11 Thread Rob Herring
On Fri, Dec 11, 2020 at 6:15 AM Daniel Thompson wrote: > > I have been chasing down a problem enumerating an NVMe drive on a > Honeycomb LX2K (NXP LX2160A). Specifically the drive can only enumerate > successfully if the we are emitting lots of console messages via a UART. > If the system is boote

[RFC HACK PATCH] PCI: dwc: layerscape: Hack around enumeration problems with Honeycomb LX2K

2020-12-11 Thread Daniel Thompson
I have been chasing down a problem enumerating an NVMe drive on a Honeycomb LX2K (NXP LX2160A). Specifically the drive can only enumerate successfully if the we are emitting lots of console messages via a UART. If the system is booted with `quiet` set then enumeration fails. I guessed this would b

[PATCH] ASoC: fsl: imx-hdmi: Fix an uninitialized return in probe

2020-12-11 Thread Dan Carpenter
The "ret" variable should be set to a negative error code but currently it returns uninitialized stack data. Fixes: 6a5f850aa83a ("ASoC: fsl: Add imx-hdmi machine driver") Signed-off-by: Dan Carpenter --- sound/soc/fsl/imx-hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/

Re: [PATCH v1 1/2] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE (nested case only)

2020-12-11 Thread Bharata B Rao
On Mon, Oct 19, 2020 at 04:56:41PM +0530, Bharata B Rao wrote: > Implements H_RPT_INVALIDATE hcall and supports only nested case > currently. > > A KVM capability KVM_CAP_RPT_INVALIDATE is added to indicate the > support for this hcall. As Paul mentioned in the thread, this hcall does both proces

[powerpc/merge] System crash during cpu offline/online operation

2020-12-11 Thread Sachin Sant
I am observing system crash during a cpu offline/online operation with latest merge branch code running in a PowerVM LPAR (P8 onwards) # uname -r 5.10.0-rc7-01792-g244569c777ca # ppc64_cpu --smt=1 [ 244.205194] cpu 1 (hwid 1) Ready to die… ……… ……... [ 247.015113] cpu 30 (hwid 30) Ready to die...

[PATCH] net: ethernet: fs-enet: remove casting dma_alloc_coherent

2020-12-11 Thread Xu Wang
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/net/ethernet/freescale/fs_enet/mac-fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-fec.c b/drivers/net/ethernet/freescale/fs_enet/mac

[PATCH] net: fs_enet: remove casting dma_alloc_coherent

2020-12-11 Thread Xu Wang
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/net/ethernet/freescale/fs_enet/mac-fcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c b/drivers/net/ethernet/freescale/fs_enet/mac

Re: [PATCH v2 07/13] powerpc: Increase NR_IRQS range to support more KVM guests

2020-12-11 Thread Cédric Le Goater
On 12/11/20 12:51 AM, Michael Ellerman wrote: > Cédric Le Goater writes: >> PowerNV systems can handle up to 4K guests and 1M interrupt numbers >> per chip. Increase the range of allowed interrupts to support a larger >> number of guests. >> >> Reviewed-by: Greg Kurz >> Signed-off-by: Cédric Le G