* [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs @ 2016-11-18 2:44 Robert Nelson [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 2:44 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Robert Nelson, Julien, Christian Gmeiner, Russell King, Lucas Stach, Nishanth Menon, Tomi Valkeinen Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> --- Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt | 1 + drivers/gpu/drm/etnaviv/etnaviv_drv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt b/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt index ed5e0a7..9fa259d 100644 --- a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +++ b/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt @@ -8,6 +8,7 @@ Required properties: - compatible: Should be one of "fsl,imx-gpu-subsystem" "marvell,dove-gpu-subsystem" + "ti,gc320-gpu-subsystem" - cores: Should contain a list of phandles pointing to Vivante GPU devices example: diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index a6799b0..ce51270 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -653,6 +653,7 @@ static int etnaviv_pdev_remove(struct platform_device *pdev) static const struct of_device_id dt_match[] = { { .compatible = "fsl,imx-gpu-subsystem" }, { .compatible = "marvell,dove-gpu-subsystem" }, + { .compatible = "ti,gc320-gpu-subsystem" }, {} }; MODULE_DEVICE_TABLE(of, dt_match); -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 25+ messages in thread
[parent not found: <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-11-18 2:44 ` Robert Nelson [not found] ` <20161118024436.13447-2-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:44 ` [RFC 3/6] Documentation: dt: add bindings for ti bb2d Robert Nelson ` (5 subsequent siblings) 6 siblings, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 2:44 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Robert Nelson, Christian Gmeiner, Russell King, Lucas Stach Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> --- drivers/gpu/drm/etnaviv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig index 2cde7a5..b776f41 100644 --- a/drivers/gpu/drm/etnaviv/Kconfig +++ b/drivers/gpu/drm/etnaviv/Kconfig @@ -2,7 +2,7 @@ config DRM_ETNAVIV tristate "ETNAVIV (DRM support for Vivante GPU IP cores)" depends on DRM - depends on ARCH_MXC || ARCH_DOVE + depends on ARCH_MXC || ARCH_DOVE || ARCH_OMAP2PLUS select SHMEM select TMPFS select IOMMU_API -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 25+ messages in thread
[parent not found: <20161118024436.13447-2-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices [not found] ` <20161118024436.13447-2-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-11-18 2:52 ` Nishanth Menon 2016-11-18 16:33 ` Rob Herring 1 sibling, 0 replies; 25+ messages in thread From: Nishanth Menon @ 2016-11-18 2:52 UTC (permalink / raw) To: Robert Nelson, tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Christian Gmeiner, Russell King, Lucas Stach On 11/17/2016 08:44 PM, Robert Nelson wrote: Could we write at least a oneline commit message? :) > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > --- > drivers/gpu/drm/etnaviv/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig > index 2cde7a5..b776f41 100644 > --- a/drivers/gpu/drm/etnaviv/Kconfig > +++ b/drivers/gpu/drm/etnaviv/Kconfig > @@ -2,7 +2,7 @@ > config DRM_ETNAVIV > tristate "ETNAVIV (DRM support for Vivante GPU IP cores)" > depends on DRM > - depends on ARCH_MXC || ARCH_DOVE > + depends on ARCH_MXC || ARCH_DOVE || ARCH_OMAP2PLUS > select SHMEM > select TMPFS > select IOMMU_API > -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices [not found] ` <20161118024436.13447-2-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:52 ` Nishanth Menon @ 2016-11-18 16:33 ` Rob Herring 2016-11-19 11:58 ` Joshua Clayton 1 sibling, 1 reply; 25+ messages in thread From: Rob Herring @ 2016-11-18 16:33 UTC (permalink / raw) To: Robert Nelson Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Christian Gmeiner, Russell King, Lucas Stach On Thu, Nov 17, 2016 at 08:44:32PM -0600, Robert Nelson wrote: > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > --- > drivers/gpu/drm/etnaviv/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig > index 2cde7a5..b776f41 100644 > --- a/drivers/gpu/drm/etnaviv/Kconfig > +++ b/drivers/gpu/drm/etnaviv/Kconfig > @@ -2,7 +2,7 @@ > config DRM_ETNAVIV > tristate "ETNAVIV (DRM support for Vivante GPU IP cores)" > depends on DRM > - depends on ARCH_MXC || ARCH_DOVE > + depends on ARCH_MXC || ARCH_DOVE || ARCH_OMAP2PLUS Why not just drop this line. Then it will get better build testing, too. > select SHMEM > select TMPFS > select IOMMU_API > -- > 2.10.2 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices 2016-11-18 16:33 ` Rob Herring @ 2016-11-19 11:58 ` Joshua Clayton 2016-11-20 11:43 ` Russell King - ARM Linux 0 siblings, 1 reply; 25+ messages in thread From: Joshua Clayton @ 2016-11-19 11:58 UTC (permalink / raw) To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: Rob Herring, Robert Nelson, devicetree-u79uwXL29TY76Z2rM5mHXA, tony-4v6yS6AI5VpBDgjK7y7TUQ, Christian Gmeiner, Russell King, linux-omap-u79uwXL29TY76Z2rM5mHXA, Lucas Stach On Friday, November 18, 2016 10:33:42 AM Rob Herring wrote: > On Thu, Nov 17, 2016 at 08:44:32PM -0600, Robert Nelson wrote: > > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > > CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > > --- > > drivers/gpu/drm/etnaviv/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig > > index 2cde7a5..b776f41 100644 > > --- a/drivers/gpu/drm/etnaviv/Kconfig > > +++ b/drivers/gpu/drm/etnaviv/Kconfig > > @@ -2,7 +2,7 @@ > > config DRM_ETNAVIV > > tristate "ETNAVIV (DRM support for Vivante GPU IP cores)" > > depends on DRM > > - depends on ARCH_MXC || ARCH_DOVE > > + depends on ARCH_MXC || ARCH_DOVE || ARCH_OMAP2PLUS > > Why not just drop this line. Then it will get better build testing, too. > > > select SHMEM > > select TMPFS > > select IOMMU_API > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ...building with ARCH=x86_64 ^ drivers/gpu/drm/etnaviv/etnaviv_gpu.c: In function ‘etnaviv_gpu_init’: drivers/gpu/drm/etnaviv/etnaviv_gpu.c:633:18: error: ‘PHYS_OFFSET’ undeclared (first use in this function) if (dma_mask < PHYS_OFFSET + SZ_2G) ^ drivers/gpu/drm/etnaviv/etnaviv_gpu.c:633:18: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [scripts/Makefile.build:290: drivers/gpu/drm/etnaviv/etnaviv_gpu.o] Error 1 make[3]: *** [scripts/Makefile.build:440: drivers/gpu/drm/etnaviv] Error 2 make[2]: *** [scripts/Makefile.build:440: drivers/gpu/drm] Error 2 make[1]: *** [scripts/Makefile.build:440: drivers/gpu] Error 2 make: *** [Makefile:968: drivers] Error 2 ...looks like this snippit is the only (compile time) problem: 622 /* 623 * Set the GPU linear window to be at the end of the DMA window, where 624 * the CMA area is likely to reside. This ensures that we are able to 625 * map the command buffers while having the linear window overlap as 626 * much RAM as possible, so we can optimize mappings for other buffers. 627 * 628 * For 3D cores only do this if MC2.0 is present, as with MC1.0 it leads 629 * to different views of the memory on the individual engines. 630 */ 631 if (!(gpu->identity.features & chipFeatures_PIPE_3D) || 632 (gpu->identity.minor_features0 & chipMinorFeatures0_MC20)) { 633 u32 dma_mask = (u32)dma_get_required_mask(gpu->dev); 634 if (dma_mask < PHYS_OFFSET + SZ_2G) 635 gpu->memory_base = PHYS_OFFSET; 636 else 637 gpu->memory_base = dma_mask - SZ_2G + 1; 638 } Joshua -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices 2016-11-19 11:58 ` Joshua Clayton @ 2016-11-20 11:43 ` Russell King - ARM Linux 0 siblings, 0 replies; 25+ messages in thread From: Russell King - ARM Linux @ 2016-11-20 11:43 UTC (permalink / raw) To: Joshua Clayton Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring, Robert Nelson, devicetree-u79uwXL29TY76Z2rM5mHXA, tony-4v6yS6AI5VpBDgjK7y7TUQ, Christian Gmeiner, linux-omap-u79uwXL29TY76Z2rM5mHXA, Lucas Stach On Sat, Nov 19, 2016 at 03:58:15AM -0800, Joshua Clayton wrote: > On Friday, November 18, 2016 10:33:42 AM Rob Herring wrote: > > On Thu, Nov 17, 2016 at 08:44:32PM -0600, Robert Nelson wrote: > > > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > > > CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > > > --- > > > drivers/gpu/drm/etnaviv/Kconfig | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig > > > index 2cde7a5..b776f41 100644 > > > --- a/drivers/gpu/drm/etnaviv/Kconfig > > > +++ b/drivers/gpu/drm/etnaviv/Kconfig > > > @@ -2,7 +2,7 @@ > > > config DRM_ETNAVIV > > > tristate "ETNAVIV (DRM support for Vivante GPU IP cores)" > > > depends on DRM > > > - depends on ARCH_MXC || ARCH_DOVE > > > + depends on ARCH_MXC || ARCH_DOVE || ARCH_OMAP2PLUS > > > > Why not just drop this line. Then it will get better build testing, too. > > > > > select SHMEM > > > select TMPFS > > > select IOMMU_API > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > ...building with ARCH=x86_64 > ^ > drivers/gpu/drm/etnaviv/etnaviv_gpu.c: In function ‘etnaviv_gpu_init’: > drivers/gpu/drm/etnaviv/etnaviv_gpu.c:633:18: error: ‘PHYS_OFFSET’ undeclared (first use in this function) > if (dma_mask < PHYS_OFFSET + SZ_2G) > ^ > drivers/gpu/drm/etnaviv/etnaviv_gpu.c:633:18: note: each undeclared identifier is reported only once for each function it appears in ... and that's why we don't drop the dependency, although changing it to "depends on ARM" will open it up to wider build testing on other ARM platforms, I don't think that gains very much. The issue is that the command buffers must be located within the first 2GB of GPU virtual address space, and that space can only be translated (offset). What the code here is trying to do is to locate the 2GB of virtual address space such that it overlaps the CMA region if RAM is bigger than 2GB, or covers all of the RAM if not. For that, we need to know where physical RAM starts. I guess we could replace PHYS_OFFSET with virt_to_phys(PAGE_OFFSET) here instead, which would be more arch-portable - although that would be assuming there's no (system?) IOMMU between memory and the GPU. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* [RFC 3/6] Documentation: dt: add bindings for ti bb2d [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:44 ` [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices Robert Nelson @ 2016-11-18 2:44 ` Robert Nelson [not found] ` <20161118024436.13447-3-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:44 ` [RFC 4/6] ARM: dts: dra7: add entry for bb2d module Robert Nelson ` (4 subsequent siblings) 6 siblings, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 2:44 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Gowtham Tammana, Tomi Valkeinen From: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> Add documentation for device tree bindings description for 2D GPU blitter module present in Texas Instruments family of SoCs. Signed-off-by: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> --- Documentation/devicetree/bindings/gpu/ti-bb2d.txt | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/ti-bb2d.txt diff --git a/Documentation/devicetree/bindings/gpu/ti-bb2d.txt b/Documentation/devicetree/bindings/gpu/ti-bb2d.txt new file mode 100644 index 0000000..af47488 --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/ti-bb2d.txt @@ -0,0 +1,27 @@ +* Texas Instruments BB2D blitter module + +This binding describes the 2D BitBlit (BB2D) graphics accelerator +subsystem based on the GC320 core from Vivante Corporation available +in Texas Instruments SoCs. + +Required properties: + - compatible: value should take the following format: + "ti,<soc>-bb2d", "vivante,<gpuversion>" + accepted values: + (a) "ti,dra7-bb2d", "vivante,gc320" for TI DRA7xx / AM57x + + - reg : base address and length of BB2D IP registers + - interrupts : BB2D interrupt line number + - ti,hwmods : name of the hwmod associated with BB2D module + - clocks : handle to BB2D functional clock + - clock-names : fclk + +Example for DRA7x SoC: + bb2d: bb2d@59000000 { + compatible = "ti,dra7-bb2d", "vivante,gc320"; + reg = <0x59000000 0x0700>; + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; + ti,hwmods = "bb2d"; + clocks = <&dpll_core_h24x2_ck>; + clock-names = "fclk"; + }; -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 25+ messages in thread
[parent not found: <20161118024436.13447-3-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [RFC 3/6] Documentation: dt: add bindings for ti bb2d [not found] ` <20161118024436.13447-3-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-11-18 2:54 ` Nishanth Menon 0 siblings, 0 replies; 25+ messages in thread From: Nishanth Menon @ 2016-11-18 2:54 UTC (permalink / raw) To: Robert Nelson, tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Gowtham Tammana, Tomi Valkeinen On 11/17/2016 08:44 PM, Robert Nelson wrote: > From: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> > > Add documentation for device tree bindings description for > 2D GPU blitter module present in Texas Instruments family of SoCs. > > Signed-off-by: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> > Signed-off-by: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> > --- Might want to point at the source of the patch -> just for the record, this came from TI vendor kernel.. > Documentation/devicetree/bindings/gpu/ti-bb2d.txt | 27 +++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpu/ti-bb2d.txt > > diff --git a/Documentation/devicetree/bindings/gpu/ti-bb2d.txt b/Documentation/devicetree/bindings/gpu/ti-bb2d.txt > new file mode 100644 > index 0000000..af47488 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpu/ti-bb2d.txt > @@ -0,0 +1,27 @@ > +* Texas Instruments BB2D blitter module > + > +This binding describes the 2D BitBlit (BB2D) graphics accelerator > +subsystem based on the GC320 core from Vivante Corporation available > +in Texas Instruments SoCs. > + > +Required properties: > + - compatible: value should take the following format: > + "ti,<soc>-bb2d", "vivante,<gpuversion>" > + accepted values: > + (a) "ti,dra7-bb2d", "vivante,gc320" for TI DRA7xx / AM57x > + > + - reg : base address and length of BB2D IP registers > + - interrupts : BB2D interrupt line number > + - ti,hwmods : name of the hwmod associated with BB2D module > + - clocks : handle to BB2D functional clock > + - clock-names : fclk > + > +Example for DRA7x SoC: > + bb2d: bb2d@59000000 { > + compatible = "ti,dra7-bb2d", "vivante,gc320"; > + reg = <0x59000000 0x0700>; > + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; > + ti,hwmods = "bb2d"; > + clocks = <&dpll_core_h24x2_ck>; > + clock-names = "fclk"; > + }; > -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* [RFC 4/6] ARM: dts: dra7: add entry for bb2d module [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:44 ` [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices Robert Nelson 2016-11-18 2:44 ` [RFC 3/6] Documentation: dt: add bindings for ti bb2d Robert Nelson @ 2016-11-18 2:44 ` Robert Nelson [not found] ` <20161118024436.13447-4-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:44 ` [RFC 5/6] ARM: dts: dra7: add vivante " Robert Nelson ` (3 subsequent siblings) 6 siblings, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 2:44 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Gowtham Tammana, Tomi Valkeinen From: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> BB2D entry is added to the dts file. Crossbar index number is used for interrupt mapping. Signed-off-by: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/dra7.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index addb753..43488b6 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -959,6 +959,16 @@ ti,hwmods = "dmm"; }; + bb2d: bb2d@59000000 { + compatible = "ti,dra7-bb2d"; + reg = <0x59000000 0x0700>; + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; + ti,hwmods = "bb2d"; + clocks = <&dpll_core_h24x2_ck>; + clock-names = "fclk"; + status = "disabled"; + }; + i2c1: i2c@48070000 { compatible = "ti,omap4-i2c"; reg = <0x48070000 0x100>; -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 25+ messages in thread
[parent not found: <20161118024436.13447-4-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [RFC 4/6] ARM: dts: dra7: add entry for bb2d module [not found] ` <20161118024436.13447-4-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-11-18 10:59 ` Lucas Stach [not found] ` <1479466741.20533.5.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 0 siblings, 1 reply; 25+ messages in thread From: Lucas Stach @ 2016-11-18 10:59 UTC (permalink / raw) To: Robert Nelson Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Gowtham Tammana, Tomi Valkeinen Am Donnerstag, den 17.11.2016, 20:44 -0600 schrieb Robert Nelson: > From: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> > > BB2D entry is added to the dts file. Crossbar index number is used > for interrupt mapping. > > Signed-off-by: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> > Signed-off-by: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> > --- > arch/arm/boot/dts/dra7.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi > index addb753..43488b6 100644 > --- a/arch/arm/boot/dts/dra7.dtsi > +++ b/arch/arm/boot/dts/dra7.dtsi > @@ -959,6 +959,16 @@ > ti,hwmods = "dmm"; > }; > > + bb2d: bb2d@59000000 { > + compatible = "ti,dra7-bb2d"; > + reg = <0x59000000 0x0700>; > + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; > + ti,hwmods = "bb2d"; > + clocks = <&dpll_core_h24x2_ck>; > + clock-names = "fclk"; "fclk" is not an accepted clock name for the etnaviv driver. It supports up to 3 clocks: "bus", "core" and "shader". If there is only one clock required in your design it would probably be the "core" clock. Regards, Lucas -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <1479466741.20533.5.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* Re: [RFC 4/6] ARM: dts: dra7: add entry for bb2d module [not found] ` <1479466741.20533.5.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2016-11-18 13:56 ` Nishanth Menon 0 siblings, 0 replies; 25+ messages in thread From: Nishanth Menon @ 2016-11-18 13:56 UTC (permalink / raw) To: Lucas Stach, Robert Nelson Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Gowtham Tammana, Tomi Valkeinen, Tero Kristo On 11/18/2016 04:59 AM, Lucas Stach wrote: > Am Donnerstag, den 17.11.2016, 20:44 -0600 schrieb Robert Nelson: >> From: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> >> >> BB2D entry is added to the dts file. Crossbar index number is used >> for interrupt mapping. >> >> Signed-off-by: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org> >> Signed-off-by: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> >> --- >> arch/arm/boot/dts/dra7.dtsi | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi >> index addb753..43488b6 100644 >> --- a/arch/arm/boot/dts/dra7.dtsi >> +++ b/arch/arm/boot/dts/dra7.dtsi >> @@ -959,6 +959,16 @@ >> ti,hwmods = "dmm"; >> }; >> >> + bb2d: bb2d@59000000 { >> + compatible = "ti,dra7-bb2d"; >> + reg = <0x59000000 0x0700>; >> + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; >> + ti,hwmods = "bb2d"; >> + clocks = <&dpll_core_h24x2_ck>; >> + clock-names = "fclk"; > > "fclk" is not an accepted clock name for the etnaviv driver. It supports > up to 3 clocks: "bus", "core" and "shader". If there is only one clock > required in your design it would probably be the "core" clock. fclk is used as a standard for all hwmod (SoC level control library that existed prior to ARM DT-fication, and now slowly being converted to DT). I think the core and bus clock is the same here.. I wonder if something duplicated like the following will fly? clocks = <&dpll_core_h24x2_ck>, <&dpll_core_h24x2_ck> ; clock-names = "fclk", "core"; It might have been better if hwmod clocks were'nt assumed from clock-names.. instead it could have been something like: ti,hwmod-fck-clk-names = "core"; ti,hwmod-ick-clk-names = "bus"; ti,hwmod-ock-clk-names = "shader"; clocks = <&dpll_core_h24x2_ck>, <&clk2>, <&clk3>; clock-names = "core", "bus", "shader"; Tero: ? -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* [RFC 5/6] ARM: dts: dra7: add vivante for bb2d module [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ` (2 preceding siblings ...) 2016-11-18 2:44 ` [RFC 4/6] ARM: dts: dra7: add entry for bb2d module Robert Nelson @ 2016-11-18 2:44 ` Robert Nelson [not found] ` <20161118024436.13447-5-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:44 ` [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv Robert Nelson ` (2 subsequent siblings) 6 siblings, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 2:44 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Robert Nelson, Julien, Nishanth Menon, Tomi Valkeinen Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> --- arch/arm/boot/dts/dra7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 43488b6..22bd0a5 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -960,7 +960,7 @@ }; bb2d: bb2d@59000000 { - compatible = "ti,dra7-bb2d"; + compatible = "ti,dra7-bb2d","vivante,gc"; reg = <0x59000000 0x0700>; interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "bb2d"; -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 25+ messages in thread
[parent not found: <20161118024436.13447-5-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [RFC 5/6] ARM: dts: dra7: add vivante for bb2d module [not found] ` <20161118024436.13447-5-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-11-18 10:55 ` Lucas Stach 0 siblings, 0 replies; 25+ messages in thread From: Lucas Stach @ 2016-11-18 10:55 UTC (permalink / raw) To: Robert Nelson Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Julien, Nishanth Menon, Tomi Valkeinen Am Donnerstag, den 17.11.2016, 20:44 -0600 schrieb Robert Nelson: > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> > CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> > CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> > --- > arch/arm/boot/dts/dra7.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi > index 43488b6..22bd0a5 100644 > --- a/arch/arm/boot/dts/dra7.dtsi > +++ b/arch/arm/boot/dts/dra7.dtsi > @@ -960,7 +960,7 @@ > }; > > bb2d: bb2d@59000000 { > - compatible = "ti,dra7-bb2d"; > + compatible = "ti,dra7-bb2d","vivante,gc"; This is what the driver expects as a compatible, but it's not consistent with the DT documentation patch you sent. As the driver can work out the HW version from the identification registers I would say fix your DT binding to only require "vivante,gc" Regards, Lucas -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ` (3 preceding siblings ...) 2016-11-18 2:44 ` [RFC 5/6] ARM: dts: dra7: add vivante " Robert Nelson @ 2016-11-18 2:44 ` Robert Nelson [not found] ` <20161118024436.13447-6-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:51 ` [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs Robert Nelson 2016-11-18 2:53 ` Nishanth Menon 6 siblings, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 2:44 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Robert Nelson, Julien, Nishanth Menon, Tomi Valkeinen Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> --- arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi index 6df7829..3bc47be 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi @@ -97,6 +97,12 @@ #cooling-cells = <2>; }; + gpu-subsystem { + compatible = "ti,gc320-gpu-subsystem"; + cores = <&bb2d>; + status = "okay"; + }; + hdmi0: connector { compatible = "hdmi-connector"; label = "hdmi"; @@ -190,6 +196,11 @@ >; }; }; + +&bb2d { + status = "okay"; +}; + &i2c1 { status = "okay"; clock-frequency = <400000>; -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 25+ messages in thread
[parent not found: <20161118024436.13447-6-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv [not found] ` <20161118024436.13447-6-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-11-18 2:56 ` Nishanth Menon [not found] ` <e69a797c-bec3-2243-5c19-9d7633092369-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 25+ messages in thread From: Nishanth Menon @ 2016-11-18 2:56 UTC (permalink / raw) To: Robert Nelson, tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Julien, Tomi Valkeinen On 11/17/2016 08:44 PM, Robert Nelson wrote: again.. a short commit message at least please? :) > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> > CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> > CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> > --- > arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi > index 6df7829..3bc47be 100644 > --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi > +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi > @@ -97,6 +97,12 @@ > #cooling-cells = <2>; > }; > > + gpu-subsystem { A) do we want to make things clear that this is gpu subsystem for gc320? B) How about other platforms that could equally reuse? > + compatible = "ti,gc320-gpu-subsystem"; > + cores = <&bb2d>; > + status = "okay"; > + }; > + > hdmi0: connector { > compatible = "hdmi-connector"; > label = "hdmi"; > @@ -190,6 +196,11 @@ > >; > }; > }; > + > +&bb2d { > + status = "okay"; > +}; > + > &i2c1 { > status = "okay"; > clock-frequency = <400000>; > -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <e69a797c-bec3-2243-5c19-9d7633092369-l0cyMroinI0@public.gmane.org>]
* Re: [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv [not found] ` <e69a797c-bec3-2243-5c19-9d7633092369-l0cyMroinI0@public.gmane.org> @ 2016-11-18 3:44 ` Robert Nelson [not found] ` <CAOCHtYiUz1cjYw9nNa4YZGtzNVgSgjEa=4Lqiktz07rszsSksw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2016-11-18 16:42 ` Rob Herring 1 sibling, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 3:44 UTC (permalink / raw) To: Nishanth Menon Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, devicetree, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Julien, Tomi Valkeinen, Lucas Stach, robh-DgEjT+Ai2ygdnm+yROfE0A On Thu, Nov 17, 2016 at 8:56 PM, Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> wrote: > On 11/17/2016 08:44 PM, Robert Nelson wrote: > again.. a short commit message at least please? :) yeah, i'll fix all those. ;) > >> Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> >> CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> >> CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> >> --- >> arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >> b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >> index 6df7829..3bc47be 100644 >> --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >> +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >> @@ -97,6 +97,12 @@ >> #cooling-cells = <2>; >> }; >> >> + gpu-subsystem { > > A) do we want to make things clear that this is gpu subsystem for gc320? > B) How about other platforms that could equally reuse? so the 'gpu-subsystem' comes from etnaviv: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt?id=refs/tags/v4.9-rc5 For a generic name, it's currently only tied to the etnaviv driver: gpu-subsystem { compatible = "fsl,imx-gpu-subsystem"; cores = <&gpu_2d>, <&gpu_3d>; }; it would make sense to make that more generic, so you could tie a 2d vivante and a imgtec/sgx 3d core.. <sad laugh> but that would require adding a imgtec/sgx driver/bindings to the kernel mainline... </sad laugh> > >> + compatible = "ti,gc320-gpu-subsystem"; >> + cores = <&bb2d>; >> + status = "okay"; >> + }; >> + >> hdmi0: connector { >> compatible = "hdmi-connector"; >> label = "hdmi"; >> @@ -190,6 +196,11 @@ >> >; >> }; >> }; >> + >> +&bb2d { >> + status = "okay"; >> +}; >> + >> &i2c1 { >> status = "okay"; >> clock-frequency = <400000>; >> Regards, -- Robert Nelson https://rcn-ee.com/ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <CAOCHtYiUz1cjYw9nNa4YZGtzNVgSgjEa=4Lqiktz07rszsSksw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv [not found] ` <CAOCHtYiUz1cjYw9nNa4YZGtzNVgSgjEa=4Lqiktz07rszsSksw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2016-11-18 4:15 ` Nishanth Menon [not found] ` <3eb346ad-1675-e613-93ef-bd2d07bf2ab8-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 25+ messages in thread From: Nishanth Menon @ 2016-11-18 4:15 UTC (permalink / raw) To: Robert Nelson Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, devicetree, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Julien, Tomi Valkeinen, Lucas Stach, robh-DgEjT+Ai2ygdnm+yROfE0A On 11/17/2016 09:44 PM, Robert Nelson wrote: > On Thu, Nov 17, 2016 at 8:56 PM, Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> wrote: >> On 11/17/2016 08:44 PM, Robert Nelson wrote: >> again.. a short commit message at least please? :) > > yeah, i'll fix all those. ;) > >> >>> Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> >>> CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> >>> CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> >>> --- >>> arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 11 +++++++++++ >>> 1 file changed, 11 insertions(+) >>> >>> diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>> b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>> index 6df7829..3bc47be 100644 >>> --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>> +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>> @@ -97,6 +97,12 @@ >>> #cooling-cells = <2>; >>> }; >>> >>> + gpu-subsystem { >> >> A) do we want to make things clear that this is gpu subsystem for gc320? >> B) How about other platforms that could equally reuse? > > so the 'gpu-subsystem' comes from etnaviv: > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt?id=refs/tags/v4.9-rc5 > > For a generic name, it's currently only tied to the etnaviv driver: > I was only complaining about "gpu-subsystem {", not the compatible. it is not the only gpu subsystem on the SoC. either "gpu-subsystem0 {" or something like gpu-subsystem-gc320 might be helpful to clarify. > gpu-subsystem { > compatible = "fsl,imx-gpu-subsystem"; > cores = <&gpu_2d>, <&gpu_3d>; > }; > > it would make sense to make that more generic, so you could tie a 2d > vivante and a imgtec/sgx 3d core.. <sad laugh> but that would require > adding a imgtec/sgx driver/bindings to the kernel mainline... </sad > laugh> > I should have clarified... I meant other dra7 devices to reuse the same definitions. this definition is not by any means constrained to EVM - it is a SoC definition, it should be moved to appropriate place (convention for dra7 is to mark them as disabled by default in SoC.dtsi to prevent proliferation of paper spin dtsi and just do "status = okay" in board file to indicate presence in the variation for the board). Yes - I guess some day there might be a bunch of folks like etnaviv who might make an community driver possible.. -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <3eb346ad-1675-e613-93ef-bd2d07bf2ab8-l0cyMroinI0@public.gmane.org>]
* Re: [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv [not found] ` <3eb346ad-1675-e613-93ef-bd2d07bf2ab8-l0cyMroinI0@public.gmane.org> @ 2016-11-18 4:26 ` Robert Nelson [not found] ` <CAOCHtYh8QebrYA2ioaXgURdc47QY4x+EwZLBXLLGP1-k7eAMmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 25+ messages in thread From: Robert Nelson @ 2016-11-18 4:26 UTC (permalink / raw) To: Nishanth Menon Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, devicetree, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Julien, Tomi Valkeinen, Lucas Stach, robh-DgEjT+Ai2ygdnm+yROfE0A On Thu, Nov 17, 2016 at 10:15 PM, Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> wrote: > On 11/17/2016 09:44 PM, Robert Nelson wrote: >> >> On Thu, Nov 17, 2016 at 8:56 PM, Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> wrote: >>> >>> On 11/17/2016 08:44 PM, Robert Nelson wrote: >>> again.. a short commit message at least please? :) >> >> >> yeah, i'll fix all those. ;) >> >>> >>>> Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>>> CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>>> CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> >>>> CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> >>>> CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> >>>> --- >>>> arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 11 +++++++++++ >>>> 1 file changed, 11 insertions(+) >>>> >>>> diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>>> b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>>> index 6df7829..3bc47be 100644 >>>> --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>>> +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi >>>> @@ -97,6 +97,12 @@ >>>> #cooling-cells = <2>; >>>> }; >>>> >>>> + gpu-subsystem { >>> >>> >>> A) do we want to make things clear that this is gpu subsystem for gc320? >>> B) How about other platforms that could equally reuse? >> >> >> so the 'gpu-subsystem' comes from etnaviv: >> >> >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt?id=refs/tags/v4.9-rc5 >> >> For a generic name, it's currently only tied to the etnaviv driver: >> > > I was only complaining about "gpu-subsystem {", not the compatible. it is > not the only gpu subsystem on the SoC. either "gpu-subsystem0 {" or > something like gpu-subsystem-gc320 might be helpful to clarify. > >> gpu-subsystem { >> compatible = "fsl,imx-gpu-subsystem"; >> cores = <&gpu_2d>, <&gpu_3d>; >> }; >> >> it would make sense to make that more generic, so you could tie a 2d >> vivante and a imgtec/sgx 3d core.. <sad laugh> but that would require >> adding a imgtec/sgx driver/bindings to the kernel mainline... </sad >> laugh> >> > > I should have clarified... I meant other dra7 devices to reuse the same > definitions. this definition is not by any means constrained to EVM - it is > a SoC definition, it should be moved to appropriate place (convention for > dra7 is to mark them as disabled by default in SoC.dtsi to prevent > proliferation of paper spin dtsi and just do "status = okay" in board file > to indicate presence in the variation for the board). Oh yeah, defintely, we can move gpu-subsystem to the base dra7.dtsi, as the whole dra.dtsi family has a gc320 and then the board device tree can enable it via: &bb2d { status = "okay"; }; Regards, -- Robert Nelson https://rcn-ee.com/ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <CAOCHtYh8QebrYA2ioaXgURdc47QY4x+EwZLBXLLGP1-k7eAMmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv [not found] ` <CAOCHtYh8QebrYA2ioaXgURdc47QY4x+EwZLBXLLGP1-k7eAMmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2016-11-18 4:34 ` Nishanth Menon 0 siblings, 0 replies; 25+ messages in thread From: Nishanth Menon @ 2016-11-18 4:34 UTC (permalink / raw) To: Robert Nelson Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, devicetree, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Julien, Tomi Valkeinen, Lucas Stach, robh-DgEjT+Ai2ygdnm+yROfE0A On 11/17/2016 10:26 PM, Robert Nelson wrote: [...] > Oh yeah, defintely, we can move gpu-subsystem to the base dra7.dtsi, > as the whole dra.dtsi family has a gc320 and then the board device > tree can enable it via: > > &bb2d { > status = "okay"; > }; Yep, thanks. -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv [not found] ` <e69a797c-bec3-2243-5c19-9d7633092369-l0cyMroinI0@public.gmane.org> 2016-11-18 3:44 ` Robert Nelson @ 2016-11-18 16:42 ` Rob Herring 1 sibling, 0 replies; 25+ messages in thread From: Rob Herring @ 2016-11-18 16:42 UTC (permalink / raw) To: Nishanth Menon Cc: Robert Nelson, tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Julien, Tomi Valkeinen On Thu, Nov 17, 2016 at 08:56:18PM -0600, Nishanth Menon wrote: > On 11/17/2016 08:44 PM, Robert Nelson wrote: > again.. a short commit message at least please? :) > > > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> > > CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> > > CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> > > --- > > arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi > > index 6df7829..3bc47be 100644 > > --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi > > +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi > > @@ -97,6 +97,12 @@ > > #cooling-cells = <2>; > > }; > > > > + gpu-subsystem { > A) do we want to make things clear that this is gpu subsystem for gc320? No. > B) How about other platforms that could equally reuse? Better yet, get rid of this nonsense. You are defining a wrapper to group 1 nodes. Yes, I know this is what the driver wants, but you should be able to make it deal with this situation and only have a gc320 node. > > + compatible = "ti,gc320-gpu-subsystem"; > > + cores = <&bb2d>; > > + status = "okay"; > > + }; > > + -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ` (4 preceding siblings ...) 2016-11-18 2:44 ` [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv Robert Nelson @ 2016-11-18 2:51 ` Robert Nelson 2016-11-18 2:53 ` Nishanth Menon 6 siblings, 0 replies; 25+ messages in thread From: Robert Nelson @ 2016-11-18 2:51 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, devicetree Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Robert Nelson, Julien, Christian Gmeiner, Russell King, Lucas Stach, Nishanth Menon, Tomi Valkeinen Sorry, messed up the cover-header, patches 3 & 4 in this series where cherry picked form ti's v4.4.x tree: http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/commit/arch/arm/boot/dts/dra7.dtsi?h=ti-linux-4.4.y&id=8067f5a5619ce45657d3729ab3adb9e5b1294f0d http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/commit/Documentation/devicetree/bindings/gpu/ti-bb2d.txt?h=ti-linux-4.4.y&id=ddadad0828f8e5ad7e89b11dd243249228ff2997 "ti,gc320-gpu-subsystem" seems like the best middle ground option, the gc320 is found on one omap4770, omap5, dra7.. "ti,omap-gpu-subsystem" might clash with the naming for the sgx544 3D core found on these devices, then some day, ti could use "ti,sgx<num>-gpu-subsystem" For BeagleBoard.org & BeagleBoard-x15 users we have this working in the updated images. For people looking to build the packages, i have it up here: https://gist.github.com/RobertCNelson/fc6d07157b0fcc13b9c28c5832fdc74b Regards, On Thu, Nov 17, 2016 at 8:44 PM, Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> > CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> > CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> > --- > Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt | 1 + > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt b/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt > index ed5e0a7..9fa259d 100644 > --- a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt > +++ b/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt > @@ -8,6 +8,7 @@ Required properties: > - compatible: Should be one of > "fsl,imx-gpu-subsystem" > "marvell,dove-gpu-subsystem" > + "ti,gc320-gpu-subsystem" > - cores: Should contain a list of phandles pointing to Vivante GPU devices > > example: > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > index a6799b0..ce51270 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > @@ -653,6 +653,7 @@ static int etnaviv_pdev_remove(struct platform_device *pdev) > static const struct of_device_id dt_match[] = { > { .compatible = "fsl,imx-gpu-subsystem" }, > { .compatible = "marvell,dove-gpu-subsystem" }, > + { .compatible = "ti,gc320-gpu-subsystem" }, > {} > }; > MODULE_DEVICE_TABLE(of, dt_match); > -- > 2.10.2 > -- Robert Nelson https://rcn-ee.com/ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ` (5 preceding siblings ...) 2016-11-18 2:51 ` [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs Robert Nelson @ 2016-11-18 2:53 ` Nishanth Menon [not found] ` <0bf288ee-33bc-c3b5-389f-08d9bb89ccb5-l0cyMroinI0@public.gmane.org> 6 siblings, 1 reply; 25+ messages in thread From: Nishanth Menon @ 2016-11-18 2:53 UTC (permalink / raw) To: Robert Nelson, tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Julien, Christian Gmeiner, Russell King, Lucas Stach, Tomi Valkeinen On 11/17/2016 08:44 PM, Robert Nelson wrote: Could we write at least a oneline commit message? :) Might want to state that since the TI gpu systems are a mixed bunch and certain SoCs may have more than 1 GPU integrated, we indicate clearly the rev here? > Signed-off-by: Robert Nelson <robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Julien <jboulnois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Christian Gmeiner <christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > CC: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > CC: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > CC: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> > CC: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> > CC: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> > --- > Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt | 1 + > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt b/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt > index ed5e0a7..9fa259d 100644 > --- a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt > +++ b/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt > @@ -8,6 +8,7 @@ Required properties: > - compatible: Should be one of > "fsl,imx-gpu-subsystem" > "marvell,dove-gpu-subsystem" > + "ti,gc320-gpu-subsystem" > - cores: Should contain a list of phandles pointing to Vivante GPU devices > > example: > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > index a6799b0..ce51270 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > @@ -653,6 +653,7 @@ static int etnaviv_pdev_remove(struct platform_device *pdev) > static const struct of_device_id dt_match[] = { > { .compatible = "fsl,imx-gpu-subsystem" }, > { .compatible = "marvell,dove-gpu-subsystem" }, > + { .compatible = "ti,gc320-gpu-subsystem" }, > {} > }; > MODULE_DEVICE_TABLE(of, dt_match); > -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <0bf288ee-33bc-c3b5-389f-08d9bb89ccb5-l0cyMroinI0@public.gmane.org>]
* Re: [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs [not found] ` <0bf288ee-33bc-c3b5-389f-08d9bb89ccb5-l0cyMroinI0@public.gmane.org> @ 2016-11-18 12:13 ` Russell King - ARM Linux [not found] ` <20161118121340.GC23750-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org> 0 siblings, 1 reply; 25+ messages in thread From: Russell King - ARM Linux @ 2016-11-18 12:13 UTC (permalink / raw) To: Nishanth Menon Cc: Robert Nelson, tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Julien, Christian Gmeiner, Lucas Stach, Tomi Valkeinen On Thu, Nov 17, 2016 at 08:53:38PM -0600, Nishanth Menon wrote: > >diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > >index a6799b0..ce51270 100644 > >--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > >+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > >@@ -653,6 +653,7 @@ static int etnaviv_pdev_remove(struct platform_device *pdev) > > static const struct of_device_id dt_match[] = { > > { .compatible = "fsl,imx-gpu-subsystem" }, > > { .compatible = "marvell,dove-gpu-subsystem" }, > >+ { .compatible = "ti,gc320-gpu-subsystem" }, We need to get away from this ever-increasing set of compatible strings here, as this is not long-term maintainable. What we should have is a common compatible which describes that the node is compatible with this driver, and then use SoC specific compatible strings later if we need to (eg, because of some GPU subsystem SoC specifics.) So, I'd suggest that we update the documentation and add: "vivante,gc-gpu-subsystem" as a common compatible now, and if necessary move on to more specific compatibles if we need to later. Also, I'd strongly suggest that no compatibles should contain the ID number of the GPU core for exactly the same reason - Vivante GPU cores vary according to features, and we don't want to end up with a long list of specific compatibles (eg) "ti,gc2000-and-gc320-and-gc355-gpu-subsystem" because TI decides to integrate a 3d, 2d and VG core. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <20161118121340.GC23750-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org>]
* Re: [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs [not found] ` <20161118121340.GC23750-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org> @ 2016-11-18 13:34 ` Lucas Stach [not found] ` <1479476068.20533.19.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 0 siblings, 1 reply; 25+ messages in thread From: Lucas Stach @ 2016-11-18 13:34 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Nishanth Menon, Robert Nelson, tony-4v6yS6AI5VpBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Julien, Christian Gmeiner, Tomi Valkeinen Am Freitag, den 18.11.2016, 12:13 +0000 schrieb Russell King - ARM Linux: > On Thu, Nov 17, 2016 at 08:53:38PM -0600, Nishanth Menon wrote: > > >diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > > >index a6799b0..ce51270 100644 > > >--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > > >+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > > >@@ -653,6 +653,7 @@ static int etnaviv_pdev_remove(struct platform_device *pdev) > > > static const struct of_device_id dt_match[] = { > > > { .compatible = "fsl,imx-gpu-subsystem" }, > > > { .compatible = "marvell,dove-gpu-subsystem" }, > > >+ { .compatible = "ti,gc320-gpu-subsystem" }, > > We need to get away from this ever-increasing set of compatible > strings here, as this is not long-term maintainable. > > What we should have is a common compatible which describes that > the node is compatible with this driver, and then use SoC specific > compatible strings later if we need to (eg, because of some GPU > subsystem SoC specifics.) > > So, I'd suggest that we update the documentation and add: > > "vivante,gc-gpu-subsystem" > > as a common compatible now, and if necessary move on to more specific > compatibles if we need to later. > > Also, I'd strongly suggest that no compatibles should contain the ID > number of the GPU core for exactly the same reason - Vivante GPU cores > vary according to features, and we don't want to end up with a long > list of specific compatibles (eg) > "ti,gc2000-and-gc320-and-gc355-gpu-subsystem" because TI > decides to integrate a 3d, 2d and VG core. > All of the above sounds sensible and I would prefer if the patches are reworked to take those things into account. Regards, Lucas -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
[parent not found: <1479476068.20533.19.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* Re: [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs [not found] ` <1479476068.20533.19.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2016-11-18 15:07 ` Robert Nelson 0 siblings, 0 replies; 25+ messages in thread From: Robert Nelson @ 2016-11-18 15:07 UTC (permalink / raw) To: Lucas Stach Cc: Russell King - ARM Linux, Nishanth Menon, tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, devicetree, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Julien, Christian Gmeiner, Tomi Valkeinen On Fri, Nov 18, 2016 at 7:34 AM, Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote: > Am Freitag, den 18.11.2016, 12:13 +0000 schrieb Russell King - ARM > Linux: >> On Thu, Nov 17, 2016 at 08:53:38PM -0600, Nishanth Menon wrote: >> > >diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c >> > >index a6799b0..ce51270 100644 >> > >--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c >> > >+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c >> > >@@ -653,6 +653,7 @@ static int etnaviv_pdev_remove(struct platform_device *pdev) >> > > static const struct of_device_id dt_match[] = { >> > > { .compatible = "fsl,imx-gpu-subsystem" }, >> > > { .compatible = "marvell,dove-gpu-subsystem" }, >> > >+ { .compatible = "ti,gc320-gpu-subsystem" }, >> >> We need to get away from this ever-increasing set of compatible >> strings here, as this is not long-term maintainable. >> >> What we should have is a common compatible which describes that >> the node is compatible with this driver, and then use SoC specific >> compatible strings later if we need to (eg, because of some GPU >> subsystem SoC specifics.) >> >> So, I'd suggest that we update the documentation and add: >> >> "vivante,gc-gpu-subsystem" >> >> as a common compatible now, and if necessary move on to more specific >> compatibles if we need to later. >> >> Also, I'd strongly suggest that no compatibles should contain the ID >> number of the GPU core for exactly the same reason - Vivante GPU cores >> vary according to features, and we don't want to end up with a long >> list of specific compatibles (eg) >> "ti,gc2000-and-gc320-and-gc355-gpu-subsystem" because TI >> decides to integrate a 3d, 2d and VG core. >> > All of the above sounds sensible and I would prefer if the patches are > reworked to take those things into account. Thanks for reviewing guys, the "vivante,gc-gpu-subsystem" will work perfectly fine for me, as the etnaviv driver does a great job at auto detecting the hardware.. Regards, -- Robert Nelson https://rcn-ee.com/ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2016-11-20 11:43 UTC | newest] Thread overview: 25+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-11-18 2:44 [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs Robert Nelson [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:44 ` [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices Robert Nelson [not found] ` <20161118024436.13447-2-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:52 ` Nishanth Menon 2016-11-18 16:33 ` Rob Herring 2016-11-19 11:58 ` Joshua Clayton 2016-11-20 11:43 ` Russell King - ARM Linux 2016-11-18 2:44 ` [RFC 3/6] Documentation: dt: add bindings for ti bb2d Robert Nelson [not found] ` <20161118024436.13447-3-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:54 ` Nishanth Menon 2016-11-18 2:44 ` [RFC 4/6] ARM: dts: dra7: add entry for bb2d module Robert Nelson [not found] ` <20161118024436.13447-4-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 10:59 ` Lucas Stach [not found] ` <1479466741.20533.5.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2016-11-18 13:56 ` Nishanth Menon 2016-11-18 2:44 ` [RFC 5/6] ARM: dts: dra7: add vivante " Robert Nelson [not found] ` <20161118024436.13447-5-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 10:55 ` Lucas Stach 2016-11-18 2:44 ` [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv Robert Nelson [not found] ` <20161118024436.13447-6-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-11-18 2:56 ` Nishanth Menon [not found] ` <e69a797c-bec3-2243-5c19-9d7633092369-l0cyMroinI0@public.gmane.org> 2016-11-18 3:44 ` Robert Nelson [not found] ` <CAOCHtYiUz1cjYw9nNa4YZGtzNVgSgjEa=4Lqiktz07rszsSksw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2016-11-18 4:15 ` Nishanth Menon [not found] ` <3eb346ad-1675-e613-93ef-bd2d07bf2ab8-l0cyMroinI0@public.gmane.org> 2016-11-18 4:26 ` Robert Nelson [not found] ` <CAOCHtYh8QebrYA2ioaXgURdc47QY4x+EwZLBXLLGP1-k7eAMmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2016-11-18 4:34 ` Nishanth Menon 2016-11-18 16:42 ` Rob Herring 2016-11-18 2:51 ` [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs Robert Nelson 2016-11-18 2:53 ` Nishanth Menon [not found] ` <0bf288ee-33bc-c3b5-389f-08d9bb89ccb5-l0cyMroinI0@public.gmane.org> 2016-11-18 12:13 ` Russell King - ARM Linux [not found] ` <20161118121340.GC23750-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org> 2016-11-18 13:34 ` Lucas Stach [not found] ` <1479476068.20533.19.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2016-11-18 15:07 ` Robert Nelson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).