Commit c786cf76 authored by Michael Ellerman's avatar Michael Ellerman

powerpc/powernv: Use __raw_[rm_]writeq_be() in npu-dma.c

This allows us to squash some sparse warnings and also avoids having
to do explicity endian conversions in the code.
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Reviewed-by: default avatarSamuel Mendoza-Jonas <sam@mendozajonas.com>
parent 001ff2ee
...@@ -459,10 +459,9 @@ static void mmio_launch_invalidate(struct mmio_atsd_reg *mmio_atsd_reg, ...@@ -459,10 +459,9 @@ static void mmio_launch_invalidate(struct mmio_atsd_reg *mmio_atsd_reg,
struct npu *npu = mmio_atsd_reg->npu; struct npu *npu = mmio_atsd_reg->npu;
int reg = mmio_atsd_reg->reg; int reg = mmio_atsd_reg->reg;
__raw_writeq(cpu_to_be64(va), __raw_writeq_be(va, npu->mmio_atsd_regs[reg] + XTS_ATSD_AVA);
npu->mmio_atsd_regs[reg] + XTS_ATSD_AVA);
eieio(); eieio();
__raw_writeq(cpu_to_be64(launch), npu->mmio_atsd_regs[reg]); __raw_writeq_be(launch, npu->mmio_atsd_regs[reg]);
} }
static void mmio_invalidate_pid(struct mmio_atsd_reg mmio_atsd_reg[NV_MAX_NPUS], static void mmio_invalidate_pid(struct mmio_atsd_reg mmio_atsd_reg[NV_MAX_NPUS],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment