WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re : Re : [Xen-devel] Re: Patches for VGA-Passthrough XEN 4.2 unstable

To: komkon555 <komkon555@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re : Re : [Xen-devel] Re: Patches for VGA-Passthrough XEN 4.2 unstable
From: David TECHER <davidtecher@xxxxxxxx>
Date: Wed, 7 Sep 2011 10:52:18 +0100 (BST)
Cc:
Delivery-date: Wed, 07 Sep 2011 02:52:56 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1315389138; bh=Z7iXrRLYOXXsagrG+2qsKNgqSziTaX631oSnCi8kLjk=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=TLIxR7ND4ZSna2H0TeID5ZQnM6OR2tECUF+55mwkrqtH+fJ96CT2AeSrRRTUAIKAmbIs6MGJeuuKU74gPcy7U9NWA5lNUrBjzinWa8NV+RG8v6psQnnAlWjuycNdHAvpoayMGdlhMugaoGJj6qsjCHQcOMkYJWg3+KR175hrEkQ=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=OTHOGTU6D9fB7hAH6LvsEmKr3VrEtMNuTaf4K6gzvroRscNTf8GQOp1q2dmx0qvq18ICxqOPwbi+x3zrFs1LHVdR68cqZ+3r4keZjqmNjlpmgwcOzz8LSO3srN9+YktgWGq6qLK0+ajRzjJPObH1q/AL3BgCj3O3I3qEECqSuUM=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1315382742268-4777689.post@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1314716445148-4750357.post@xxxxxxxxxxxxx> <1314720409505-4750600.post@xxxxxxxxxxxxx> <1314778567400-4753326.post@xxxxxxxxxxxxx> <20110831083832.GD7276@xxxxxxxxxxx> <1314780568949-4753422.post@xxxxxxxxxxxxx> <1314795401771-4754024.post@xxxxxxxxxxxxx> <20110831151913.GE7276@xxxxxxxxxxx> <1315231341254-4770602.post@xxxxxxxxxxxxx> <1315310225039-4774097.post@xxxxxxxxxxxxx> <1315343879.61837.YahooMailNeo@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <1315382742268-4777689.post@xxxxxxxxxxxxx>
Reply-to: David TECHER <davidtecher@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Well it is very simple :)

I will show your a example

You have to replace the required ranges in for the 4 "ranges"; So this is the info you've sent to me

1 --------> pci 0000:08:00.0: reg 10 32bit mmio: [0xf8000000-0xf8ffffff]
2 --------> pci 0000:08:00.0: reg 14 64bit mmio pref: [0xd0000000-0xdfffffff]
3 --------> pci 0000:08:00.0: reg 1c 64bit mmio: [0xf6000000-0xf7ffffff]
4 --------> pci 0000:08:00.0: reg 30 32bit mmio pref: [0xf5f80000-0xf5ffffff]

I will do it for the number 1

1) You will have replace the required values in tools/firmware/hvmloader/acpi/dsdt.asl
    Search for the words  "/* reserve MMIO BARs of gfx for 1:1 mapping */" in the file
    and the first block AFTER  need to be    change like that

         Here the reference is

     "pci 0000:08:00.0: reg 10 32bit mmio: [0xf8000000-0xf8ffffff]"
---------------------------------------------------------------------
         "/* reserve MMIO BARs of gfx for 1:1 mapping */
                     DWordMemory(
                         ResourceProducer, PosDecode, MinFixed, MaxFixed,
                         Cacheable, ReadWrite,
                        0x00000000,
                        0xF8000000, // the min value in hexadecimal, I modify it here
                        0xF8FFFFFF, // the max value in hexadecimal I midify it here
                        0x00000000,
                        ???????????) // value = max - min + 1 in hexadecimal value, I need to find it
---------------------------------------------------------------------------

You need to convert the min and the max and do the conversion

For hexadecimal/decimal conversions,  go to a site like http://www.statman.info/conversions/hexadecimal.html for doing conversion

For min and max values, you will have (enter the value without "0x" on the site I told you, feel the field "Convert", click on "to decimal")
Hex            Dec
F8000000    4160749568
F8FFFFFF    4177526783

So 4177526783 - 4160749568 +1 = 16777216
So 16777216 is 1000000 in hexadecimal

As a consequence for

 pci 0000:08:00.0: reg 10 32bit mmio: [0xf8000000-0xf8ffffff]

you will have
------------------------------------------------------------------------
    "/* reserve MMIO BARs of gfx for 1:1 mapping */
                     DWordMemory(
                         ResourceProducer, PosDecode, MinFixed, MaxFixed,
                         Cacheable, ReadWrite,
                        0x00000000,
                        0xF8000000, // the min value in hexadecimal
                        0xF8FFFFFF, // the max value in hexadecimal
                        0x00000000,
                        0x01000000) // value = max - min + 1 in hexadecimal value
----------------------------------------------------------------------------

Do the same steps for

2 --------> pci 0000:08:00.0: reg 14 64bit mmio pref: [0xd0000000-0xdfffffff]
3 --------> pci 0000:08:00.0: reg 1c 64bit mmio: [0xf6000000-0xf7ffffff]
4 --------> pci 0000:08:00.0: reg 30 32bit mmio pref: [0xf5f80000-0xf5ffffff]

That's all!

Ensure to put you vgabios-pt.bin in the required place.

Compil and install.

My graphic card GT 440 works like a charm with nvidia 275.33. I've tried you 280.26 nvidia drivers but without any success. This driver version requires more ressoures.

The GPLPV drivers for HVM works well too!


De : komkon555 <komkon555@xxxxxxxxxx>
À : xen-devel@xxxxxxxxxxxxxxxxxxx
Envoyé le : Mercredi 7 Septembre 2011 10h05
Objet : Re: Re : [Xen-devel] Re: Patches for VGA-Passthrough XEN 4.2 unstable

Hallo. Can you please explain, what is exactly to do with dsd. I don't
understand it. Which entrance are what for?
Thank you.


--
View this message in context: http://xen.1045712.n5.nabble.com/Patches-for-VGA-Passthrough-XEN-4-2-unstable-tp4406265p4777689.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel