|
From: Johannes G. <joh...@gm...> - 2004-09-23 22:46:52
|
Ludovic Pollet wrote:
>Maybe you can enable your mga manually with lspci/setpci :
>the idea is to use the config set by the i386 kernel,
>on the amd64 one...
>
>You can create a dump of your matrox pci configuration on your
>i386 kernel, assuming the busid of the mga is 00:0a.a
> lspci -x -s 00:0a.0 > mga.pci
>
>You will need to transform it into a setpci command line,
>by piping it into this perl script :
>
>#!/usr/bin/perl
>$line=<STDIN>;
>$i = 0;
>while($line = <STDIN>) {
> $line=~s/^[0-9a-fA-F][0-9a-fA-F]://;
> while($line=~m/^ ([0-9a-fA-F][0-9a-fA-F])(.*)$/) {
> $line = $2;
> print sprintf(" %x.b=$1",$i);
> $i++;
> }
>}
>print "\n";
>
>It will give you something looking like :
> 0.b=2b 1.b=10 2.b=1a 3.b=05 4.b=87 ...
>
>Then on the amd64 kernel, issue the setpci command with
>the registers values :
> setpci -s XX:XX.X 0.b=2b 1.b=10 2.b=1a 3.b=05 4.b=87
>
>If it works, your mga should be enabled in lspci...
>
>Beware that if the memory/IRQ ressources used on i386
>are not available on x86-64,
>it will certainly just crash your box.
Thanks a lot, I tried in both cases:
1) when the MGA is the primary display adapter I performed
above procedure with the NVidia
2) when the NVidia is the primary display adapter I performed
above procedure with the MGA.
The result in both cases is the same: according to
lspci -v the secondary display adapter has no memory.
Anyway it did not crash my computer.
Up to now only one configuration has some promising results:
MGA is primary, NVidia secondary, i386 kernel:
In this case I can start the first XServer on the NVidia (vt7),
and then a second Xserver on the MGA (vt17). Both Xservers
have the prefbusid patch.
After starting the second XServer I still see an image on the
NVidia, I can move the curser, but the keyboard is dead
(no reaction whatever key I press, no leds).
After stopping the second XServer with <Ctrl-Alt-Backspace>
on the second keyboard I must reboot the computer.
When I use x86_64 kernel the secondary graphic card
(MGA or NVidia, whatever) has no memory.
When I use i386 kernel with MGA as secondary
graphic card the memory on the MGA is disabled and I cannot
start an XServer on the MGA.
Johannes Gajdosik
|