Intialize interrupt moderation control register. The magic value

was chosen by lots of trial and errors. The chosen value shows
good interrupt moderation without additional latency.
Without this change, controller can generate more than 140k
interrupts per second under high network load.

Submitted by:	xclin <xclin <> cs dot nctu dot edu dot tw >
This commit is contained in:
Pyun YongHyeon 2010-04-22 20:25:07 +00:00
parent 36df4f8d05
commit a1a667ecf1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207071

View File

@ -1551,10 +1551,13 @@ sge_init_locked(struct sge_softc *sc)
/*
* XXX Try to mitigate interrupts.
*/
CSR_WRITE_4(sc, IntrControl, 0x08880000);
#ifdef notyet
if (sc->sge_intrcontrol != 0)
CSR_WRITE_4(sc, IntrControl, sc->sge_intrcontrol);
if (sc->sge_intrtimer != 0)
CSR_WRITE_4(sc, IntrTimer, sc->sge_intrtimer);
#endif
/*
* Clear and enable interrupts.