]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] [Book-E] Fix dpaa interrupt binding.
authorBrandon Bergren <bdragon@FreeBSD.org>
Tue, 25 Feb 2020 03:35:52 +0000 (03:35 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Tue, 25 Feb 2020 03:35:52 +0000 (03:35 +0000)
commitb9931c0786d717ff5665ec22cce026375c2d759e
treec78bc906b761ba0424dace67feaf15a3755d5808
parentd029e3b3f7ca49e4ba1e66d00d5230f532cdb1f1
[PowerPC] [Book-E] Fix dpaa interrupt binding.

After the network epoch was added, we lost the ability to migrate the
ithread in the middle of dispatch, as being in the network epoch will pin
the current thread (for safety reasons.)

Luckily, we don't actually have to do this workaround in the first place,
as we can just bind it to the correct cpu when we preallocate it.

Pass dev through to XX_PreallocAndBindIntr() and actually bind it to the
cpu like it was supposed to in the first place, instad of leaving it
floating and moving it to the correct cpu the first time it fires.

This fixes panics while bringing up dtsec on my X5000.

Reviewed by: jhibbits
Sponsored by: Tag1 Consulting, Inc.
Differential Revision: https://reviews.freebsd.org/D23826
sys/contrib/ncsw/inc/xx_ext.h
sys/contrib/ncsw/user/env/xx.c
sys/dev/dpaa/portals_common.c