Skip to contentSkip to conversation

e100: fix NAPI race with watchdog

PATCH James Chapman 1 participant 1 message Sep 23, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

While polling in NAPI mode, we were occassionally getting interrupts re-enabled by the watchdog trying to generate a software interrupt. Fix is to add a spinlock around that shared hardware register to allow a read-modify-write operation. This was nasty nasty. I don't like the spinlock in the hot path but i see no other way. Comments are welcome.

While working with NAPI on the e100 a while ago, I seriously considered removing the generation of the sw interrupt altogether for the NAPI case. Does it serve any purpose? NAPI is polling the driver already anyway.

/james