]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f30bcb939ec22818cad6a7dca8f9c2940205b87
tree13c7019cb64540060b342732f5b6f3b3dd4319b1
parent1b66f2ad8d30c63b81634e935a361d07e597b5f5
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