Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C2A17E00B1B; Fri, 26 May 2017 22:11:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (twoerner[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.223.194 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.223.194 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-io0-f194.google.com (mail-io0-f194.google.com [209.85.223.194]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4DFE4E009BA for ; Fri, 26 May 2017 22:11:35 -0700 (PDT) Received: by mail-io0-f194.google.com with SMTP id f102so2996426ioi.3 for ; Fri, 26 May 2017 22:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=XQ+XJ4mi7t5DIqxsOFq3tmdMnHGC7JlZLBFL/bDYm+g=; b=t/F2xW/NSlXuZdKftCLsIrfnhfUwu3GT0qLIdQK0QVxbLtgG6wn0KNCaC2+o0XUD9c 3khWIcK1mgWv5lwBM9leR/ZcyK3PI4+6T+XpazGFxi945OSONr9xV6lGggDM89wDxPWR qB6xXtjCxOtdoL/DteN8sfofgXgd5E5BTjNsB9IQ7flMGQlLKGF60nNWXLLy4xWfK8yF Xk4IKrvd05fa2pz8Yz+n0VvnWc7OYbuLprFwp8JD5txsl1S2oQejMM26h08Igm2wh4qn OeLgcLcx32Ip52oiBwoxq9yHbpUom2QDkYdkGmyr3gHKOoWa2vbrpGyYdq8Xhq/vxmXe nZgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=XQ+XJ4mi7t5DIqxsOFq3tmdMnHGC7JlZLBFL/bDYm+g=; b=f7J1EFRCICUJlFjHS73KXPF1w3rfS9o3eB4rMnqBgEzON/FRmTqn/qFdNU8Qh7uUeA L7VRjk+LOgyvwGlTr9CUVcWmfMaIwCTNHecPVH7h+Nx9PHVMtGHdacV2oDvDTT7wmTdB 9mV76bI534wVeW7vog6wmOv/DKZsfy11IS9ANv9Yp57dYwf93qiAGQMsXioAk6o8ro95 yA1tp2m5QKDXc/3FX+XtHo3u1aLHf9ugZ4+P67F/Uix4LyL8wnDa+TBE95YXHhRfgqXW afUEOHFJ6imDMKIN9R9R1jR4YCxhYD0rQxLykJ5O9lANs0qgAYxvJJ1bQm5/uJq1cGp4 Fx1Q== X-Gm-Message-State: AODbwcAtwO69669Uc3/JID3mElK4YnZgtlhoNLmON6NG5WkkhzKgM3um pvnB0XTGfz2JVyGGM60= X-Received: by 10.107.135.142 with SMTP id r14mr4889135ioi.36.1495861895111; Fri, 26 May 2017 22:11:35 -0700 (PDT) Received: from linux-uys3.suse ([206.248.190.95]) by smtp.gmail.com with ESMTPSA id n22sm1730413itg.25.2017.05.26.22.11.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 May 2017 22:11:34 -0700 (PDT) From: Trevor Woerner To: meta-freescale@yoctoproject.org Date: Sat, 27 May 2017 01:11:08 -0400 Message-Id: <20170527051108.27434-3-twoerner@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170527051108.27434-1-twoerner@gmail.com> References: <20170527051108.27434-1-twoerner@gmail.com> Subject: [PATCH 2/2] xf86-video-armada: add X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 May 2017 05:11:37 -0000 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 --- 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