Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1623787
| From | Dan Williams <dan.j.williams@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/5] acpi, nfit: add support for acpi 6.1 dimm state flags |
| Date | 2017-04-14 19:10 +0200 |
| Message-ID | <twcTo-3LV-19@gated-at.bofh.it> (permalink) |
| References | <twcTn-3LV-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add support for the ACPI_NFIT_MEM_MAP_FAILED ("map_fail") and
ACPI_NFIT_MEM_HEALTH_ENABLED ("smart_notify") health state flags. The
"map_fail" flag identifies DIMMs that were not mapped into one or more
physical address ranges. The "health_notify" flag indicates whether
platform firmware will send notifications when there is new SMART health
data to consume.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
drivers/acpi/nfit/core.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index 53943d6f4214..05829de43b1d 100644
--- a/drivers/acpi/nfit/core.c
+++ b/drivers/acpi/nfit/core.c
@@ -1246,12 +1246,14 @@ static ssize_t flags_show(struct device *dev,
{
u16 flags = to_nfit_memdev(dev)->flags;
- return sprintf(buf, "%s%s%s%s%s\n",
+ return sprintf(buf, "%s%s%s%s%s%s%s\n",
flags & ACPI_NFIT_MEM_SAVE_FAILED ? "save_fail " : "",
flags & ACPI_NFIT_MEM_RESTORE_FAILED ? "restore_fail " : "",
flags & ACPI_NFIT_MEM_FLUSH_FAILED ? "flush_fail " : "",
flags & ACPI_NFIT_MEM_NOT_ARMED ? "not_armed " : "",
- flags & ACPI_NFIT_MEM_HEALTH_OBSERVED ? "smart_event " : "");
+ flags & ACPI_NFIT_MEM_HEALTH_OBSERVED ? "smart_event " : "",
+ flags & ACPI_NFIT_MEM_MAP_FAILED ? "map_fail " : "",
+ flags & ACPI_NFIT_MEM_HEALTH_ENABLED ? "smart_notify " : "");
}
static DEVICE_ATTR_RO(flags);
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] libnvdimm: acpi updates and a revert Dan Williams <dan.j.williams@intel.com> - 2017-04-14 19:10 +0200
[PATCH 5/5] acpi, nfit: limit ->flush_probe() to initialization work Dan Williams <dan.j.williams@intel.com> - 2017-04-14 19:10 +0200
Re: [PATCH 5/5] acpi, nfit: limit ->flush_probe() to initialization work Dan Williams <dan.j.williams@intel.com> - 2017-04-14 19:40 +0200
[PATCH 2/5] acpi, nfit: add support for acpi 6.1 dimm state flags Dan Williams <dan.j.williams@intel.com> - 2017-04-14 19:10 +0200
Re: [PATCH 2/5] acpi, nfit: add support for acpi 6.1 dimm state flags "Kani, Toshimitsu" <toshi.kani@hpe.com> - 2017-04-17 19:30 +0200
csiph-web