From patchwork Thu Feb 8 03:53:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 13549299 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 31D4A2C6B0 for ; Thu, 8 Feb 2024 03:54:08 +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=1707364449; cv=none; b=WQmWu223gbDmxeBl62x/tehTkp6iwxStwRr3+G3SM/qIoiUbSsAJmB4moGzCehhbQWUh0ahlY5qNUAyu7hsAkYqcHWr8PxQcHN5+mNOmXC03UvB/X7KFzSDt+kNrLiC9ImApnWsX8I447OOw0zlFo0j7YsZJ/Jn83X5adcxWb8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707364449; c=relaxed/simple; bh=/AMKKmVOpLVP1UGwV9ohySO6Y6AM9QwsGNUtyANxEw0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BlFdJka4BWU8U9Y6CiuI40SCVnXp5eo8q43UHZr5gejG/A1hjuAV4LmEyhJf1KRC+xfuReQeXcQdBDvyB1uRv8OXNoSueNKMRH9wL6kjGsECZqLiK6ITXp+LUzIz77uiPlDCYzRsBlMg1bQDK3352FD24JwXymIKB3JzRuEk7LQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ccx4hOvC; 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="ccx4hOvC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8150FC433F1; Thu, 8 Feb 2024 03:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707364448; bh=/AMKKmVOpLVP1UGwV9ohySO6Y6AM9QwsGNUtyANxEw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ccx4hOvC7A3FEALXpuKWF5J5I2WpNTv7zxUCz4+21zICH3QX/GnqYtWGd0zDQEUnz 6YnjlW+jCL2TR2a6ZjR3u+YS85mGTWl+kOBkAqEeauxOOMvoWOmjodBoCCoTSibGtE zOuj1/Muj1t4zSwpKWjZjz0clQ5rQqRycpajAhu3Z6afGUbF8UwJepqu42z0djE5xI e+8acA0NtAeHc/vod2wuPcEe9gnL/H69f4Y/kFmhXlNXMEFMuiH3E9PpEM6QSSbVY4 L11b3sEPDOIVTjdrUi7pGvvvpop92p7sDE9CizVUTrL7xuj160uZGooXg0/IE8MxIu GKFZ4jhhOFEdg== 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 V2 01/15] net/mlx5: Add MPIR bit in mcam_access_reg Date: Wed, 7 Feb 2024 19:53:38 -0800 Message-ID: <20240208035352.387423-2-saeed@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240208035352.387423-1-saeed@kernel.org> References: <20240208035352.387423-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 c726f90ab752..8bc35f221ee9 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];