From mboxrd@z Thu Jan 1 00:00:00 1970 From: Prarit Bhargava Date: Thu, 10 Mar 2005 18:16:52 +0000 Subject: Re: Latest bk kernel does not properly free PCI IO & MEM allocations Message-Id: <42308F14.3020501@sgi.com> List-Id: References: <422F42A9.7050009@sgi.com> In-Reply-To: <422F42A9.7050009@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greg KH wrote: >>I tracked down the issue to the following: >> >>When pci_remove_bus_device is called on the device in the slot (should be a >>safe thing to do) both the pci_driver remove function for a device and the >>function pci_free_resources are called. >> >>In the case of the QLA2x00 driver, the driver's remove function calls >>pci_release_regions. This function releases the IO & MEM allocs for the pci >>device and kfree's them. >> >>As previously mentioned, pci_free_resources is called. This function >>attempts to use and free IO & MEM allocs for the pci device. >> >> > >Where does it attempt to use it? I see a loop to free the resources, >not anything else. > > > Sorry -- I confused you. I meant "use and then free" in that it uses kfree'd memory and then attempts to free the resources. >Also, if you enable slab debugging, does this always occur? > > Haven't tried that ... I'll give it a shot and report back to the list. >And, this should be brought up on the linux-pci mailing list, not the >hotplug list. > > > I'll defer to your judgement on that :) Given the code paths above it seemed to be a hotplug issue to me :) >thanks, > > > Thanks for your reply -- I'll turn on slab debug and see what happens... >greg k-h > > > > P. >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net >Linux-hotplug-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel