Current Switchtec's BAR setup registers are limited to 32bits, corresponding to the maximum MW (memory window) size is <4G. Increase the MW sizes with the addition of the BAR Setup Extension Register for the upper 32bits of a 64bits MW size. This increases the MW range to between 4K and 2^63.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -248,7 +248,11 @@ struct ntb_ctrl_regs { · 247 unmodified lines | |||
| 248 | u32 win_size; | 248 | u32 win_size; |
| 249 | u64 xlate_addr; | 249 | u64 xlate_addr; |
| 250 | } bar_entry[6]; | 250 | } bar_entry[6]; |
| 251 | u32 reserved2[216]; | 251 | struct { |
| 252 | u32 win_size; | ||
| 253 | u32 reserved[3]; | ||
| 254 | } bar_ext_entry[6]; | ||
| 255 | u32 reserved2[192]; | ||
| 252 | u32 req_id_table[512]; | 256 | u32 req_id_table[512]; |
| 253 | u32 reserved3[256]; | 257 | u32 reserved3[256]; |
| 254 | u64 lut_entry[512]; | 258 | u64 lut_entry[512]; |