From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82B90C76194 for ; Tue, 23 Jul 2019 07:13:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 57FB0204FD for ; Tue, 23 Jul 2019 07:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563865983; bh=/AeZYX+JUna3ZCh05UfteU3NUn8L0WgCT1Lwr+ICNrQ=; h=From:To:Cc:Subject:Date:List-ID:From; b=J0LtWe5bCXDvSM88Jnmb4YWB2p8aiHRvHAi5h6dLiyJa2GgevXPzq739xyXULblM/ ExT2SicBvdrrEf+vtYR2JC+AEYD5g+4HHh7W8KsF2SAl23FRyekk/vNc0ERbZBHbJD dzJrSLnOnYX2CrSPFsnPnK6KHHn9gzF2qBS7BZc8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388258AbfGWHNC (ORCPT ); Tue, 23 Jul 2019 03:13:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:47156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732685AbfGWHNC (ORCPT ); Tue, 23 Jul 2019 03:13:02 -0400 Received: from localhost (unknown [193.47.165.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6E4B72238C; Tue, 23 Jul 2019 07:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563865981; bh=/AeZYX+JUna3ZCh05UfteU3NUn8L0WgCT1Lwr+ICNrQ=; h=From:To:Cc:Subject:Date:From; b=z+xNKoUVIlNdv2D5IaEK37LRzlxrQJVSXHIYklLzrmaF9+DDfFgmPxArZj/7K38Kk KJ03eP5esud2Pofl7zjPvdfk2bujnq+8IX4sDhJDOTpdc2dLsrGqnSIJGZ+a6a3r1P XA1qveE1yTjyrjAL19691BFGb7c79VhTgBUBnzws= From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Edward Srouji , RDMA mailing list , Yishai Hadas , Saeed Mahameed , linux-netdev , Leon Romanovsky Subject: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment Date: Tue, 23 Jul 2019 10:12:55 +0300 Message-Id: <20190723071255.6588-1-leon@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Edward Srouji Fix modify_cq_in alignment to match the device specification. After this fix the 'cq_umem_valid' field will be in the right offset. Cc: # 4.19 Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits") Signed-off-by: Edward Srouji Reviewed-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- include/linux/mlx5/mlx5_ifc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index b3d5752657d9..ec571fd7fcf8 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -5975,10 +5975,12 @@ struct mlx5_ifc_modify_cq_in_bits { struct mlx5_ifc_cqc_bits cq_context; - u8 reserved_at_280[0x40]; + u8 reserved_at_280[0x60]; u8 cq_umem_valid[0x1]; - u8 reserved_at_2c1[0x5bf]; + u8 reserved_at_2e1[0x1f]; + + u8 reserved_at_300[0x580]; u8 pas[0][0x40]; }; -- 2.20.1