Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch/alpha
Module Name: src
Committed By: thorpej
Date: Tue Sep 22 15:24:02 UTC 2020
Modified Files:
src/sys/arch/alpha/alpha: interrupt.c
src/sys/arch/alpha/common: shared_intr.c
src/sys/arch/alpha/include: intr.h pci_machdep.h
src/sys/arch/alpha/jensenio: com_jensenio.c jensenio_intr.c
pckbc_jensenio.c
src/sys/arch/alpha/pci: pci_1000.c pci_1000a.c pci_2100_a50.c
pci_2100_a500.c pci_550.c pci_6600.c pci_alphabook1.c
pci_axppci_33.c pci_eb164.c pci_eb164_intr.s pci_eb64plus.c
pci_eb64plus_intr.s pci_eb66.c pci_eb66_intr.s pci_kn20aa.c
pci_kn300.c pci_kn8ae.c pci_machdep.c pci_up1000.c pciide_machdep.c
sio.c sio_pic.c siovar.h ttwogavar.h
src/sys/arch/alpha/sableio: com_sableio.c fdc_sableio.c lpt_sableio.c
pckbc_sableio.c
src/sys/arch/alpha/tc: tc_3000_300.c tc_3000_500.c tcasic.c
Log Message:
Changes to make MPSAFE interrupts work on Alpha:
- Remove the ipl argument to scb_set() and the associated array of
"mpsafe" booleans initialized based on the ipl. It was bogus
anyway; all IPL_{BIO,NET,TTY}, etc. values are aliases of IPL_VM,
and for all practical purposes, there is really only one device
interrrupt level on Alpha anyway. Intead, we now treat all dispatches
from the SCB vector table as MP-safe, and it is now the handler for
that vector who is responsible for acquiring the KERNEL_LOCK if needed.
- Update the direct interrupt vector handlers in jensenio and TURBOchannel
to acquire the KERNEL_LOCK.
- Introduce a new ALPHA_INTR_MPSAFE flag, and add a flags argument to
alpha_shared_intr_establish(). When it is set, indicate that the
handler is MP-safe. Update alpha_shared_intr_dispatch() to pay
attention and acquire the KERNEL_LOCK (or not) as indicated.
- Re-factor all of the PCI interrupt handling, providing "generic PCI"
"PCI interrupts through ISA IRQs" implementations to significantly
reduce code duplication. Supplement the PCI chipset tag with more
info to facilitate this, and make the PCI interrupt-related routines
take a pci_chipset_tag_t argument rather than a void * argument.
- Because PCI interrupts on KN8AE are dispatched directly from the
SCB, provide a wrapper for non-MPSAFE interrupt handlers that
acquires the KERNEL_LOCK.
- Change the pci_intr_handle_t type to be a struct rather than an
integer type in order to catch any direct use of it as a value.
Add a set of functions to interact with pci_intr_handle_t, including
setting interrupt flags.
- Implement pci_intr_setattr() so that the PCI_INTR_MPSAFE attribute
can be set on a pci_intr_handle_t.
- While I'm here, make all of the MI PCI back-end operations call
through real functions rather than hopping directly through function
pointers in the chipset tag.
This change looks a lot bigger than it really is because of the re-factor
in the plethora of model-specific PCI interrupt back-ends. The KN8AE,
KN300, and T2/T3/T4 (Sable) are largely un-changed.
To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/alpha/alpha/interrupt.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/alpha/common/shared_intr.c
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/alpha/include/intr.h
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/alpha/include/pci_machdep.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/alpha/jensenio/com_jensenio.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/alpha/jensenio/jensenio_intr.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/alpha/jensenio/pckbc_jensenio.c
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/alpha/pci/pci_1000.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/alpha/pci/pci_1000a.c
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/alpha/pci/pci_2100_a50.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/alpha/pci/pci_2100_a500.c \
src/sys/arch/alpha/pci/siovar.h
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/alpha/pci/pci_550.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/alpha/pci/pci_6600.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/alpha/pci/pci_alphabook1.c
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/alpha/pci/pci_axppci_33.c
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/alpha/pci/pci_eb164.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/alpha/pci/pci_eb164_intr.s
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/alpha/pci/pci_eb64plus.c \
src/sys/arch/alpha/pci/pci_eb66.c src/sys/arch/alpha/pci/pci_machdep.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/alpha/pci/pci_eb64plus_intr.s
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/alpha/pci/pci_eb66_intr.s
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/alpha/pci/pci_kn20aa.c
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/alpha/pci/pci_kn300.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/alpha/pci/pci_kn8ae.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/alpha/pci/pci_up1000.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/alpha/pci/pciide_machdep.c \
src/sys/arch/alpha/pci/ttwogavar.h
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/alpha/pci/sio.c
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/alpha/pci/sio_pic.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/alpha/sableio/com_sableio.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/alpha/sableio/fdc_sableio.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/alpha/sableio/lpt_sableio.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/alpha/sableio/pckbc_sableio.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/alpha/tc/tc_3000_300.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/alpha/tc/tc_3000_500.c
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/alpha/tc/tcasic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index