From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-amd64+bounces-12361-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NZpj4-0004XO-VJ
	for garchives@archives.gentoo.org; Tue, 26 Jan 2010 18:01:20 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id EB9B9E08E8
	for <garchives@archives.gentoo.org>; Tue, 26 Jan 2010 18:01:17 +0000 (UTC)
Received: from mail-pw0-f47.google.com (mail-pw0-f47.google.com [209.85.160.47])
	by pigeon.gentoo.org (Postfix) with ESMTP id 47711E08B0
	for <gentoo-amd64@lists.gentoo.org>; Tue, 26 Jan 2010 17:30:10 +0000 (UTC)
Received: by pwj10 with SMTP id 10so3430600pwj.26
        for <gentoo-amd64@lists.gentoo.org>; Tue, 26 Jan 2010 09:30:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        bh=bwB3FfER1Y8ondHOSlgFDfI/FIhFiJJyo42q2xTVW0M=;
        b=P4SjRtQczXKv0H6nPhEUfTED9xAq62DIyFwx88x3k9sE+/I/gft2jGwIbGafwT6RC5
         QV24P7cKvO8Xbih77pYanfQl9cUcox4mILLMRCo3gdHc9SCXGrBxi8MMfzBuOBoRRrnH
         Y6SCY0lgKupFKH0BHql6bYyn4FFNOvFfcDJS4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        b=Zonw5WpQmOXHfRfNDVkirrZMW+R3YjOlXMNf6XG/fAmMN+LzMkK2n3+e3B2r6p4qcy
         j9aRMZLCmMBrxb9fpsYABmiAilXodfv72wNX29gHgGanjuNxcjpHlwOnb7SQRQUZdHh1
         iJHf5ARQOLC4ZYeCWT5DStMtLPtS4AcfnSP9g=
Precedence: bulk
List-Post: <mailto:gentoo-amd64@lists.gentoo.org>
List-Help: <mailto:gentoo-amd64+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-amd64+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-amd64+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-amd64.gentoo.org>
X-BeenThere: gentoo-amd64@lists.gentoo.org
Reply-to: gentoo-amd64@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.142.122.24 with SMTP id u24mr113315wfc.53.1264527009749; Tue, 
	26 Jan 2010 09:30:09 -0800 (PST)
In-Reply-To: <201001261059.46541.peter@humphrey.ukfsn.org>
References: <5bdc1c8b1001251520x3aae67b6ld7ba028d365eb757@mail.gmail.com>
	 <hjlbtc$efo$1@ger.gmane.org>
	 <5bdc1c8b1001251713s19e6e142o774a35bcf48a4d1e@mail.gmail.com>
	 <201001261059.46541.peter@humphrey.ukfsn.org>
Date: Tue, 26 Jan 2010 09:30:09 -0800
Message-ID: <5bdc1c8b1001260930o2ba17a9ap43bd968f115a1ada@mail.gmail.com>
Subject: Re: [gentoo-amd64] Re: video driver / system state question
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-amd64@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 7aada100-62d4-48ca-805a-de3d47a76141
X-Archives-Hash: 2c2f88c62fa1556d3c86c642682b545f

On Tue, Jan 26, 2010 at 2:59 AM, Peter Humphrey
<peter@humphrey.ukfsn.org> wrote:
> On Tuesday 26 January 2010 01:13:59 Mark Knecht wrote:
>
>> mtrr: type mismatch for c0000000,10000000 old: write-back new:
>> write-combining [drm] MTRR allocation failed. =C2=A0Graphics performance=
 may
>> suffer.
>
> This rings a bell. Your kernel line in grub.conf has something like
> "video=3Dinteldrmfb:mtrr:3,ywrap", no? The 3 is causing the error above, =
or
> you may have a 4. Google should be able to find you the docs on this. The
> options are write-combining and write-back; if one doesn't work the other
> should.
>
> --
> Rgds
> Peter.
>
>

Hi all,
   OK - it's working and gentoo-amd64 is the first email recipient
from my new i5-661 running Gentoo Linux and XFCE4. THANKS TO EVERYONE!

   I'll need to document what I did to get it going as well as archive
files so as to protect myself from some sort of infant mortality or
operator error. None the less at least it's up and usable.

   This seems to be one of those cases where I cannot recognize
exactly who had the final answer as there were a lot of things I did
last night to get the machine going, both based on information from
this thread as well as a thread at intel-gfx. Clearly I'm still
learning/confused about the exact technology here so I want to iron
that out over the next few days.

   The main points, subject to me getting schooled on what's really
happening here:

1) The new i5-661 processor and i915 running X are ONLY supported
using KMS so there seem to be two ways to do this:
a) Build the kernel with AGP, DRM and KMS into the kernel, or
b) Build the kernel with AGP, DRM and KMS modular and then use
i915.modeset=3D1 on the boot command line

I am using b) at this time.

2) Use drm.debug=3D0x06 to get lots of nice messages from DRM about
what's going on.

3) Configure the kernel to support frame buffers but turn off
everything except these 4, and possibly only the first and last ones:
(grep for "FB" and "FRAMEBUFFER")

CONFIG_FB=3Dy
CONFIG_FB_CFB_FILLRECT=3Dm
CONFIG_FB_CFB_COPYAREA=3Dm
CONFIG_FB_CFB_IMAGEBLIT=3Dm
CONFIG_FRAMEBUFFER_CONSOLE=3Dy

 The CFB entries are probably not necessary but I haven't figured out
where they are in the kernel yet to turn them off. They do load
modules so they might be required.

4) In make.conf use these lines among others:

CFLAGS=3D"-O2 -march=3Dnative -pipe"
USE=3D"hal dts mmx sse sse2 ssse3 sse4 -gnome -kde"
INPUT_DEVICES=3D"evdev"
VIDEO_CARDS=3D"intel fbdev"

to set up for X and get a normal text boot which I think is taking
place in the frame buffer.

5) As root run

Xorg -configure
Xorg -config /root/xorg.conf.new

If things go right I'm to the point where Drake was correct. X is up
but the screen is blank. Copy xorg.conf.new to /etc/X/xorg.conf

X -retro does work. Thanks Drake!

6) emerge xfce4-meta and then as user put "exec startxfce4" in
.xinitrc, and then startx

   Assuming I haven't made any omissions or stupid mistakes that gets
me into xfce4. I don't know if I'm running X over a frame buffer or
using a more native VGA.

   I will of course review this in more depth as I document it for
real but I wanted to say thanks for the answers as they were all
helpful.

Cheers,
Mark