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

2017-02-21 Thread Gavin Shan
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

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

2017-02-20 Thread David Gibson
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. > > Th

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

2017-02-20 Thread Alexey Kardashevskiy
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_cl