From patchwork Sat Mar 2 07:22:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 13579453 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FA3D125A9 for ; Sat, 2 Mar 2024 07:23:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709364197; cv=none; b=OatthBF/+D4I/LRGtbab5TCC+cLh6KBW4TuuZTVCCZ2QkvSmiFlhSGuj6gPsxR7cxJ/VX7S9ytIcjr5fls4f8I28PWglX2Qjl9BE1lMqgGBWa/Gtc77K9gnJSRV7sXq5VF6P9JZBKmZhPhzovZBXcjQdtNhHVux6ehNdvbWKU0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709364197; c=relaxed/simple; bh=dZUIJ6qTmGMsXNXJr8cZklYFs8zd3RZybmrnj2lUoKE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mkt4lndlSqHKYKEaerthLeNMALLhqEkSiX8E69Qt4Js88+726AC8O6bg1jQV4NwNokhdgGUoZXMu/g59vrFw0mBsyv2JBzp8dyaohxRGUPJ05hex+lv0ktKZXP0z03eVIKktf3KrV82OdbDBcTjPue2gol7u3IvrpeD8Ce4NaEE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oR24QRRj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oR24QRRj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C32AEC433F1; Sat, 2 Mar 2024 07:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709364196; bh=dZUIJ6qTmGMsXNXJr8cZklYFs8zd3RZybmrnj2lUoKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oR24QRRjoMrnvH2xA0IyTO8UKLPun5u4Hj4MT6dI6ddfRN3Sj9VjRFsvO/CxyF6nv vS6Zdo1+NCngnLVU/WibFhfD0ORhx670/vTAKKY3FmWfJSk5BeRao44076tMr+0HJy gFjlFC1QYnljch0Q+iJFPubzB99CXotV4NNARvSZLL6nf25KlpVKu5e+cviZ8KQ7tt 6umW8aloMSftC/ypbXpz8ZRmrm9wRMDBwMQhRDiKKPHjjA9mX6v99xNpmTQTqkTwos +Xrkj7RDw3ak+iU3LHETawlrcGvHugL/GWz3qJ40EyAgWraBXdHTcVhX2RK8O5YU8C czMdsU5SJoZtA== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Gal Pressman , Leon Romanovsky , sridhar.samudrala@intel.com, Jay Vosburgh , Jiri Pirko , Greg Kroah-Hartman Subject: [net-next V4 01/15] net/mlx5: Add MPIR bit in mcam_access_reg Date: Fri, 1 Mar 2024 23:22:31 -0800 Message-ID: <20240302072246.67920-2-saeed@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240302072246.67920-1-saeed@kernel.org> References: <20240302072246.67920-1-saeed@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Tariq Toukan Add a cap bit in mcam_access_reg to check for MPIR support. Signed-off-by: Tariq Toukan Reviewed-by: Gal Pressman Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 628a3aa7a7e0..2756bdb654b4 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -10253,7 +10253,9 @@ struct mlx5_ifc_mcam_access_reg_bits { u8 mcqi[0x1]; u8 mcqs[0x1]; - u8 regs_95_to_87[0x9]; + u8 regs_95_to_90[0x6]; + u8 mpir[0x1]; + u8 regs_88_to_87[0x2]; u8 mpegc[0x1]; u8 mtutc[0x1]; u8 regs_84_to_68[0x11];