diff options
author | Masakazu Mokuno <mokuno@sm.sony.co.jp> | 2007-07-20 10:35:54 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-24 22:28:40 +0200 |
commit | 583aae1094d28aa1d58360318388c11d2ae7ed9c (patch) | |
tree | c05810bf1cc055d67eb71c628cb464c3622348b4 /drivers/net/ps3_gelic_net.h | |
parent | ps3: removed calling netif_poll_enable() in open() (diff) | |
download | linux-583aae1094d28aa1d58360318388c11d2ae7ed9c.tar.xz linux-583aae1094d28aa1d58360318388c11d2ae7ed9c.zip |
ps3: fix rare issue that reenabling rx DMA fails
Fixed rare issue that 'lv1_net_start_rx_dma failed, status=-9" was shown
in dmesg. This meant restarting rx DMA had been rejected by the hypervisor.
This issue would caused if the guest os requested starting DMA when
the hypervisor thought the DMA was in progress.
The state machine for DMA status of the hypervisor would be updated
by processing interrupt in the hypervisor.
Thus we should wait for the interrupt delivery before restarting
DMA.
Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ps3_gelic_net.h')
-rw-r--r-- | drivers/net/ps3_gelic_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ps3_gelic_net.h b/drivers/net/ps3_gelic_net.h index 030e2e262608..01d729bc7332 100644 --- a/drivers/net/ps3_gelic_net.h +++ b/drivers/net/ps3_gelic_net.h @@ -206,6 +206,7 @@ struct gelic_net_card { struct gelic_net_descr_chain tx_chain; struct gelic_net_descr_chain rx_chain; + int rx_dma_restart_required; /* gurad dmac descriptor chain*/ spinlock_t chain_lock; |