xf86MapPciMem and freeing memory

Matthieu Herrb matthieu.herrb at laas.fr
Mon May 4 23:35:54 PDT 2009


Donald Kayser wrote:
> I have been working on the xf86-video-chips driver to support 2  
> monitors on a PPC. I have noticed that memory allocated with  
> xf86MapPciMem() function call is returned with xf86UnMapVidMem. Every  
> time memory is freed there is an error message indicating that the  
> memory is not in the expected list that xf86UnMapVidMem() uses. This  
> is bothersome since in FullMMIO mode for the driver, memory is  
> allocated then freed during CHIPSProbe(). I have looked for the entry  
> point for xf86MapPciMem() and have not been able to locate it; this  
> would at least allow me to see how the memory is allocated. I have  
> looked at all vf86-video drivers and they all call the  
> xf86UnMapVidMem() function to return memory, and I assume they all  
> fail. So, is there a better function to call to free memory allocated  
> by xf86MapPciMem()?
> 

See bug <https://bugs.freedesktop.org/show_bug.cgi?id=20541> and commit
cee4cdf061ca8e6376846c0eac2fc6d57711129e to xf86-video-i128, which
address the issue in the i128 driver.

-- 
Matthieu Herrb


More information about the xorg-devel mailing list