History log of /src/sys/arch/alpha/common/shared_intr.c |
Revision | | Date | Author | Comments |
1.30 |
| 21-Nov-2023 |
thorpej | Don't open-code tailq access.
|
1.29 |
| 04-Jul-2021 |
thorpej | Reduce code duplication when setting up the interrupt handler data structures: - alpha_shared_intr_alloc() no longer takes a "string length" argument, and just uses kmem_asprintf() to create an "irq %u" string by default. This is suitable for nearly every caller. - Add a alpha_shared_intr_set_string() that allows callers to override the default IRQ description string. - Related: make alpha_shared_intr_string() return a const char *, since no callers should need to modify the string directly now. - Re-factor PCI shared interrupt structure allocation / initialization into a new alpha_pci_intr_alloc(), which is suitable for nearly every Alpha PCI platform. Callers are expected to first have initialized the interrupt hardware to the quiescent state.
Adjust various call sites of above functions to account for changes, even if they are not able to use the newly re-factored code.
|
1.28 |
| 25-Jun-2021 |
thorpej | Tweak how the IRQ description strings are generated to enable additional duplicated code re-factoring.
|
1.27 |
| 07-May-2021 |
thorpej | Liberally sprinkle static around to get more symbols out of the global namespace. A small bit of const poisoning in the TC code.
|
1.26 |
| 26-Sep-2020 |
thorpej | branches: 1.26.6; - Fix some bugs in previous, mainly related to indexing the correct interrupt queue. - Make sure to update cpu_info::ci_nintrhand if an irq moves from one CPU to another.
|
1.25 |
| 25-Sep-2020 |
thorpej | Changes to make interrupt {,dis}establish MP-safe on Alpha: - Protect all of the system interrupt linkage with the cpu_lock mutex. - Re-order some of the stores to the SCB vector table to make it safe in the face of lockless interrupt dispatch. - Add a framework for routing interrupts to specific CPUs. Interrupts are still funneled only to the primary CPU, but that will change for some systems soon. Ensure that interrupt handler lists are manipulated only on the CPUs that handle that specific interrupt source. This required a re-factor of the alpha_shared_intr_*() family of functions. - Enable __HAVE_INTR_CONTROL, although interrupt redistribution is still a no-op. - Reduce code duplication in the Jenson direct-SCB interrupt handlers.
|
1.24 |
| 23-Sep-2020 |
thorpej | Use a wrapper to acquire the kernel lock for non-MPSAFE interrupts, rather than doing it in alpha_shared_intr_establish() directly.
|
1.23 |
| 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.22 |
| 10-Nov-2019 |
chs | in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.21 |
| 06-Feb-2012 |
matt | branches: 1.21.48; Do a minor cleanup of alpha (this will make applying pullups post branching easier). u_int{8,16,32,64}_t -> uint{*}_t Change all old-style definitions to C89 prototypes. Whitespace cleanup. Constification in db_disasm.c
|
1.20 |
| 14-Mar-2009 |
dsl | branches: 1.20.12; 1.20.16; Remove all the __P() from sys (excluding sys/dist) Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
|
1.19 |
| 10-Mar-2008 |
ad | branches: 1.19.4; 1.19.12; 1.19.18; Finish moving alpha over to the MI atomic ops.
|
1.18 |
| 11-Dec-2005 |
christos | branches: 1.18.36; 1.18.50; 1.18.70; 1.18.74; merge ktrace-lwp.
|
1.17 |
| 29-Mar-2005 |
thorpej | branches: 1.17.2; - Add a alpha_shared_intr_reset_strays() function that resets the stray interrupt counter for a given shared interrupt descriptor. - When an interrupt is successfully handled, reset the strays counter, thus preventing a "slow leak" from eventually shutting off the interrupt vector. Idea taken from pci_kn300.c (which was changed to use the new alpha_shared_intr_reset_strays() function).
|
1.16 |
| 27-Jul-2001 |
thorpej | branches: 1.16.2; 1.16.22; 1.16.28; 1.16.30; 1.16.36; Rework the interrupt code, shaving some cycles off in the process. Rather than an "iointr" routine that decomposes a vector into an IRQ, we maintain a vector table directly, hooking up each "iointr" routine at the correct vector. This also allows us to hook device interrupts up to specific vectors (c.f. Jensen).
We can shave even more cycles off, here, and I will, but it requires some changes to the alpha_shared_intr stuff.
|
1.15 |
| 05-Jun-2000 |
thorpej | branches: 1.15.6; Switch to the new `evcnt' mechanism for counting interrupts. Maintain a per-CPU interrupt counter for clock, device, and interprocessor interrupts.
|
1.14 |
| 04-Jun-2000 |
thorpej | ANSI'ify function declarations.
|
1.13 |
| 19-Mar-2000 |
thorpej | branches: 1.13.2; Point back to the alpha_shared_intr in the intrhand structure. This allows platform-specific code to access the `intr_private' data via the intrhand structure.
|
1.12 |
| 10-Feb-2000 |
mjacob | Allow (re)setting of maxstrays after establishment of a shared interrupt. This allows sporadic stray interrupt counts to be reset by an acknowledgement of the same interrupt.
|
1.11 |
| 01-Feb-2000 |
mjacob | Do not forget to init intr_private
|
1.10 |
| 08-Dec-1999 |
thorpej | Revert previous.
|
1.9 |
| 07-Dec-1999 |
thorpej | Avoid a spurious warning when establishing a pulsed interrupt handler on an IRQ which was marked "initially-pulsed".
|
1.8 |
| 29-Nov-1999 |
thorpej | Add a way to get/set a private pointer in the shared interrupt header.
|
1.7 |
| 17-Sep-1999 |
thorpej | branches: 1.7.2; 1.7.8; Centralize the declaration and clearing of `cold'.
|
1.6 |
| 01-Aug-1998 |
thorpej | Implement alpha_shared_intr_disestablish(). Simply removes the handler fromthe list, allowing the caller to manipulate the sharing type, if appropriate.
|
1.5 |
| 07-Jul-1998 |
thorpej | Always count the number of strays we encounter, but don't send a "stopped logging" message if we're ignoring strays.
|
1.4 |
| 02-Sep-1997 |
thorpej | Nuke the idea of <machine/options.h>. It completely defeats the purpose of fine-grain option dependencies.
|
1.3 |
| 07-Apr-1997 |
cgd | branches: 1.3.4; by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries. This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS options, which is present but commented out in the ALPHA config file. In ELF-format kernels, these strings are present in the kernel binary but are not loaded into memory. (In ECOFF-format kernels, there's no easy way to keep them from being loaded, so they _are_ loaded into memory.)
|
1.2 |
| 06-Apr-1997 |
cgd | clean up NetBSD RCS ID strings, include machine/options.h
|
1.1 |
| 17-Nov-1996 |
cgd | branches: 1.1.2; implement a (hack-ish) set of routines to do common chained-interrupt handler management. It's nasty, but three slightly different copies of the code is worse.
|
1.1.2.1 |
| 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.3.4.1 |
| 04-Sep-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.7.8.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.7.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.13.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.15.6.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.16.36.1 |
| 30-Mar-2005 |
tron | Pull up revision 1.17 (requested by thorpej in ticket #76): - Add a alpha_shared_intr_reset_strays() function that resets the stray interrupt counter for a given shared interrupt descriptor. - When an interrupt is successfully handled, reset the strays counter, thus preventing a "slow leak" from eventually shutting off the interrupt vector. Idea taken from pci_kn300.c (which was changed to use the new alpha_shared_intr_reset_strays() function).
|
1.16.30.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.16.28.1 |
| 11-May-2005 |
riz | Pull up revision 1.17 (requested by thorpej in ticket #1373): - Add a alpha_shared_intr_reset_strays() function that resets the stray interrupt counter for a given shared interrupt descriptor. - When an interrupt is successfully handled, reset the strays counter, thus preventing a "slow leak" from eventually shutting off the interrupt vector. Idea taken from pci_kn300.c (which was changed to use the new alpha_shared_intr_reset_strays() function).
|
1.16.22.1 |
| 01-Apr-2005 |
skrll | Sync with HEAD.
|
1.16.2.2 |
| 27-Jul-2001 |
thorpej | Rework the interrupt code, shaving some cycles off in the process. Rather than an "iointr" routine that decomposes a vector into an IRQ, we maintain a vector table directly, hooking up each "iointr" routine at the correct vector. This also allows us to hook device interrupts up to specific vectors (c.f. Jensen).
We can shave even more cycles off, here, and I will, but it requires some changes to the alpha_shared_intr stuff.
|
1.16.2.1 |
| 27-Jul-2001 |
thorpej | file shared_intr.c was added on branch nathanw_sa on 2001-07-27 00:25:20 +0000
|
1.17.2.1 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.18.74.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.18.70.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.18.50.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.18.36.1 |
| 18-Apr-2007 |
thorpej | Convert to the new atomic op API.
|
1.19.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.19.12.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.19.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.20.16.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.20.12.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.21.48.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.26.6.2 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|
1.26.6.1 |
| 13-May-2021 |
thorpej | Sync with HEAD.
|