Re: reserve memory

Ran Shalit <[email protected]> Tue, 17 Jul 2018 05:15:24 +0000
Newsgroups org.kernel.vger.linux-hotplug
Message-ID <CAJ2oMhJuQ8H2uHjwQm+jF=LSSHrUvmD=+gsmQBxyr+1UUQnEYQ@mail.gmail.com>
On Mon, Jul 16, 2018 at 8:48 PM, Greg KH <[email protected]> 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  ?
I haven't find any information of this issue of memory allocation and
rescan, so any pointer will help,

Thanks,
ranran



>> Does it results in memory allocation for the new added device ?
>
> It depends.  It depends in your platform and what you mean exactly by
> "memory allocation".
>
>> Is it that by adding "pci=hpmemsize" we can reserve the memory for the
>> hot-plug device ? ( So, that there is no dynamic allocation in runtime
>> )
>
> I don't know, you should ask this on the linux-pci mailing list as that
> is where the developers who added this are at.
>
> good luck!
>
> greg k-h