IB/mlx5: Page faults handling infrastructure
authorHaggai Eran <haggaie@mellanox.com>
Thu, 11 Dec 2014 15:04:23 +0000 (17:04 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:19:03 +0000 (18:19 -0800)
commit6aec21f6a8322fa8d43df3ea7f051dfd8967f1b9
treede572339272023be68f0d5c2512cd719fb033f40
parent832a6b06ab5e13c228fc27e333ad360aa03ace6f
IB/mlx5: Page faults handling infrastructure

* Refactor MR registration and cleanup, and fix reg_pages accounting.
* Create a work queue to handle page fault events in a kthread context.
* Register a fault handler to get events from the core for each QP.

The registered fault handler is empty in this patch, and only a later
patch implements it.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c
drivers/infiniband/hw/mlx5/qp.c
include/linux/mlx5/driver.h