Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2214098ybt; Mon, 15 Jun 2020 23:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnmk1bQGuOIntdbEwh7INqSPNRGJod4+GbMysio46/DqYVvIJWujhLGRUBUIaBIPy4XZQo X-Received: by 2002:a50:a694:: with SMTP id e20mr1131341edc.144.1592288334125; Mon, 15 Jun 2020 23:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592288334; cv=none; d=google.com; s=arc-20160816; b=N+qT4a2rsfZACeKnYltGEJ/Vtr1GcCJ5h1HYlL5PpA5whUi7WLO1/oJ+B6voRAJ+Jl ZJDMzq2PvAbswY7o0tkcH52L0dWx+tdyvM9UGTwiKRG8af3t6GNWANQBO6nsQzJTGzmm W4qwyZbG3LMk8VViK6k0874vZ30OZUdltHDabjaNDSAFyhNZVtQwZMQw0lGWMZEUR4Q2 kwlZSiP3iGy5IH0ligtw64iGicyAQVRYFZGEhA6afgql4xYf48PSQjx0DCy3O0QYcu3y xI8KX19ChKU65iTWXTE04eNUvXlZMb57NkZGuJMw9eAp4Mzc2a7ZuPTVwzo30Onhc7U6 ktyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pXcr8OVP5X871RYqTA04gII+1qhPuiQakZxe8lH3bVI=; b=jr5WAM/TFI1IV8H5vD1+IpNpim/eYVeTsdL6wvwHqqlBREEdoVcTNsM1lvf6Po1IhO EctZxsxSUgv6XMQ2jkdAhr7mS8XksKzs1iLIScKEyNleO690+IU3Zwws/hrD6UH0aKJr Nj+eeB/QeDOb5B3wUtHMVRm3Q5kVXkjw/LIn+s6V308L+Lei6y693hs9xdEE2cOzNBh4 Q76y5zMsjq+6871nS+WvSPtmuEMTJuwV4RpreZUDsA/u9G3PkFL+H/TRw0dwWN2zhuOR 9fWS388VEDM/F9AyKmOqyC/Oganuqu/LiopRIoIOijZDHFfvUZNqM1BM0tDdz2gpCmY9 dMLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hLJhXVQE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si9655005edp.566.2020.06.15.23.18.31; Mon, 15 Jun 2020 23:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hLJhXVQE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727841AbgFPGOK (ORCPT + 99 others); Tue, 16 Jun 2020 02:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgFPGNp (ORCPT ); Tue, 16 Jun 2020 02:13:45 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17C7C08C5C3 for ; Mon, 15 Jun 2020 23:13:44 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id x13so19398509wrv.4 for ; Mon, 15 Jun 2020 23:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pXcr8OVP5X871RYqTA04gII+1qhPuiQakZxe8lH3bVI=; b=hLJhXVQEM9udh+ljE+IHs7RDvOcS2K4wQxe4VgcSg3Ehdfk4suQm8QyJC2dJPmRIps DNB/mvwQTCAIMS6eJ/WpWqiYQvQicsMuzEnJLOflcUTGyMw21RD6jYL4BZit+FhmrrY4 JcZSMQ+AvxVPloXL4xY19TiDC1b2cEfYos9JlymQR2pTfyQL4jlByKpnUtUNE5J9Jsjx T7dUqRKv2meY312B2kCmIPkrVq800HZM7RTIa408QE+O2xfXT3faZtrMN+EMYYR0juO1 vPqZwh0YpD5TLCsRsWKLU34Oc2JUo1Rm+k9eOYrI9G2G4QrHS2OJ6IFu4PLPJNHV7tpM RlaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pXcr8OVP5X871RYqTA04gII+1qhPuiQakZxe8lH3bVI=; b=W1d13LiXEtmPyITcalcJrUiyWuRjmrR1lgudehLMwZVZcEe4IMrHgy+1FE4ugQwaXA 2Y7VKBwHjcXTYmB4gEkszds5P2pkCvROxw+CuiCA/BEjdHx6gMGks1uHSa2FVfGCKODz tgfD7a+vRLAUKkTwXMYP+cgYAsp3qvKtuqSWfBtp4CgCUsK+0vDnqp/LY8VULE/EqLoo RzsJkjNpG+gP2hXuHJnt4AG6gOhBjOhHnbrXiQizN4OO8SqtAsyr43W0PeCtnbqlDcJ1 LvC5wJWzaBCuVaCx/WNAHzRA6wCeradi6sH0bwbFEyoAhnBT1Bjz6oAiQHHQ9jo5wo7D uy9w== X-Gm-Message-State: AOAM531RZBr40Mp4y0H117mR5zg0tPJQwMfi7mFQ6VTc6TQxvgmx5y9F vBQV6239gciytKL/7nqAJH7nqldW4Ic= X-Received: by 2002:adf:e3c1:: with SMTP id k1mr1156520wrm.33.1592288023241; Mon, 15 Jun 2020 23:13:43 -0700 (PDT) Received: from ODED-MAIN.localdomain ([87.71.142.251]) by smtp.gmail.com with ESMTPSA id s2sm2354963wmh.15.2020.06.15.23.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 23:13:42 -0700 (PDT) From: Oded Gabbay To: linux-kernel@vger.kernel.org, SW_Drivers@habana.ai Cc: gregkh@linuxfoundation.org Subject: [PATCH 6/7] habanalabs: align armcp_packet structure to 8 bytes Date: Tue, 16 Jun 2020 09:13:26 +0300 Message-Id: <20200616061327.12006-6-oded.gabbay@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616061327.12006-1-oded.gabbay@gmail.com> References: <20200616061327.12006-1-oded.gabbay@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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