From patchwork Wed Mar 6 03:02:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 13583235 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 5424DDF51 for ; Wed, 6 Mar 2024 03:03:05 +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=1709694186; cv=none; b=l8Wz8vHGdjTVZjr5cu5MowGYhJ/g8UAEYSflOb2UWjTzfHBnVNbhKZE08aUXlgYqm0ijlpZPRjuQnhGmtKvbHe5cU6IjrAl6lHqAckf4ckgdxtWP7nBMzYEr+hW+G6kir8TAMHvjdg7GUlquVYM8n7PI3sCci9WemIgPBiZSkLI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709694186; c=relaxed/simple; bh=dZUIJ6qTmGMsXNXJr8cZklYFs8zd3RZybmrnj2lUoKE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ek2rwtzS1NIVnB5aZr6HRT37A+UTixu6w+1cq6zGu/8eysG/fimyw3dF7SjPyywca18V/Rz6Mr3CNdGlzK6OJ9mNBy5/iLeC/b+OIXPi88HHK/bMl0ntxbN0CLIY+gQzuaeS33zifkQIlp6rmv1X4lNujvKnkwVlHuJI6ydyjlA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lEeGkLBT; 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="lEeGkLBT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A798EC433A6; Wed, 6 Mar 2024 03:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709694185; bh=dZUIJ6qTmGMsXNXJr8cZklYFs8zd3RZybmrnj2lUoKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lEeGkLBTZ/OXpltpFyRcryEnUL+IC3yFP2AUUGEqbvN2ZFrs7vEgnv79k17Bfotex NGU4NPyPw96b/216ZlgZs7R8499E85mLYNK93ENu2ThuGw9kb9WihhzxZiCFFej1FF //2rXm9fr7D3SB9LhYEOuPOkxfdQF5d+A5A/whxrbank0Z15jBP/F2eoZSAy7AD9n+ EtilXn5XKk7ANP/QgpIy+ztUQN6dOD4/THhJpf1FKSlmVQCp/9JxIJyUcQ971eJ8Qb AJ69GZCrXpIZwjjIgLge2VOfQPpXKBHT0eam65/BtmYgX3tZOtpaVzlyHg8y+UgFeA E9X9013u9vCJA== 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 Subject: [net-next V5 01/15] net/mlx5: Add MPIR bit in mcam_access_reg Date: Tue, 5 Mar 2024 19:02:44 -0800 Message-ID: <20240306030258.16874-2-saeed@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240306030258.16874-1-saeed@kernel.org> References: <20240306030258.16874-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];