Re: [Dri-devel] Mach64 PCI support added to 2D driver

2002-04-15 Thread Tony Rogvall

José Fonseca wrote:

 On 2002.04.13 04:36 Leif Delgass wrote:
  On Thu, 11 Apr 2002, José Fonseca wrote:
 
  Do we know for sure that pci gart is supported on mach64?  The rage 128
  and radeon drivers both write to PCI GART registers, but I don't see
  anything analogous in the Rage PRO docs.  My understanding is that to use
  the scatter/gather memory, the card has to implement it's own address
  translation table.  Your checkin adds allocation of scatter/gather
  memory, but can PCI mach64 use this memory?
 

FINALLY

dri/mach64 runs on my sony PCG-C1VP (no AGP guaranteed :-)
This is a major step forward for me ...

Do you need any info  Just tell me and I send it to you.

THANKS

/Tony


Some info anyway (it always crashed in the output before, now it run out of
the box):

Apr 15 14:58:17 localhost kernel: [drm] Initialized mach64 1.0.0 20010107 on
minor 0

Apr 15 14:59:10 localhost kernel: [drm] SRC_CNTL = 0x
Apr 15 14:59:10 localhost kernel: [drm]
Apr 15 14:59:10 localhost kernel: [drm] data  = 0x002ec000
Apr 15 14:59:10 localhost kernel: [drm] table = 0x4000
Apr 15 14:59:10 localhost kernel: [drm] starting DMA transfer...
Apr 15 14:59:10 localhost kernel: [drm] starting DMA transfer... done.
Apr 15 14:59:10 localhost kernel: [drm] waiting for idle
[locked_after_dma??]...Apr 15 14:59:10 localhost kernel: [drm] (After DMA
Transfer) PAT_REG0 = 0x
Apr 15 14:59:10 localhost kernel: [drm] freeing memory.
Apr 15 14:59:10 localhost kernel: [drm] returning ...




___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel



Re: [Dri-devel] Mach64 PCI support added to 2D driver

2002-04-15 Thread Jose Fonseca

On Mon, 2002-04-15 at 14:19, Tony Rogvall wrote:
 José Fonseca wrote:
 
  On 2002.04.13 04:36 Leif Delgass wrote:
   On Thu, 11 Apr 2002, José Fonseca wrote:
  
   Do we know for sure that pci gart is supported on mach64?  The rage 128
   and radeon drivers both write to PCI GART registers, but I don't see
   anything analogous in the Rage PRO docs.  My understanding is that to use
   the scatter/gather memory, the card has to implement it's own address
   translation table.  Your checkin adds allocation of scatter/gather
   memory, but can PCI mach64 use this memory?
  
 
 FINALLY
 
 dri/mach64 runs on my sony PCG-C1VP (no AGP guaranteed :-)
 This is a major step forward for me ...
 
 Do you need any info  Just tell me and I send it to you.
 

No. To know that it worked fine is enough! I makes it worth that I
stayed awake until 2:00 AM last night debugging all this.

 THANKS
 

You're welcome. You have yourself to thank for too because if it wasn't 
your shown interest and your keen debugging of that kernel issue this
day would happen much later!

 /Tony
 

Regards,

Jose Fonseca



___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel



Re: [Dri-devel] Mach64 PCI support added to 2D driver

2002-04-13 Thread José Fonseca

On 2002.04.13 04:36 Leif Delgass wrote:
 On Thu, 11 Apr 2002, José Fonseca wrote:
 
 Do we know for sure that pci gart is supported on mach64?  The rage 128
 and radeon drivers both write to PCI GART registers, but I don't see
 anything analogous in the Rage PRO docs.  My understanding is that to use
 the scatter/gather memory, the card has to implement it's own address
 translation table.  Your checkin adds allocation of scatter/gather
 memory, but can PCI mach64 use this memory?
 
 --
 Leif Delgass
 http://www.retinalburn.net
 

Is was unaware that the PCI GART operation required support from the 
hardware. I assumed it was an abstraction layer, but after googling around 
I saw it's not. (I confess I was rather naive in this issue as a GART 
allows to make a disperse segments of physical memory as a single 
contiguous memory for the cards - there had to be hw support in some end 
for this to happen...)

I'm already working on the subject. I'm basing on the work of the gamma 
driver, which is, as far as I can tell, the only existing DRI driver which 
has non-GART PCI support, and it seems that there is no scatter/gather 
memory allocation (which makes the whole process even simpler).

Note that this doesn't prevent people from testing DRI on mach64 PCI 
cards. I'm still waiting for some feedback... or I'll start focusing on 
other things! :)

BTW Leif, how are going the glean tests of mach64? I noticed you commited 
a patch, but I ran glean on mach64 and there still are a bunch of errors 
in blendFunc and logicOp. Since you're more in the subject could you give 
me a brief update of the remaining problems and what may be causing them 
so I can help?

Regards,

José Fonseca

___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel



Re: [Dri-devel] Mach64 PCI support added to 2D driver

2002-04-13 Thread Gareth Hughes

Leif Delgass wrote:
 
 Do we know for sure that pci gart is supported on mach64?  The rage 128
 and radeon drivers both write to PCI GART registers, but I don't see
 anything analogous in the Rage PRO docs.  My understanding is that to use
 the scatter/gather memory, the card has to implement it's own address
 translation table.  Your checkin adds allocation of scatter/gather memory,
 but can PCI mach64 use this memory?

You are correct, there's no such thing as PCI GART on the mach64.  From 
memory, the only difference between AGP and PCI DMA scatter-gather 
tables is you need to set a bit somewhere to specify the pages are AGP 
memory, when required.  Other than that, the DMA mechanism is the same, 
from the driver's point of view.  As far as I can remember, anyway :-)

-- Gareth


___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel



[Dri-devel] Mach64 PCI support added to 2D driver

2002-04-10 Thread José Fonseca

I've just commited support for PCI only Mach64 cards to the 2D driver. It 
should recognize a PCI card and allocate memory from the PCIGART. There is 
still missing support for PCI operation of an AGP card when agpgart isn't 
available - not much really - just a question of book-keeping so it will 
be done shortly.

I'm still not sure if everything is in place for DRI on Mach64 PCI cards. 
I'm in the process of updating and recompiling the kernel to have agpgart 
as a module to be able to check it myself.

Regards,

José Fonseca

___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel