]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
EPSC_API_VERSION(2,6) - Adding retrieval of SMP and vlink connect modes
authorHarald Høeg <harald.hoeg@oracle.com>
Fri, 15 Jul 2016 08:03:26 +0000 (10:03 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 27 Jul 2016 17:24:21 +0000 (10:24 -0700)
Orabug: 23634562

Change-Id: Ic3eea7a7297c9ff97e72cb25dda4ba44fdfa2937
Signed-off-by: Harald Høeg <harald.hoeg@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
16 files changed:
drivers/infiniband/hw/sif/psif_api.h
drivers/infiniband/hw/sif/psif_endian.h
drivers/infiniband/hw/sif/psif_hw_csr.h
drivers/infiniband/hw/sif/psif_hw_data.h
drivers/infiniband/hw/sif/psif_hw_data_be.h
drivers/infiniband/hw/sif/psif_hw_data_le.h
drivers/infiniband/hw/sif/psif_hw_macro.h
drivers/infiniband/hw/sif/psif_hw_macro_be.h
drivers/infiniband/hw/sif/psif_hw_macro_le.h
drivers/infiniband/hw/sif/psif_hw_print.c
drivers/infiniband/hw/sif/psif_hw_print.h
drivers/infiniband/hw/sif/psif_hw_setget.h
drivers/infiniband/hw/sif/psif_hw_setget_be.h
drivers/infiniband/hw/sif/psif_hw_setget_le.h
drivers/infiniband/hw/sif/version.c
drivers/infiniband/hw/sif/versioninfo.h

index eb82f476828cb57ce6502e5eeed138d4c7add782..f99af66dd741b58edc63ff966fca3931b5458d93 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
@@ -43,7 +43,7 @@ typedef uint64_t __be64;
  * Update when new operations are added or otherwise
  * backward compatible changes are made
  */
-#define EPSC_MINOR_VERSION 5
+#define EPSC_MINOR_VERSION 6
 
 /*
  * Macros for EPSC API #if checking in code
@@ -55,7 +55,7 @@ typedef uint64_t __be64;
  * Macro to conver 16 bit sequence number to 64 bit wire format
  */
 #define EPSC_STATUS_16_to_64(s) ((((u64)(s)) <<  0) | (((u64)(s)) << 16) | \
-                                                               (((u64)(s)) << 32) | ((((u64)s)) << 48))
+                                (((u64)(s)) << 32) | ((((u64)s)) << 48))
 /*
  * Macros to force layout to match HW implementation
  */
index 1ca474ec011633eaf6383a5bb018861692cfc187..94bc5a8389d41fe70baaf97f013a3b6c88681484 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  */
 
 #ifndef        _PSIF_ENDIAN_H
index 2d9bca1e4f742a998ec25f5a85323117b8b68ba2..0548766b0fde8f6472be516ec63b9955b20da88b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
  *
  * THIS FILE IS AUTOMATICALLY GENERATED & MANUALLY SCRUBBED. DO NOT EDIT
  */
index 8fa75845b15a9c5f679f9dd0718ed90d960c296a..69d885c2297b99700bed2374d382606edafc460d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
@@ -70,7 +70,7 @@ enum psif_enum_extent {
        PSIF_EPSC_CSR_UPDATE_OPCODE_EXTENT       = 0x8u,
        PSIF_EPSC_FLASH_SLOT_EXTENT      = 0x6u,
        PSIF_EPSC_UPDATE_SET_EXTENT      = 0x5u,
-       PSIF_EPSC_CSR_UF_CTRL_OPCODE_EXTENT      = 0x9u,
+       PSIF_EPSC_CSR_UF_CTRL_OPCODE_EXTENT      = 0xbu,
        PSIF_EPSC_VIMMA_CTRL_OPCODE_EXTENT       = 0x8u,
        PSIF_EPSC_VIMMA_ADMMODE_EXTENT   = 0x2u,
        PSIF_EPSC_CSR_PMA_COUNTERS_ENUM_EXTENT   = 0x17u,
@@ -1661,6 +1661,10 @@ enum psif_epsc_csr_uf_ctrl_opcode {
        EPSC_UF_CTRL_GET_HIGHEST_QP_IDX,
        /** Reset the highest QP number cache for the given UF */
        EPSC_UF_CTRL_RESET_HIGHEST_QP_IDX,
+       /** Retrieve the current UF settings for SMP enable */
+       EPSC_UF_CTRL_GET_SMP_ENABLE,
+       /** Retrieve the current UF settings for vlink connect */
+       EPSC_UF_CTRL_GET_VLINK_CONNECT,
        /* Padding out to required bits allocated */
        PSIF_EPSC_CSR_UF_CTRL_OPCODE_FIELD_MAX   = 0x7fffffffu
 }; /* enum psif_epsc_csr_uf_ctrl_opcode [32 bits] */
@@ -1741,10 +1745,19 @@ enum psif_epsc_vimma_ctrl_opcode {
        PSIF_EPSC_VIMMA_CTRL_OPCODE_FIELD_MAX    = 0x7fffffffu
 }; /* enum psif_epsc_vimma_ctrl_opcode [32 bits] */
 
-
+/** \brief IB admin modes supported by VIMMA
+ * \details
+ * VIMMA IB admin mode defines the way the VF will be configured
+ * by the fabric, either by SM alone, or by SM/VIMM combo.
+ * \par Classification
+ *     external
+ */
 enum psif_epsc_vimma_admmode {
+       /** SM only mode is default and behaves according to IBTA standard */
        EPSC_VIMMA_CTRL_IB_ADM_MODE_SM_STANDARD,
-       /* VFP used as short for VM Fabric Profile */
+       /** VFP mode requires support of a VIMM service in the fabric.
+        * VFP = VM Fabric Profile
+        */
        EPSC_VIMMA_CTRL_IB_ADM_MODE_VM_FABRIC_PROFILE,
        /* Padding out to required bits allocated */
        PSIF_EPSC_VIMMA_ADMMODE_FIELD_MAX        = 0xffffu
index 117a086c8225f3df63a3d0bdfc6e6dc935578c1c..2ec955fb8603d43a58c00d501a1921e86f829427 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
@@ -2779,16 +2779,16 @@ union psif_epsc_vimma_ctrl_cmd {
  *       external
  */
 struct psif_epsc_csr_vimma_ctrl {
-       /* VIMMA sub-opcodes triggered by EPSC_VIMMA_CTRL */
+       /** VIMMA sub-opcodes triggered by EPSC_VIMMA_CTRL */
        enum psif_epsc_vimma_ctrl_opcode        opcode:32;
 
        /* length of DMA response buffer pinned in host memory */
        u32     length;
-       /* Size 5*64 bits: union of the params for the various opcodes */
+       /** Size 5*64 bits: union of the params for the various opcodes */
        union psif_epsc_vimma_ctrl_cmd  u;
-       /* Size 64 bits */
+       /** Size 64 bits */
        struct psif_mmu_cntx    mmu_cntx;
-       /* Place to DMA back longer responses during retrieval */
+       /** Place to DMA back longer responses during retrieval */
        u64     host_addr;
        /* Summing up to 11 * u64 which is total and max */
        u64     reserved[3];
index ed818d2905cf59ccd1312539f3e4f607a2f43748..d3f3957a2e0d0fce7ce4e140ca8bf762d602b464 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
@@ -2781,14 +2781,14 @@ union psif_epsc_vimma_ctrl_cmd {
 struct psif_epsc_csr_vimma_ctrl {
        /* length of DMA response buffer pinned in host memory */
        u32     length;
-       /* VIMMA sub-opcodes triggered by EPSC_VIMMA_CTRL */
+       /** VIMMA sub-opcodes triggered by EPSC_VIMMA_CTRL */
        enum psif_epsc_vimma_ctrl_opcode        opcode:32;
 
-       /* Size 5*64 bits: union of the params for the various opcodes */
+       /** Size 5*64 bits: union of the params for the various opcodes */
        union psif_epsc_vimma_ctrl_cmd  u;
-       /* Size 64 bits */
+       /** Size 64 bits */
        struct psif_mmu_cntx    mmu_cntx;
-       /* Place to DMA back longer responses during retrieval */
+       /** Place to DMA back longer responses during retrieval */
        u64     host_addr;
        /* Summing up to 11 * u64 which is total and max */
        u64     reserved[3];
index c1bc9483f6f3300d2029edd1191126f8ec49543f..57f09def4cad130341384b082689530032c7d774 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
index df3165cd8c77edd34a2a256f6cd0dda75ae33fa6..c181895920955bd15583f21a44acc8d35000f6dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
index 62a2f435dae7f7fe2affa7353228d19938ac1666..b908b8652fc2f1cf38081d12102ea78302fd3df9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
index 462dde6b5f7ab2f5bfdbd836437a9e2e6e770715..e061ef5f6b42643e413ae86542d29648f5290d37 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
@@ -1920,6 +1920,10 @@ const char *string_enum_psif_epsc_csr_uf_ctrl_opcode(enum psif_epsc_csr_uf_ctrl_
                return "EPSC_UF_CTRL_GET_HIGHEST_QP_IDX";
        case EPSC_UF_CTRL_RESET_HIGHEST_QP_IDX:
                return "EPSC_UF_CTRL_RESET_HIGHEST_QP_IDX";
+       case EPSC_UF_CTRL_GET_SMP_ENABLE:
+               return "EPSC_UF_CTRL_GET_SMP_ENABLE";
+       case EPSC_UF_CTRL_GET_VLINK_CONNECT:
+               return "EPSC_UF_CTRL_GET_VLINK_CONNECT";
        case PSIF_EPSC_CSR_UF_CTRL_OPCODE_FIELD_MAX:
                return "PSIF_EPSC_CSR_UF_CTRL_OPCODE_FIELD_MAX";
        default:
index 46405273d7d1b126bd165e9dfacc54ae27fe8603..47018e5ffe046b91f3d0fda0c5fc83e65fc9312f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
index ba9231c13618f2f448674db1df30ef4b5baa1d8a..957ba2fb169d48b3704b3ae479efa53fa4c51535 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
index 0e439e31a3a5ce4185dddc7179f0c0b34d97d7f4..4a237a674fe8bdce3b7a9dc6c6db65dea808cb21 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
index 2919d33ffcdd888091d154001cccf89bfb26eb17..43d9094aa98ed311a7af54c363bf5407668fdbd3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates.  All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2
index e855e75f3015fd2ca1786a2ca8f900ab82d58c4c..eafe8f7bf579582fcd857a2c80143f509079abde 100644 (file)
@@ -4,13 +4,14 @@
 
 struct sif_version sif_version = {
 .git_repo = "sifdrv [origin/master]",
-.last_commit = "titan_1.0.0.1 transform filters: Replace 'automatically generated'",
+.last_commit = "titan_1.0.0.1-4-g3865298 eq: increase cq_eq_max to 46",
 .git_status = """?? drivers/\n"
+"?? drv/sif_epsc.c~\n"
 ,
-.build_git_time = "Sun, 03 Jul 2016 12:44:15 +0000",
+.build_git_time = "Fri, 15 Jul 2016 07:58:00 +0000",
 .build_user = "komang",
 
 .git_psifapi_repo = "psifapi [origin/master]",
-.last_psifapi_commit = "titan_1.0.0.1 EPSC_API_VERSION(2,5) - EPSC_QUERY_HW_REVISION",
+.last_psifapi_commit = "titan_1.0.0.1-3-g7496ad1 EPSC_API_VERSION(2,6) - Adding retrieval of SMP and vlink connect modes",
 .git_psifapi_status = "",
 };
index 720b8cada2c9f3aaf67bdabfba0ca837fc188f69..e77cff976a6bc83c1e1bdfd6d6977407d85ecdea 100644 (file)
@@ -1,6 +1,6 @@
 /* Misc driver release info */
 
-#define BUILD_DATE "2016-07-03"
-#define BUILD_TIME "12:44:15"
-#define BUILD_EPOCH 1467549855
-#define TITAN_RELEASE "1.0.0.1"
+#define BUILD_DATE "2016-07-15"
+#define BUILD_TIME "07:58:00"
+#define BUILD_EPOCH 1468569480
+#define TITAN_RELEASE "1.0.0.1+4"