* [PATCH] iw_cxgb4: calculate t4_eq_status_entries properly
@ 2017-05-19 9:18 Ganesh Goudar
[not found] ` <1495185522-8055-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Ganesh Goudar @ 2017-05-19 9:18 UTC (permalink / raw)
To: dledford-H+wXaHxf7aLQT0dZR+AlfA
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW,
nirranjan-ut6Up61K2wZBDgjK7y7TUQ, davem-fT/PcQaiUtIeIZ0/mPfg9Q,
logang-OTvnGxWRz7hWk0Htik3J/w, Ganesh Goudar, Potnuri Bharat Teja
use egrstatuspagesize to calculate t4_eq_status_entries.
Fixes: bb58d07964f2 ("cxgb4: Update IngPad and IngPack values")
Reported-by: Logan Gunthorpe <logang-OTvnGxWRz7hWk0Htik3J/w@public.gmane.org>
Signed-off-by: Potnuri Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Ganesh Goudar <ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
---
drivers/infiniband/hw/cxgb4/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c
index 329fb65e..f96a96d 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
@@ -971,7 +971,7 @@ static struct c4iw_dev *c4iw_alloc(const struct cxgb4_lld_info *infop)
devp->rdev.lldi.sge_egrstatuspagesize);
devp->rdev.hw_queue.t4_eq_status_entries =
- devp->rdev.lldi.sge_ingpadboundary > 64 ? 2 : 1;
+ devp->rdev.lldi.sge_egrstatuspagesize / 64;
devp->rdev.hw_queue.t4_max_eq_size = 65520;
devp->rdev.hw_queue.t4_max_iq_size = 65520;
devp->rdev.hw_queue.t4_max_rq_size = 8192 -
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1495185522-8055-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>]
* RE: [PATCH] iw_cxgb4: calculate t4_eq_status_entries properly [not found] ` <1495185522-8055-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> @ 2017-05-19 13:57 ` Steve Wise 2017-05-19 16:27 ` Logan Gunthorpe 2017-06-01 22:26 ` Doug Ledford 2 siblings, 0 replies; 4+ messages in thread From: Steve Wise @ 2017-05-19 13:57 UTC (permalink / raw) To: 'Ganesh Goudar', dledford-H+wXaHxf7aLQT0dZR+AlfA Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, nirranjan-ut6Up61K2wZBDgjK7y7TUQ, davem-fT/PcQaiUtIeIZ0/mPfg9Q, logang-OTvnGxWRz7hWk0Htik3J/w, 'Potnuri Bharat Teja' > Subject: [PATCH] iw_cxgb4: calculate t4_eq_status_entries properly > > use egrstatuspagesize to calculate t4_eq_status_entries. > > Fixes: bb58d07964f2 ("cxgb4: Update IngPad and IngPack values") > Reported-by: Logan Gunthorpe <logang-OTvnGxWRz7hWk0Htik3J/w@public.gmane.org> > Signed-off-by: Potnuri Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> > Signed-off-by: Ganesh Goudar <ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> Acked-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iw_cxgb4: calculate t4_eq_status_entries properly [not found] ` <1495185522-8055-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> 2017-05-19 13:57 ` Steve Wise @ 2017-05-19 16:27 ` Logan Gunthorpe 2017-06-01 22:26 ` Doug Ledford 2 siblings, 0 replies; 4+ messages in thread From: Logan Gunthorpe @ 2017-05-19 16:27 UTC (permalink / raw) To: Ganesh Goudar, dledford-H+wXaHxf7aLQT0dZR+AlfA Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW, nirranjan-ut6Up61K2wZBDgjK7y7TUQ, davem-fT/PcQaiUtIeIZ0/mPfg9Q, Potnuri Bharat Teja Hi, I've tested this on top of v4.12-rc1 and the patch fixes my issue. Thanks for the quick fix! Logan On 19/05/17 03:18 AM, Ganesh Goudar wrote: > use egrstatuspagesize to calculate t4_eq_status_entries. > > Fixes: bb58d07964f2 ("cxgb4: Update IngPad and IngPack values") > Reported-by: Logan Gunthorpe <logang-OTvnGxWRz7hWk0Htik3J/w@public.gmane.org> > Signed-off-by: Potnuri Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> > Signed-off-by: Ganesh Goudar <ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> > --- > drivers/infiniband/hw/cxgb4/device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c > index 329fb65e..f96a96d 100644 > --- a/drivers/infiniband/hw/cxgb4/device.c > +++ b/drivers/infiniband/hw/cxgb4/device.c > @@ -971,7 +971,7 @@ static struct c4iw_dev *c4iw_alloc(const struct cxgb4_lld_info *infop) > devp->rdev.lldi.sge_egrstatuspagesize); > > devp->rdev.hw_queue.t4_eq_status_entries = > - devp->rdev.lldi.sge_ingpadboundary > 64 ? 2 : 1; > + devp->rdev.lldi.sge_egrstatuspagesize / 64; > devp->rdev.hw_queue.t4_max_eq_size = 65520; > devp->rdev.hw_queue.t4_max_iq_size = 65520; > devp->rdev.hw_queue.t4_max_rq_size = 8192 - > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iw_cxgb4: calculate t4_eq_status_entries properly [not found] ` <1495185522-8055-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> 2017-05-19 13:57 ` Steve Wise 2017-05-19 16:27 ` Logan Gunthorpe @ 2017-06-01 22:26 ` Doug Ledford 2 siblings, 0 replies; 4+ messages in thread From: Doug Ledford @ 2017-06-01 22:26 UTC (permalink / raw) To: Ganesh Goudar Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW, nirranjan-ut6Up61K2wZBDgjK7y7TUQ, davem-fT/PcQaiUtIeIZ0/mPfg9Q, logang-OTvnGxWRz7hWk0Htik3J/w, Potnuri Bharat Teja On Fri, 2017-05-19 at 14:48 +0530, Ganesh Goudar wrote: > use egrstatuspagesize to calculate t4_eq_status_entries. > > Fixes: bb58d07964f2 ("cxgb4: Update IngPad and IngPack values") > Reported-by: Logan Gunthorpe <logang-OTvnGxWRz7hWk0Htik3J/w@public.gmane.org> > Signed-off-by: Potnuri Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> > Signed-off-by: Ganesh Goudar <ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org> Thanks, applied. -- Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-01 22:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-19 9:18 [PATCH] iw_cxgb4: calculate t4_eq_status_entries properly Ganesh Goudar
[not found] ` <1495185522-8055-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
2017-05-19 13:57 ` Steve Wise
2017-05-19 16:27 ` Logan Gunthorpe
2017-06-01 22:26 ` Doug Ledford
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).