mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-30 12:49:36 +00:00
RDMA/hns: Remove meaningless prints
ceq and aeq is a ring buffer, consumer index of them will be set to zero after reaching the maximum value. The warning should be removed or it may mislead the users. Link: https://lore.kernel.org/r/1584674622-52773-8-git-send-email-liweihang@huawei.com Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
f91b919687
commit
bceda6e67b
2 changed files with 3 additions and 11 deletions
|
@ -3935,11 +3935,9 @@ static int hns_roce_v1_aeq_int(struct hns_roce_dev *hr_dev,
|
||||||
eq->cons_index++;
|
eq->cons_index++;
|
||||||
aeqes_found = 1;
|
aeqes_found = 1;
|
||||||
|
|
||||||
if (eq->cons_index > 2 * hr_dev->caps.aeqe_depth - 1) {
|
if (eq->cons_index > 2 * hr_dev->caps.aeqe_depth - 1)
|
||||||
dev_warn(dev, "cons_index overflow, set back to 0.\n");
|
|
||||||
eq->cons_index = 0;
|
eq->cons_index = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
set_eq_cons_index_v1(eq, 0);
|
set_eq_cons_index_v1(eq, 0);
|
||||||
|
|
||||||
|
@ -3988,12 +3986,9 @@ static int hns_roce_v1_ceq_int(struct hns_roce_dev *hr_dev,
|
||||||
ceqes_found = 1;
|
ceqes_found = 1;
|
||||||
|
|
||||||
if (eq->cons_index >
|
if (eq->cons_index >
|
||||||
EQ_DEPTH_COEFF * hr_dev->caps.ceqe_depth - 1) {
|
EQ_DEPTH_COEFF * hr_dev->caps.ceqe_depth - 1)
|
||||||
dev_warn(&eq->hr_dev->pdev->dev,
|
|
||||||
"cons_index overflow, set back to 0.\n");
|
|
||||||
eq->cons_index = 0;
|
eq->cons_index = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
set_eq_cons_index_v1(eq, 0);
|
set_eq_cons_index_v1(eq, 0);
|
||||||
|
|
||||||
|
|
|
@ -5361,7 +5361,6 @@ static struct hns_roce_ceqe *next_ceqe_sw_v2(struct hns_roce_eq *eq)
|
||||||
static int hns_roce_v2_ceq_int(struct hns_roce_dev *hr_dev,
|
static int hns_roce_v2_ceq_int(struct hns_roce_dev *hr_dev,
|
||||||
struct hns_roce_eq *eq)
|
struct hns_roce_eq *eq)
|
||||||
{
|
{
|
||||||
struct device *dev = hr_dev->dev;
|
|
||||||
struct hns_roce_ceqe *ceqe = next_ceqe_sw_v2(eq);
|
struct hns_roce_ceqe *ceqe = next_ceqe_sw_v2(eq);
|
||||||
int ceqe_found = 0;
|
int ceqe_found = 0;
|
||||||
u32 cqn;
|
u32 cqn;
|
||||||
|
@ -5380,10 +5379,8 @@ static int hns_roce_v2_ceq_int(struct hns_roce_dev *hr_dev,
|
||||||
++eq->cons_index;
|
++eq->cons_index;
|
||||||
ceqe_found = 1;
|
ceqe_found = 1;
|
||||||
|
|
||||||
if (eq->cons_index > (EQ_DEPTH_COEFF * eq->entries - 1)) {
|
if (eq->cons_index > (EQ_DEPTH_COEFF * eq->entries - 1))
|
||||||
dev_warn(dev, "cons_index overflow, set back to 0.\n");
|
|
||||||
eq->cons_index = 0;
|
eq->cons_index = 0;
|
||||||
}
|
|
||||||
|
|
||||||
ceqe = next_ceqe_sw_v2(eq);
|
ceqe = next_ceqe_sw_v2(eq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue