From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Subject: Re: Some issues with the new amdgpu driver Date: Thu, 7 May 2015 18:07:19 +0900 Message-ID: <554B2B47.9090002@daenzer.net> References: <554986B9.4000903@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000007060806050103010600" Return-path: Received: from mail.gna.ch (darkcity.gna.ch [195.226.6.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 74DC96E288 for ; Thu, 7 May 2015 02:07:24 -0700 (PDT) in-reply-to: <554986B9.4000903@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Brian Paterni Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This is a multi-part message in MIME format. --------------000007060806050103010600 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06.05.2015 12:12, Brian Paterni wrote: >=20 > I was on irc a few days ago trying to get the new amdgpu driver up and > running on my system. I am able to get the kernel booted successfully, > however X via amdgpu is turning out to be a real roadblock. It is the > problem with amdgpu_drv.so seeing gbm_create_device as an undefined > symbol. From what little I understand, I may be needing a more recent > xserver to resolve this... I don't think that would help. Does the attached xf86-video-amdgpu patch fix the problem? If not, you can manually load the glamoregl module in /etc/X11/xorg.conf to pull in libgbm: Section "Module" Load "glamoregl" EndSection --=20 Earthling Michel D=C3=A4nzer | http://www.amd= .com Libre software enthusiast | Mesa and X developer --------------000007060806050103010600 Content-Type: text/x-patch; name="0001-Link-against-libgbm.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-Link-against-libgbm.patch" =46rom 8ae3d0696257cab73676481273885c6a74bd21ac Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Michel=3D20D=3DC3=3DA4nzer?=3D = Date: Thu, 7 May 2015 18:05:32 +0900 Subject: [PATCH xf86-video-amdgpu] Link against libgbm MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michel D=C3=A4nzer --- configure.ac | 1 + src/Makefile.am | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ead206e..946c70e 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,7 @@ XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) # Checks for libraries. PKG_CHECK_MODULES(LIBDRM, [libdrm >=3D 2.4.46]) PKG_CHECK_MODULES(LIBDRM_AMDGPU, [libdrm_amdgpu]) +PKG_CHECK_MODULES(GBM, [gbm]) =20 # Obtain compiler/linker options for the driver dependencies PKG_CHECK_MODULES(XORG, [xorg-server >=3D 1.7 xproto fontsproto xf86drip= roto $REQUIRED_MODULES]) diff --git a/src/Makefile.am b/src/Makefile.am index 817da2d..8715eb3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -26,11 +26,12 @@ # _ladir passes a dummy rpath to libtool so the thing will actually link= # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, = etc. =20 -amdgpu_drv_la_LIBADD =3D $(PCIACCESS_LIBS) $(LIBDRM_AMDGPU_LIBS) +amdgpu_drv_la_LIBADD =3D $(PCIACCESS_LIBS) $(LIBDRM_AMDGPU_LIBS) $(GBM_L= IBS) =20 AMDGPU_KMS_SRCS=3Damdgpu_dri2.c amdgpu_kms.c drmmode_display.c amdgpu_bo= _helper.c =20 AM_CFLAGS =3D \ + @GBM_CFLAGS@ \ @LIBDRM_AMDGPU_CFLAGS@ \ @XORG_CFLAGS@ \ @LIBUDEV_CFLAGS@ --=20 2.1.4 --------------000007060806050103010600 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --------------000007060806050103010600--