LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0002-staging-rdma-hfi1-Adjust-EPROM-partitions-add-EPROM-.patch of Package linux-glibc-devel (Project home:michal-m:branches:SUSE:SLE-12-SP3:GA)

From cd371e0959a3f2d5df69d50000750f7eefc94659 Mon Sep 17 00:00:00 2001
From: Dean Luick <dean.luick@intel.com>
Date: Mon, 16 Nov 2015 21:59:35 -0500
Subject: [PATCH 02/18] staging/rdma/hfi1: Adjust EPROM partitions, add EPROM
 commands
Git-commit: cd371e0959a3f2d5df69d50000750f7eefc94659
Patch-mainline: v4.5-rc1
References: bsc#973818, fate#319242, bsc#981074

Add a new EPROM partition, adjusting partition placement.

Add EPROM range commands as a supserset of the partition
commands.  Remove old partition commands.

Enhance EPROM erase, creating a range function and using the
largest erase (sub) commands when possible.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Jiri Bohac <jbohac@suse.cz>
Acked-by: Michal Marek <mmarek@suse.com>

---
 usr/include/rdma/hfi/hfi1_user.h | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/usr/include/rdma/hfi/hfi1_user.h b/usr/include/rdma/hfi/hfi1_user.h
index a2fc6cbfe414..288694e422fb 100644
--- a/usr/include/rdma/hfi/hfi1_user.h
+++ b/usr/include/rdma/hfi/hfi1_user.h
@@ -137,12 +137,10 @@
 /* separate EPROM commands from normal PSM commands */
 #define HFI1_CMD_EP_INFO         64      /* read EPROM device ID */
 #define HFI1_CMD_EP_ERASE_CHIP   65      /* erase whole EPROM */
-#define HFI1_CMD_EP_ERASE_P0     66      /* erase EPROM partition 0 */
-#define HFI1_CMD_EP_ERASE_P1     67      /* erase EPROM partition 1 */
-#define HFI1_CMD_EP_READ_P0      68      /* read EPROM partition 0 */
-#define HFI1_CMD_EP_READ_P1      69      /* read EPROM partition 1 */
-#define HFI1_CMD_EP_WRITE_P0     70      /* write EPROM partition 0 */
-#define HFI1_CMD_EP_WRITE_P1     71      /* write EPROM partition 1 */
+/* range 66-74 no longer used */
+#define HFI1_CMD_EP_ERASE_RANGE  75      /* erase EPROM range */
+#define HFI1_CMD_EP_READ_RANGE   76      /* read EPROM range */
+#define HFI1_CMD_EP_WRITE_RANGE  77      /* write EPROM range */
 
 #define _HFI1_EVENT_FROZEN_BIT         0
 #define _HFI1_EVENT_LINKDOWN_BIT       1
-- 
2.10.2