Re: XFree86 4.1.0: call for help

2001-06-20 Thread Ani Joshi
On Tue, 19 Jun 2001, Michel [iso-8859-1] Dänzer wrote: That would be nice, unfortunately it doesn't. For the record, here's the patch against xf-4_1-branch I tested: Please try the attached patch. This fixes the problem on PCI machines and could possibly fix yours too. It is against the

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Kostas Gewrgiou
On Tue, 19 Jun 2001, Ani Joshi wrote: On Tue, 19 Jun 2001, Michel [iso-8859-1] Dänzer wrote: That would be nice, unfortunately it doesn't. For the record, here's the patch against xf-4_1-branch I tested: Please try the attached patch. This fixes the problem on PCI machines and

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Michel Dänzer
Kostas Gewrgiou wrote: On Tue, 19 Jun 2001, Ani Joshi wrote: On Tue, 19 Jun 2001, Michel [iso-8859-1] Dänzer wrote: That would be nice, unfortunately it doesn't. For the record, here's the patch against xf-4_1-branch I tested: Please try the attached patch. This fixes the

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Michel Dänzer
Michel Dänzer wrote: While we're at it: The last other real issue in the r128 driver is mostly exposed by Xv: the data is moved to the framebuffer word by word, but it gets swapped depending on the current depth, so the video is broken. Does anyone have a better idea than to use different

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Kostas Gewrgiou
On Wed, 20 Jun 2001, Michel Dänzer wrote: Kostas Gewrgiou wrote: On Tue, 19 Jun 2001, Ani Joshi wrote: On Tue, 19 Jun 2001, Michel [iso-8859-1] Dänzer wrote: That would be nice, unfortunately it doesn't. For the record, here's the patch against xf-4_1-branch I tested:

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Michel Dänzer
Kostas Gewrgiou wrote: On Wed, 20 Jun 2001, Michel Dänzer wrote: Kostas Gewrgiou wrote: On Tue, 19 Jun 2001, Ani Joshi wrote: On Tue, 19 Jun 2001, Michel [iso-8859-1] Dänzer wrote: That would be nice, unfortunately it doesn't. For the record, here's the patch

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Kostas Gewrgiou
On Wed, 20 Jun 2001, Michel Dänzer wrote: Kostas Gewrgiou wrote: Since fbdev is handling the console there is no need to restore vga fonts/colormap (i don't know if it is possible to run vgacon under some of the ibm machines, if yes then it is needed there) That's my point, either we

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Ani Joshi
On Wed, 20 Jun 2001, Kostas Gewrgiou wrote: The #ifdef __powerpc__ isn't right (and we can't use os specific code in the drivers) so the fix has to go in another layer, crippling another os to fix our problems isn't the right solution. Well, that's not really true. There's already lots of

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Michel Dänzer
Kostas Gewrgiou wrote: On Wed, 20 Jun 2001, Michel Dänzer wrote: Kostas Gewrgiou wrote: Since fbdev is handling the console there is no need to restore vga fonts/colormap (i don't know if it is possible to run vgacon under some of the ibm machines, if yes then it is needed

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Michel Dänzer
Ani Joshi wrote: On Wed, 20 Jun 2001, Kostas Gewrgiou wrote: The #ifdef __powerpc__ isn't right (and we can't use os specific code in the drivers) so the fix has to go in another layer, crippling another os to fix our problems isn't the right solution. Well, that's not really true.

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Kostas Gewrgiou
On Wed, 20 Jun 2001, Ani Joshi wrote: On Wed, 20 Jun 2001, Kostas Gewrgiou wrote: The #ifdef __powerpc__ isn't right (and we can't use os specific code in the drivers) so the fix has to go in another layer, crippling another os to fix our problems isn't the right solution. Well,

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Geert Uytterhoeven
On Wed, 20 Jun 2001, Kostas Gewrgiou wrote: On Wed, 20 Jun 2001, Michel Dänzer wrote: Kostas Gewrgiou wrote: Since fbdev is handling the console there is no need to restore vga fonts/colormap (i don't know if it is possible to run vgacon under some of the ibm machines, if yes then it

Re: XFree86 4.1.0: call for help

2001-06-20 Thread benh
Hmm you have a point there, i have a feeling that the text/colormap was not crasing in the isa i/o access but in the isa mem ones, (we mmap 0xA, i wonder what lives there since isa mem definitely isn't) RAM. Actually kernel code :( There no way to access ISA mem on most Macs. We don't need

Re: XFree86 4.1.0: call for help

2001-06-20 Thread benh
The segfault occurred in an inb(), is that also used for ISA mem? If you get that for read and not write, then you are probably getting machine checks, which usually means IO to an incorrect address. Are you sure your card is answering to VGA IOs ?

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Michel Dänzer
[EMAIL PROTECTED] wrote: The segfault occurred in an inb(), is that also used for ISA mem? If you get that for read and not write, then you are probably getting machine checks, which usually means IO to an incorrect address. Are you sure your card is answering to VGA IOs ? I'm a bit

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Kostas Gewrgiou
On Wed, 20 Jun 2001 [EMAIL PROTECTED] wrote: We don't need any more kernel assistance, just to fix the syscall to return an error for the AGP bus of Uni-N if we can't do any io there. We can do _IO_, not ISA mem. Some cards require IOs accesses to some VGA registers so we need the syscall to

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Ani Joshi
On Wed, 20 Jun 2001, Michel [iso-8859-1] Dänzer wrote: You're talking about the status quo, Kostas about the way it should be. Just because it's not like that now doesn't mean we don't have to care about it anymore. If he's talking about the way it should be, then totally removing all

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Ani Joshi
On Wed, 20 Jun 2001, Kostas Gewrgiou wrote: I think that the crash in vgaHW is because of isa mem accesses, if this is the case a better fix will be to mmap the right memory range for the machines that have one and to handle the lack of one in pmacs. The crash is in readDacData, which reads

Re: XFree86 4.1.0: call for help

2001-06-20 Thread Michel Dänzer
Ani Joshi wrote: On Wed, 20 Jun 2001, Michel [iso-8859-1] Dänzer wrote: You're talking about the status quo, Kostas about the way it should be. Just because it's not like that now doesn't mean we don't have to care about it anymore. If he's talking about the way it should be, then

Re: XFree86 4.1.0: call for help

2001-06-19 Thread Ani Joshi
Michel, I looked into the situation and found out why its crashing on your machine. The vgaHW pointer is not setting the IOBase, so when it tries to read that it crashes. Do this in r128_driver.c: after the hwrec is alloced (vgaHWGetHWRec()) { vgaHWPtr hwp;

Re: XFree86 4.1.0: call for help

2001-06-19 Thread Jason E. Stewart
Ani Joshi [EMAIL PROTECTED] writes: I looked into the situation and found out why its crashing on your machine. The vgaHW pointer is not setting the IOBase, so when it tries to read that it crashes. Do this in r128_driver.c: after the hwrec is alloced (vgaHWGetHWRec()) {

Re: XFree86 4.1.0: call for help

2001-06-19 Thread Michel Dänzer
Jason E. Stewart wrote: Ani Joshi [EMAIL PROTECTED] writes: I looked into the situation and found out why its crashing on your machine. The vgaHW pointer is not setting the IOBase, so when it tries to read that it crashes. Do this in r128_driver.c: after the hwrec is alloced

Re: XFree86 4.1.0: call for help

2001-06-19 Thread Jason E. Stewart
Michel Dänzer [EMAIL PROTECTED] writes: Jason E. Stewart wrote: Is this fix sufficient to get get 'Option Display CRT' working? If it indeed allows the server to start without Option UseFBDev: yes. Can't hurt to try I guess... BenH seemed to suggest that it really can't work this way

Re: XFree86 4.1.0: call for help

2001-06-19 Thread benh
If it indeed allows the server to start without Option UseFBDev: yes. Can't hurt to try I guess... BenH seemed to suggest that it really can't work this way though. It may work. Depends if you get the iobase from the AGP bus or the PCI bus. What can't work is both... Ben.

Re: XFree86 4.1.0: call for help

2001-06-19 Thread Michel Dänzer
Ani Joshi wrote: Michel, I looked into the situation and found out why its crashing on your machine. BTW it doesn't crash the whole machine, the server just segfaults. Nothing dramatic. :) The vgaHW pointer is not setting the IOBase, so when it tries to read that it crashes. Do this in

Re: XFree86 4.1.0: call for help

2001-06-15 Thread Michel Dänzer
[EMAIL PROTECTED] wrote: I should make you guys aware that the XFree86 test packages I have made available contain David S. Miller's PCI domains patch. For the most part this seems to affect only SPARC, but I don't want you guys to go chasing shadows in stock 4.1.0 sources to

Re: XFree86 4.1.0: call for help

2001-06-14 Thread Benjamin Herrenschmidt
We need a way to use multiple ioBases from inside xfree to fix the problem. The best solution will be to disable ISA I/O for now and get a better fix later on. No, that's not the solution. The solution is to get the kernel to return the *correct* iobase for the sepecific devfn, right now it

Re: XFree86 4.1.0: call for help

2001-06-14 Thread Michel Dänzer
Benjamin Herrenschmidt wrote: That's the problem, it doesn't work on AGP. outb works but inb segfaults. The syscall should only return an iobase for known working busses IMHO. At the very least, it shouldn't return any for busses known not to work. That's the case. I mean it should

Re: XFree86 4.1.0: call for help

2001-06-14 Thread Branden Robinson
On Thu, Jun 14, 2001 at 02:50:07PM +0200, Michel Dänzer wrote: Benjamin Herrenschmidt wrote: That's the case. I mean it should know all busses and does support all 3 uninorth busses. Is it called properly for the AGP bus (bus 0) by XFree ? From current lnx_video.c: I should make you guys

Re: XFree86 4.1.0: call for help

2001-06-14 Thread Michel Dänzer
Branden Robinson wrote: On Thu, Jun 14, 2001 at 02:50:07PM +0200, Michel Dänzer wrote: Benjamin Herrenschmidt wrote: That's the case. I mean it should know all busses and does support all 3 uninorth busses. Is it called properly for the AGP bus (bus 0) by XFree ? From current

Re: XFree86 4.1.0: call for help

2001-06-14 Thread anton
I should make you guys aware that the XFree86 test packages I have made available contain David S. Miller's PCI domains patch. For the most part this seems to affect only SPARC, but I don't want you guys to go chasing shadows in stock 4.1.0 sources to troubleshoot issues that may be

Re: XFree86 4.1.0: call for help

2001-06-02 Thread Ani Joshi
On Sat, 2 Jun 2001, Michel [ISO-8859-1] Dänzer wrote: I might do that, but then is there any benefit of vgaHW working on a Mac? It seems to work fine without, so I might as well hack the syscall to fail. Yes, vgaHW is very much indeed needed on Mac (or pretty much any platform). For boards

Re: XFree86 4.1.0: call for help

2001-06-02 Thread Geert Uytterhoeven
On Fri, 1 Jun 2001, Ani Joshi wrote: On Sat, 2 Jun 2001, Michel [ISO-8859-1] Dänzer wrote: I might do that, but then is there any benefit of vgaHW working on a Mac? It seems to work fine without, so I might as well hack the syscall to fail. Yes, vgaHW is very much indeed needed on Mac (or

Re: XFree86 4.1.0: call for help

2001-06-02 Thread Michel Lanners
On 1 Jun, this message from Adam Goode echoed through cyberspace: Sorry if this is completely wrong, but would Michel Lanners's PCI Fixup code be helpful here? http://www.cpu.lu/~mlan/linux/dev/pci.html Not really, since that is only a dirty hack to make IO port access somewhat more sane

XFree86 4.1.0: call for help

2001-06-01 Thread Michel Dänzer
The release is imminent and looking good (I've been able to fix DRI on r128 in the last minute :), but there are a few issues left: - r128 doesn't work without UseFBDev at least on Pismos (I suspect all UniNorth Macs) because we're now trying to do ISA I/O with the help of a new system call,

Re: XFree86 4.1.0: call for help

2001-06-01 Thread Anton Blanchard
Hi, - r128 doesn't work without UseFBDev at least on Pismos (I suspect all UniNorth Macs) because we're now trying to do ISA I/O with the help of a new system call, but the server crashes. It works fine on those machines without it, so what would we lose by disabling it in r128 #ifdef

Re: XFree86 4.1.0: call for help

2001-06-01 Thread Michel Dänzer
Anton Blanchard wrote: - r128 doesn't work without UseFBDev at least on Pismos (I suspect all UniNorth Macs) because we're now trying to do ISA I/O with the help of a new system call, but the server crashes. It works fine on those machines without it, so what would we lose by disabling it

Re: XFree86 4.1.0: call for help

2001-06-01 Thread Kostas Gewrgiou
On Fri, 1 Jun 2001, Michel Dänzer wrote: Anton Blanchard wrote: - r128 doesn't work without UseFBDev at least on Pismos (I suspect all UniNorth Macs) because we're now trying to do ISA I/O with the help of a new system call, but the server crashes. It works fine on those machines

Re: XFree86 4.1.0: call for help

2001-06-01 Thread Anton Blanchard
btw mmap(/proc/bus/pci/...) was added around 2.4.4 right ? Yep 2.4.5. From memory the X patches I saw did not allow the X server to fall back to mmap(/dev/mem) which is important. Anton

Re: XFree86 4.1.0: call for help

2001-06-01 Thread Ani Joshi
On Fri, 1 Jun 2001, Kostas Gewrgiou wrote: __NR_pciconfig_iobase Another approach might be to make it only return an ioBase for known working configurations, is that feasible? We need a way to use multiple ioBases from inside xfree to fix the problem. The best solution will be to

Re: XFree86 4.1.0: call for help

2001-06-01 Thread Adam Goode
Sorry if this is completely wrong, but would Michel Lanners's PCI Fixup code be helpful here? http://www.cpu.lu/~mlan/linux/dev/pci.html Adam Goode P.S. I'm not on the linuxppc-dev list, just debian-powerpc, so I've only replied to the debian list. On Fri, Jun 01, 2001 at 10:00:16AM -0700,

Re: XFree86 4.1.0: call for help

2001-06-01 Thread Michel Dänzer
Ani Joshi wrote: On Fri, 1 Jun 2001, Kostas Gewrgiou wrote: __NR_pciconfig_iobase Another approach might be to make it only return an ioBase for known working configurations, is that feasible? We need a way to use multiple ioBases from inside xfree to fix the problem. The best solution