From owner-freebsd-stable@FreeBSD.ORG Sun Jan 5 06:20:36 2014 Return-Path: Delivered-To: freebsd-stable@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 71E2141E; Sun, 5 Jan 2014 06:20:36 +0000 (UTC) Received: from mail110.syd.optusnet.com.au (mail110.syd.optusnet.com.au [211.29.132.97]) by mx1.freebsd.org (Postfix) with ESMTP id 1F1071472; Sun, 5 Jan 2014 06:20:35 +0000 (UTC) Received: from maxwell.menhennitt.com.au (c122-107-224-152.mckinn3.vic.optusnet.com.au [122.107.224.152]) by mail110.syd.optusnet.com.au (Postfix) with ESMTP id 44AF9780E54; Sun, 5 Jan 2014 17:20:27 +1100 (EST) Received: from [203.2.73.75] (starker.menhennitt.com.au [203.2.73.75]) by maxwell.menhennitt.com.au (Postfix) with ESMTP id DB5CF61AC; Sun, 5 Jan 2014 17:20:26 +1100 (EST) Message-ID: <52C8F9AA.1090207@menhennitt.com.au> Date: Sun, 05 Jan 2014 17:20:26 +1100 From: Graham Menhennitt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org, dumbbell@FreeBSD.org Subject: Re: X not working on AMD64 Radeon after upgrading 9-Stable to 10-RC3 References: <52C6846A.8010304@menhennitt.com.au> <52C7F922.6010204@FreeBSD.org> In-Reply-To: <52C7F922.6010204@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=YYGEuWhf c=1 sm=1 tr=0 a=BQwmYAONLMrTGJtfTy08BQ==:117 a=BQwmYAONLMrTGJtfTy08BQ==:17 a=Cpq1HDflAAAA:8 a=PO7r1zJSAAAA:8 a=4ZoS1BJXjLcA:10 a=83QDFMQtbloA:10 a=8nJEP1OIZ-IA:10 a=lMnj3SGZ900A:10 a=Gz5U0I2pAAAA:8 a=2xJsmHMOAAAA:8 a=k3-MrtuNAAAA:8 a=z7Kn2QopAAAA:8 a=9jsPPXm-UIodnNufrVkA:9 a=amNEdqM-P5GjlFxY:21 a=pZcAH6j8WY3pvz8h:21 a=wPNLvfGTeEIA:10 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2014 06:20:36 -0000 On 04/01/2014 23:05, Jean-Sébastien Pédron wrote: > On 03.01.2014 10:35, Graham Menhennitt wrote: >> I have a box that's been running X and Kde4 on 9-Stable successfully for >> ages. I tried a source upgrade to 10-Stable but couldn't get X to run >> properly. I then blew the old installation away and did a fresh install >> of 10-RC3. It has the same problem. > Starting with FreeBSD 10.0, a new Radeon driver is available in the > kernel. It's mandatory for Radeon HD 5000 and above, but can be used > with older cards too. > > Could you please try to: > > 1. Define the following variable in your /etc/make.conf: > WITH_NEW_XORG="YES" > > 2. Upgrade your ports (eg. "portmaster -a" if you're using > portmaster). It should at least upgrade the following ports: > graphics/libdrm > graphics/libGL > graphics/dri > x11-servers/xorg-server > x11-drivers/xf86-video-ati > > 3. Rebuild xf86-* ports not upgraded by previous step. This could > include: > x11-drivers/xf86-input-keyboard > x11-drivers/xf86-input-mouse > > And try to start X again. Note that "Xorg -configure" will probably > fail: this is a known issue. Try to start X without a configuration file. > > If this doesn't work, could you please post: > o the output of dmesg *after* trying to start X > o the output of "pciconf -lv" > o your Xorg.log > Thank you very much Jean-Sébastien. That worked although I needed to do a few extra things. Firstly, I had the same problem with GLDEBUGPROCARB that you provided a fix to Zenny for. I blew away all my xorg ports and started again which fixed it. Then I had a problem with glproto not being found. It looks like there's a dependency on that missing somewhere. After I manually installed it, everything built. Now I can successfully start X and KDE - thank you! There are a few things in my dmesg output that look a bit strange. I've pasted it below in case there is a problem. Also, I can't use Alt-F1 etc. to switch to other virtual consoles. And I can't seem to kill X - I need to reboot. But both of those are very minor problems. Thanks again for your help, Graham info: [drm] Initialized drm 1.1.0 20060810 drmn0: on vgapci0 info: [drm] RADEON_IS_PCI info: [drm] initializing kernel modesetting (RS690 0x1002:0x791E 0x1458:0xD001). info: [drm] register mmio base: 0xFDFE0000 info: [drm] register mmio size: 65536 info: [drm] radeon_atrm_get_bios: ===> Try ATRM... info: [drm] radeon_atrm_get_bios: IGP card detected, skipping this method... info: [drm] radeon_acpi_vfct_bios: ===> Try VFCT... info: [drm] radeon_acpi_vfct_bios: Get "VFCT" ACPI table info: [drm] radeon_acpi_vfct_bios: Failed to get "VFCT" table: AE_NOT_FOUND info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM... info: [drm] igp_read_bios_from_vram: VRAM base address: 0xd8000000 info: [drm] igp_read_bios_from_vram: Map address: 0xfffff800d8000000 (262144 bytes) info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x2070 info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM... info: [drm] radeon_read_bios: Map address: 0xfffff800000c0000 (131072 bytes) info: [drm] ATOM BIOS: ATI drmn0: info: VRAM: 128M 0x00000000D0000000 - 0x00000000D7FFFFFF (128M used) drmn0: info: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF 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=128M, BAR=128M info: [drm] RAM width 128bits DDR [TTM] Zone kernel: Available graphics memory: 2805918 kiB [TTM] Zone dma32: Available graphics memory: 2097152 kiB [TTM] Initializing pool allocator info: [drm] radeon: 128M of VRAM memory ready info: [drm] radeon: 512M of GTT memory ready. info: [drm] GART: num cpu pages 131072, num gpu pages 131072 info: [drm] radeon: 1 quad pipes, 1 z pipes initialized. info: [drm] PCIE GART of 512M enabled (table at 0x0000000007D4D000). drmn0: info: WB enabled drmn0: info: fence driver on ring 0 use gpu addr 0x00000000a0000000 and cpu addr 0x0xfffff80008c40000 info: [drm] Loading RS690/RS740 Microcode info: [drm] radeon: ring at 0x00000000A0001000 error: [drm:pid1162:r100_ring_test] *ERROR* radeon: ring test failed (scratch(0x15E4)=0xCAFEDEAD) error: [drm:pid1162:r100_cp_init] *ERROR* radeon: cp isn't working (-22). drmn0: error: failed initializing CP (-22). drmn0: error: Disabling GPU acceleration error: [drm:pid1162:r100_cp_fini] *ERROR* Wait for CP idle timeout, shutting down CP. error: [drm:pid1162:r100_gui_wait_for_idle] *ERROR* radeon: wait for empty RBBM fifo failed ! Bad things might happen. error: [drm:pid1162:r100_cp_disable] *ERROR* Failed to wait GUI idle while programming pipes. Bad things might happen. info: [drm] radeon: cp finalized info: [drm] radeon_device_init: Taking over the fictitious range 0xd8000000-0xe0000000 iicbus0: on iicbb0 addr 0xff iic0: on iicbus0 iicbus1: on iicbb1 addr 0xff iic1: on iicbus1 iicbus2: on iicbb2 addr 0xff iic2: on iicbus2 iicbus3: on iicbb3 addr 0xff iic3: on iicbus3 info: [drm] Radeon Display Connectors info: [drm] Connector 0: info: [drm] VGA-1 info: [drm] DDC: 0x7e50 0x7e40 0x7e54 0x7e44 0x7e58 0x7e48 0x7e5c 0x7e4c info: [drm] Encoders: info: [drm] CRT1: INTERNAL_KLDSCP_DAC1 info: [drm] Connector 1: info: [drm] SVIDEO-1 info: [drm] Encoders: info: [drm] TV1: INTERNAL_KLDSCP_DAC1 info: [drm] Connector 2: info: [drm] HDMI-A-1 info: [drm] DDC: 0x7e40 0x7e50 0x7e44 0x7e54 0x7e48 0x7e58 0x7e4c 0x7e5c info: [drm] Encoders: info: [drm] DFP3: INTERNAL_LVTM1 error: [drm:pid1162:rs600_irq_set] *ERROR* Can't enable IRQ/MSI because no handler is installed info: [drm] Initialized radeon 2.29.0 20080528