mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 06:04:23 +08:00
d03668803b
Correct spelling problems as identified by codespell.
Link: https://lkml.kernel.org/r/20230710052223.18254-1-rdunlap@infradead.org
Fixes: facb6011f3
("HWPOISON: Add soft page offline support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
What: /sys/devices/system/memory/soft_offline_page
|
|
Date: Sep 2009
|
|
KernelVersion: 2.6.33
|
|
Contact: andi@firstfloor.org
|
|
Description:
|
|
Soft-offline the memory page containing the physical address
|
|
written into this file. Input is a hex number specifying the
|
|
physical address of the page. The kernel will then attempt
|
|
to soft-offline it, by moving the contents elsewhere or
|
|
dropping it if possible. The kernel will then be placed
|
|
on the bad page list and never be reused.
|
|
|
|
The offlining is done in kernel specific granularity.
|
|
Normally it's the base page size of the kernel, but
|
|
this might change.
|
|
|
|
The page must be still accessible, not poisoned. The
|
|
kernel will never kill anything for this, but rather
|
|
fail the offline. Return value is the size of the
|
|
number, or a error when the offlining failed. Reading
|
|
the file is not allowed.
|
|
|
|
What: /sys/devices/system/memory/hard_offline_page
|
|
Date: Sep 2009
|
|
KernelVersion: 2.6.33
|
|
Contact: andi@firstfloor.org
|
|
Description:
|
|
Hard-offline the memory page containing the physical
|
|
address written into this file. Input is a hex number
|
|
specifying the physical address of the page. The
|
|
kernel will then attempt to hard-offline the page, by
|
|
trying to drop the page or killing any owner or
|
|
triggering IO errors if needed. Note this may kill
|
|
any processes owning the page. The kernel will avoid
|
|
to access this page assuming it's poisoned by the
|
|
hardware.
|
|
|
|
The offlining is done in kernel specific granularity.
|
|
Normally it's the base page size of the kernel, but
|
|
this might change.
|
|
|
|
Return value is the size of the number, or a error when
|
|
the offlining failed.
|
|
Reading the file is not allowed.
|