From patchwork Thu May 7 09:07:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Michel_D=C3=A4nzer?= X-Patchwork-Id: 6354751 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1CE149F32B for ; Thu, 7 May 2015 09:07:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2723E20386 for ; Thu, 7 May 2015 09:07:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2D41D2026F for ; Thu, 7 May 2015 09:07:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 594886E288; Thu, 7 May 2015 02:07:26 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org 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) Received: from thor (125-14-38-183.rev.home.ne.jp [125.14.38.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 4A0CAC07BD; Thu, 7 May 2015 11:07:16 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.85) (envelope-from ) id 1YqHm3-0006WG-W1; Thu, 07 May 2015 18:07:20 +0900 Subject: Re: Some issues with the new amdgpu driver To: Brian Paterni references: <554986B9.4000903@gmail.com> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= x-enigmail-draft-status: N1110 message-id: <554B2B47.9090002@daenzer.net> Date: Thu, 7 May 2015 18:07:19 +0900 user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0 mime-version: 1.0 in-reply-to: <554986B9.4000903@gmail.com> Cc: dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 From 8ae3d0696257cab73676481273885c6a74bd21ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= 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 --- 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