Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mostly working SMP again



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jan 5, 2010, at 1:53 PM, Manuel Bouyer wrote:

On Mon, Jan 04, 2010 at 10:28:19PM -0500, Michael wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jan 4, 2010, at 10:04 PM, matthew green wrote:

hmm, maybe that panic from scsipi wasn't all that unrelated after
all
- - I got another one:
sdstart(): dequeued wrong buf
scsipi_put_xs()
scsipi_complete()
scsipi_done()
ncr53c9x_done()
ncr53c9x_intr()


hmmm..i don't have any disks or cdrom in my sparc box..

hmm, it took an interrupt in uvm_fault_internal() - is that supposed
to happen?
Also, the MP kernel made it all the way through filesystem checks /
log replays and only crapped out when sshd started.

Any idea what's happening here?

Maybe something fails to grab the kernel_lock ?
Can you add a check (KASSERT or something) that the kernel_lock is
held in ncr53c9x_intr() and ncr53c9x_scsipi_request() ?

Maybe something like
KASSERT(__SIMPLELOCK_LOCKED_P(kernel_lock)
or
KASSERT(ci->ci_biglock_count > 0)
will work to check this.

You were right - this KASSERT fails immediately. No idea why the esp interrupt is treated as MP safe or for what other reason the biglock wrapper isn't in place here.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBS0OgWspnzkX8Yg2nAQL1pgf7BD8QesCYEaVC2P6gsOwHrvQF9IZpY/wL
q7dYBijsodgrLxFlARfSNTZdx0+CZPOw7H9obTgfaXjd+HSsr9UpVB42Cxap1UoP
yh6f1129qyEFe6WNuM/k3atSkJ7yGDJnbgbuiv+gHKMzdbVto2FUYWhLTGFCX3QZ
lRhMtlERtuS4dxC/h8rpcmJAQoGASmk2d86Di3QVXtebxHALmMwxzaamwbyNSmHj
I/xDN2+7b1UatmmYg/B7lYf5VilRmGgxW+hppTSy+ZVuNl8ZDDi8XpPJWrR8b5Lt
qQWqXD9VJTG81OYV+er1fo5j11gAUZCGP/OkJGkfNLJmdJ6RmMWR5w==
=CF/3
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index