diff options
author | Weihang Li <liweihang@hisilicon.com> | 2019-09-04 11:14:42 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-31 16:44:13 +0100 |
commit | 123c46d7326f7ff4fd5f54a10d4c07d67cd0ca52 (patch) | |
tree | 5f258813b572e9813d8fa94682b302ad18566c74 /drivers/gpu/drm/gma500 | |
parent | ac3c43145dc876e9af31ca63aa47057c8b575691 (diff) |
RDMA/hns: Fix wrong parameters when initial mtt of srq->idx_que
[ Upstream commit e8a07de57ea4ca7c2d604871c52826e66899fc70 ]
The parameters npages used to initial mtt of srq->idx_que shouldn't be
same with srq's. And page_shift should be calculated from idx_buf_pg_sz.
This patch fixes above issues and use field named npage and page_shift
in hns_roce_buf instead of two temporary variables to let us use them
anywhere.
Fixes: 18df508c7970 ("RDMA/hns: Remove if-else judgment statements for creating srq")
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Link: https://lore.kernel.org/r/1567566885-23088-3-git-send-email-liweihang@hisilicon.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/gma500')
0 files changed, 0 insertions, 0 deletions