mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
IB/hfi1: Add bypass register defines and replace blind constants
These registers were not added in the 16B work.
Add them and replace blind constants with the correct defines.
Fixes: 72c07e2b67 ("IB/hfi1: Add support to receive 16B bypass packets")
Reviewed-by: Don Hiatt <[email protected]>
Signed-off-by: Mike Marciniszyn <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
This commit is contained in:
parent
5465f11083
commit
dc2b2a917c
2 changed files with 9 additions and 1 deletions
|
|
@ -14640,7 +14640,9 @@ static void init_rxe(struct hfi1_devdata *dd)
|
|||
|
||||
/* Have 16 bytes (4DW) of bypass header available in header queue */
|
||||
val = read_csr(dd, RCV_BYPASS);
|
||||
val |= (4ull << 16);
|
||||
val &= ~RCV_BYPASS_HDR_SIZE_SMASK;
|
||||
val |= ((4ull & RCV_BYPASS_HDR_SIZE_MASK) <<
|
||||
RCV_BYPASS_HDR_SIZE_SHIFT);
|
||||
write_csr(dd, RCV_BYPASS, val);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -638,6 +638,12 @@
|
|||
#define RCV_BTH_QP_KDETH_QP_MASK 0xFFull
|
||||
#define RCV_BTH_QP_KDETH_QP_SHIFT 16
|
||||
#define RCV_BYPASS (RXE + 0x000000000038)
|
||||
#define RCV_BYPASS_HDR_SIZE_SHIFT 16
|
||||
#define RCV_BYPASS_HDR_SIZE_MASK 0x1Full
|
||||
#define RCV_BYPASS_HDR_SIZE_SMASK 0x1F0000ull
|
||||
#define RCV_BYPASS_BYPASS_CONTEXT_SHIFT 0
|
||||
#define RCV_BYPASS_BYPASS_CONTEXT_MASK 0xFFull
|
||||
#define RCV_BYPASS_BYPASS_CONTEXT_SMASK 0xFFull
|
||||
#define RCV_CONTEXTS (RXE + 0x000000000010)
|
||||
#define RCV_COUNTER_ARRAY32 (RXE + 0x000000000400)
|
||||
#define RCV_COUNTER_ARRAY64 (RXE + 0x000000000500)
|
||||
|
|
|
|||
Loading…
Reference in a new issue