agpgart memory allocation is quite expensive. For each page agpgart
allocated, it changes the page to uc and as result flush tlb/cache for
the page. In my test, Intel Xorg driver takes about 0.2s for a 32M 3D
fb, and the total time for memory allocation is about 0.33s when intel
xorg driver initializes. Below patches fix the gap. It can reduce the
time to 0.03s, so xserver can boot 0.3s faster.
Thanks,
Shaohua
--