Thread (4 messages) 4 messages, 4 authors, 2017-03-21

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

From: Gavin Shan <hidden>
Date: 2017-02-21 22:27:58

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 <redacted>
Acked-by: Gavin Shan <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help