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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 9DF32C433FF for ; Thu, 8 Aug 2019 19:14:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 69620214C6 for ; Thu, 8 Aug 2019 19:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565291699; bh=x/rR/f7nKOWNM0gBErSAvQTka5BQv98DsQhI7mYy6TQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gzCM63xahaWQKvH07s0kEm8xgdy9Z8Pj93BAF9D1K6zNnfNsPdUqTOD9qkEOgTGrS voxLVUI+yeq0AddM3t65XzozE1VK4sv5Ox1wvHmn6UIOBWV5crbkOmAp/oS7qibJ7I qBDFdhU9M6Mxay/nV4ivTNqpuaBZstJjviQk9U9M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404718AbfHHTHk (ORCPT ); Thu, 8 Aug 2019 15:07:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:41362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404701AbfHHTHh (ORCPT ); Thu, 8 Aug 2019 15:07:37 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 42D732189E; Thu, 8 Aug 2019 19:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565291256; bh=x/rR/f7nKOWNM0gBErSAvQTka5BQv98DsQhI7mYy6TQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v9lvQ5kk7bir8vcHoHYKvDQXjQeNQfFwPQMQ1/Mji+aQcKBe2R9qxOqtvMGdH17Mo P5xtVXKKKj3YofqtrdFtncyawYu0xHYgtlDqy59KipSAa4y7NgYzsIM5XqpHpxGss9 96MH0ELr48pSEZwUZqpJEKWzeNWTNOrFR2j328o8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Edward Srouji , Yishai Hadas , Leon Romanovsky , Saeed Mahameed Subject: [PATCH 5.2 39/56] net/mlx5: Fix modify_cq_in alignment Date: Thu, 8 Aug 2019 21:05:05 +0200 Message-Id: <20190808190454.634777421@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190808190452.867062037@linuxfoundation.org> References: <20190808190452.867062037@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Edward Srouji [ Upstream commit 7a32f2962c56d9d8a836b4469855caeee8766bd4 ] 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 Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- include/linux/mlx5/mlx5_ifc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -5865,10 +5865,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]; };