From: Arvind R <arvino55@gmail.com>
To: xen-devel@lists.xensource.com
Subject: Nouveau on dom0
Date: Thu, 25 Feb 2010 14:16:07 +0530 [thread overview]
Message-ID: <d799c4761002250046j4fc14785ue17db46d6e3e71ce@mail.gmail.com> (raw)
Hi all,
I merged the drm-tree from 2.6.33-rc8 into jeremy's 2.6.31.6 master and
got X working on dom0 - but only with option "ShadowFB" set. Using Xorg-7.5,
mesa-git, libdrm-git xf86-video-nouveau-git, xen-testing-git and
qemu-dm-git. Ensured dependencies by deb-packaging everything. Kernel
built without drm and the nouveau driver built as a separate
out-of-tree modules package- to ensure
correct ttm modules. Tried WinXP and debianetch domUs - which worked fine.
On bare-metal boot, everything works - even 3D accelerated rendering. But
when booted on Xen, X works ONLY - as mentioned - with ShadowFB set,
which in turn, turns off even 2D acceleration. The only difference in the boots
is that bare-metal boot has 2GB RAM whereas dom0 has 512M. The graphics
card is a nVidia GeForce 9400GT, and the distro is basically debian lenny.
Turned debug on in the nouveau driver and patched some into libdrm and
compared the outputs on bare-metal and xen boot. Identical output upto
problem point - only differing fields were time-stamp, process pid, and
grobj allocation addresses.
Problem Point:
libdrm has an inlined function OUT_RING, defined in
nouveau/nouveau_pushbuf.h.
static __inline__ void
OUT_RING(struct nouveau_channel *chan, unsigned data)
{
*(chan->cur++) = (data);
}
- chan->cur is a uint32_t *
The function is entered by X through ScrnInit in the DDX driver.
Patched log-message on entry is written to syslog, and then -
X seems to get suspended. chan->cur can be read on entry,
so (assumed) suspension is on write. System loses consoles,
but can be ssh'ed into - no killed processes, no segfault.
The area pointed to be the pushbuf - which is apparently the
PRAMIN area on the graphics card. Modern graphics is not
my forte - so I am seeking some pointers to resolve this from
anyone. I think that if this is solved, Xen would have open-source
3D-acceleration support! Am game for testing, patching, etc.
I am basically interested in having a develepment domU and
another testing domU without devel-packages.
Arvind R.
next reply other threads:[~2010-02-25 8:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 8:46 Arvind R [this message]
2010-02-25 12:55 ` Nouveau on dom0 Konrad Rzeszutek Wilk
2010-02-25 17:01 ` Arvind R
2010-02-25 17:44 ` Konrad Rzeszutek Wilk
2010-02-26 15:34 ` Arvind R
2010-03-01 16:01 ` Konrad Rzeszutek Wilk
2010-03-02 21:34 ` Arvind R
2010-03-03 17:11 ` Arvind R
2010-03-03 18:13 ` Konrad Rzeszutek Wilk
2010-03-04 9:17 ` Arvind R
2010-03-04 18:25 ` Konrad Rzeszutek Wilk
2010-03-05 7:46 ` Arvind R
2010-03-05 20:23 ` Konrad Rzeszutek Wilk
2010-03-06 8:16 ` Arvind R
2010-03-06 20:59 ` Arvind R
2010-03-06 23:56 ` Arvind R
2010-03-08 17:51 ` Konrad Rzeszutek Wilk
2010-03-10 12:50 ` [Solved] " Arvind R
2010-03-10 14:00 ` Pasi Kärkkäinen
2010-03-10 19:37 ` Jeremy Fitzhardinge
[not found] ` <20100311201536.GA22182@phenom.dumpdata.com>
2010-03-12 6:12 ` Arvind R
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d799c4761002250046j4fc14785ue17db46d6e3e71ce@mail.gmail.com \
--to=arvino55@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).