From owner-freebsd-x11@FreeBSD.ORG Mon Mar 11 20:14:01 2013 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B531DEF7 for ; Mon, 11 Mar 2013 20:14:01 +0000 (UTC) (envelope-from akirchhoff135014@comcast.net) Received: from qmta02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:24]) by mx1.freebsd.org (Postfix) with ESMTP id 52FA1DCB for ; Mon, 11 Mar 2013 20:14:00 +0000 (UTC) Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88]) by qmta02.westchester.pa.mail.comcast.net with comcast id AAmt1l0041uE5Es51LE0Xi; Mon, 11 Mar 2013 20:14:00 +0000 Received: from unknown ([50.78.52.49]) by omta16.westchester.pa.mail.comcast.net with comcast id ALDz1l01c13hoka3cLDzyK; Mon, 11 Mar 2013 20:14:00 +0000 Date: Mon, 11 Mar 2013 16:13:45 -0400 From: Adam K Kirchhoff To: "J.R. Oldroyd" Subject: Re: New AMD drm code Message-ID: <20130311161345.00005499@unknown> In-Reply-To: <20130311102210.0b9aa7a3@shibato> References: <20130311001858.61224bf6@shibato> <20130311101005.000007d1@unknown> <20130311102210.0b9aa7a3@shibato> X-Mailer: Claws Mail 3.8.0cvs30 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1363032840; bh=EMYRiH6vKUesLTAC9x/LBr1raohcSP+nbUFzc+Svukw=; h=Received:Received:Date:From:To:Subject:Message-ID:Mime-Version: Content-Type; b=kBy/wUSANIF5K2DS5021/d1KDw6yZx4SAxWRpFpTV0VZWcV9yeSPxe/Brkb2LciKU ODn964zNzlx/PzX8H8VhiEB1TMW/3XyhnYzEKpdGUvBL/hHjdXbOy4gzcsD92Umrqx eMhE1iGMZjBReXisdKr20xDHq1ewnpWq4vKoEGbSDUo+G77a4iTu6nIbI1RqCxG6XK UFAxHcbSf+Mo9tCmzQlNOSEnKYzRIkFQxLsATFuf+b0IJLFuS++XA5lR/8TFFL1T3n OnWlw96HtYk0KrgpmMSq4EhkpDnOgDrmNpf+7Y0u7VGW3K7WkdcMEeQ78A26CMBwsk gWqsrP/fZ5LiA== Cc: "freebsd-x11@freebsd org" , =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 20:14:01 -0000 On Mon, 11 Mar 2013 10:22:10 -0400 "J.R. Oldroyd" wrote: > On Mon, 11 Mar 2013 10:10:05 -0400 Adam K Kirchhoff > wrote: > > > > OK, I am definitely missing something, because > > https://github.com/dumbbell/freebsd/blob/master/sys/dev/drm2/drm_pciids.h > > shows that line 491 is blank, which is the same thing I'm seeing on > > my checked out version. > > > You're on the wrong branch. Look here: > > https://github.com/dumbbell/freebsd/blob/kms-radeon/sys/dev/drm2/drm_pciids.h > > > Is there something that has to be done with the code in > > sys/dev/drm2/ before it can be used? > > > > Adam > > git branch kms-radeon > then git checkout the tree > recompile, at least the drm2/drm2 and drm2/radeonkms and > drm2/radeonkmsfw modules, possibly other stuff too > > -jr Thanks, that got it working. I haven't had a chance to actually test anything that uses DRI, but the module loads: info: [drm] Initialized drm 1.1.0 20060810 drmn0: on vgapci0 info: [drm] MSI enabled 1 message(s) info: [drm] RADEON_IS_PCIE info: [drm] initializing kernel modesetting (CAYMAN 0x1002:0x6719 0x174B:0xE186). info: [drm] register mmio base: 0xFCEE0000 info: [drm] register mmio size: 131072 info: [drm] radeon_get_bios: ATRM info: [drm] radeon_atrm_get_bios: IGP? info: [drm] radeon_atrm_get_bios: pci_find_class info: [drm] radeon_atrm_get_bios: 0:7:0:0, vendor=1002, device=6719 info: [drm] radeon_atrm_get_bios: acpi_get_handle info: [drm] radeon_get_bios: VFCT info: [drm] VFCT: AcpiGetTable info: [drm] VFCT: ACPI_FAILURE: AE_NOT_FOUND info: [drm] radeon_get_bios: IGP info: [drm] igp_read_bios_from_vram: vram_base=0x00000000d0000000 info: [drm] igp_read_bios_from_vram: base=0xfffffe00d0000000, size=262144 info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x570F info: [drm] radeon_get_bios: read BIOS info: [drm] radeon_read_bios: size (read from BAR): 131072 bytes info: [drm] radeon_read_bios: Expansion ROM mapped info: [drm] radeon_read_bios: start=0xfffffe00fce00000 size=131072 bytes info: [drm] ATOM BIOS: CAYMAN drmn0: info: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used) drmn0: info: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF info: [drm] Detected VRAM RAM=2048M, BAR=256M info: [drm] RAM width 256bits DDR [TTM] Zone kernel: Available graphics memory: 2086178 kiB [TTM] Initializing pool allocator info: [drm] radeon: 2048M of VRAM memory ready info: [drm] radeon: 512M of GTT memory ready. 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] GART: num cpu pages 131072, num gpu pages 131072 info: [drm] probing gen 2 caps for device 1002:6719 = 1/0 info: [drm] Loading CAYMAN Microcode info: [drm] PCIE GART of 512M enabled (table at 0x0000000000040000). drmn0: info: WB enabled drmn0: info: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0x0xfffffe0125efec00 drmn0: info: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0x0xfffffe0125efec04 drmn0: info: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0x0xfffffe0125efec08 drmn0: info: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0x0xfffffe0125efec0c drmn0: info: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0x0xfffffe0125efec10 info: [drm] ring test on 0 succeeded in 2 usecs info: [drm] ring test on 3 succeeded in 2 usecs info: [drm] ring test on 4 succeeded in 1 usecs info: [drm] ib test on ring 0 succeeded in 0 usecs info: [drm] ib test on ring 3 succeeded in 0 usecs info: [drm] ib test on ring 4 succeeded in 1 usecs info: [drm] radeon_device_init: Taking over the fictitious range 0xd0000000-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 iicbus4: on iicbb4 addr 0xff iic4: on iicbus4 iicbus5: on iicbb5 addr 0xff iic5: on iicbus5 iicbus6: on iicbb6 addr 0xff iic6: on iicbus6 iicbus7: on iicbb7 addr 0xff iic7: on iicbus7 info: [drm] Radeon Display Connectors info: [drm] Connector 0: info: [drm] DP-1 info: [drm] HPD5 info: [drm] DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c info: [drm] Encoders: info: [drm] DFP1: INTERNAL_UNIPHY2 info: [drm] Connector 1: info: [drm] DP-2 info: [drm] HPD4 info: [drm] DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c info: [drm] Encoders: info: [drm] DFP2: INTERNAL_UNIPHY2 info: [drm] Connector 2: info: [drm] HDMI-A-1 info: [drm] HPD6 info: [drm] DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c 0x646c info: [drm] Encoders: info: [drm] DFP3: INTERNAL_UNIPHY1 info: [drm] Connector 3: info: [drm] DVI-D-1 info: [drm] HPD1 info: [drm] DDC: 0x6450 0x6450 0x6454 0x6454 0x6458 0x6458 0x645c 0x645c info: [drm] Encoders: info: [drm] DFP4: INTERNAL_UNIPHY1 info: [drm] Connector 4: info: [drm] DVI-I-1 info: [drm] HPD3 info: [drm] DDC: 0x6470 0x6470 0x6474 0x6474 0x6478 0x6478 0x647c 0x647c info: [drm] Encoders: info: [drm] DFP5: INTERNAL_UNIPHY info: [drm] CRT1: INTERNAL_KLDSCP_DAC1 info: [drm] Internal thermal controller with fan control info: [drm] radeon: power management initialized info: [drm] dumbbell@: driver->load: 0 info: [drm] Initialized radeon 2.28.0 20080528