From owner-freebsd-current@FreeBSD.ORG Thu Nov 14 21:35:54 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 029636AD; Thu, 14 Nov 2013 21:35:54 +0000 (UTC) Received: from mailrelay004.isp.belgacom.be (mailrelay004.isp.belgacom.be [195.238.6.170]) by mx1.freebsd.org (Postfix) with ESMTP id 685BD2002; Thu, 14 Nov 2013 21:35:53 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlwGACNBhVJbsLPN/2dsb2JhbABbgwd/vyiBIBd0giUBAQVWIxALGAklDyoeBhOHbwMTAcBQjG2CPzMHhDEDmA+SDYMpOw Received: from 205.179-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.179.205]) by relay.skynet.be with ESMTP; 14 Nov 2013 22:35:46 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id rAELZjgD054540; Thu, 14 Nov 2013 22:35:45 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Thu, 14 Nov 2013 22:35:45 +0100 From: Tijl Coosemans To: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= Subject: Re: new Xorg (KMS, etc.) for Radeon 9600 Message-ID: <20131114223545.320b94fc@kalimero.tijl.coosemans.org> In-Reply-To: <20131114113846.4dcb2037@kalimero.tijl.coosemans.org> References: <527F95BE.7080908@gmx.com> <527FC05D.8080703@gmx.com> <5283E123.5000305@FreeBSD.org> <20131114113846.4dcb2037@kalimero.tijl.coosemans.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: dt71@gmx.com, freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 21:35:54 -0000 On Thu, 14 Nov 2013 11:38:46 +0100 Tijl Coosemans wrote: > On Wed, 13 Nov 2013 21:29:23 +0100 Jean-S=E9bastien P=E9dron wrote: >> Le 10/11/2013 18:20, dt71@gmx.com a =E9crit : >>> drmn0: info: GTT: 0M 0xF0000000 - 0xEFFFFFFF >>=20 >> Tijl Coosemans is right, the problem is this line. >>=20 >> As I don't really now how AGP works and have no AGP hardware to=20 >> reproduce the problem, can you post the output of the following commands= =20 >> as a start? >> pciconf -lvbce >> devinfo -vr >=20 > The attached patch should fix it, but I haven't been able to test it > yet. The ai_aperture_size field is in bytes. So it doesn't work, but it gets a bit further: drmn0: info: GTT: 256M 0xE0000000 - 0xEFFFFFFF info: [drm] Generation 2 PCI interface, using max accessible memory drmn0: info: VRAM: 128M 0x00000000D0000000 - 0x00000000D7FFFFFF (64M used) info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010). info: [drm] Driver supports precise vblank timestamp query. info: [drm] radeon: irq initialized. info: [drm] Detected VRAM RAM=3D128M, BAR=3D128M info: [drm] RAM width 128bits DDR [TTM] Zone kernel: Available graphics memory: 519536 kiB [TTM] Initializing pool allocator info: [drm] radeon: 64M of VRAM memory ready info: [drm] radeon: 256M of GTT memory ready. info: [drm] radeon: 1 quad pipes, 1 Z pipes initialized. error: [drm:pid54242:radeon_gart_bind] *ERROR* trying to bind memory to uni= nitialized GART ! error: [drm:pid54242:radeon_ttm_backend_bind] *ERROR* failed to bind 1 page= s at 0x00000000 drmn0: warning: (-22) create WB bo failed drmn0: error: Disabling GPU acceleration info: [drm] radeon: cp finalized info: [drm] radeon: cp finalized [TTM] Finalizing pool allocator [TTM] Zone kernel: Used memory at exit: 0 kiB info: [drm] radeon: ttm finalized info: [drm] Forcing AGP to PCI mode It looks like some support for AGP is missing in radeon_ttm.c. It's hidden behind #ifdef DUMBBELL_WIP.