Loading agpgart works the first time, but unloading and reloading it results in the kernel finding the AGP aperture at 0x0. Obviously, starting X with DRI after that leads to a hard freeze. VIA MVP3 chipset, K6-2/400, Matrox G200 AGP, default RedHat 7.0 kernel. I should add that I've yet to try a kernel (RH 2.2.14, stock 2.4.x-test, etc.) that doesn't crash in this manner on my system. I've filed bugs for this on dri.sourceforge.net as well as e-mails to lkml and the agpgart maintainer, but to no avail. I suppose this isn't really an interesting problem? The suggested fix seems to be to compile agpgart static and be done with it, but that seems to me like a rather silly solution.
This bug is still present in Fisher. Obviously, the issue persists in 2.4 kernels. I think this could potentially be a problem for machines that boot in text by default and only use X occasionally -- agpgart would be removed after being unused for a period, and the next startx would lock the machine solid. I run gdm by default, so this is just idle speculation, but it's my feeling that this should be fixed.
Well, it could at least default to not being unloaded automatically...
This problem should not been seen in recent -ac kernels
Ah, in that case, please upgrade to our latest beta kernel when it is available (2.4.1-0.1.9 or later) and let us know whether or not it fixes the problem. Thanks!
Fixed in 2.4.2-0.1.25 (and also in 2.4.2-ac19.)