lkml.org 
[lkml]   [2020]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 6/7] habanalabs: align armcp_packet structure to 8 bytes
    Date
    Once there is a 64-bit field in a structure, GCC compiler for ARM aligns
    the structure to 8 bytes. In order to avoid confusion when these
    structures are being passed between CPUs from different architectures, we
    explicitly align the structure to 8 bytes.

    Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
    ---
    drivers/misc/habanalabs/include/armcp_if.h | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/misc/habanalabs/include/armcp_if.h b/drivers/misc/habanalabs/include/armcp_if.h
    index a34fc39ad87e..dea7c90faafa 100644
    --- a/drivers/misc/habanalabs/include/armcp_if.h
    +++ b/drivers/misc/habanalabs/include/armcp_if.h
    @@ -276,6 +276,8 @@ struct armcp_packet {
    /* For get Armcp info/EEPROM data */
    __le32 data_max_size;
    };
    +
    + __le32 reserved;
    };

    struct armcp_unmask_irq_arr_packet {
    --
    2.17.1
    \
     
     \ /
      Last update: 2020-06-16 08:15    [W:2.990 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site