| To: | Francois Romieu <romieu@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: 2.6.9-rc1-bk11+ and 2.6.9-rc1-mm3,4 r8169: freeze during boot (FIX included) |
| From: | Andy Lutomirski <luto@xxxxxxxxxxxx> |
| Date: | Sun, 19 Sep 2004 16:51:53 -0700 |
| Cc: | Andy Lutomirski <luto@xxxxxxxxxxxxx>, Hans-Frieder Vogt <hfvogt@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, jgarzik@xxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20040919213952.GA32570@electric-eye.fr.zoreil.com> |
| References: | <200409130035.50823.hfvogt@arcor.de> <20040916070211.GA32592@electric-eye.fr.zoreil.com> <200409161320.16526.jdmason@us.ltcfwd.linux.ibm.com> <200409171043.21772.jdmason@us.ltcfwd.linux.ibm.com> <20040917160151.GA29337@electric-eye.fr.zoreil.com> <414DF773.7060402@myrealbox.com> <20040919213952.GA32570@electric-eye.fr.zoreil.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 0.8 (Windows/20040913) |
Francois Romieu wrote:
Andy Lutomirski <luto@xxxxxxxxxxxxx> : [...] Because rtl8169_init_ring() is called before rtl8169_hw_start() in rtl8169_open(). init_ring allocates the recieve buffers, and I'm assuming that r8169_alloc_rx_skb() can get >32 bits.
if ((sizeof(dma_addr_t) > 4) && !pci_set_dma_mask(pdev,
DMA_64BIT_MASK)) {
tp->cp_cmd |= PCIDAC;
dev->features |= NETIF_F_HIGHDMA;
^^^^^^^^^^^^^^^
} else {
rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
if (rc < 0) {
printk(KERN_ERR PFX "DMA configuration failed.\n");
goto err_out_free_res;
}
}But I have 512MB RAM, so this probably isn't a problem for me. I'm running x86_64, BTW.
Will this be ready for 2.6.9? Otherwise it would probably be better to just disable DAC so the driver keeps working. On an unrelated note, I just took a look at the PHY timer code. It looks like the PHY timer will never reactivate once it shuts off, which means that the resetting is completely deterministic and the printk conveys no useful information. Can we just delete it (patch attached -- this computer mangles them)? What does it do, anyway? If it is necessary for someone's card (not mine) to acquire a gigabit link (which is what it seemed to do in old versions of the driver), then we're _still_ broken for the case where they drop the link and try to reacquire it. Would it make sense to remove the reset_enable stuff in -mm for awhile and see if anyone complains? --Andy Index: 2.6.9-rc2-mm1/drivers/net/r8169.c
===================================================================
--- 2.6.9-rc2-mm1.orig/drivers/net/r8169.c 2004-09-19 16:43:09.725537944
-0700
+++ 2.6.9-rc2-mm1/drivers/net/r8169.c 2004-09-19 16:50:33.900013160 -0700
@@ -1044,8 +1044,6 @@
if (tp->link_ok(ioaddr))
goto out_unlock;
- printk(KERN_WARNING PFX "%s: PHY reset until link up\n", dev->name);
-
tp->phy_reset_enable(ioaddr);
out_mod_timer:
|
| Previous by Date: | Re: [PATCH] Improve behaviour of Netlink Sockets, Herbert Xu |
|---|---|
| Next by Date: | Re: [PATCH] Improve behaviour of Netlink Sockets, Pablo Neira |
| Previous by Thread: | Re: 2.6.9-rc1-bk11+ and 2.6.9-rc1-mm3,4 r8169: freeze during boot (FIX included), Francois Romieu |
| Next by Thread: | Re: 2.6.9-rc1-bk11+ and 2.6.9-rc1-mm3,4 r8169: freeze during boot (FIX included), Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |