dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel@daenzer.net>
To: Brian Paterni <bpaterni@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: Some issues with the new amdgpu driver
Date: Thu, 7 May 2015 18:07:19 +0900	[thread overview]
Message-ID: <554B2B47.9090002@daenzer.net> (raw)
In-Reply-To: <554986B9.4000903@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

On 06.05.2015 12:12, Brian Paterni wrote:
> 
> 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


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Link-against-libgbm.patch --]
[-- Type: text/x-patch; name="0001-Link-against-libgbm.patch", Size: 1682 bytes --]

From 8ae3d0696257cab73676481273885c6a74bd21ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
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=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 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 >= 2.4.46])
 PKG_CHECK_MODULES(LIBDRM_AMDGPU, [libdrm_amdgpu])
+PKG_CHECK_MODULES(GBM, [gbm])
 
 # Obtain compiler/linker options for the driver dependencies
 PKG_CHECK_MODULES(XORG, [xorg-server >= 1.7 xproto fontsproto xf86driproto $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.
 
-amdgpu_drv_la_LIBADD = $(PCIACCESS_LIBS) $(LIBDRM_AMDGPU_LIBS)
+amdgpu_drv_la_LIBADD = $(PCIACCESS_LIBS) $(LIBDRM_AMDGPU_LIBS) $(GBM_LIBS)
 
 AMDGPU_KMS_SRCS=amdgpu_dri2.c amdgpu_kms.c drmmode_display.c amdgpu_bo_helper.c
 
 AM_CFLAGS = \
+            @GBM_CFLAGS@ \
             @LIBDRM_AMDGPU_CFLAGS@ \
             @XORG_CFLAGS@ \
             @LIBUDEV_CFLAGS@
-- 
2.1.4


[-- Attachment #3: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2015-05-07  9:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06  3:12 Some issues with the new amdgpu driver Brian Paterni
2015-05-07  9:07 ` Michel Dänzer [this message]
     [not found]   ` <554D7478.40408@gmail.com>
     [not found]     ` <554DC68A.3030808@daenzer.net>
2015-05-10  0:11       ` Brian Paterni
2015-05-10 16:06         ` Brian Paterni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554B2B47.9090002@daenzer.net \
    --to=michel@daenzer.net \
    --cc=bpaterni@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox