From owner-freebsd-ppc@FreeBSD.ORG Fri Oct 26 00:54:23 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62021596; Fri, 26 Oct 2012 00:54:23 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 24CCC8FC08; Fri, 26 Oct 2012 00:54:22 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so2567453pbb.13 for ; Thu, 25 Oct 2012 17:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=P56kCNhaOsjp0fpMys/A7MlAns66XTqRrUHD1IJdy20=; b=Vf8uu68WydzyOdEvg2mx4NYMZHNzLJzbYjTv6vixgos6KjADr75XUGEVDK3tDmseHd j9CWFirhWlaapTWV5WuxI37uAWAUADv7uJpCTuS37Xqm6DOffMiXWzTv8TpJRI7EMIUL 9S0NBwhCjQ6z/QqlTAvRXL+MZZZhgeOxXhjcck+LStq6oAeGiNCtNwDqOkUGk7S38Oi0 7NzmEB9jeKhus1Ie4IKtXORHPrVp8F+z4Z4bq6r1CobY9I/ov1SUJev2cjtgtSOh6Xv9 RFzvQYBnL3l4lgoOEm3EVAEWej+XvoSheS9ujcbi9lQIOAVuxmHApIlLIx0vZsM601Pp k/HQ== Received: by 10.66.79.166 with SMTP id k6mr57720401pax.25.1351212862618; Thu, 25 Oct 2012 17:54:22 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id ho7sm226702pbc.3.2012.10.25.17.54.19 (version=SSLv3 cipher=OTHER); Thu, 25 Oct 2012 17:54:21 -0700 (PDT) Message-ID: <5089DF27.9020803@gmail.com> Date: Thu, 25 Oct 2012 17:53:59 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121015 Thunderbird/16.0.1 MIME-Version: 1.0 To: Albert Vest Subject: Re: Does drm/dri currently work on PPC? References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> <5089A6DB.9070904@brakiri.com> In-Reply-To: <5089A6DB.9070904@brakiri.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-x11@freebsd.org, Justin Hibbits , freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 00:54:23 -0000 On 10/25/12 13:53, Albert Vest wrote: > > I also use Radeon r200, but on an i386 machine. Same symptom happens to > me if I don't force BusType to PCI in my xorg.conf: > > ... > Option "BusType" "PCI" # Force IGP to PCI > ... > > hope that helps, > Albert. > So far it doesn't look like that helps. It took a bit longer to crash, and the screen flashed a pleasing pinkish-maroon before the system locked up. I'm going to keep trying to fiddle driver section values, but I think there's something architecturally wrong/missing. Here's what I've noticed: In /usr/src/sys/dev/drmP.h, we have htole16 and htole32 wrapped around drm read and write functions, which neither netbsd nor openbsd have (perhaps they wrap it elsewhere). drm_read8 and drm_write8 on freebsd are not wrapped, which seems odd to me? I can understand all or none, but "some" seems like 8-bit reads and writes are either going to be the only ones that work or the only ones that don't. When I try to start X, I am also seeing this mess (X -configure as well) with WITH_NEW_XORG. I have hw.ofwfb.relax_mmap=1. [ 251.670] (WW) xf86EnableIO -1 [ 251.671] (II) xf86EnableIO: ffffffff [ 251.671] (WW) Can't map IO space! [ 251.671] (--) PCI: (0:0:16:0) 1002:4966:1002:4966 rev 1, Mem @ 0x98000000/134217728, 0x90000000/65536, I/O @ 0x00000400/256, BIOS @ 0x????????/65536 [ 251.719] List of video drivers: [ 251.719] ati [ 251.719] radeon [ 251.720] (II) LoadModule: "ati" [ 251.791] (II) Loading /usr/local/lib/xorg/modules/drivers/ati_drv.so [ 251.803] (II) Module ati: vendor="X.Org Foundation" [ 251.803] compiled for 1.10.6, module version = 6.14.6 [ 251.803] Module class: X.Org Video Driver [ 251.803] ABI class: X.Org Video Driver, version 10.0 [ 251.803] (II) LoadModule: "radeon" [ 251.805] (II) Loading /usr/local/lib/xorg/modules/drivers/radeon_drv.so [ 251.895] (II) Module radeon: vendor="X.Org Foundation" [ 251.895] compiled for 1.10.6, module version = 6.14.6 [ 251.895] Module class: X.Org Video Driver [ 251.895] ABI class: X.Org Video Driver, version 10.0 [ 251.895] (WW) xf86EnableIO -1 [ 251.895] (II) xf86EnableIO: ffffffff [ 251.895] (WW) Can't map IO space! [ 251.895] No devices to configure. Configuration failed.