History log of /src/sys/arch/alpha/tc/tc_3000_300.c |
Revision | | Date | Author | Comments |
1.39 |
| 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.38 |
| 18-Nov-2020 |
thorpej | branches: 1.38.4; malloc(9) -> kmem(9)
|
1.37 |
| 25-Sep-2020 |
thorpej | branches: 1.37.2; 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.36 |
| 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.35 |
| 05-Sep-2020 |
thorpej | - Document all of the various interrupt levels in the Processor Stataus register, and provide symbolic names for them as well. - Use ALPHA_PSL_IPL_* values directly for IPL_*.
|
1.34 |
| 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.33 |
| 26-Mar-2014 |
christos | branches: 1.33.30; kill sprintf
|
1.32 |
| 06-Feb-2012 |
matt | branches: 1.32.6; 1.32.10; 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.31 |
| 14-Jun-2011 |
matt | branches: 1.31.2; 1.31.6; struct device * -> device_t
|
1.30 |
| 16-Mar-2009 |
dsl | branches: 1.30.10; ANSIfy functions with function-pointer arguments
|
1.29 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.28 |
| 14-Mar-2009 |
dsl | 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.27 |
| 27-Sep-2002 |
provos | branches: 1.27.112; 1.27.120; 1.27.126; remove trailing \n in panic(). approved perry.
|
1.26 |
| 27-Jul-2001 |
thorpej | branches: 1.26.2; 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.25 |
| 05-Jun-2000 |
thorpej | branches: 1.25.6; Switch to the new `evcnt' mechanism for counting interrupts. Maintain a per-CPU interrupt counter for clock, device, and interprocessor interrupts.
|
1.24 |
| 04-Jun-2000 |
cgd | Implement the more flexiable `evcnt' interface as discussed (briefly) on tech-kern and now documented in evcnt(9).
|
1.23 |
| 26-Mar-2000 |
nisimura | branches: 1.23.2; - Remove unused bt459reg.h. - sfbvar.h has gone, placing patch on holes for now. Every TC framebuffer has a single explosure of xxfb_cnattach() which could be bridged by MI land.
|
1.22 |
| 14-Mar-2000 |
nisimura | Fix DEC3000/300 TC slot numbering. There is an address space hole between two TC option cards and 3 builtin TC devices. Was uncovered by mrg's change made at Nov 1999 and pointed by tsutsui.
|
1.21 |
| 03-Feb-2000 |
nisimura | Merge IOASIC register definitions.
|
1.20 |
| 07-Aug-1999 |
drochner | branches: 1.20.2; clean up error handling in TC graphics console attachment: all functions return 0 on success and an errno on failure
|
1.19 |
| 28-Mar-1999 |
drochner | Leave out display console related bits if wscons is not compiled in. Should fix link error reported by Kevin <kev@drule.org>.
|
1.18 |
| 12-Feb-1999 |
thorpej | Fix printf format problems on Alpha. (IRONIC?!)
|
1.17 |
| 23-Oct-1998 |
briggs | DTRT if sfb is not configured in the kernel.
|
1.16 |
| 22-Oct-1998 |
briggs | Preliminary support for both serial consoles and kbd/display wscons consoles for TC alphas. Based on code from Takuya Koumoto <takuya-k@is.aist-nara.ac.jp> as well as some parts of Toru Nishimura's and Matthias Drochner's work on pmax wscons. This relies on the NEW_SCC_DRIVER.
|
1.15 |
| 02-Sep-1997 |
thorpej | Nuke the idea of <machine/options.h>. It completely defeats the purpose of fine-grain option dependencies.
|
1.14 |
| 07-Apr-1997 |
cgd | branches: 1.14.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.13 |
| 06-Apr-1997 |
cgd | clean up NetBSD RCS ID strings, include machine/options.h
|
1.12 |
| 13-Oct-1996 |
christos | branches: 1.12.2; backout previous kprintf change
|
1.11 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.10 |
| 14-Jul-1996 |
cgd | (1) Clean up interrupt handling slightly.
|
1.9 |
| 09-Jul-1996 |
cgd | clean and update for new defintions, prototypes, etc.
|
1.8 |
| 05-Jun-1996 |
cgd | interrupt counters for TurboChannel systems.
|
1.7 |
| 01-May-1996 |
cgd | branches: 1.7.4; fix the test for option slot interrupts. If a given interrupt is disabled (and therefore can't have caused the actual I/O interrupt), don't try to call its handler even if its bit is set in the interrupt register.
|
1.6 |
| 12-Apr-1996 |
cgd | clean up copyrights and RCS IDs
|
1.5 |
| 12-Apr-1996 |
cgd | update for latest MI TC and SCSI code, and clean up in the face of config changes.
|
1.4 |
| 20-Dec-1995 |
cgd | update for new turbochannel configuration code.
|
1.3 |
| 03-Aug-1995 |
cgd | MB -> wbflush
|
1.2 |
| 24-Mar-1995 |
cgd | cleanup, add some comments, and (oh yeah!) look at interrupt bits
|
1.1 |
| 08-Mar-1995 |
cgd | update from my local tree; better CPU configuration, support for 3000/300.
|
1.7.4.1 |
| 05-Jun-1996 |
cgd | Pull up from trunk: >interrupt counters for TurboChannel systems.
|
1.12.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.14.4.1 |
| 04-Sep-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.20.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.23.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.25.6.2 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.25.6.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.26.2.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.26.2.1 |
| 27-Jul-2001 |
nathanw | file tc_3000_300.c was added on branch nathanw_sa on 2002-10-18 02:34:32 +0000
|
1.27.126.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.27.120.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.27.112.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.30.10.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.31.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.31.2.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.31.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.32.10.1 |
| 18-May-2014 |
rmind | sync with head
|
1.32.6.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.33.30.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.37.2.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.38.4.1 |
| 13-May-2021 |
thorpej | Sync with HEAD.
|