]> git.karo-electronics.de Git - linux-beck.git/commit
IB/hns: Change the logic for allocating uar registers
authorLijun Ou <oulijun@huawei.com>
Thu, 15 Sep 2016 22:48:11 +0000 (23:48 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:10 +0000 (11:43 -0400)
commitb280db52cc71a0cb135c2ab9adc0592af6440812
treefc47296851c739d8563473c39e1528fc91e35990
parent7716809efe5727d7fbf9cbf5689ef4162d999de5
IB/hns: Change the logic for allocating uar registers

This patch mainly modifies the logic for allocating uar registers.
In HiP06 SoC, HW has 8 group of uar registers for kernel and
user space application. The uar index is assigned as follows:
    0   ------ for kernel
    1~7 ------ for user space application

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_pd.c