From: Boris Derzhavets Subject: Re: Re: Attempt to start X-Server at Xen 3.5 Dom0 ( 2.6.31) on top of Ubuntu 9.04 Server Date: Thu, 24 Sep 2009 10:17:17 -0700 (PDT) Message-ID: <6994.16171.qm@web56101.mail.re3.yahoo.com> References: <20090924164839.GA608@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0560276958==" Return-path: In-Reply-To: <20090924164839.GA608@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge , Xen-devel List-Id: xen-devel@lists.xenproject.org --===============0560276958== Content-Type: multipart/alternative; boundary="0-231975797-1253812637=:16171" --0-231975797-1253812637=:16171 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable It happens at Xen 3.4.1 Dom0 (the most recent=A0 2.6.31)=20 on top F11 and at Xen 3.5 Dom0=A0 (2.6.31commit 398b4b4cabdb27c06a7b8214c20= 44347ffc08c49 ) on top Ubuntu 9.04 Server. However , X-Server starts at Dom0 on top of F11 and requires DRM get disabl= ed in 2.6.31 pvops kernel in Xen 3.5 Dom0 on top of Ubuntu 9.04 Server for = successful startup. It's Xorg 1.6 version in both cases. Boris. --- On Thu, 9/24/09, Konrad Rzeszutek Wilk wrote: From: Konrad Rzeszutek Wilk Subject: Re: [Xen-devel] Re: Attempt to start X-Server at Xen 3.5 Dom0 ( 2.= 6.31) on top of Ubuntu 9.04 Server To: "Boris Derzhavets" Cc: "Jeremy Fitzhardinge" , "Xen-devel" Date: Thursday, September 24, 2009, 12:48 PM On Wed, Sep 23, 2009 at 10:54:09PM -0700, Boris Derzhavets wrote: > Sorry , there is difference in dmesg reports under xen and as vanilla. >=20 > dmesg under xen:- >=20 > [=A0 243.858191] mtrr: type mismatch for d0000000,10000000 old: write-bac= k new: write-combining > [=A0 243.858263] mtrr: type mismatch for d0000000,10000000 old: write-bac= k new: write-combining > [=A0 244.132051] mtrr: type mismatch for d0000000,10000000 old: write-bac= k new: write-combining > [=A0 244.132115] mtrr: type mismatch for d0000000,10000000 old: write-bac= k new: write-combining > [=A0 244.132181] mtrr: type mismatch for d0000000,10000000 old: write-bac= k new: write-combining > [=A0 244.157265] [drm] Setting GART location based on new memory map > [=A0 244.190885] [drm] Loading RV730/RV740 PFP Microcode > [=A0 244.190911] [drm] Loading RV730/RV740 CP Microcode > [=A0 244.205974] [drm] Resetting GPU > ->=A0=A0=A0 [=A0 244.310103] [drm] writeback test failed > [=A0 251.220092] [drm] Resetting GPU >=20 > dmesg 2.6.31 vanilla:- >=20 > [=A0=A0 36.941430] [drm] Initialized drm 1.1.0 20060810 > [=A0=A0 36.988225] pci 0000:01:00.0: setting latency timer to 64 > [=A0=A0 36.988341] [drm] Initialized radeon 1.31.0 20080528 for 0000:01:0= 0.0 on minor 0 > [=A0=A0 36.989222] mtrr: type mismatch for d0000000,10000000 old: write-b= ack new: write-combining > [=A0=A0 37.210900] mtrr: type mismatch for d0000000,10000000 old: write-b= ack new: write-combining > [=A0=A0 37.210940] mtrr: type mismatch for d0000000,10000000 old: write-b= ack new: write-combining > [=A0=A0 37.210976] mtrr: type mismatch for d0000000,10000000 old: write-b= ack new: write-combining > [=A0=A0 37.232744] [drm] Setting GART location based on new memory map > [=A0=A0 37.248205] [drm] Loading RV730/RV740 PFP Microcode > [=A0=A0 37.248227] [drm] Loading RV730/RV740 CP Microcode > [=A0=A0 37.263281] [drm] Resetting GPU > -> [=A0=A0 37.263336] [drm] writeback test succeeded in 1 usecs I think I know why this is not working. The DRM and its AGP modules call virt_to_gart and gart_to_virt, which is de= fined as: #define virt_to_gart(x) (phys_to_gart(virt_to_phys(x))) #define gart_to_virt(x) (phys_to_virt(gart_to_phys(x))) and phys_to_gart and gart_to_phys are: #define phys_to_gart(x) swiotlb_phys_to_bus(NULL, (x)) #define gart_to_phys(x) swiotlb_bus_to_phys(NULL, (x)) The swiotlb_* calls do return the wrong information when the kernel is running under Xen. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-231975797-1253812637=:16171 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
It happens at Xen 3.4.1 Dom0 (the most recent=   2.6.31)
on top F11 and at Xen 3.5 Dom0  (2.6.31commit 398b4= b4cabdb27c06a7b8214c2044347ffc08c49 )
on top Ubuntu 9.04 Server.
Howe= ver , X-Server starts at Dom0 on top of F11 and requires DRM get disabled i= n 2.6.31 pvops kernel in Xen 3.5 Dom0 on top of Ubuntu 9.04 Server for succ= essful startup. It's Xorg 1.6 version in both cases.

Boris.

<= br>--- On Thu, 9/24/09, Konrad Rzeszutek Wilk <konrad.wilk@oracle.= com> wrote:

From: Konrad Rzeszut= ek Wilk <konrad.wilk@oracle.com>
Subject: Re: [Xen-devel] Re: Atte= mpt to start X-Server at Xen 3.5 Dom0 ( 2.6.31) on top of Ubuntu 9.04 Serve= r
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Jeremy Fitzhardinge" <jeremy@goop.org>, "Xen-devel" <xen-devel@lists.xen= source.com>
Date: Thursday, September 24, 2009, 12:48 PM

On Wed, Sep 23, 2009 at 10:54:09PM -0700, Boris Derzhav= ets wrote:
> Sorry , there is difference in dmesg reports under xen a= nd as vanilla.
>
> dmesg under xen:-
>
> [  = 243.858191] mtrr: type mismatch for d0000000,10000000 old: write-back new: = write-combining
> [  243.858263] mtrr: type mismatch for d000000= 0,10000000 old: write-back new: write-combining
> [  244.132051]= mtrr: type mismatch for d0000000,10000000 old: write-back new: write-combi= ning
> [  244.132115] mtrr: type mismatch for d0000000,10000000 = old: write-back new: write-combining
> [  244.132181] mtrr: type= mismatch for d0000000,10000000 old: write-back new: write-combining
>= ; [  244.157265] [drm] Setting GART location based on new memory map
> [  244.190885] [drm] Loading RV730/RV740 PFP Microcode> [  244.190911] [drm] Loading RV730/RV740 CP Microcode
> [&= nbsp; 244.205974] [drm] Resetting GPU
> ->    [&nbs= p; 244.310103] [drm] writeback test failed
> [  251.220092] [drm= ] Resetting GPU
>
> dmesg 2.6.31 vanilla:-
>
> [&= nbsp;  36.941430] [drm] Initialized drm 1.1.0 20060810
> [ =   36.988225] pci 0000:01:00.0: setting latency timer to 64
> [&n= bsp;  36.988341] [drm] Initialized radeon 1.31.0 20080528 for 0000:01:= 00.0 on minor 0
> [   36.989222] mtrr: type mismatch for d0= 000000,10000000 old: write-back new: write-combining
> [   = 37.210900] mtrr: type mismatch for d0000000,10000000 old: write-back new: w= rite-combining
> [   37.210940] mtrr: type mismatch for d00= 00000,10000000 old: write-back new: write-combining
> [   37.210976] mtrr: type mismatch for d0000000,10000000 old: wr= ite-back new: write-combining
> [   37.232744] [drm] Settin= g GART location based on new memory map
> [   37.248205] [d= rm] Loading RV730/RV740 PFP Microcode
> [   37.248227] [drm= ] Loading RV730/RV740 CP Microcode
> [   37.263281] [drm] R= esetting GPU
> -> [   37.263336] [drm] writeback test su= cceeded in 1 usecs

I think I know why this is not working.

Th= e DRM and its AGP modules call virt_to_gart and gart_to_virt, which is defi= ned as:

#define virt_to_gart(x) (phys_to_gart(virt_to_phys(x)))
#= define gart_to_virt(x) (phys_to_virt(gart_to_phys(x)))
and phys_to_gart = and gart_to_phys are:
#define phys_to_gart(x) swiotlb_phys_to_bus(NULL, = (x))
#define gart_to_phys(x) swiotlb_bus_to_phys(NULL, (x))

The s= wiotlb_* calls do return the wrong information when the
kernel is running under Xen.

_______________________________________________<= br>Xen-devel mailing list
Xen-devel@lis= ts.xensource.com
http://lists.xensource.com/xen-devel

=0A=0A --0-231975797-1253812637=:16171-- --===============0560276958== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0560276958==--