Re: [Dri-devel] AGP and radeon driver

2004-03-08 Thread Jon Smirl
I think I have located the problem. AGP_BASE is getting stomped somehow. Now I just need to track down where and how. My user space app is clearly setting it: /* Initialize Radeon's AGP registers */ /* Ring buffer is at AGP offset 0 */ OUTREG(RADEON_AGP_BASE, info->ringHand

Re: [Dri-devel] AGP and radeon driver

2004-03-08 Thread Jon Smirl
AGP is at physical EC00 GPU sees AGP at 400, GPU AGP base is set to EC00 user and kernel virtual can both see the memory at EC00 I also tried adding pci_set_master() with no effect. The DRM driver in the kernel does not set pci_set_master(). In RADEON_AGP_COMMAND AGP_ENABLE is set.

Re: [Dri-devel] AGP and radeon driver

2004-03-08 Thread Vladimir Dergachev
Hi Jon, The problem could be in Radeon memory controller mapping, perhaps XFree86 from DRI CVS changes it. You see there is a memory controller on Radeon chip itself which merges several different address spaces (video ram, AGP and PCI DMA) into one. The default (when it boots) is such that

Re: [Dri-devel] AGP and radeon driver

2004-03-08 Thread Michel Dänzer
On Mon, 2004-03-08 at 06:58, Jon Smirl wrote: > I'm trying to merge some of the functions from the radeon DRM and FB device > drivers into a single driver. I've been working on the code for a week trying to > get AGP working but I can't seem to figure out what is wrong. In > drm/radeon_cp.c, radeo

[Dri-devel] AGP and radeon driver

2004-03-07 Thread Jon Smirl
I'm trying to merge some of the functions from the radeon DRM and FB device drivers into a single driver. I've been working on the code for a week trying to get AGP working but I can't seem to figure out what is wrong. In drm/radeon_cp.c, radeon_cp_init_ring_buffer() there is a test to see if the