• Rodrigo Vivi's avatar
    drm/xe/uapi: Fix various struct padding for 64b alignment · 7a56bd0c
    Rodrigo Vivi authored
    Let's respect Documentation/process/botching-up-ioctls.rst
    and add the proper padding for a 64b alignment with all as
    well as all the required checks and settings for the pads
    and the reserved entries.
    
    v2: Fix remaining holes and double check with pahole (Jose)
        Ensure with pahole that both 32b and 64b have exact same
        layout (Thomas)
        Do not set query's pad and reserved bits to zero since it
        is redundant and already done by kzalloc (Matt)
    
    v3: Fix alignment after rebase (José Roberto de Souza)
    
    v4: Fix pad check (Francois Dugast)
    
    Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
    Cc: Francois Dugast <francois.dugast@intel.com>
    Cc: José Roberto de Souza <jose.souza@intel.com>
    Cc: Matt Roper <matthew.d.roper@intel.com>
    Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
    Signed-off-by: default avatarFrancois Dugast <francois.dugast@intel.com>
    Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
    7a56bd0c
xe_vm.c 78.1 KB