Re: Panic on reloading a driver with same DEVICE_PROBE() return value

2016-02-10 Thread Sreekanth Reddy
On Wed, Feb 10, 2016 at 3:30 AM, John Baldwin wrote: > On Tuesday, February 09, 2016 05:45:38 PM Sreekanth Reddy wrote: >> Hi, >> >> While debugging more, I got one more clue, >> >> -

Re: Panic on reloading a driver with same DEVICE_PROBE() return value

2016-02-09 Thread Sreekanth Reddy
(i.e. from "mpr" to "mpr3") then I am not observing any panic and I can load & unload the mpr driver multiple times. ~Sreekanth On Tue, Feb 9, 2016 at 2:55 PM, Sreekanth Reddy wrote: > On Mon, Feb 8, 2016 at 11:58 PM, John Baldwin wrote: >> On Monday, Februa

Re: Panic on reloading a driver with same DEVICE_PROBE() return value

2016-02-09 Thread Sreekanth Reddy
On Mon, Feb 8, 2016 at 11:58 PM, John Baldwin wrote: > On Monday, February 08, 2016 08:13:26 PM Sreekanth Reddy wrote: >> sc->facts = malloc(sizeof(MPI2_IOC_FACTS_REPLY), M_MPR, M_ZERO|M_NOWAIT); > > M_NOWAIT can fail with NULL. Normally in an attach routine you should use a

Panic on reloading a driver with same DEVICE_PROBE() return value

2016-02-08 Thread Sreekanth Reddy
Hi, We are trying to rename our out-of-box driver from "mpslsi3" to "mpr" (which is the inbox driver name). From in-box to out-of-box driver diff is vary small. Here are the steps to reproduce this issue, 1. Replace the in-box mpr.ko file from out-of-box's mpr.ko file in /boot/kernel/ path 2. A