From: "Kani, Toshi" <toshi.kani@hpe.com>
To: "Chen, Guomin" <Guomin.Chen@suse.com>,
"helgaas@kernel.org" <helgaas@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Lee, Joey" <JLee@suse.com>, "bp@suse.de" <bp@suse.de>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"tiwai@suse.de" <tiwai@suse.de>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"dan.j.williams@intel.com" <dan.j.williams@intel.com>,
"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>,
"bhelgaas@google.com" <bhelgaas@google.com>,
"thomas.lendacky@amd.com" <thomas.lendacky@amd.com>,
"brijesh.singh@amd.com" <brijesh.singh@amd.com>,
"baiyaowei@cmss.chinamobile.com" <baiyaowei@cmss.chinamobile.com>
Subject: Re: [PATCH 1/1] resource: Fixed iomem resource release failed on release_mem_region_adjustable() when memory node or cpu node hot-remove.
Date: Mon, 25 Jun 2018 23:55:36 +0000 [thread overview]
Message-ID: <1529970820.14039.224.camel@hpe.com> (raw)
In-Reply-To: <20180622231930.GA2834@bhelgaas-glaptop.roam.corp.google.com>
On Fri, 2018-06-22 at 18:19 -0500, Bjorn Helgaas wrote:
> [+cc Toshi]
>
> On Fri, Jun 22, 2018 at 08:01:38PM +0800, guomin chen wrote:
> > We've got a bug report indicating the hot-remove node resource
> > release failed,when the memory on this node is divided into
> > several sections.because the release_mem_region_adjustable()
> > can only release one resource that must be [start,end].
>
> Can you please include a URL for the bug report? That's useful for
> additional details and gives hints about how future changes in this
> area might be tested.
>
> release_mem_region_adjustable() and the only call to it were added
> by Toshi (cc'd):
>
> 825f787bb496 ("resource: add release_mem_region_adjustable()")
> fe74ebb106a5 ("mm: change __remove_pages() to call release_mem_region_adjustable()")
>
> > In my case, the BIOS supports faulty memory isolation. if BIOS
> > detected bad memory block, the BIOS will isolates this badblock.
> > And set this badblock memory to EfiUnusableMemory in EFI memory map
> > base on UEFI 2.7 spec.For example in my system, the memory range on
> > node2 is [mem 0x0000080000000000-0x00000807ffffffff].but the BIOS
> > detected the [8004e000000-8004e0fffff] is a badblock memory.
> > So the memory on node2 seem like this:
> > 80000000000-8004dffffff : System RAM
> > 8004e000000-8004e0fffff : Unusable memory
> > 8004e100000-807ffffffff : System RAM
> >
> > Now, when offline the cpu node2,the kernel will try to release
> > ioresource [mem 0x0000080000000000-0x00000807ffffffff]. at this
> > time, the kernel will release failed,and output error message:
> > "Unable to release resource <0x0000080000000000-0x00000807ffffffff>
> > (-22)".
Hmm... this BIO implementation does not sound right to me. When EFI
memory map has a hole, ACPI memory object should have the same hole in
its resource info. If so, this node2 memory hot-delete would have
requested a deletion of 2 separate System RAM ranges, not a single range
including this hole. This is also important for memory hot-add. ACPI
memory object needs to describe this hole in order for the OS to avoid
adding this badblock memory.
Thanks,
-Toshi
next prev parent reply other threads:[~2018-06-25 23:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-22 12:01 guomin chen
2018-06-22 23:19 ` Bjorn Helgaas
2018-06-23 5:53 ` Guomin Chen
2018-06-25 17:21 ` Bjorn Helgaas
2018-06-25 23:55 ` Kani, Toshi [this message]
2018-06-27 6:43 ` Guomin Chen
-- strict thread matches above, loose matches on Subject: below --
2018-06-22 11:52 guomin chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1529970820.14039.224.camel@hpe.com \
--to=toshi.kani@hpe.com \
--cc=Guomin.Chen@suse.com \
--cc=JLee@suse.com \
--cc=akpm@linux-foundation.org \
--cc=baiyaowei@cmss.chinamobile.com \
--cc=bhelgaas@google.com \
--cc=bp@suse.de \
--cc=brijesh.singh@amd.com \
--cc=dan.j.williams@intel.com \
--cc=helgaas@kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®