]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sif: PSC_API_VERSION(2,9): add num_ufs to psif_epsc_csr_config
authorRobert Schmidt <robert.schmidt@oracle.com>
Thu, 11 Aug 2016 14:14:12 +0000 (16:14 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 12 Aug 2016 19:18:10 +0000 (12:18 -0700)
The new member num_ufs can be used by the PF driver to request a
number of UFs FW shall support.
  0: use default value stored on card
  1: PF (UF 0) only
 ...
 33: fully virtualized
>33: capped by FW to 33 i.e. fully virtualized
 -1: alternative PF only config not for official use

Orabug: 24424521

Reviewed-by: Knut Omang <knut.omang@oracle.com>
Signed-off-by: Knut Omang <knut.omang@oracle.com>
drivers/infiniband/hw/sif/psif_api.h
drivers/infiniband/hw/sif/psif_hw_data_be.h
drivers/infiniband/hw/sif/psif_hw_data_le.h

index f20e68ec46ac87e40f780de20965dccea4c45a6e..425ededc1609348ad65625d42b2112bc3976de9a 100644 (file)
@@ -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 8
+#define EPSC_MINOR_VERSION 9
 
 /*
  * Macros for EPSC API #if checking in code
index e127caf92fbcdc10c22586df4fb3720b48e817a8..49dca085ec8e10c846ce6a8c2afcf2421bef0e2c 100644 (file)
@@ -2957,8 +2957,13 @@ struct psif_epsc_csr_config {
        u64     vlink_connect:1;
        /** Setup CMPL spin set mode to be fast - default is safe (PF only). */
        u64     fast_spin:1;
+       /** Number of UFs (PF+VFs) to configure HW for 
+        *  0 means to use default stored in HW (PF only)
+        *  Though this is a signed value (values < 0 are used for special settings
+        *  not available in official FW) the created bitfield is unsigned. */
+       u64     num_ufs:16;
        /** Padded field. */
-       u64     noname:55;
+       u64     noname:39;
 } PSIF_PACKED_ALIGNED; /* struct psif_epsc_csr_config [48 byte] */
 
 /* This is the portion of the descriptor which is updated by software. */
index 0bb5253ad22f07a99f81ad3d8854811c9507c541..c28eb5ca8b9458fb6119a8898d682575e3ad1747 100644 (file)
@@ -2941,7 +2941,12 @@ struct psif_epsc_csr_config {
        /** MMU context for mailbox. */
        struct psif_mmu_cntx    mmu_cntx;
        /** Padded field. */
-       u64     noname:55;
+       u64     noname:39;
+       /** Number of UFs (PF+VFs) to configure HW for 
+        *  0 means to use default stored in HW (PF only)
+        *  Though this is a signed value (values < 0 are used for special settings
+        *  not available in official FW) the created bitfield is unsigned. */
+       u64     num_ufs:16;
        /** Setup CMPL spin set mode to be fast - default is safe (PF only). */
        u64     fast_spin:1;
        /** Connect all vlinks to external port (PF only). */