Re: [PATCH] mm: Remove broken pfn_to_virt() on arch csky/hexagon/openrisc

2024-02-02 Thread Linus Walleij
On Fri, Feb 2, 2024 at 3:35 PM Yan Zhao wrote: > Remove the broken pfn_to_virt() on architectures csky/hexagon/openrisc. > > The pfn_to_virt() on those architectures takes PFN instead of PA as the > input to macro __va(), with PAGE_SHIFT applying to the converted VA, which > is not right, especia

Re: [PATCH] mm: Remove broken pfn_to_virt() on arch csky/hexagon/openrisc

2024-02-02 Thread Arnd Bergmann
On Fri, Feb 2, 2024, at 15:05, Yan Zhao wrote: > Remove the broken pfn_to_virt() on architectures csky/hexagon/openrisc. > > The pfn_to_virt() on those architectures takes PFN instead of PA as the > input to macro __va(), with PAGE_SHIFT applying to the converted VA, which > is not right, especiall

[PATCH] mm: Remove broken pfn_to_virt() on arch csky/hexagon/openrisc

2024-02-02 Thread Yan Zhao
Remove the broken pfn_to_virt() on architectures csky/hexagon/openrisc. The pfn_to_virt() on those architectures takes PFN instead of PA as the input to macro __va(), with PAGE_SHIFT applying to the converted VA, which is not right, especially when there's a non-zero offset in __va(). [1] The bro