• Dan Williams's avatar
    libnvdimm/pmem: Honor force_raw for legacy pmem regions · fa7d2e63
    Dan Williams authored
    For recovery, where non-dax access is needed to a given physical address
    range, and testing, allow the 'force_raw' attribute to override the
    default establishment of a dev_pagemap.
    Otherwise without this capability it is possible to end up with a
    namespace that can not be activated due to corrupted info-block, and one
    that can not be repaired due to a section collision.
    Cc: <stable@vger.kernel.org>
    Fixes: 004f1afb
     ("libnvdimm, pmem: direct map legacy pmem by default")
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>