summaryrefslogtreecommitdiff
path: root/drivers/lightnvm/pblk-recovery.c
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-01-13 10:28:16 +0300
committerGuo Ren <guoren@linux.alibaba.com>2021-02-27 11:32:54 +0300
commitaf94002bda1d94f667706b6369ca1e718f32a072 (patch)
tree5dda8ecb8de623c77f775fb9b778e6523410372f /drivers/lightnvm/pblk-recovery.c
parenta8fac05acf38bdd1ab5aaf86dba7d0b2b0c05dd6 (diff)
downloadlinux-af94002bda1d94f667706b6369ca1e718f32a072.tar.xz
csky: Fixup swapon
Current csky's swappon is broken by wrong swap PTE entry format. Now redesign the new format for abiv1 & abiv2 and make swappon + zram work properly on csky machines. C-SKY PTE has VALID, DIRTY to emulate PRESENT, READ, WRITE, EXEC attributes. GLOBAL bit is shared by two pages in the same tlb entry. So we need to keep GLOBAL, VALID, PRESENT zero in swp_pte. To distinguish PAGE_NONE and swp_pte, we need to use an additional bit (abiv1 is _PAGE_READ, abiv2 is _PAGE_WRITE). Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/lightnvm/pblk-recovery.c')
0 files changed, 0 insertions, 0 deletions