[PATCH kernel] powerpc/powernv: Fix it_ops::get() callback to return in cpu endian

Gavin Shan gwshan at linux.vnet.ibm.com
Wed Feb 22 09:26:54 AEDT 2017

On Tue, Feb 21, 2017 at 01:38:54PM +1100, Alexey Kardashevskiy wrote:
>The iommu_table_ops callbacks are declared CPU endian as they take and
>return "unsigned long"; underlying hardware tables are big-endian.
>However get() was missing be64_to_cpu(), this adds the missing conversion.
>The only caller of this is crash dump at arch/powerpc/kernel/iommu.c,
>iommu_table_clear() which only compares TCE to zero so this change
>should not cause behavioral change.
>Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>

Acked-by: Gavin Shan <gwshan at linux.vnet.ibm.com>

More information about the Linuxppc-dev mailing list