From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 17 Jul 2018 06:59:48 +0000 Subject: Re: reserve memory Message-Id: <20180717065948.GB10961@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Jul 17, 2018 at 08:15:24AM +0300, Ran Shalit wrote: > On Mon, Jul 16, 2018 at 8:48 PM, Greg KH wrote: > > On Mon, Jul 16, 2018 at 03:41:05PM +0300, Ran Shalit wrote: > >> Hello, > >> > >> When doing : > >> echo 1 > /sys/bus/pci/rescan > > > > Eeek, don't do that unless you _REALLY_ have no other option. > > > Hi, > > What are the alternatives ? Using real PCI hotplug hardware. This is a hack that forces the kernel to rescan the bus because it was not told it needed to do it. Because it was not told that, this implies your hardware is not really a pci hotplug system. > I haven't find any information of this issue of memory allocation and > rescan, so any pointer will help, Why do you feel you need to do the above? Why isn't your hardware "just working" when you add/remove a new PCI device? thanks, greg k-h