Re: [PATCH v2-UPDATE2 3/4] resource: Add device-managed insert/remove_resource()

From: Linus Torvalds
Date: Tue Mar 08 2016 - 17:24:02 EST


On Tue, Mar 8, 2016 at 12:59 PM, Dan Williams <dan.j.williams@xxxxxxxxx> wrote:
>
> Here's the usage patch from Toshi [1] (copied below). It is indeed a
> resource injected by nfit / nvdimm bus implementation. We just happen
> to support nfit and libnvdimm as modules.
>
> The goal of these patches is to use the ACPI NFIT data to create a
> "Persistent Memory" rather than "reserved" resource. This is for
> platform-firmware implementations that use E820-Type2 rather than
> E820-Type7 to describe pmem.

So my worry is that there is likely exactly one or two of these kinds of sites.

Why couldn't they just use insert_resource() and then remove it manually?

Linus