Skip to content

apply page shift to PFN instead of VA in pfn_to_virt

Yan Zhao linux-arch linux-csky linux-hexagon lkml openrisc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4asm-generic/page.h: apply page shift to PFN instead of VA in pfn_to_virtinclude/asm-generic/page.h+1 -13 replies
2/4csky: apply page shift to PFN instead of VA in pfn_to_virtarch/csky/include/asm/page.h+1 -11 reply
3/4Hexagon: apply page shift to PFN instead of VA in pfn_to_virtarch/hexagon/include/asm/page.h+1 -10 replies
4/4openrisc: apply page shift to PFN instead of VA in pfn_to_virtarch/openrisc/include/asm/page.h+1 -10 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus WalleijGuo Ren
SeriesR-b
1/4R-b R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] apply page shift to PFN instead of VA in pfn_to_virt

This is a tiny fix to pfn_to_virt() for some platforms.

The original implementaion of pfn_to_virt() takes PFN instead of PA as the input to macro __va, with PAGE_SHIFT applying to the converted VA, which is not right under most conditions, especially when there's an offset in __va.

Yan Zhao (4):
asm-generic/page.h: apply page shift to PFN instead of VA in
pfn_to_virt
csky: apply page shift to PFN instead of VA in pfn_to_virt
Hexagon: apply page shift to PFN instead of VA in pfn_to_virt
openrisc: apply page shift to PFN instead of VA in pfn_to_virt

 arch/csky/include/asm/page.h     | 2 +-
 arch/hexagon/include/asm/page.h  | 2 +-
 arch/openrisc/include/asm/page.h | 2 +-
 include/asm-generic/page.h       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3

Signature · 1 line
2.17.1