• Luis R. Rodriguez's avatar
    ath9k: add a debug warning when we cannot stop RX · 78a7685e
    Luis R. Rodriguez authored
    We have seen several DMA races when we race against
    stopping and starting the PCU. I suspect that when
    we cannot stop the PCU we may hit some of these same
    races so warn against them for now but only when
    debugging (CONFIG_ATH_DEBUG) is enabled.
    
    If you run into this warning and are a developer,
    please fix the cause of the warning. The potential
    here, although I cannot prove yet, is that the DMA
    engine can be confused and start writing to a buffer
    that was already DMA'd before and at least the kernel
    assumes is not being accessed by hardware anymore.
    
    Cc: Ben Greear <greearb@candelatech.com>
    Cc: Kyungwan Nam <kyungwan.nam@atheros.com>
    Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    78a7685e
recv.c 48.1 KB