Re: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver

2019-04-01 Thread Alyssa Rosenzweig
> the userspace definitely doesn't support T624 This is true, yes. Shouldn't be too hard to backport; if there's still interest in Midgard 1st/2nd gen, I suppose I can grab hardware and sort it out... > You probably want a dma_set_mask_and_coherent() call for your 'real' output > address size

Re: [PATCH 06/13] soc/fsl/qbman_portals: add APIs to retrieve the probing status

2019-04-01 Thread Li Yang
On Fri, Mar 29, 2019 at 9:03 AM wrote: > > From: Laurentiu Tudor > > Add a couple of new APIs to check the probing status of the required > cpu bound qman and bman portals: > 'int bman_portals_probed()' and 'int qman_portals_probed()'. > They return the following values. > * 1 if qman/bman

Re: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver

2019-04-01 Thread Robin Murphy
On 01/04/2019 09:24, Neil Armstrong wrote: On 01/04/2019 09:47, Rob Herring wrote: This adds the initial driver for panfrost which supports Arm Mali Midgard and Bifrost family of GPUs. Currently, only the T860 and T760 Midgard GPUs have been tested. v2: - Add GPU reset on job hangs (Tomeu) -

Re: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver

2019-04-01 Thread Robin Murphy
On 01/04/2019 08:47, Rob Herring wrote: This adds the initial driver for panfrost which supports Arm Mali Midgard and Bifrost family of GPUs. Currently, only the T860 and T760 Midgard GPUs have been tested. FWIW, on an antique T624 (Juno) it seems to work no worse than the kbase driver plus

Re: [PATCH v3 1/3] iommu: io-pgtable: Add ARM Mali midgard MMU page table format

2019-04-01 Thread Robin Murphy
On 01/04/2019 08:47, Rob Herring wrote: ARM Mali midgard GPU is similar to standard 64-bit stage 1 page tables, but have a few differences. Add a new format type to represent the format. The input address size is 48-bits and the output address size is 40-bits (and possibly less?). Note that the

Re: [PATCH v2 2/3] drm: Add a drm_gem_objects_lookup helper

2019-04-01 Thread Eric Anholt
Rob Herring writes: > On Mon, Apr 1, 2019 at 8:07 AM Daniel Vetter wrote: >> >> On Mon, Apr 1, 2019 at 9:47 AM Rob Herring wrote: >> > >> > Similar to the single handle drm_gem_object_lookup(), >> > drm_gem_objects_lookup() takes an array of handles and returns an array >> > of GEM objects. >>

Re: [PATCH v2 2/3] drm: Add a drm_gem_objects_lookup helper

2019-04-01 Thread Rob Herring
On Mon, Apr 1, 2019 at 8:07 AM Daniel Vetter wrote: > > On Mon, Apr 1, 2019 at 9:47 AM Rob Herring wrote: > > > > Similar to the single handle drm_gem_object_lookup(), > > drm_gem_objects_lookup() takes an array of handles and returns an array > > of GEM objects. > > > > Cc: Maarten Lankhorst >

Re: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver

2019-04-01 Thread Eric Anholt
Rob Herring writes: > This adds the initial driver for panfrost which supports Arm Mali > Midgard and Bifrost family of GPUs. Currently, only the T860 and > T760 Midgard GPUs have been tested. > > v2: > - Add GPU reset on job hangs (Tomeu) > - Add RuntimePM and devfreq support (Tomeu) > - Fix

Re: [PATCH v2 2/3] drm: Add a drm_gem_objects_lookup helper

2019-04-01 Thread Eric Anholt
Chris Wilson writes: > Quoting Daniel Vetter (2019-04-01 14:06:48) >> On Mon, Apr 1, 2019 at 9:47 AM Rob Herring wrote: >> > +{ >> > + int i, ret = 0; >> > + struct drm_gem_object *obj; >> > + >> > + spin_lock(>table_lock); >> > + >> > + for (i = 0; i < count; i++) { >>

Re: [PATCH v2 0/3] Initial Panfrost driver

2019-04-01 Thread Alyssa Rosenzweig
Nice job! Patches 1-2 are Acked-by: Alyssa Rosenzweig Patch 3 is Reviewed-by: Alyssa Rosenzweig Excited to see this mainlined! ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

[PATCH v2 2/2] dt-bindings: arm-smmu: Add qcom,msm8998-smmu-v2 binding

2019-04-01 Thread Marc Gonzalez
Unused at the moment, just future-proofing the DTS. Signed-off-by: Marc Gonzalez --- Documentation/devicetree/bindings/iommu/arm,smmu.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.txt

[PATCH v2 1/2] arm64: dts: qcom: msm8998: Add ANOC1 SMMU node

2019-04-01 Thread Marc Gonzalez
The MSM8998 ANOC1(*) SMMU services BLSP2, PCIe, UFS, and USB. (*) Aggregate Network-on-Chip #1 Based on the following DTS downstream: https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/arch/arm/boot/dts/qcom/msm-arm-smmu-8998.dtsi?h=LE.UM.1.3.r3.25#n18 Signed-off-by: Marc Gonzalez ---

Re: [PATCH 3/7] gbefb: switch to managed version of the DMA allocator

2019-04-01 Thread Bartlomiej Zolnierkiewicz
On 03/21/2019 11:52 PM, Christoph Hellwig wrote: > gbefb uses managed resources, so it should do the same for DMA > allocations. > > Signed-off-by: Christoph Hellwig Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R Institute Poland Samsung Electronics

Re: 5.1-rc1: mpt init crash in scsi_map_dma, dma_4v_map_sg on sparc64

2019-04-01 Thread Meelis Roos
Still broken in 5.1-rc3. Tried 5.1-rc1 on a bunch of sparcs, this hits all my sparcs with sun4v and mpt scsi. [    2.733263] Fusion MPT base driver 3.04.20 [    2.742995] Copyright (c) 1999-2008 LSI Corporation [    2.743052] Fusion MPT SAS Host driver 3.04.20 [    2.743881] mptbase: ioc0:

Re: [PATCH v2 2/3] drm: Add a drm_gem_objects_lookup helper

2019-04-01 Thread Chris Wilson
Quoting Daniel Vetter (2019-04-01 14:06:48) > On Mon, Apr 1, 2019 at 9:47 AM Rob Herring wrote: > > +{ > > + int i, ret = 0; > > + struct drm_gem_object *obj; > > + > > + spin_lock(>table_lock); > > + > > + for (i = 0; i < count; i++) { > > + /* Check if we

Re: [PATCH v2 2/3] drm: Add a drm_gem_objects_lookup helper

2019-04-01 Thread Daniel Vetter
On Mon, Apr 1, 2019 at 9:47 AM Rob Herring wrote: > > Similar to the single handle drm_gem_object_lookup(), > drm_gem_objects_lookup() takes an array of handles and returns an array > of GEM objects. > > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Sean Paul > Cc: David Airlie > Cc: Daniel

Re: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver

2019-04-01 Thread Neil Armstrong
On 01/04/2019 09:47, Rob Herring wrote: > This adds the initial driver for panfrost which supports Arm Mali > Midgard and Bifrost family of GPUs. Currently, only the T860 and > T760 Midgard GPUs have been tested. > > v2: > - Add GPU reset on job hangs (Tomeu) > - Add RuntimePM and devfreq support

RE: [PATCH 02/13] soc/fsl/bman: map FBPR area in the iommu

2019-04-01 Thread Laurentiu Tudor
Hi Leo, > -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Friday, March 29, 2019 11:16 PM > > On Fri, Mar 29, 2019 at 9:03 AM wrote: > > > > From: Laurentiu Tudor > > > > Add a one-to-one iommu mapping for bman private data memory (FBPR). > > This is required for

RE: [PATCH 02/13] soc/fsl/bman: map FBPR area in the iommu

2019-04-01 Thread Laurentiu Tudor
Hi Robin, > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Friday, March 29, 2019 4:51 PM > > On 29/03/2019 14:00, laurentiu.tu...@nxp.com wrote: > > From: Laurentiu Tudor > > > > Add a one-to-one iommu mapping for bman private data memory (FBPR). > > This

RE: [PATCH 13/13] dpaa_eth: fix SG frame cleanup

2019-04-01 Thread Laurentiu Tudor
Hi Joakim, > -Original Message- > From: Joakim Tjernlund [mailto:joakim.tjernl...@infinera.com] > Sent: Friday, March 29, 2019 5:25 PM> > > Should this one go stable 4.14/4.19 too? Good point. I also think it makes sense to cc: stable. --- Best Regards, Laurentiu > On Fri, 2019-03-29

RE: [PATCH 01/13] soc/fsl/qman: fixup liodns only on ppc targets

2019-04-01 Thread Laurentiu Tudor
Hi Leo, > -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Friday, March 29, 2019 11:50 PM > To: Laurentiu Tudor > Cc: Netdev ; Madalin-cristian Bucur > ; Roy Pledge ; Camelia > Alexandra Groza ; David Miller > ; Linux IOMMU ; > moderated list:ARM/FREESCALE IMX /

RE: [PATCH 05/13] soc/fsl/bqman: page align iommu mapping sizes

2019-04-01 Thread Laurentiu Tudor
Hi Leo, > -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Saturday, March 30, 2019 12:07 AM > To: Laurentiu Tudor > Cc: Netdev ; Madalin-cristian Bucur > ; Roy Pledge ; Camelia > Alexandra Groza ; David Miller > ; Linux IOMMU ; > moderated list:ARM/FREESCALE IMX /

Re: [PATCH 20/21] arm64: switch copyright boilerplace to SPDX in dma-mapping.c

2019-04-01 Thread Robin Murphy
On 01/04/2019 07:28, Mukesh Ojha wrote: On 3/27/2019 1:34 PM, Christoph Hellwig wrote: Signed-off-by: Christoph Hellwig Acked-by: Robin Murphy ---   arch/arm64/mm/dma-mapping.c | 15 +--   1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/arm64/mm/dma-mapping.c

[PATCH v3 1/3] iommu: io-pgtable: Add ARM Mali midgard MMU page table format

2019-04-01 Thread Rob Herring
ARM Mali midgard GPU is similar to standard 64-bit stage 1 page tables, but have a few differences. Add a new format type to represent the format. The input address size is 48-bits and the output address size is 40-bits (and possibly less?). Note that the later bifrost GPUs follow the standard

[PATCH v2 0/3] Initial Panfrost driver

2019-04-01 Thread Rob Herring
Here's v2 of the panfrost driver. Lots of improvements from the RFC primarily with support for job hangs resetting the GPU and runtime-pm thanks to Tomeu. Several dependencies have been applied already, but the first 2 patches are the remaining dependencies. We need to take the iommu change via

[PATCH v2 2/3] drm: Add a drm_gem_objects_lookup helper

2019-04-01 Thread Rob Herring
Similar to the single handle drm_gem_object_lookup(), drm_gem_objects_lookup() takes an array of handles and returns an array of GEM objects. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Signed-off-by: Rob Herring --- drivers/gpu/drm/drm_gem.c |

Re: [PATCH 20/21] arm64: switch copyright boilerplace to SPDX in dma-mapping.c

2019-04-01 Thread Mukesh Ojha
On 3/27/2019 1:34 PM, Christoph Hellwig wrote: Signed-off-by: Christoph Hellwig Acked-by: Robin Murphy --- arch/arm64/mm/dma-mapping.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index