• Oliver O'Halloran's avatar
    powerpc/papr_scm: Remove endian conversions · 409dd7dc
    Oliver O'Halloran authored
    The return values of a h-call are returned in the CPU registers and
    written to the provided buffer by the plpar_hcall() wrapper. As a result
    the values written to memory are always in the native endian and should
    not be byte swapped.
    
    The inital implementation of the H-Call interface was done in qemu and
    the returned values were byte swapped unnecessarily in both the
    hypervisor and in the driver so this was only noticed when bringing up
    the PowerVM implementation.
    
    Fixes: b5beae5e ("powerpc/pseries: Add driver for PAPR SCM regions")
    Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    409dd7dc
papr_scm.c 7.88 KB