Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-15 Thread Vishal Chourasia
On Mon, Oct 14, 2024 at 05:54:44PM +0530, Ritesh Harjani wrote: > Vishal Chourasia writes: > > > On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > >> > >> I don't see why of_reconfig_notifier_unregister() needs to be called > >> with the devdata_mutext held, but I haven't looke

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-14 Thread IBM
Vishal Chourasia writes: > On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: >> >> I don't see why of_reconfig_notifier_unregister() needs to be called >> with the devdata_mutext held, but I haven't looked that closely at it. >> >> So the change below might work. >> >> cheers >

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 05:13:11PM +0530, Vishal Chourasia wrote: > On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > > Vishal Chourasia writes: > > > Hi, > > > I am getting Invalid wait context warning printed when rebooting lpar > > > > > > kexec/61926 is trying to acquire `of_

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > Vishal Chourasia writes: > > Hi, > > I am getting Invalid wait context warning printed when rebooting lpar > > > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > > spinlock `devdata_mutex` > > > > Note:

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > Vishal Chourasia writes: > > Hi, > > I am getting Invalid wait context warning printed when rebooting lpar > > > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > > spinlock `devdata_mutex` > > > > Note:

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > Vishal Chourasia writes: > > Hi, > > I am getting Invalid wait context warning printed when rebooting lpar > > > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > > spinlock `devdata_mutex` > > > > Note:

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Michael Ellerman
Vishal Chourasia writes: > Hi, > I am getting Invalid wait context warning printed when rebooting lpar > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > spinlock `devdata_mutex` > > Note: Name of the spinlock is misleading. Oof, yeah let's rename that to devdata_spinl

drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
Hi, I am getting Invalid wait context warning printed when rebooting lpar kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding spinlock `devdata_mutex` Note: Name of the spinlock is misleading. In my case, I compiled a new vmlinux file and loaded it into the running kernel us