Home | History | Annotate | Download | only in pci
History log of /src/sys/arch/alpha/pci/pci_eb64plus_intr.s
RevisionDateAuthorComments
 1.5  22-Sep-2020  thorpej 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.
 1.4  11-Dec-2005  christos merge ktrace-lwp.
 1.3  14-Sep-2004  drochner fix wrong asm .end names which caused assembler warnings,
from Nicolas Joly per PR port-alpha/26945
 1.2  02-Sep-1997  thorpej branches: 1.2.52;
Nuke the idea of <machine/options.h>. It completely defeats the purpose
of fine-grain option dependencies.
 1.1  10-Apr-1997  cgd branches: 1.1.2; 1.1.6;
add eb64+ support, enabled with options DEC_EB64PLUS
 1.1.6.1  04-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.1.2.2  01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.1.2.1  10-Apr-1997  cgd file pci_eb64plus_intr.s was added on branch alpha-nwscons on 1997-06-01 04:13:32 +0000
 1.2.52.2  21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.52.1  18-Sep-2004  skrll Sync with HEAD.

RSS XML Feed