Comment 2 for bug 1835347

Revision history for this message
quanxian (quanxian-wang) wrote :

Merged in v5.3-rc1

commit 40cdc60ac16a42eb4e013f84d0e7aa1d6ee060d3
Author: Vishal Verma <email address hidden>
Date: Thu Jun 20 18:40:38 2019 -0600

device-dax: Add a 'resource' attribute

device-dax based devices were missing a 'resource' attribute to indicate
the physical address range contributed by the device in question. This
information is desirable to userspace tooling that may want to use the
dax device as system-ram, and wants to selectively hotplug and online
the memory blocks associated with a given device.

Without this, the tooling would have to parse /proc/iomem for the memory
ranges contributed by dax devices, which can be a workaround, but it is
far easier to provide this information in the sysfs hierarchy.

Cc: Dave Hansen <email address hidden>
Cc: Dan Williams <email address hidden>
Signed-off-by: Vishal Verma <email address hidden>
Signed-off-by: Dan Williams <email address hidden>