From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-core 04/10] providers: Use the new match_device and allocate_device ops Date: Tue, 19 Sep 2017 16:32:45 -0600 Message-ID: <20170919223245.GA6263@obsidianresearch.com> References: <1505855931-4956-1-git-send-email-jgunthorpe@obsidianresearch.com> <1505855931-4956-5-git-send-email-jgunthorpe@obsidianresearch.com> <017a01d3318e$5947c870$0bd75950$@opengridcomputing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <017a01d3318e$5947c870$0bd75950$@opengridcomputing.com> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Steve Wise Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, 'Devesh Sharma' , 'Mike Marciniszyn' , 'Dennis Dalessandro' , 'Lijun Ou' , "'Wei Hu(Xavier)'" , 'Tatyana Nikolova' , 'Yishai Hadas' , 'Vladimir Sokolovsky' , 'Ram Amrani' , 'Ariel Elior' , 'Moni Shoua' , 'Adit Ranadive' , "'open list:IPATH/QIB USERSPACE PROVIDER (for ib_qib.ko)'" , pv-drivers-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Tue, Sep 19, 2017 at 04:29:17PM -0500, Steve Wise wrote: > > + struct c4iw_dev *dev; > > + struct hca_ent *hca_ent = sysfs_dev->provider_data; > > + > > + c4iw_page_size = sysconf(_SC_PAGESIZE); > > + c4iw_page_shift = long_log2(c4iw_page_size); > > + c4iw_page_mask = ~(c4iw_page_size - 1); > > > > c4iw_page_size = sysconf(_SC_PAGESIZE); > > c4iw_page_shift = long_log2(c4iw_page_size); > > c4iw_page_mask = ~(c4iw_page_size - 1); > > > The above doesn't look right. Oops, that is a rebasing-caused error I missed in this big series, thank you I will correct it. > Other than this, the cxgb bits look ok. Did you test it? ???? Not on cxgb, I tested other mlx4 and rxe to see that things were working as expected. Since the matching code is now general that covers a pretty big space.. Jason -- 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