[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>
This commit is contained in:
Michael Brown
2010-09-17 20:53:29 +01:00
parent d84e4e0575
commit 144a23a852
2 changed files with 150 additions and 89 deletions

View File

@@ -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 */