RDMA/efa: Report host information to the device
authorGal Pressman <galpress@amazon.com>
Tue, 12 May 2020 15:22:04 +0000 (18:22 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 May 2020 13:05:00 +0000 (10:05 -0300)
commite1ca01a902fedebd72978f606f4be767ea4a26ea
tree13c7019cb64540060b342732f5b6f3b3dd4319b1
parentcc8a635e24acf2793605f243c913c51b8c3702ab
RDMA/efa: Report host information to the device

The host info feature allows the driver to infrom the EFA device
firmware with system configuration for debugging and troubleshooting
purposes.

The host info buffer is passed as an admin command DMA mapped control
buffer, and is unmapped and freed once the command CQE is consumed.

Currently, the setting of host info is done for each device on its
probe. Failing to set the host info for the device shall not disturb the
probe flow, any errors will be discarded.

Link: https://lore.kernel.org/r/20200512152204.93091-3-galpress@amazon.com
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/efa/efa_admin_cmds_defs.h
drivers/infiniband/hw/efa/efa_com_cmd.c
drivers/infiniband/hw/efa/efa_com_cmd.h
drivers/infiniband/hw/efa/efa_main.c