All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Hotplug support for libnvdimm
@ 2015-10-27 22:58 Vishal Verma
  2015-10-27 22:58 ` [PATCH v3 1/2] nfit: in acpi_nfit_init, break on a 0-length table Vishal Verma
  2015-10-27 22:58 ` [PATCH v3 2/2] acpi: nfit: Add support for hot-add Vishal Verma
  0 siblings, 2 replies; 13+ messages in thread
From: Vishal Verma @ 2015-10-27 22:58 UTC (permalink / raw)
  To: linux-nvdimm
  Cc: Vishal Verma, Dan Williams, Rafael J. Wysocki, linux-acpi,
	Jeff Moyer, Elliott Robert, Toshi Kani

This series adds support for hotplug of NVDIMMs. Upon hotplug, the ACPI
core calls the .notify callback we register. From this, we evaluate the
_FIT method which returns an updated NFIT. This is scanned for any new
tables, and any new regions found from it are registered and made
available for use.

The series is tested with nfit_test (tools/testing/nvdimm) only, which
means the parts of getting a notification from the acpi core, and calling
_FIT are untested.

Changes from v2->v3:
 - in acpi_nfit_init, splice off the old contents if to a "prev" list and
   only check for duplicates when "prev" is not empty (Dan)
 - in acpi_nfit_init, error out if tables are found to be deleted
 - locking changes: Use device_lock for .add and .notify. Check if
   dev->driver is valid during notify to protect against a prior
   removal (Dan)
 - Change IS_ERR_OR_NULL to IS_ERR for acpi_nfit_desc_init (Dan)
 - nfit_test: for the hot-plug DIMM, add a flush hint table too for
   completeness

Changes from v1->v2:
 - If a 0-length header is found in the nfit (patch 1), also spew a
   warning (Jeff)
 - Don't make a new acpi_evaluate_fit helper - open code a call to
   acpi_evaluate_object in nfit.c (Dan/Rafael)
 - Remove a warning for duplicate DCRs (Toshi)
 - Add an init_lock to protect the notify handler from racing with an
   'add' or 'remove' (Dan)
 - The only NVDIMM in a system *could* potentially come from a hotplug,
   esp in the virtualization case. Refactor how acpi_nfit_desc is
   initialized to account for this. For the same reason, don't fail when
   a valid NFIT is not found at driver load time. A by-product of this
   change is that we need to initialize lists and mutexes manually in
   nfit test. (Dan)
 - Remove acpi_nfit_merge (added in v1) as it is now essentially
   the same as acpi_nfit_init
 - Reword the commit message for patch 2/2 to say 'hot add' instead of
   hotplug, making it clearer that hot removal support is not being added

Vishal Verma (2):
  nfit: in acpi_nfit_init, break on a 0-length table
  acpi: nfit: Add support for hot-add

 drivers/acpi/nfit.c              | 307 +++++++++++++++++++++++++++++++--------
 drivers/acpi/nfit.h              |   2 +
 tools/testing/nvdimm/test/nfit.c | 164 ++++++++++++++++++++-
 3 files changed, 413 insertions(+), 60 deletions(-)

-- 
2.4.3


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-11-09 20:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-27 22:58 [PATCH v3 0/2] Hotplug support for libnvdimm Vishal Verma
2015-10-27 22:58 ` [PATCH v3 1/2] nfit: in acpi_nfit_init, break on a 0-length table Vishal Verma
2015-10-27 22:58 ` [PATCH v3 2/2] acpi: nfit: Add support for hot-add Vishal Verma
2015-11-07 18:57   ` Dan Williams
2015-11-07 21:20     ` Dan Williams
2015-11-09 18:12       ` Verma, Vishal L
2015-11-09 18:23         ` Dan Williams
2015-11-09  0:49     ` Rafael J. Wysocki
2015-11-09  1:26       ` Dan Williams
2015-11-09 18:25         ` Dan Williams
2015-11-09 21:25           ` Rafael J. Wysocki
2015-11-09 21:24         ` Rafael J. Wysocki
2015-11-09 21:28           ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.