]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
IB/core: Add an unbound WQ type to the new CQ API
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 27 Aug 2018 05:35:55 +0000 (08:35 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 16 Oct 2019 09:55:13 +0000 (11:55 +0200)
commit074cf9626e91df9b21adb3c3b0e6657d62cf5f30
treeb0a8d6523cea200c2b96e4dd8e7ae51d826e83dd
parentbcdfd1ad1c0453c3c8fcf54b996a43c59bb4fbcb
IB/core: Add an unbound WQ type to the new CQ API

BugLink: https://bugs.launchpad.net/bugs/1847155
commit f794809a7259dfaa3d47d90ef5a86007cf48b1ce upstream.

The upstream kernel commit cited below modified the workqueue in the
new CQ API to be bound to a specific CPU (instead of being unbound).
This caused ALL users of the new CQ API to use the same bound WQ.

Specifically, MAD handling was severely delayed when the CPU bound
to the WQ was busy handling (higher priority) interrupts.

This caused a delay in the MAD "heartbeat" response handling,
which resulted in ports being incorrectly classified as "down".

To fix this, add a new "unbound" WQ type to the new CQ API, so that users
have the option to choose either a bound WQ or an unbound WQ.

For MADs, choose the new "unbound" WQ.

Fixes: b7363e67b23e ("IB/device: Convert ib-comp-wq to be CPU-bound")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.m>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/infiniband/core/cq.c
drivers/infiniband/core/device.c
drivers/infiniband/core/mad.c
include/rdma/ib_verbs.h