Dave Airlie wrote:
Just missed most of this, but we do have drm_device_is_agp(dev) in the
drm, only the CVS radeon uses this at present as the DDX can tell it
also...

But on Linux it just does..
pci_find_capability(dev->pdev, PCI_CAP_ID_AGP);

which sounds like your chip says it is AGP but is connected over a PCI
bus..

I tried that at Eric Anholt's suggestion, but, as you've guessed, it didn't work. What I ended up doing is looking that the device ID of the bus the card is connected to. If it matches the chip known to be used as the AGP-to-PCI bridge, I assume it's the PCI G450.


I have a patch.  Could you review it?

https://bugs.freedesktop.org/show_bug.cgi?id=3248

also you could use postinit to do stuff from the driver and fail there...
I don't mind adding a preinit if needed.. but I think postinit should be
fine for your purposes... also at the moment the kernel is different than
CVS, it doesn't take over the PCI device.. so drm_get_dev is called over
the pciids... this shouldn't affect anything but if you were to modify the
mga_drv.c:probe function it would cause issues...




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to