13 Jul, 2019

1 commit

  • Architectures like powerpc use different address range to map ioremap
    and vmalloc range. The memunmap() check used by the nvdimm layer was
    wrongly using is_vmalloc_addr() to check for ioremap range which fails
    for ppc64. This result in ppc64 not freeing the ioremap mapping. The
    side effect of this is an unbind failure during module unload with
    papr_scm nvdimm driver

    Link: http://lkml.kernel.org/r/20190701134038.14165-1-aneesh.kumar@linux.ibm.com
    Signed-off-by: Aneesh Kumar K.V
    Fixes: b5beae5e224f ("powerpc/pseries: Add driver for PAPR SCM regions")
    Cc: Dan Williams
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Aneesh Kumar K.V
     

19 Apr, 2019

1 commit

  • The three checks in region_intersects() are basically an open-coded version
    of resource_overlaps() - so use the real thing.

    Also fix typos in comments while at it.

    Signed-off-by: Wei Yang
    Reviewed-by: Like Xu
    Reviewed-by: Yuan Yao
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: akpm@linux-foundation.org
    Cc: bhelgaas@google.com
    Cc: bp@suse.de
    Cc: dan.j.williams@intel.com
    Cc: jack@suse.cz
    Cc: rdunlap@infradead.org
    Cc: tiwai@suse.de
    Link: http://lkml.kernel.org/r/20190305083432.23675-1-richardw.yang@linux.intel.com
    [ Rewrote the changelog. ]
    Signed-off-by: Ingo Molnar

    Wei Yang
     

16 May, 2018

1 commit

  • Currently, kernel/memremap.c contains generic code for supporting
    memremap() (CONFIG_HAS_IOMEM) and devm_memremap_pages()
    (CONFIG_ZONE_DEVICE). This causes ongoing build maintenance problems as
    additions to memremap.c, especially for the ZONE_DEVICE case, need to be
    careful about being placed in ifdef guards. Remove the need for these
    ifdef guards by moving the ZONE_DEVICE support functions to their own
    compilation unit.

    Cc: "Jérôme Glisse"
    Cc: Ross Zwisler
    Reviewed-by: Christoph Hellwig
    Reviewed-by: Jan Kara
    Signed-off-by: Dan Williams

    Dan Williams