Skip to contentSkip to conversation

add etnaviv support

PATCH In review Trevor Woerner 2 participants 5 messages May 27, 2017 – Aug 31, 2017 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

cover add etnaviv support

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
Signature · 1 line
2.13.0
#1 lore raw

PATCH 1/2 libdrm-armada: add

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

---
 recipes-graphics/drm/libdrm-armada_git.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 recipes-graphics/drm/libdrm-armada_git.bb
recipes-graphics/drm/libdrm-armada_git.bb new file +15 -0
new file mode 100644
index 00000000..6912a77c
@@ -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"
Signature · 1 line
2.13.0
#2 lore raw

PATCH 2/2 xf86-video-armada: add

In reply to Trevor Woerner

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

---
 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
conf/machine/include/imx-base.inc +1 -0
index 6f3b39c2..b876b500 100644
@@ -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}"
recipes-graphics/xorg-driver/xf86-video-armada_git.bb new file +46 -0

46 lines not on this page · raw message

recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf new file +28 -0
new file mode 100644
index 00000000..b6f83469
@@ -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
+
Signature · 1 line
2.13.0
reviewer
#3 lore raw

Re: [PATCH 2/2] xf86-video-armada: add

Hi Trevor,

Quoted 4 lines · Trevor Woerner

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

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

#4 lore raw

Re: [PATCH 2/2] xf86-video-armada: add

Hi Fabio,

Quoted 6 lines · Fabio Estevam

Hi Trevor,

Quoted 3 lines · Trevor Woerner

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

Quoted 6 lines
Quoted 1 line

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