diff options
| author | Raed Salem | 2016-12-08 10:01:51 +0100 |
|---|---|---|
| committer | Michael Brown | 2016-12-08 10:35:52 +0100 |
| commit | 26050fd4c87c50503d5bd573b2ec91703676e211 (patch) | |
| tree | 51dac8a878d188803b1d76d7a0f150656f466ed3 /src/drivers/infiniband/mlx_utils_flexboot | |
| parent | [efi] Work around temporal anomaly encountered during ExitBootServices() (diff) | |
| download | ipxe-26050fd4c87c50503d5bd573b2ec91703676e211.tar.gz ipxe-26050fd4c87c50503d5bd573b2ec91703676e211.tar.xz ipxe-26050fd4c87c50503d5bd573b2ec91703676e211.zip | |
[golan] Update Connect-IB, ConnectX-4 and ConnectX-4 Lx (Infiniband) support
Updates:
- Nodnic: Support for arm cq doorbell via the UAR BAR
- Ensure hardware is quiescent when no interface is open - WinPE WA
- Support for clear interrupt via BAR
- Nodnic: Support for send TX doorbells via the UAR BAR
- Added ConnectX-5EX device
- Added ConnectX-5 device
Signed-off-by: Raed Salem <raeds@mellanox.com>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband/mlx_utils_flexboot')
3 files changed, 17 insertions, 3 deletions
diff --git a/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_logging_priv.h b/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_logging_priv.h index af7e86f44..3acc1d9d8 100644 --- a/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_logging_priv.h +++ b/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_logging_priv.h @@ -12,8 +12,8 @@ #include <compiler.h> #define MLX_DEBUG_FATAL_ERROR_PRIVATE(...) do { \ - DBG("%s: ",__func__); \ - DBG(__VA_ARGS__); \ + printf("%s: ",__func__); \ + printf(__VA_ARGS__); \ } while ( 0 ) #define MLX_DEBUG_ERROR_PRIVATE(id, ...) do { \ @@ -56,6 +56,7 @@ DBG2(__VA_ARGS__); \ } while ( 0 ) +#define MLX_PRINT_PRIVATE(...) printf(__VA_ARGS__) #endif /* STUB_MLXUTILS_INCLUDE_PRIVATE_FLEXBOOT_DEBUG_H_ */ diff --git a/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_types_priv.h b/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_types_priv.h index feaeae679..fe0d5c056 100644 --- a/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_types_priv.h +++ b/src/drivers/infiniband/mlx_utils_flexboot/include/mlx_types_priv.h @@ -33,7 +33,7 @@ typedef uint8_t mlx_uint8; typedef uint16_t mlx_uint16; typedef uint32_t mlx_uint32; typedef uint64_t mlx_uint64; -typedef uint32_t mlx_uintn; +typedef unsigned long mlx_uintn; typedef int8_t mlx_int8; typedef int16_t mlx_int16;; diff --git a/src/drivers/infiniband/mlx_utils_flexboot/src/mlx_pci_priv.c b/src/drivers/infiniband/mlx_utils_flexboot/src/mlx_pci_priv.c index f8caefdce..b474a4a63 100644 --- a/src/drivers/infiniband/mlx_utils_flexboot/src/mlx_pci_priv.c +++ b/src/drivers/infiniband/mlx_utils_flexboot/src/mlx_pci_priv.c @@ -6,6 +6,7 @@ */ #include <ipxe/pci.h> + #include "../../mlx_utils/include/private/mlx_pci_priv.h" @@ -121,6 +122,18 @@ mlx_pci_init_priv( } mlx_status +mlx_pci_teardown_priv( + IN mlx_utils *utils __attribute__ ((unused)) + ) +{ + mlx_status status = MLX_SUCCESS; +#ifdef DEVICE_CX3 + iounmap( utils->config ); +#endif + return status; +} + +mlx_status mlx_pci_read_priv( IN mlx_utils *utils, IN mlx_pci_width width, |
