Home | History | Annotate | Download | only in malta
History log of /src/sys/arch/evbmips/malta/malta_intr.c
RevisionDateAuthorComments
 1.27  21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.26  10-Nov-2019  chs branches: 1.26.8;
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.25  26-Aug-2016  skrll branches: 1.25.16;
Adjust evbmips_iointr to pass a clockframe pointer and use it for
pwmclock @ voyager.

Suggested by matt@

Hi macallan!
 1.24  31-Mar-2014  christos branches: 1.24.6;
fix typo
 1.23  29-Mar-2014  christos make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.22  27-Oct-2012  chs branches: 1.22.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21  04-Apr-2011  dyoung branches: 1.21.4; 1.21.14;
Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args. Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
pci_intr_map() was a leftover from Xen 2. Probably a bug. I
stopped writing it. I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
Probably a bug. I use a temporary variable. I have not tested this
change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
Probably a bug. Use a local pci_attach_args. I have not tested
this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
caller's pci_attach_args. Probably a bug. Make a local copy of the
caller's pci_attach_args and modify the copy. I have not tested
this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
 1.20  20-Feb-2011  matt Merge forward from matt-nb5-mips64.
 1.19  26-May-2008  tsutsui branches: 1.19.16; 1.19.20; 1.19.26; 1.19.28;
Remove all initialization of obsolete ci_divisor_recip in
mips struct cpu_info and related macroes.
The member was prepared for a hack in MD microtime(9) implementation
but it has been superseded by MI timecounter(9).
 1.18  09-Jan-2008  wiz branches: 1.18.6; 1.18.8; 1.18.10; 1.18.12;
Fix typo in macro name and comments.
 1.17  08-Jan-2008  tsutsui Set proper mask values for ipl_sr_bits[] and
use C99 initializer to avoid confusion.
Tested on gxemul.
 1.16  08-Jan-2008  dogcow I'm not positive that the mips_ipl_si_to_sr assignments are correct - but
at least the thing compiles now.
 1.15  17-Oct-2007  garbled branches: 1.15.2; 1.15.8;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.14  17-May-2007  yamt branches: 1.14.10;
merge yamt-idlelwp branch. asked by core@. some ports still needs work.

from doc/BRANCHES:

idle lwp, and some changes depending on it.

1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.
 1.13  21-Dec-2006  yamt branches: 1.13.2; 1.13.6; 1.13.8; 1.13.14;
merge yamt-splraiseipl branch.

- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
 1.12  02-Sep-2006  gdamore branches: 1.12.2; 1.12.4;
Remove pointless reference to evbmips/clockvar.h.
 1.11  09-Feb-2006  gdamore branches: 1.11.2;
au_icu.c is in mips/ and should not depend on evbmips intr handler struct.
convert various u_int32_t to preferred uint32_t.
 1.10  25-Nov-2005  simonb branches: 1.10.2; 1.10.4; 1.10.6;
Include <sys/systm.h> if we use printf(), instead of relying on some
other random header pulling <sys/systm.h> in for us.
 1.9  15-Jul-2003  lukem branches: 1.9.16; 1.9.24;
__KERNEL_RCSID()
 1.8  25-May-2003  tsutsui branches: 1.8.2;
Use common mips/softintr.c for softintr(9) on evbmips.
Ok'ed by simonb.
 1.7  06-Dec-2002  simonb Fix a typo in the PCI map array (no functionality changes in practice).
 1.6  10-Nov-2002  simonb Keep the knowledge of the H/W interrupt 5 event counter local to
interrupt.c. This change also unmasked the fact that the Alchemy
boards did not initialise this counter.
 1.5  29-Aug-2002  simonb It's the gt64120, not the gt62140.
 1.4  29-Jul-2002  simonb branches: 1.4.2;
Move the soft interrupts IPL masks from port-specific code to
board-specific code.
Change a u_long to a uint32_t in the timer calibration routines.
 1.3  04-Jun-2002  simonb branches: 1.3.2;
3 ports are now using the reciprocal count divisor code now, move it
to <mips/cpu.h>, and add MIPS_SET_CI_RECIPRICAL and MIPS_COUNT_TO_MHZ
macros to use it.
 1.2  08-Apr-2002  simonb branches: 1.2.2;
Make clock/time handling more accurate:
- Use the CPU count register for more accurate microtime (from
sbmips) and delay (based on an evbmips delay function) functions.
- Schedule the next hardclock interrupt more accurately (from
an sgimips patch by Rafal Boni). Clock drift on one board is
now ~7ppm instead of ~330ppm.
- Purge old pmax-based mcclock code.
- Correctly round off some clock-derived variable calculations.
XXX: Some of this code should be migrated to sys/arch/mips.
 1.1  07-Mar-2002  simonb A port to the MIPS Malta evaluation board. Currently supports the
MIPS32 4Kc CPU board, with support for the MIPS64 5Kc and the QED RM5261
CPU boards to follow.

The cs4281 audio hasn't been tested, there are some interrupt problems
with onboard the pciide, but all other on-board peripherals work.

The evbmips port will support more MIPS evaluation boards in the future.
 1.2.2.3  31-Aug-2002  gehenna catch up with -current.
 1.2.2.2  30-Aug-2002  gehenna catch up with -current.
 1.2.2.1  14-Jul-2002  gehenna catch up with -current.
 1.3.2.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.1  04-Jun-2002  jdolecek file malta_intr.c was added on branch kqueue on 2002-06-23 17:35:59 +0000
 1.4.2.4  11-Dec-2002  thorpej Sync with HEAD.
 1.4.2.3  11-Nov-2002  nathanw Catch up to -current
 1.4.2.2  17-Sep-2002  nathanw Catch up to -current.
 1.4.2.1  29-Jul-2002  nathanw file malta_intr.c was added on branch nathanw_sa on 2002-09-17 21:14:23 +0000
 1.8.2.4  11-Dec-2005  christos Sync with head.
 1.8.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1  03-Aug-2004  skrll Sync with HEAD
 1.9.24.1  29-Nov-2005  yamt sync with head.
 1.9.16.4  21-Jan-2008  yamt sync with head
 1.9.16.3  03-Sep-2007  yamt sync with head.
 1.9.16.2  30-Dec-2006  yamt sync with head.
 1.9.16.1  21-Jun-2006  yamt sync with head.
 1.10.6.1  22-Apr-2006  simonb Sync with head.
 1.10.4.1  09-Sep-2006  rpaulo sync with head
 1.10.2.1  18-Feb-2006  yamt sync with head.
 1.11.2.1  03-Sep-2006  yamt sync with head.
 1.12.4.1  22-Sep-2006  yamt fix softintr for following ports. (hopefully)
hpcmips
evbmips
algor
arc
ews4800mips
newsmips
 1.12.2.1  12-Jan-2007  ad Sync with head.
 1.13.14.1  22-May-2007  matt Update to HEAD.
 1.13.8.1  11-Jul-2007  mjf Sync with head.
 1.13.6.1  27-May-2007  ad Sync with head.
 1.13.2.1  18-Apr-2007  ad Pull in sys/cpu.h.
 1.14.10.3  23-Mar-2008  matt sync with HEAD
 1.14.10.2  09-Jan-2008  matt sync with HEAD
 1.14.10.1  06-Nov-2007  matt sync with HEAD
 1.15.8.2  10-Jan-2008  bouyer Sync with HEAD
 1.15.8.1  08-Jan-2008  bouyer Sync with HEAD
 1.15.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.18.12.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.18.10.1  04-May-2009  yamt sync with head.
 1.18.8.1  04-Jun-2008  yamt sync with head
 1.18.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.19.28.1  05-Mar-2011  bouyer Sync with HEAD
 1.19.26.1  06-Jun-2011  jruoho Sync with HEAD.
 1.19.20.2  21-Apr-2011  rmind sync with head
 1.19.20.1  05-Mar-2011  rmind sync with head
 1.19.16.7  16-May-2010  matt Add IPL_DDB. This is needed for watchdog on sbmips and for IPIs used by DDB.
It's above IPL_SCHED but below IPL_HIGH.
 1.19.16.6  28-Feb-2010  matt #define __INTR_PRIVATE
 1.19.16.5  23-Feb-2010  matt Instead of a read-only ipl_sr_bits, define a ipl_sr_map struct and fill that
in the interrupt init routine. There's a default ipl_sr_map will operate
correctly, but isn't performant.
 1.19.16.4  16-Feb-2010  matt Add __HAVE_PREEMPTION support for NetBSD/mips. Kill IPL_PREEMPT since it
isn't needed.
 1.19.16.3  15-Feb-2010  matt Adapt to the new interrupt framework for NetBSD/mips.
 1.19.16.2  06-Feb-2010  matt A little constification and remove some old softintr cruft.
 1.19.16.1  20-Jan-2010  matt Adjust things to the new world order.
 1.21.14.3  03-Dec-2017  jdolecek update from HEAD
 1.21.14.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.14.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.4.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.21.4.1  30-Oct-2012  yamt sync with head
 1.22.2.1  18-May-2014  rmind sync with head
 1.24.6.1  05-Oct-2016  skrll Sync with HEAD
 1.25.16.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.26.8.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed