All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] add etnaviv support
@ 2017-05-27  5:11 Trevor Woerner
  2017-05-27  5:11 ` [PATCH 1/2] libdrm-armada: add Trevor Woerner
  2017-05-27  5:11 ` [PATCH 2/2] xf86-video-armada: add Trevor Woerner
  0 siblings, 2 replies; 5+ messages in thread
From: Trevor Woerner @ 2017-05-27  5:11 UTC (permalink / raw)
  To: meta-freescale

If the user adds "use-mainline-bsp" to MACHINEOVERRIDES, assume they want to
use the open-source, reverse-engineered etnaviv drm driver for x11.

This code was build tested for and run tested on the wandboard.

Trevor Woerner (2):
  libdrm-armada: add
  xf86-video-armada: add

 conf/machine/include/imx-base.inc                  |  1 +
 recipes-graphics/drm/libdrm-armada_git.bb          | 15 +++++++
 .../xorg-driver/xf86-video-armada_git.bb           | 46 ++++++++++++++++++++++
 .../xserver-xf86-config/use-mainline-bsp/xorg.conf | 28 +++++++++++++
 4 files changed, 90 insertions(+)
 create mode 100644 recipes-graphics/drm/libdrm-armada_git.bb
 create mode 100644 recipes-graphics/xorg-driver/xf86-video-armada_git.bb
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf

-- 
2.13.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] libdrm-armada: add
  2017-05-27  5:11 [PATCH 0/2] add etnaviv support Trevor Woerner
@ 2017-05-27  5:11 ` Trevor Woerner
  2017-05-27  5:11 ` [PATCH 2/2] xf86-video-armada: add Trevor Woerner
  1 sibling, 0 replies; 5+ messages in thread
From: Trevor Woerner @ 2017-05-27  5:11 UTC (permalink / raw)
  To: meta-freescale

A drm for use with xf86-video-armada, which is for use with etnaviv.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 recipes-graphics/drm/libdrm-armada_git.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 recipes-graphics/drm/libdrm-armada_git.bb

diff --git a/recipes-graphics/drm/libdrm-armada_git.bb b/recipes-graphics/drm/libdrm-armada_git.bb
new file mode 100644
index 00000000..6912a77c
--- /dev/null
+++ b/recipes-graphics/drm/libdrm-armada_git.bb
@@ -0,0 +1,15 @@
+SUMMARY = "Userspace interface to kernel DRM services"
+SECTION = "x11/base"
+LICENSE = "GPL2 & BSD"
+
+LIC_FILES_CHKSUM = "file://libdrm_lists.h;beginline=1;endline=25;md5=2af1df1026ba1d24c8e7c370e68ed198"
+
+DEPENDS = "libdrm"
+
+SRCREV = "6b461c163b0bd02c76b65d94cc2fb3767167bda8"
+PV = "0.1+git${SRCPV}"
+SRC_URI = "git://git.armlinux.org.uk/~rmk/libdrm-armada.git"
+
+inherit autotools pkgconfig
+
+S = "${WORKDIR}/git"
-- 
2.13.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] xf86-video-armada: add
  2017-05-27  5:11 [PATCH 0/2] add etnaviv support Trevor Woerner
  2017-05-27  5:11 ` [PATCH 1/2] libdrm-armada: add Trevor Woerner
@ 2017-05-27  5:11 ` Trevor Woerner
  2017-08-30 18:17   ` Fabio Estevam
  1 sibling, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2017-05-27  5:11 UTC (permalink / raw)
  To: meta-freescale

If the user enables "use-mainline-bsp" in MACHINEOVERRIDES, assume they want
to use the open-source, reverse-engineered etnaviv drm x11 driver.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 conf/machine/include/imx-base.inc                  |  1 +
 .../xorg-driver/xf86-video-armada_git.bb           | 46 ++++++++++++++++++++++
 .../xserver-xf86-config/use-mainline-bsp/xorg.conf | 28 +++++++++++++
 3 files changed, 75 insertions(+)
 create mode 100644 recipes-graphics/xorg-driver/xf86-video-armada_git.bb
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf

diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 6f3b39c2..b876b500 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -30,6 +30,7 @@ PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
 XSERVER_DRIVER = "xf86-video-fbdev"
 XSERVER_DRIVER_imxgpu2d = "xf86-video-imxfb-vivante"
 XSERVER_DRIVER_vf = "xf86-video-modesetting"
+XSERVER_DRIVER_use-mainline-bsp = "xf86-video-armada"
 XSERVER = "xserver-xorg \
            xf86-input-evdev \
            ${XSERVER_DRIVER}"
diff --git a/recipes-graphics/xorg-driver/xf86-video-armada_git.bb b/recipes-graphics/xorg-driver/xf86-video-armada_git.bb
new file mode 100644
index 00000000..4caebb11
--- /dev/null
+++ b/recipes-graphics/xorg-driver/xf86-video-armada_git.bb
@@ -0,0 +1,46 @@
+SUMMARY = "X.org graphics driver for KMS based systems with pluggable GPU backend"
+DESCRIPTION = "The xf86-video-armada module is a 2D graphics driver for the X Window \
+System as implemented by X.org, supporting these DRM KMS drivers: \
+\
+	Freescale i.MX \
+	Marvell Armada 510 (Dove) \
+\
+and GPU drivers: \
+	Vivante libGAL (Armada only) \
+	Etnaviv (Armada and i.MX) with galcore kernel driver \
+	Etnaviv (Armada and i.MX) with etnaviv DRM kernel driver \
+"
+LICENSE = "BSD"
+
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+DEPENDS += "libdrm-armada"
+
+LIC_FILES_CHKSUM = " \
+    file://README;md5=d5271074fb6ad959b7b6cfa68b4adaf0 \
+    file://../etna_viv/LICENSE;md5=9d4853905d85f044ed013e75def30a76 \
+    "
+
+SRCREV_armada = "a4306d971717a2d3ea855d08c5667e02403b84fe"
+SRCREV_etna = "f64d77abbb54433bd5de955c20afddc6eb4f4cb1"
+SRCREV_FORMAT = "armada_etna"
+
+PV = "0.1+git${SRCPV}"
+
+SRC_URI = " \
+    git://git.arm.linux.org.uk/cgit/xf86-video-armada.git;branch=unstable-devel;protocol=http;name=armada \
+    git://github.com/laanwj/etna_viv.git;protocol=https;name=etna;destsuffix=etna_viv \
+    "
+
+S = "${WORKDIR}/git"
+
+RDEPENDS_${PN} = "xserver-xorg-module-exa \
+                  xserver-xorg-extension-dri \
+                  xserver-xorg-extension-dri2 \
+                  xserver-xorg-extension-glx \
+                  "
+
+EXTRA_OECONF = "--disable-etnaviv \
+                --disable-vivante \
+                --with-etnaviv-source=${WORKDIR}/etna_viv \
+                "
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf
new file mode 100644
index 00000000..b6f83469
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf
@@ -0,0 +1,28 @@
+Section "Device"
+	Identifier	"Driver0"
+	Screen		0
+	Driver		"armada"
+
+# Support hotplugging displays?
+	Option		"Hotplug"	"TRUE"
+
+# Support hardware cursor if available?
+	Option		"HWCursor"	"TRUE"
+
+# Use GPU acceleration?
+	Option		"UseGPU"	"TRUE"
+
+# Provide Xv interfaces?
+	Option		"XvAccel"	"TRUE"
+
+# Prefer overlay for Xv (TRUE for armada-drm, FALSE for imx-drm)
+	Option		"XvPreferOverlay" "TRUE"
+
+# Which accelerator module to load (automatically found if commented out)
+	Option		"AccelModule"	"etnadrm_gpu"
+	Option		"AccelModule"	"etnaviv_gpu"
+
+# Support DRI2 interfaces?
+	Option		"DRI"		"TRUE"
+EndSection
+
-- 
2.13.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] xf86-video-armada: add
  2017-05-27  5:11 ` [PATCH 2/2] xf86-video-armada: add Trevor Woerner
@ 2017-08-30 18:17   ` Fabio Estevam
  2017-08-31 14:32     ` Trevor Woerner
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2017-08-30 18:17 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: meta-freescale, Otavio Salvador

Hi Trevor,

On Sat, May 27, 2017 at 2:11 AM, Trevor Woerner <twoerner@gmail.com> wrote:
> If the user enables "use-mainline-bsp" in MACHINEOVERRIDES, assume they want
> to use the open-source, reverse-engineered etnaviv drm x11 driver.
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>

Have you managed to run a 'sato' image on imx6q with etnaviv?

Daiane generated a sato image from master (based on kernel 4.13-rc6),
but I am seeing lots of crashes.

Thanks


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] xf86-video-armada: add
  2017-08-30 18:17   ` Fabio Estevam
@ 2017-08-31 14:32     ` Trevor Woerner
  0 siblings, 0 replies; 5+ messages in thread
From: Trevor Woerner @ 2017-08-31 14:32 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: meta-freescale, Otavio Salvador

Hi Fabio,

On Wed, Aug 30, 2017 at 2:17 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi Trevor,
>
> On Sat, May 27, 2017 at 2:11 AM, Trevor Woerner <twoerner@gmail.com> wrote:
>> If the user enables "use-mainline-bsp" in MACHINEOVERRIDES, assume they want
>> to use the open-source, reverse-engineered etnaviv drm x11 driver.
>>
>> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
>
> Have you managed to run a 'sato' image on imx6q with etnaviv?
>
> Daiane generated a sato image from master (based on kernel 4.13-rc6),
> but I am seeing lots of crashes.

I haven't tried that. My goal was to run glmark2-es2 with both the
closed and the etnaviv drivers.

http://twoerner.blogspot.ca/2017/06/gpu-support-with-openembedded_9.html
http://twoerner.blogspot.ca/2017/06/etnavivvivante-update.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-31 14:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-27  5:11 [PATCH 0/2] add etnaviv support Trevor Woerner
2017-05-27  5:11 ` [PATCH 1/2] libdrm-armada: add Trevor Woerner
2017-05-27  5:11 ` [PATCH 2/2] xf86-video-armada: add Trevor Woerner
2017-08-30 18:17   ` Fabio Estevam
2017-08-31 14:32     ` Trevor Woerner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.