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

From: Michael Ellerman <[email-masked]>
Date: Tue, 21 Mar 2017 22:36:12 +1100 (AEDT)

On Tue, 2017-02-21 at 02:38:54 UTC, 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 <[email-masked]>
> Reviewed-by: David Gibson <[email-masked]>
> Acked-by: Gavin Shan <[email-masked]>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/81d5fe1a3b1acfaadc7921d08609e0

cheers