Video option for a big endian machine?
Hello.
I'm looking for a PCI or AGP video card that would work on a Linux port for a big endian architecture (HP PA-RISC). Unfortunately the stock video options (ATI FireGL X1 and X3) give an incredibly slow unaccelerated 2D due to failure to kickstart the command processor (radeon open source driver). Neither folks from linux-parisc@ nor from dri-devel@ camps know how to fix this.
Are there any other options that should get a good accelerated 2D or better 3D and theoretically should work on a subj (big endian byte order, looks like coherent memory and all I/O is going through IOMMU chip)?
How about nouveau or anything else on non-x86 arch? What people are using on POWER machines for example?
Thanks much for any help!
Quoted 7 lines · On Wed, Feb 11, 2015 at 3:53 AM, <[email protected]> wrote:
Hello.
I'm looking for a PCI or AGP video card that would work on a Linux port for a big endian architecture (HP PA-RISC). Unfortunately the stock video options (ATI FireGL X1 and X3) give an incredibly slow unaccelerated 2D due to failure to kickstart the command processor (radeon open source driver). Neither folks from linux-parisc@ nor from dri-devel@ camps know how to fix this.
Are there any other options that should get a good accelerated 2D or better 3D and theoretically should work on a subj (big endian byte order, looks like coherent memory and all I/O is going through IOMMU chip)?
How about nouveau or anything else on non-x86 arch? What people are using on POWER machines for example?
The current state of hardware-accelerated 2d/3d on big endian is a bit of a mess. With nouveau, you can generally get older cards to work (esp if you stick to 4K pages) -- by older I mean pre-G80 (nv50) cards. A user recently tried to get a semi-modern (fermi) nvidia card up and running, and ended up with messed up colors (the belief is that the LUTs are being messed up, but it could be any number of issues). I believe that ATI/AMD hardware, generally speaking, also works. IIRC PA-RISC has some extra-special issues beyond being BE though. You can get a used card for pretty cheap, you might give nouveau a try.
Moving to 3d-land (i.e. mesa), hw drivers used to work before mesa 9.2 or 9.1 or so, but then some changes went in to fix llvmpipe (software 3d implementation, using LLVM as a JIT) on big endian platforms which cause byte-swapped textures in many cases on actual hw. Some additional work was done to fix this, but I'm not sure what the status is.
I think the biggest reason for this is that nobody actually has access to BE CPU's anymore, especially not in conjunction with 16x PCIe slots -- they tend to be server-class machines with little attention paid to graphics. You just run VM's on them, and use llvmpipe to get that fancy 3d compositor to work. I don't think any of the issues are _that_ hard to fix, but very difficult to do so "blind".
-ilia
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · On Wed, Feb 11, 2015 at 3:53 AM, <[email protected]> wrote:
Hello.
I'm looking for a PCI or AGP video card that would work on a Linux port for a big endian architecture (HP PA-RISC). Unfortunately the stock video options (ATI FireGL X1 and X3) give an incredibly slow unaccelerated 2D due to failure to kickstart the command processor (radeon open source driver). Neither folks from linux-parisc@ nor from dri-devel@ camps know how to fix this.
The X1 and X3 are really old asics and the risc specific versions tended to have special firmware for that platform that the open driver does not handle properly. You might have better luck using a more modern GPU (e.g., an R5xx or newer based asic) with an x86 vbios.
Alex
Quoted 10 lines
Are there any other options that should get a good accelerated 2D or better 3D and theoretically should work on a subj (big endian byte order, looks like coherent memory and all I/O is going through IOMMU chip)?
How about nouveau or anything else on non-x86 arch? What people are using on POWER machines for example?
Thanks much for any help!
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
Quoted 10 lines · Alex Deucher
Quoted 4 lines · On Wed, Feb 11, 2015 at 3:53 AM, <[email protected]> wrote:
Hello.
I'm looking for a PCI or AGP video card that would work on a Linux port for a big endian architecture (HP PA-RISC). Unfortunately the stock video options (ATI FireGL X1 and X3) give an incredibly slow unaccelerated 2D due to failure to kickstart the command processor (radeon open source driver). Neither folks from linux-parisc@ nor from dri-devel@ camps know how to fix this.
The X1 and X3 are really old asics and the risc specific versions tended to have special firmware for that platform that the open driver does not handle properly. You might have better luck using a more modern GPU (e.g., an R5xx or newer based asic) with an x86 vbios.
If memory serves PA-RISC had some restrictions on PCI BAR windows, it wasn't just endianness problems.
Dave.
Thanks much for the answers, guys!
Quoted 3 lines
Ilia Mirkin <[email protected]>:
With nouveau, you can generally get older cards to work
Took a bunch of gf2mx and fx5500 cards I had access to. With Noveau they fail with "GPU lockup". The kernel version is 3.16.7.
The issue chain is nouveau_fbcon_imageblit(): nouveau_fbcon_gpu_lockup() is called -> nv04_fbcon_imageblit(): while (dsize) { ... ret = RING_SPACE(chan, iter_len + 1); if (ret) return ret; /* -EBUSY at some iteration */ ... } -> nouveau_dma_wait() -> while (chan->dma.free < size) { get = READ_GET(chan, &prev_get, &cnt); if (unlikely(get == -EBUSY)) return -EBUSY; /* HERE */ ... }
Quoted 14 lines
Dave Airlie <[email protected]>:
Quoted 11 lines · Alex Deucher
Quoted 4 lines · On Wed, Feb 11, 2015 at 3:53 AM, <[email protected]> wrote:
Hello.
I'm looking for a PCI or AGP video card that would work on a Linux port for a big endian architecture (HP PA-RISC). Unfortunately the stock video options (ATI FireGL X1 and X3) give an incredibly slow unaccelerated 2D due to failure to kickstart the command processor (radeon open source driver). Neither folks from linux-parisc@ nor from dri-devel@ camps know how to fix this.
The X1 and X3 are really old asics and the risc specific versions tended to have special firmware for that platform that the open driver does not handle properly. You might have better luck using a more modern GPU (e.g., an R5xx or newer based asic) with an x86 vbios.
If the above is not some Nouveau miss, then it looks like it's some general architecture / chipset related code issue regarding ring buffer. I wonder how network card driver works then. Opinions? There is a chipset specific drivers porting note: https://kernel.org/doc/ols/2002/ols2002-pages-183-190.pdf Though some parts of it are about IA64.
CC to linux-parisc@
Quoted 2 lines
If memory serves PA-RISC had some restrictions on PCI BAR windows, it wasn't just endianness problems.
The only thing I've heard regarding this was:
"The FireGL X1 / 256 AGP pro card used in the C8000 is a standard ATI part, but has a special video BIOS that reduces the PCI BAR space used by the card. The C8000 I/O space totals 256Mb, so using it all for the graphics wouldn't allow for any boot devices, etc." But then it's all on the vendor behalf, as the driver could read space sizes via PCI info functions.
Quoted 2 lines
Dave.
Quoted 19 lines · On Sun, Feb 15, 2015 at 1:52 AM, <[email protected]> wrote:
Thanks much for the answers, guys!
Quoted 3 lines
Ilia Mirkin <[email protected]>:
With nouveau, you can generally get older cards to work
Took a bunch of gf2mx and fx5500 cards I had access to. With Noveau they fail with "GPU lockup". The kernel version is 3.16.7.
The issue chain isnouveau_fbcon_imageblit():nouveau_fbcon_gpu_lockup()is called ->nv04_fbcon_imageblit(): while (dsize) { ... ret =RING_SPACE(chan, iter_len + 1); if (ret) return ret; /*-EBUSYat some iteration */ ... } ->nouveau_dma_wait()-> while (chan->dma.free< size) { get =READ_GET(chan, &prev_get, &cnt); if (unlikely(get ==-EBUSY)) return-EBUSY; /* HERE */ ... }Quoted 10 lines
Dave Airlie <[email protected]>:
Quoted 7 lines · Alex Deucher
Quoted 4 lines · On Wed, Feb 11, 2015 at 3:53 AM, <[email protected]> wrote:
Hello.
I'm looking for a PCI or AGP video card that would work on a Linux port for a big endian architecture (HP PA-RISC). Unfortunately the stock video options (ATI FireGL X1 and X3) give an incredibly slow unaccelerated 2D due to failure to kickstart the command processor (radeon open source driver). Neither folks from linux-parisc@ nor from dri-devel@ camps know how to fix this.
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
The X1 and X3 are really old asics and the risc specific versions tended to have special firmware for that platform that the open driver does not handle properly. You might have better luck using a more modern GPU (e.g., an R5xx or newer based asic) with an x86 vbios.
If the above is not some Nouveau miss, then it looks like it's some general architecture / chipset related code issue regarding ring buffer. I wonder how network card driver works then. Opinions?
NICs are generally much simpler and don't have large BAR windows for vram access. The driver for the on board NIC (if there is one) may also have special handling for those specific boards.
Also note that a lot of information is stored in the vbios on the card (number and type of connectors, encoder to connector routing, i2c bus information, asic init sequences, clocks and voltages, etc.). For boards with special vbios images (like those or sun or mac boards) the driver falls back to reasonable defaults which may not be always be a good fit for the board. Also, the driver only knows how to natively post boards with x86 vbioses. For everything else we really on the vendor firmware to have already initialized and posted the card.
Alex
Quoted 13 lines
There is a chipset specific drivers porting note: https://kernel.org/doc/ols/2002/ols2002-pages-183-190.pdf Though some parts of it are about IA64. CC to linux-parisc@
Quoted 2 lines
If memory serves PA-RISC had some restrictions on PCI BAR windows, it wasn't just endianness problems.
The only thing I've heard regarding this was:
"The FireGL X1 / 256 AGP pro card used in the C8000 is a standard ATI part, but has a special video BIOS that reduces the PCI BAR space used by the card. The C8000 I/O space totals 256Mb, so using it all for the graphics wouldn't allow for any boot devices, etc." But then it's all on the vendor behalf, as the driver could read space sizes via PCI info functions.Quoted 2 lines
Dave.
Quoted 7 lines · On Thu, 12 Feb 2015 07:08:10 +1000 Dave Airlie <[email protected]> wrote:
Quoted 6 lines · Alex Deucher
Quoted 4 lines · On Wed, Feb 11, 2015 at 3:53 AM, <[email protected]> wrote:
Hello.
I'm looking for a PCI or AGP video card that would work on a Linux port for a big endian architecture (HP PA-RISC). Unfortunately the stock video options (ATI FireGL X1 and X3) give an incredibly slow unaccelerated 2D due to failure to kickstart the command processor (radeon open source driver). Neither folks from linux-parisc@ nor from dri-devel@ camps know how to fix this.
Quoted 7 lines
Quoted 4 lines
The X1 and X3 are really old asics and the risc specific versions tended to have special firmware for that platform that the open driver does not handle properly. You might have better luck using a more modern GPU (e.g., an R5xx or newer based asic) with an x86 vbios.
If memory serves PA-RISC had some restrictions on PCI BAR windows, it wasn't just endianness problems.
PCI isn't really the root bus so it's a bit odd.
If you can live with 1024x768 then the ancient PCI Voodoo2 graphics cards in 2D mode don't even report as video cards, have minimal setup requirements and work on just about anything with a PCI bus. They are also usually available in the "junk box under the table" at computer shows.
3D is a bit trickier but the 2D acceleration is quite nice and can even do alpha blending (as it was in part designed to work with the 3D). Actually doing 3D is a different kettle of fish.
Alan