xf86MapPciMem and freeing memory
Donald Kayser
xorg at kayser.net
Mon May 4 15:16:08 PDT 2009
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()?
Donald Kayser
xorg at kayser.net
More information about the xorg-devel
mailing list