aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/infiniband/arbel.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-09-17 20:53:29 +0100
committerMichael Brown <mcb30@ipxe.org>2010-09-17 22:55:14 +0100
commit144a23a85215cfe62388a77a051470bf3222fd17 (patch)
treee567e65d505ca903ed651186130cb43569c0c30d /src/drivers/infiniband/arbel.h
parentd84e4e0575671466e19e7ada274fdb430426d617 (diff)
downloadipxe-144a23a85215cfe62388a77a051470bf3222fd17.tar.gz
[arbel] Optimise ICM layout to reduce overall memory usage
Reduce the amount of ICM space required by choosing to order the various allocations in approximately descending order of alignment requirements. This saves approximately 512kB of host memory. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband/arbel.h')
-rw-r--r--src/drivers/infiniband/arbel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/infiniband/arbel.h b/src/drivers/infiniband/arbel.h
index 17803934c..41d639973 100644
--- a/src/drivers/infiniband/arbel.h
+++ b/src/drivers/infiniband/arbel.h
@@ -91,9 +91,9 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ARBEL_INVALID_LKEY 0x00000100UL
-#define ARBEL_PAGE_SIZE 4096
+#define ARBEL_PAGE_SIZE ( ( size_t ) 4096 )
-#define ARBEL_RDB_ENTRY_SIZE 32
+#define ARBEL_RDB_ENTRY_SIZE ( ( size_t ) 32 )
#define ARBEL_DB_POST_SND_OFFSET 0x10
#define ARBEL_DB_EQ_OFFSET(_eqn) ( 0x08 * (_eqn) )
@@ -308,6 +308,8 @@ struct arbel_dev_limits {
size_t eqc_entry_size;
/** Number of reserved UARs */
unsigned int reserved_uars;
+ /** UAR scratchpad entry size */
+ size_t uar_scratch_entry_size;
};
/** Alignment of Arbel send work queue entries */