mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Add IORESOUCE_BUSY flag for System RAM
i386 and x86-64 registers System RAM as IORESOURCE_MEM | IORESOURCE_BUSY. But ia64 registers it as IORESOURCE_MEM only. In addition, memory hotplug code registers new memory as IORESOURCE_MEM too. This difference causes a failure of memory unplug of x86-64. This patch fixes it. This patch adds IORESOURCE_BUSY to avoid potential overlap mapping by PCI device. Signed-off-by: Yasunori Goto <[email protected]> Signed-off-by: Badari Pulavarty <[email protected]> Cc: Luck, Tony" <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5fce25a9df
commit
887c3cb188
3 changed files with 4 additions and 6 deletions
|
|
@ -39,7 +39,7 @@ static struct resource *register_memory_resource(u64 start, u64 size)
|
|||
res->name = "System RAM";
|
||||
res->start = start;
|
||||
res->end = start + size - 1;
|
||||
res->flags = IORESOURCE_MEM;
|
||||
res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
|
||||
if (request_resource(&iomem_resource, res) < 0) {
|
||||
printk("System RAM resource %llx - %llx cannot be added\n",
|
||||
(unsigned long long)res->start, (unsigned long long)res->end);
|
||||
|
|
|
|||
Loading…
Reference in a new issue