Commit a6cb5b28 authored by Cui Mingrui's avatar Cui Mingrui Committed by guzitao
Browse files

sw64: add basic NVDIMM support

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG



--------------------------------

This patch introduces basic NVDIMM support for sw64:
  - Select ARCH_HAS_PMEM_API, ARCH_HAS_UACCESS_FLUSHCACHE and
    ARCH_HAS_ZONE_DEVICE in Kconfig.
  - Take bit 22 of pte as _PAGE_DEVMAP to support DAX.
  - Add some necessary functions for memory copy and cache flush.

Signed-off-by: default avatarCui Mingrui <cuimingrui@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent eee5d587
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment