From 144a23a85215cfe62388a77a051470bf3222fd17 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 17 Sep 2010 20:53:29 +0100 Subject: [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 --- src/drivers/infiniband/arbel.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/drivers/infiniband/arbel.h') 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 */ -- cgit v1.2.3-55-g7522