From owner-freebsd-x11@freebsd.org Thu Mar 2 20:41:20 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 739E2CF6328 for ; Thu, 2 Mar 2017 20:41:20 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-193.reflexion.net [208.70.211.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34D7ED8B for ; Thu, 2 Mar 2017 20:41:19 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 17999 invoked from network); 2 Mar 2017 20:34:38 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 2 Mar 2017 20:34:38 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.30.0) with SMTP; Thu, 02 Mar 2017 15:34:38 -0500 (EST) Received: (qmail 17498 invoked from network); 2 Mar 2017 20:34:38 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 2 Mar 2017 20:34:38 -0000 Received: from [192.168.1.111] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id E4282EC9202; Thu, 2 Mar 2017 12:34:37 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: PowerMac G5 and KMS From: Mark Millard In-Reply-To: Date: Thu, 2 Mar 2017 12:34:37 -0800 Cc: hiroo.ono+freebsd@gmail.com, freebsd-x11@freebsd.org, FreeBSD Current , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <4EA794E6-D435-4958-853C-5421E03F3B46@dsl-only.net> References: To: Justin Hibbits X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 20:41:20 -0000 On 2017-Mar-2, at 9:37 AM, Justin Hibbits = wrote: > On Thu, Mar 2, 2017 at 5:42 AM, Hiroo Ono (=E5=B0=8F=E9=87=8E=E5=AF=9B=E7= =94=9F) > wrote: >> I recently installed 12-current powerpc64 r313561 to a PowerMac G5 >> (it is dual processor, but I do not know its detail). >>=20 >> When I try to load drm2.ko and radeonkms.ko, >> the screen turns into black and recovers, then the system locks. >> kldload command does not return, no response to keyboard input, etc. >>=20 >> Is it possible to use KMS on FreeBSD/powerpc64? >>=20 >> The log in /var/log/messages is >>=20 >> after "kldload drm2", >>=20 >> kernel: info: [drm] Initialized drm 1.1.0 20060810 >>=20 >> and then, after "kldload radeonkms", >>=20 >> kernel: iic0: on iicbus0 >> kernel: iic1: on iicbus1 >> kernel: drmn0: on vgapci0 >> kernel: info: [drm] RADEON_IS_AGP >> kernel: info: [drm] initializing kernel modesetting (RV350 = 0x1002:0x4150 >> 0x1002:0x4150). >> kernel: info: [drm] register mmio base: 0x90000000 >> kernel: info: [drm] register mmio size: 65536 >> kernel: info: [drm] igp_read_bios_from_vram: =3D=3D=3D> Try IGP's = VRAM... >> kernel: info: [drm] igp_read_bios_from_vram: VRAM base address: = 0x98000000 >> kernel: info: [drm] igp_read_bios_from_vram: Map address: >> 0xc000000061412000 (262144 bytes) >> kernel: info: [drm] igp_read_bios_from_vram: Incorrect BIOS = signature: >> 0x0000 >> kernel: info: [drm] radeon_read_bios: =3D=3D=3D> Try PCI Expansion = ROM... >> kernel: info: [drm] radeon_read_bios: Map address: 0xc000000061412000 >> (131072 bytes) >> kernel: info: [drm] radeon_read_bios: Incorrect BIOS signature: = 0x2AFF >> kernel: info: [drm] legacy_read_disabled_bios: =3D=3D=3D> Try = disabled BIOS >> (legacy)... >> kernel: info: [drm] radeon_read_bios: =3D=3D=3D> Try PCI Expansion = ROM... >> kernel: info: [drm] radeon_read_bios: Map address: 0xc000000061412000 >> (131072 bytes) >>=20 >> As the system locks up here, I have to power it off forcibly. >=20 > Congratulations (?) you are quite possibly the first person to report > even attempting to use radeonkms on powerpc64. Frankly, I'm not > surprised that it doesn't work for you. Unfortunately, I don't have a > solution, or even a means to track it down. Looking at the log > snippet, my first guess is there may need to be a provision added to > the driver for non-x86. Do you know what card this is? >=20 > Adding a couple other lists with people who might have more insight. >=20 > If it can be made to work, I'd definitely want to get a Radeon card = for my G5(s) >=20 > - Justin Back on 2014-Nov-21 I wrote the following in one of my messages on the lists on that day: > FYI: I've been building and trying Jean-S=C3=A9bastien P=C3=A9dron's = kms-drm-update-38 branch when Jean requested (sometimes with patches = that Jean provided). This was to give Jean some (indirect) access to a = powerpc64 (PowerMac G5) Radeon context for some radeonkms development. = (Jean had been hoping to get my card going in that context.) We got to = the point that a kldload for radeonkms did not complain/refuse but the = display was then munged up and the driver could not find the Video BIOS. = The fact that it is a Radeon X1950 for the video hardware may make it = odder than usual for PowerMac G5 Radeons. But it is the only Radeon that = I have access to for G5's. (The card works in Mac OS X 10.5.)=20 (As I remember this was a PowerMac G5 so-called "Quad Core" as the G5 context. I do not currently have access to the X1950 card.) I'm not sure from what I read if things are about the same vs. if things are worse now. I do not remember the details from back then, such as console vs. X11 that I was not explicit about in the quoted material. I eventually gave up on using X11 "for a time" --and have not tried = again so far. I've no clue about the current status for X11 on PowerMacs of any kind --or what I'd need to do to try it for the Radeon X1950 or any NVIDIA cards. (Currently an NVIDIA card is installed.) I will eventually have access to the X1950 again, but not soon. =3D=3D=3D Mark Millard markmi at dsl-only.net