ATA driver races with interrupts
will+freebsd-current at will.iki.fi
Mon Aug 2 11:19:28 PDT 2004
Søren Schmidt wrote:
> There is no good solution to this *unless* the HW has bits to
> determine which channel caused the interrupt. Now all decent
> controller has this, but I have no idea about the VIA since they are
> not one of those companies that hands out docs.
> The only way to safeguard is to "serialize" access to the channels as
> I've done on a few oh so broken chipsets...
Ok, I see where it should be detected now - in ata_generic_intr, before
There is an actual test for the interrupt on the channel, so there
should be no race if the controller works correctly. Apparently the VIA
The detection only applies to DMA - is PIO sensitive to unexpected
interrupts, even on working controllers? If so, shouldn't there be some
protection against this?
More information about the freebsd-current