Re: [PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-18 Thread Wei Hu (Xavier)
On 2019/1/16 6:02, Jason Gunthorpe wrote: > On Tue, Jan 15, 2019 at 09:48:01AM +0800, Wei Hu (Xavier) wrote: >> >> On 2019/1/15 6:06, Jason Gunthorpe wrote: >>> On Sat, Jan 12, 2019 at 03:55:31PM +0800, Wei Hu (Xavier) wrote: On 2019/1/12 5:34, Jason Gunthorpe wrote: > On Thu, Jan 10,

Re: [PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-15 Thread Jason Gunthorpe
On Tue, Jan 15, 2019 at 09:48:01AM +0800, Wei Hu (Xavier) wrote: > > > On 2019/1/15 6:06, Jason Gunthorpe wrote: > > On Sat, Jan 12, 2019 at 03:55:31PM +0800, Wei Hu (Xavier) wrote: > >> > >> On 2019/1/12 5:34, Jason Gunthorpe wrote: > >>> On Thu, Jan 10, 2019 at 09:57:41PM +0800, Wei Hu

Re: [PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-14 Thread Wei Hu (Xavier)
On 2019/1/15 6:06, Jason Gunthorpe wrote: > On Sat, Jan 12, 2019 at 03:55:31PM +0800, Wei Hu (Xavier) wrote: >> >> On 2019/1/12 5:34, Jason Gunthorpe wrote: >>> On Thu, Jan 10, 2019 at 09:57:41PM +0800, Wei Hu (Xavier) wrote: + /* Check the status of the current software reset process, if

Re: [PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-14 Thread Jason Gunthorpe
On Sat, Jan 12, 2019 at 03:55:31PM +0800, Wei Hu (Xavier) wrote: > > > On 2019/1/12 5:34, Jason Gunthorpe wrote: > > On Thu, Jan 10, 2019 at 09:57:41PM +0800, Wei Hu (Xavier) wrote: > >> + /* Check the status of the current software reset process, if in > >> + * software reset process, wait

Re: [PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-11 Thread Wei Hu (Xavier)
On 2019/1/12 5:34, Jason Gunthorpe wrote: > On Thu, Jan 10, 2019 at 09:57:41PM +0800, Wei Hu (Xavier) wrote: >> +/* Check the status of the current software reset process, if in >> + * software reset process, wait until software reset process finished, >> + * in order to ensure that

Re: [PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-11 Thread Jason Gunthorpe
On Thu, Jan 10, 2019 at 09:57:41PM +0800, Wei Hu (Xavier) wrote: > + /* Check the status of the current software reset process, if in > + * software reset process, wait until software reset process finished, > + * in order to ensure that reset process and this function will not call

[PATCH rdma-rc 1/3] RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs

2019-01-10 Thread Wei Hu (Xavier)
In the reset process, the hns3 NIC driver notifies the RoCE driver to perform reset related processing by calling the .reset_notify() interface registered by the RoCE driver in hip08 SoC. In the current version, if a reset occurs simultaneously during the execution of rmmod or insmod ko, there