From owner-freebsd-questions@FreeBSD.ORG Thu Jul 17 08:53:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96A47106564A for ; Thu, 17 Jul 2008 08:53:30 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5BA8FC0A for ; Thu, 17 Jul 2008 08:53:30 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so152720ana.13 for ; Thu, 17 Jul 2008 01:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=SSBjvFh0tAZPfPXN5mQ0vv1t+vl0LiIX2T23ibIuqSg=; b=Pk4IVg+C620pk+MSCXnN0bIdnmUs8R+ouCWUEwpBwdnXFFtTmA7AUY7TxwpPCZT6gn QkCNBqyBboepbolH0hfHDj3LtrKzScUerI6DQ2/lOTcFxkvXlnXD5mZWN4jEeOguIb6Y i32QM2NEwNg2iXJfQDUG1krxiAJmTqQ1+qLkM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=h7gSRprWNwBMH1Ve+/Sr1nAJgX4KBHkc5lIG0D9PTTq/em8IDwVOBv7F4hWbqI+T11 MLLRo/hq4N6QVZvigLfNm4GbFcsSrVkxJHYg0j879Ub8zXAMeTjAS8d+H/16V/UmhKtU Ue5oUnnamhzpmbAa35DqPm9vd3tfZmkUFzMcc= Received: by 10.100.144.11 with SMTP id r11mr3772815and.52.1216284809125; Thu, 17 Jul 2008 01:53:29 -0700 (PDT) Received: by 10.100.33.8 with HTTP; Thu, 17 Jul 2008 01:53:29 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 11:53:29 +0300 From: gelraen To: "Roland Smith" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080716141153.GA27310@slackbox.xs4all.nl> <20080716154946.GA29964@slackbox.xs4all.nl> <20080716171553.GA32094@slackbox.xs4all.nl> Cc: freebsd-questions@freebsd.org Subject: Re: Problem with enabling DRI on ATI Mobility Radeon X1350 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 08:53:30 -0000 This was much easier, that I waited :) After first build I had "link_elf: symbol drm_core_ioremap_wc undefined" every time I tried to kldload radeon, but it was solved by 3 additional lines in sources :) So, here is step-by-step instruction: 1) download sources $ git clone git://anongit.freedesktop.org/git/mesa/drm $ cd drm 2) edit sources # git diff diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index 88ea4e6..122ac4a 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -1117,5 +1117,9 @@ static __inline__ void drm_core_dropmap(struct drm_map *map) { } +#ifndef drm_core_ioremap_wc +# define drm_core_ioremap_wc drm_core_ioremap +#endif + #endif /* __KERNEL__ */ #endif /* _DRM_P_H_ */ 3) install kernel modules # cd bsd-core # make && make install # kldunload radeon # kldunload drm # kldload drm # kldload radeon 4) check result $ dmesg | grep drm drm0: on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] Initialized radeon 1.29.0 20080613 I haven't tried to integrate these sources in kernel, so I have only device agp in kernel config, not drm/radeondrm After that KDE starts work much faster :) But I still have problems running Compiz/Beryl... Even kompmgr fails to start with KDE, but works just fine if started manually. gelraen