Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2018 11:30:26 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Ronald Klop <ronald-lists@klop.ws>, freebsd-arm@freebsd.org, bob prohaska <fbsd@www.zefox.net>
Subject:   Re: panic: Assertion td->td_lock == TDQ_LOCKPTR(tdq) failed at /usr/src/sys/kern/sched_ule.c:2137
Message-ID:  <20180607183025.GA95066@www.zefox.net>
In-Reply-To: <20180603121712.GL3789@kib.kiev.ua>
References:  <op.zjvyeypwkndu52@klop.ws> <20180601154153.GA62632@www.zefox.net> <20180602091606.63a1ab37.freebsd.ed.lists@sumeritec.com> <20180602150549.GA68197@www.zefox.net> <CANCZdfq%2BFp6=NDSQB0G9z1L7StcueupzvUiuNs9L-TgTQL=wzA@mail.gmail.com> <20180602193255.GA68908@www.zefox.net> <CANCZdfpJ7hL_dnJd5kyMkhdT21LnXWxch7ztmN%2BrTk90F53WjQ@mail.gmail.com> <20180602210450.GK3789@kib.kiev.ua> <op.zj0sdpobkndu52@klop.ws> <20180603121712.GL3789@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 03, 2018 at 03:17:12PM +0300, Konstantin Belousov wrote:
> > On Sat, 02 Jun 2018 23:04:50 +0200, Konstantin Belousov  
> > <kostikbel@gmail.com> wrote:
> > 
> > >
> > > diff --git a/sys/arm64/arm64/swtch.S b/sys/arm64/arm64/swtch.S
> > > index c9843303b1d..4c2c3aca583 100644
> > > --- a/sys/arm64/arm64/swtch.S
> > > +++ b/sys/arm64/arm64/swtch.S
> > > @@ -165,10 +165,9 @@ ENTRY(cpu_switch)
> > >  	mov	x0, x19
> > > 	/*
> > > -	 * Release the old thread. This doesn't need to be a store-release
> > > -	 * as the above dsb instruction will provide release semantics.
> > > +	 * Release the old thread.
> > >  	 */
> > > -	str	x2, [x0, #TD_LOCK]
> > > +	stlr	x2, [x0, #TD_LOCK]
> > >  #if defined(SCHED_ULE) && defined(SMP)
> > >  	/* Spin if TD_LOCK points to a blocked_lock */
> > >  	ldr	x2, =_C_LABEL(blocked_lock)
> > 

Has this been committed to -current? If not, I'm game to try it
but will need some more detailed instructions; it doesn't look
like something applied by saving to a file and feeding it to patch.

Thanks for reading,

bob prohaska




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180607183025.GA95066>