Re: [PATCH net] r8169: fix setting driver_data after register_netdev

2018-03-25 Thread Francois Romieu
Heiner Kallweit : > pci_set_drvdata() is called only after registering the net_device, > therefore we could run into a NPE if one of the functions using > driver_data is called before it's set. > > Fix this by calling pci_set_drvdata() before registering the > net_device. > > This fix is a candi

Re: [PATCH net] r8169: fix setting driver_data after register_netdev

2018-03-26 Thread Francois Romieu
Andrew Lunn : [...] > How about rtl8169_get_wol() and rtl8169_set_wol(). And > rtl8169_get_ethtool_stats(). rtl8169_get_wol does not depend on dev->driver_data. Neither does rtl8169_set_wol() nor rtl8169_get_ethtool_stats(). > Basically anything which makes use of run time power management > cou

Re: r8169 Wake-on-LAN causes immediate ACPI GPE wakeup

2017-10-05 Thread Francois Romieu
Daniel Drake : [...] > Also, is there a standard behaviour defined for ethernet drivers > regarding wake-on-LAN? r8169 appears to enable wake-on-LAN by default > if it believes the hardware is capable of it, If so it isn't its designed behavior. The r8169 driver does not enable specific WoL even

Re: [PATCH net-next] r8169: improve interrupt handling

2018-02-23 Thread Francois Romieu
Heiner Kallweit : [...] > Last but not least it enables a feature which was (I presume accidently) > disabled before. There are members of the RTL8169 family supporting MSI > (e.g. RTL8169SB), however MSI never got enabled because RTL_CFG_0 was > missing flag RTL_FEATURE_MSI. > An indicator for "a

Re: [PATCH 2/2] ip_tunnel: add mpls over gre encapsulation

2017-09-21 Thread Francois Romieu
Amine Kherbouche : [...] > diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c > index 36ea2ad..060ed07 100644 > --- a/net/mpls/af_mpls.c > +++ b/net/mpls/af_mpls.c [...] > @@ -39,6 +40,40 @@ static int one = 1; > static int label_limit = (1 << 20) - 1; > static int ttl_max = 255; > > +size_t

Re: [PATCH net] r8169: fix NAPI handling under high load

2018-10-17 Thread Francois Romieu
Holger Hoffstätte : [...] > I continued to use the BQL patch in my private tree after it was reverted > and also had occasional timeouts, but *only* after I started playing > with ethtool to change offload settings. Without offloads or the BQL patch > everything has been rock-solid since then. > T

Re: [PATCH net] r8169: fix NAPI handling under high load

2018-10-17 Thread Francois Romieu
Heiner Kallweit : [...] > This issue has been there more or less forever (at least it exists in > 3.16 already), so I can't provide a "Fixes" tag. Hardly forever. It fixes da78dbff2e05630921c551dbbc70a4b7981a8fff. -- Ueimor

Re: [PATCH v2 net] r8169: fix NAPI handling under high load

2018-10-18 Thread Francois Romieu
Eric Dumazet : [...] > One has to wonder why rtl8169_poll(), which might be called in a loop under > DOS, > has to call rtl_ack_events() ? So as to cover a wider temporal range before any event can trigger an extra irq. I was more worried about irq cost than about IO cost (and I still am). --

Re: [PATCH v2 net] r8169: fix NAPI handling under high load

2018-10-19 Thread Francois Romieu
Eric Dumazet : > On 10/18/2018 03:59 PM, Francois Romieu wrote: > > Eric Dumazet : > > [...] > >> One has to wonder why rtl8169_poll(), which might be called in a loop > >> under DOS, > >> has to call rtl_ack_events() ? > > > > So as to cov

Re: [PATCH net-next] r8169: perform reset synchronously in __rtl8169_resume

2018-05-21 Thread Francois Romieu
Heiner Kallweit : [...] > diff --git a/drivers/net/ethernet/realtek/r8169.c > b/drivers/net/ethernet/realtek/r8169.c > index 75dfac024..1eb4f625a 100644 > --- a/drivers/net/ethernet/realtek/r8169.c > +++ b/drivers/net/ethernet/realtek/r8169.c > @@ -7327,9 +7327,9 @@ static void __rtl8169_resume(s

Re: [PATCH net-next] r8169: perform reset synchronously in __rtl8169_resume

2018-05-22 Thread Francois Romieu
David Miller : > From: Heiner Kallweit > Date: Mon, 21 May 2018 19:01:19 +0200 > > > The driver uses pm_runtime_get_sync() in few places and relies on the > > device being fully runtime-resumed after this call. So far however > > the runtime resume callback triggers an asynchronous reset. > > A

Re: [PATCH 1/2] r8169: reinstate ALDPS for power saving

2017-11-15 Thread Francois Romieu
David Miller : [...] > The amount of coverage this change is going to get is very small as > well, meaning an even greater chance of regressions. Yes. > Therefore the only acceptable way to handle this is to have > a white-list, specific chips that have been explicitly tested > and are known to

Re: [PATCH] net/wan: dscc4: remove broken dscc4 driver

2019-09-15 Thread Francois Romieu
= pdev;" to dscc4_found1() but this driver has > been broken since before we started using git and no one has complained > so probably we should just remove it. > > Signed-off-by: Dan Carpenter Acked-by: Francois Romieu -- Ueimor

Re: [PATCH V2 net-next 01/21] net-next/hinic: Initialize hw interface

2017-07-19 Thread Francois Romieu
Aviad Krawczyk : [...] > diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c > b/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c > new file mode 100644 > index 000..fbc9de4 > --- /dev/null > +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c [...] > +/** > + * hinic_init_hwdev

Re: [PATCH V2 net-next 01/21] net-next/hinic: Initialize hw interface

2017-07-24 Thread Francois Romieu
Aviad Krawczyk : [...] > hinic_remove - If insmod failed and someone calls rmmod, we will get a > crash because the resource are already free. Therefore we test if the > device exists, please tell me if you meant to something different The module won't even proceed through the pci_driver remove m

Re: [PATCH V2 net-next 01/21] net-next/hinic: Initialize hw interface

2017-07-25 Thread Francois Romieu
Aviad Krawczyk : [...] > module_pci_driver - is not used in other drivers in the same segments, it > is necessary ? /me checks... Ok, there seems to be some overenthusiastic copy'paste. See drivers/net/ethernet/intel/ixgb/ixgb_main.c: [...] /** * ixgb_init_module - Driver Registration Routine

Re: broken vlan support on Realtek RTL8111/8168/8411 rev 9

2017-09-11 Thread Francois Romieu
Benoit Panizzon : [...] > It's not marked as fixed but: > > when I try to turn offloading off I get: > > # /sbin/ethtool -K eth0 rx-vlan-offload off > ethtool: bad command line argument(s) > For more information run ethtool -h > > Could anyone give me a hint how to further debug the problem or

Re: net: r8169: a question of memory barrier in the r8169 driver

2018-01-18 Thread Francois Romieu
Peter Zijlstra : [...] > There is only 1 variable afaict. Memory barriers need at least 2 in > order to be able to do _anything_. I don't get your point: why don't {cur_tx, dirty_tx} qualify as said two variables ? -- Ueimor

Re: net: r8169: a question of memory barrier in the r8169 driver

2018-01-18 Thread Francois Romieu
Jia-Ju Bai : [...] > The function rtl8169_start_xmit reads tp->dirty_tx in TX_FRAGS_READY_FOR: > if (unlikely(!TX_FRAGS_READY_FOR(tp, skb_shinfo(skb)->nr_frags))) { > netif_err(tp, drv, dev, "BUG! Tx Ring full when queue awake!\n"); > goto err_stop_0; > } > But there is no

Re: net: r8169: a question of memory barrier in the r8169 driver

2018-01-19 Thread Francois Romieu
Peter Zijlstra : > On Fri, Jan 19, 2018 at 02:11:18AM +0100, Francois Romieu wrote: > > Peter Zijlstra : > > [...] > > > There is only 1 variable afaict. Memory barriers need at least 2 in > > > order to be able to do _anything_. > > > > I don&

Re: net: r8169: a question of memory barrier in the r8169 driver

2018-01-19 Thread Francois Romieu
Jia-Ju Bai : > > On 2018/1/19 9:11, Francois Romieu wrote: > > Jia-Ju Bai : > > [...] > > > The function rtl8169_start_xmit reads tp->dirty_tx in TX_FRAGS_READY_FOR: > > > if (unlikely(!TX_FRAGS_READY_FOR(tp, skb_shinfo(skb)->nr_frags))) { >

Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-21 Thread Francois Romieu
Oliver Freyermuth : [...] Is it an AMD based system ? -- Ueimor

Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-21 Thread Francois Romieu
Oliver Freyermuth : > Am 21.01.2018 um 21:48 schrieb Francois Romieu: > > Oliver Freyermuth : [...] > > Is it an AMD based system ? > > > > No, all the systems on which I have observed this up to now are Intel-based. > Two Haswell and one Sandy Bridge sy

Re: Memory corruption with r8169 across several device revisions and kernels

2018-01-23 Thread Francois Romieu
Oliver Freyermuth : [...] > This looks like it could very well match the structure found in memory, > so something would be broken related to rtl8169_do_counters, in the DMA > transfer. > > Does this help - can I provide more info? I get the feeling this affects > many tens of thousands of syste

[PATCH net 1/1] r8169: fix memory corruption on retrieval of hardware statistics.

2018-01-25 Thread Francois Romieu
Hardware statistics retrieval hurts in tight invocation loops. Avoid extraneous write and enforce strict ordering of writes targeted to the tally counters dump area address registers. Signed-off-by: Francois Romieu Tested-by: Oliver Freyermuth --- drivers/net/ethernet/realtek/r8169.c | 9

Re: [PATCH net-next] r8169: add module param for control of ASPM disable

2018-02-01 Thread Francois Romieu
Chunhao Lin : [...] > @@ -5878,6 +5881,20 @@ static void rtl_pcie_state_l2l3_enable(struct > rtl8169_private *tp, bool enable) > RTL_W8(Config3, data); > } > > +static void rtl_hw_internal_aspm_clkreq_enable(struct rtl8169_private *tp, > + bool enable) > +{ >

Re: [PATCH net-next] r8169: add module param for control of ASPM disable

2018-02-01 Thread Francois Romieu
net-next is closed anyway. -- Ueimor

Re: [PATCH] wan: dscc4: add checks for dma mapping errors

2017-08-07 Thread Francois Romieu
Alexey Khoroshilov : > The driver does not check if mapping dma memory succeed. > The patch adds the checks and failure handling. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Please amend your subject line as: Subject: [PATCH net-nex

Re: [PATCH net-next v2] wan: dscc4: add checks for dma mapping errors

2017-08-08 Thread Francois Romieu
Alexey Khoroshilov : [...] > diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c > index 799830f..6a9ffac 100644 > --- a/drivers/net/wan/dscc4.c > +++ b/drivers/net/wan/dscc4.c > @@ -518,23 +518,31 @@ static void dscc4_release_ring(struct dscc4_dev_priv > *dpriv) > static inline int t

Re: skb allocation from interrupt handler?

2017-08-09 Thread Francois Romieu
Murali Karicheri : [...] > The internal memory or FIFO can store only up to 3 MTU sized packets. So that > has to > be processed before PRU gets another packets to send to CPU. So per above, > it is not ideal to run NAPI for this scenario, right? Also for NetCP we use > about 128 descriptors wit

Re: [PATCH v3 net-next 2/2] wan: dscc4: convert to plain DMA API

2017-08-11 Thread Francois Romieu
Alexey Khoroshilov : [...] > diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c > index 8480dbf..a043fb1 100644 > --- a/drivers/net/wan/dscc4.c > +++ b/drivers/net/wan/dscc4.c [...] > @@ -506,8 +506,9 @@ static void dscc4_release_ring(struct dscc4_dev_priv > *dpriv) > skbuff = d

Re: [PATCH v3 net-next 2/2] wan: dscc4: convert to plain DMA API

2017-08-11 Thread Francois Romieu
David Miller : [...] > Oops, this will need to be sent as a relative fixup as I've applied these > two patches to net-next, sorry Francois. No problem. It works perfectly this way. -- Ueimor

Re: [PATCH net] sky2: Do not deadlock on sky2_hw_down

2017-05-25 Thread Francois Romieu
David Miller : > From: Joshua Emele > Date: Wed, 24 May 2017 15:43:18 -0700 [...] > > The sky2_hw_down uses sky2_tx_complete to free pending frames stuck in > > the HW queue. Because sky2_hw_down can be called from a process context, > > the call to u64_stats_update_begin can result in deadlock.

Re: linux-next: Signed-off-by missing for commit in the net-next tree

2017-11-01 Thread Francois Romieu
Kirill Smelkov : [...] > I was keeping you in To and Cc all the time but got no reply at all since my > first posting from ~ 1 month ago. I thought it was longer than that. Sorry for the frustrating excess delay. As Eric already said there is no problem and I am perfectly fine with the current a

Re: [PATCH] b44: netpoll locking fix

2007-05-29 Thread Francois Romieu
Stephen Hemminger <[EMAIL PROTECTED]> : ???...] > Better to just get rid of using the lock as a transmit lock and > use netif_tx_lock instead. > --- a/drivers/net/b44.c 2007-05-29 09:51:43.0 -0700 > +++ b/drivers/net/b44.c 2007-05-29 14:26:03.0 -0700 > @@ -607,6 +607,7 @

Re: [PCNET32] Lock solid with netconsole

2007-05-30 Thread Francois Romieu
Emmanuel Fusté <[EMAIL PROTECTED]> : [..] > Could this bug fix from Stephen Hemminger be another track to follow ? > http://marc.info/?l=linux-netdev&m=118048588011069&w=2 > If you think so, I could give it a try whitout applying the > "spin_lock_irqsave" patch. You can apply it too but Stephen's

[PATCH] ethtool: new ID to decode the registers of the 8101E (realtek)

2007-05-30 Thread Francois Romieu
Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Rolf Eike Beer <[EMAIL PROTECTED]> --- realtek.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/realtek.c b/realtek.c index 8daba69..c56b3f5 100644 --- a/realtek.c +++ b/realtek.c @@ -46,6 +46,7 @@ s

Re: r8169 in 2.6.18 silently corrupting data, 2.6.22-rc3 link not detected at all

2007-06-04 Thread Francois Romieu
Francois Romieu <[EMAIL PROTECTED]> : [...] Andrew, have you had any time to do some testing with an uniform 7200 bytes MTU through your LAN ? You will find a backport of the r8169 driver for the 2.6.18 kernel at http://www.fr.zoreil.com/people/francois/backport/r8169/20070604-00 Could yo

Re: r8169: hard freezes on TX

2007-06-04 Thread Francois Romieu
Rolf Eike Beer <[EMAIL PROTECTED]> : [...] > I just had another freeze using your patches. After 512kB over smb it was > dead. In-kernel smb/cifs ? -- Ueimor - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: PROBLEM: network interface regularly stops working

2007-06-05 Thread Francois Romieu
Kacper Bielecki <[EMAIL PROTECTED]> : [...] > The motherboadr is ASRock ConRoe945G-DVI Same model as my current test machine. It uses a boring el-cheapo PIV though. > After installing kernel 2.6.22-rc4 with patches 0001..0013 (there wasn't > patch) the problem is not solved. I still get th

Re: [PCNET32] Lock solid with netconsole

2007-06-06 Thread Francois Romieu
Emmanuel Fusté <[EMAIL PROTECTED]> : [...] > Did you plan to submit the "spin_lock_irqsave" patch to mainline ? No. I will not have enough time to figure why/if it fixes things. -- Ueimor - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTE

Re: r8169: hard freezes on TX

2007-06-07 Thread Francois Romieu
Rolf Eike Beer <[EMAIL PROTECTED]> : [...] > fine. Even the next try with this file didn't produce a crash. What was > different on this tests was that I used the console instead of X (don't want > to munch up too many file systems). Any ideas? X and friends ? Can you send the usual dmesg, lspc

Re: r8169 tx problem (1s pause with ping)

2007-06-13 Thread Francois Romieu
Benjamin LaHaise <[EMAIL PROTECTED]> : [...] > I'm seeing something odd with r8169 on FC7: doing a ping -s 1600 alternates > between a 1s latency and sub 1ms. Has anyone else seen anything like this? > The system in question is an Asus M2A-VM with an onboard RTL8111 (I think). > NAPI doesn't

Re: [ANNOUNCE] new driver ixgbe for Intel(R) 10GbE PCI Express adapters.

2007-06-13 Thread Francois Romieu
[EMAIL PROTECTED] <[EMAIL PROTECTED]> : [...] > Please review and provide comments. o ixgbe_call_func and the ton of wrappers which go along with it should go. o boolean_t duplicates the existing 'bool' o The options below {should be/are} handled through ethtool: - TxDescriptors - RxDescri

Re: Realtek r8168 slow outbound transfer - potential fix/workaround

2007-06-13 Thread Francois Romieu
David Gundersen <[EMAIL PROTECTED]> : [...] > I've been doing a bit of investigation work into a problem that I've > been experiencing with the latest available r8168 driver from realtek > ('r8168-8.001.00') & linux kernel 2.6.21.1. > > I have been experiencing wierd problems with slow outbound

Re: [ANNOUNCE] new driver ixgbe for Intel(R) 10GbE PCI Express adapters.

2007-06-14 Thread Francois Romieu
Ayyappan Veeraiyan <[EMAIL PROTECTED]> : [...] > netpoll_send_skb should not deadlock because ixgbe_xmit_frame should > bail out because of this... > > if (!spin_trylock_irqsave(&tx_ring->tx_lock, flags)) > /* Collision - tell upper layer to requeue */ > return NET

Re: r8169 tx problem (1s pause with ping)

2007-06-14 Thread Francois Romieu
David Gundersen <[EMAIL PROTECTED]> : [...] > I might do some more thorough testing on the weekend to find out what > the minimal changes required are to get things working. In your patch, the first chunk of data (which is handed back to the nic outside of rtl8169_xmit_frags) will not have is Firs

Re: r8169 ethernet bonding problems

2007-06-18 Thread Francois Romieu
Tim Durack <[EMAIL PROTECTED]> : [snip] Can you try 2.6.22-rc5 + http://www.fr.zoreil.com/people/francois/misc/20070619-2.6.22-rc5-r8169-test.patch It does not seem to work too bad here (tested with 2.6.22-rc5 + patch): # grep bonding /etc/modprobe.conf alias bond0 bonding options bonding miimon

Re: r8169 tx problem (1s pause with ping)

2007-06-19 Thread Francois Romieu
Francois Romieu <[EMAIL PROTECTED]> : [...] > A pesky fever apart, I should be able to come with a patch before > the week end. (oops, late again) You can try the hack below as a temporary fix. It makes things way better on top of 2.6.22-rc5 + current r8169 patchkit at http://www.f

Re: r8169 tx problem (1s pause with ping)

2007-06-20 Thread Francois Romieu
David Gundersen <[EMAIL PROTECTED]> : [...] > - Why are you checking dirty_tx against cur_rx (shouldn't it be cur_tx?)? Usual "try something, send something else" bug. > - Is there a possibility that the driver could be triggering the card to > send invalid packets with that code? [snip] I do n

Re: [PATCH UPDATE] Extract chip specific code out of lasi_82596.c

2007-06-26 Thread Francois Romieu
Thomas Bogendoerfer <[EMAIL PROTECTED]> : [...] > +static inline void init_rx_bufs(struct net_device *dev) > +{ > + struct i596_private *lp = netdev_priv(dev); > + struct i596_dma *dma = lp->dma; > + int i; > + struct i596_rfd *rfd; > + struct i596_rbd *rbd; > + > + /* First

Re: [PATCH UPDATE] Ethernet driver for EISA only SNI RM200/RM400 machines

2007-06-26 Thread Francois Romieu
Thomas Bogendoerfer <[EMAIL PROTECTED]> : [...] > diff --git a/drivers/net/sni_82596.c b/drivers/net/sni_82596.c > new file mode 100644 > index 000..80e32ad > --- /dev/null > +++ b/drivers/net/sni_82596.c [...] > +static int __devinit sni_82596_probe(struct platform_device *dev) > +{ [...] > +

Re: [PATCH UPDATE] Extract chip specific code out of lasi_82596.c

2007-06-27 Thread Francois Romieu
Thomas Bogendoerfer <[EMAIL PROTECTED]> : > On Tue, Jun 26, 2007 at 11:47:55PM +0200, Francois Romieu wrote: > > Thomas Bogendoerfer <[EMAIL PROTECTED]> : > > [...] > > > +static inline void init_rx_bufs(struct net_device *dev) [...] > > The driver c

Re: r8169 patches

2007-06-28 Thread Francois Romieu
(netdev Cced. People, please, please Cc: netdev) Soren Hansen <[EMAIL PROTECTED]> : [...] > I have an Asrock ConRoe945G-DVI motherboard with a RTL8111/8168B in it. > The stock r8159 driver locks up from time to time. I've described it > here: https://launchpad.net/bugs/121815 . The patchset at > h

Re: r8169: 2.6.22rc6+patches works, but 2.6.21.5 and 2.6.22rc6 without patches->network transfer blocking

2007-06-28 Thread Francois Romieu
Jens Stroebel <[EMAIL PROTECTED]> : [...] > Is there any possibility to get this fix working in 2.6.21.5? Would it > be possible to apply the single patch to 2.6.21.5 and get a working > driver? Or would it be possible to create the fixing patch for the > driver in 2.6.21.5? Mantra: mainline first

[RFT] r8169 changes against 2.6.22-rc6

2007-06-28 Thread Francois Romieu
The latest serie of r8169 changes is available against 2.6.22-rc6 as: http://www.fr.zoreil.com/people/francois/misc/20070628-2.6.22-rc6-r8169-test.patch or (tarball sits one level higher): http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.22-rc6/r8169-20070628/ or (rebase prone branch) git://elec

Re: 2.6.21.5+1small patch: not blocking

2007-06-29 Thread Francois Romieu
Jens Stroebel <[EMAIL PROTECTED]> : [...] > It seems like the patch is able to change things in a way which makes > the machine lock up hard. Pity that, looked so promising at first... As a 8168 user, you should really apply the serie I sent yesterday before anything else. Then you can try again t

[PATCH 00/21] r8169: pull request for 'r8169-for-jeff-20070629' branch

2007-06-29 Thread Francois Romieu
993a6801e2b902362930 794e2548627e76fa5a4fc25ec6f26a01226b18eb e7c39d0961889a4836091da87cb785d33fcc36e0 Diffstat drivers/net/r8169.c | 944 --- 1 files changed, 528 insertions(+), 416 deletions(-) Shortlog David S. Miller (1): r8169: kill eth_copy_and_sum()

[PATCH 01/21] r8169: use netdev_alloc_skb

2007-06-29 Thread Francois Romieu
Use netdev_alloc_skb and remove the useless sk_buff * argument of rtl8169_alloc_rx_skb. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 27 ++

[PATCH 02/21] r8169: de-obfuscate modulo arithmetic

2007-06-29 Thread Francois Romieu
d try to go over it. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 4586446..1f7fb54 100644 --- a

[PATCH 04/21] r8169: Rx path update

2007-06-29 Thread Francois Romieu
- pci_dma_sync_single_for_cpu is not needed for a single large packet - remove the function pointer to help gcc optimizing the inline pci_dma functions. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[

[PATCH 03/21] r8169: kill eth_copy_and_sum()

2007-06-29 Thread Francois Romieu
It hasn't "summed" anything in over 7 years, and it's just a straight mempcy ala skb_copy_to_linear_data() so just get rid of it. Signed-off-by: David S. Miller <[EMAIL PROTECTED]> Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL P

[PATCH 07/21] r8169: populate the hw_start handler for the 8168

2007-06-29 Thread Francois Romieu
rtl_hw_start_8168 inherits the content of rtl_hw_start_8169 minus the code which depends on RTL_GIGA_MAC_VER_XY (XY != {11/12}). Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 34 +++

[PATCH 05/21] r8169: add hooks for per-device hw_start handler

2007-06-29 Thread Francois Romieu
ry in rtl_cfg_info was unused. I recycled it for the 0x8168. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 64 +++--- 1 files changed, 45 insertions(+), 19 deletions(-) diff --

[PATCH 06/21] r8169: add helpers for per-device hw_start handler

2007-06-29 Thread Francois Romieu
They aim to limit the amount of moved code when the hw_start handler gets more specialized. No functional change. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 53 +--

[PATCH 10/21] r8169: merge with version 6.001.00 of Realtek's r8169 driver

2007-06-29 Thread Francois Romieu
work around for AMD platform. Some registers definitions in Realtek's driver are let aside for later. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 90 +++ 1 files

[PATCH 12/21] r8169: confusion between hardware and IP header alignment

2007-06-29 Thread Francois Romieu
the driver, of course) and the 8101/8168 go with a plain 8 bytes alignment. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/net/r8169

[PATCH 13/21] r8169: small 8101 comment

2007-06-29 Thread Francois Romieu
Extracted from version 1.001.00 of Realtek's r8101. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/r8169.c b/drivers/net/r816

[PATCH 18/21] r8169: add endianess annotations to [RT]xDesc

2007-06-29 Thread Francois Romieu
Signed-off-by: Rolf Eike Beer <[EMAIL PROTECTED]> Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/r8169.c b/drivers

[PATCH 14/21] r8169: remove the media option

2007-06-29 Thread Francois Romieu
It has been documented as deprecated: - in MODULE_PARM_DESC since may 2005 ; - at the top of the source file and in printk since june 2004. Good bye. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8

[PATCH 11/21] r8169: merge with version 8.001.00 of Realtek's r8168 driver

2007-06-29 Thread Francois Romieu
are not changed for the 8169/8110 and the 8101 Includes ChipCmd fix from Bernhard Walle <[EMAIL PROTECTED]> (2007/02/24). Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 119 ++-

[PATCH 16/21] r8169: add bit description for the TxPoll register

2007-06-29 Thread Francois Romieu
Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 5d9e754..d8862cd 100644 --- a/drivers/net/r

[PATCH 17/21] r8169: align the IP header when there is no DMA constraint

2007-06-29 Thread Francois Romieu
off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Philip Craig <[EMAIL PROTECTED]> Cc: Mike Isely <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/r8169.c b/dri

[PATCH 08/21] r8169: populate the hw_start handler for the 8110

2007-06-29 Thread Francois Romieu
Same thing as the previous change for rtl_hw_start_8168. The 8101 related code in rtl_hw_start_8169 (see RTL_GIGA_MAC_VER_13) goes away. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8

[PATCH 09/21] r8169: prettify mac_version

2007-06-29 Thread Francois Romieu
...still a bit yucky though. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c i

[PATCH 15/21] r8169: cleanup

2007-06-29 Thread Francois Romieu
: Francois Romieu <[EMAIL PROTECTED]> Cc: Stephen Hemminger <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c | 347 +-- 1 files changed, 145 insertions(+), 202 deletions(-) diff --git a/drivers/net/r8169.c b

[PATCH 20/21] r8169: mac address change support

2007-06-29 Thread Francois Romieu
Merged from Realtek's r8169-6.001 driver. I have added some locking to protect against the arp monitoring timer in the bonding driver. Accessing the configuration registers is otherwise performed under RTNL locking. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward

[PATCH 19/21] r8169: display some extra debug information during startup

2007-06-29 Thread Francois Romieu
It does not cost much and it will ease the identification of (so far) unknown devices. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/n

[PATCH 21/21] r8169: perform RX config change after mac filtering

2007-06-29 Thread Francois Romieu
It does not really make sense to update the RX config register before the mac filtering registers. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> Cc: Edward Hsu <[EMAIL PROTECTED]> --- drivers/net/r8169.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a

Re: [PATCH 10/21] r8169: merge with version 6.001.00 of Realtek's r8169 driver

2007-06-30 Thread Francois Romieu
Jeff Garzik <[EMAIL PROTECTED]> : > Arjan van de Ven wrote: > >>+ pci_write_config_byte(tp->pci_dev, PCI_LATENCY_TIMER, 0x40); > > > >can you create a pci_set_latency_timer() for this please? [...] > >>+ if (tp->mac_version <= RTL_GIGA_MAC_VER_06) > >>+ pci_write_config_byte(tp->pci_d

Re: r8169 2.2LK: Low link speed after suspend

2007-06-30 Thread Francois Romieu
Peter Missel <[EMAIL PROTECTED]> : [...] > It is now on 2.6.21.5 as downloaded from www.kernel.org, built for AMD64. > Unfortunately, the problem is not gone. After suspend-to-disk and resume, > link speed is 100. Unplugging and replugging the cable does not help. > Unloading and reloading the

Re: r8169 2.2LK: Low link speed after suspend

2007-06-30 Thread Francois Romieu
Francois Romieu <[EMAIL PROTECTED]> : [...] > The patch will not apply directly against 2.6.21.5. Is it an option for > you to try 2.6.22-rc6 or are you stuck with 2.6.21.5 ? If you feel adventurous, you will find a compile-tested-only patchkit for 2.6.21.5 here: http://www.fr.zore

Re: r8169 2.2LK: Low link speed after suspend

2007-07-01 Thread Francois Romieu
Peter Missel <[EMAIL PROTECTED]> : [...] > The patch applies without failure; I'm getting a warning during build, > > CC [M] drivers/net/r8169.o > drivers/net/r8169.c: In function ‘rtl8169_start_xmit’: > drivers/net/r8169.c:2341: warning: ‘txd’ may be used uninitialized in this > function It'

Re: r8169 2.2LK: Low link speed after suspend

2007-07-02 Thread Francois Romieu
Peter Missel <[EMAIL PROTECTED]> : [...] > Unfortunately I couldn't get NFS to work with the updated kernel, so I had to > revert to the original from SuSE 10.2. No NFS but networking or no networking at all ? -- Ueimor - To unsubscribe from this list: send the line "unsubscribe netdev" in the

Re: Splitting e1000 (Was: Re: e1000: backport ich9 support from 7.5.5 ?)

2007-07-07 Thread Francois Romieu
Kok, Auke <[EMAIL PROTECTED]> : > Jeff Garzik wrote: > >Kok, Auke wrote: [...] > This is not acceptable and hardly fair to expect from us. > > It also exposes users to endless delays and uncertainties as to a final > resolution. Not to mention that writing a driver from scratch for (just) > ich9

Re: [PATCH] Fix kernel unaligned access with r8169 on sparc64

2007-07-10 Thread Francois Romieu
Philip Craig <[EMAIL PROTECTED]> : [...] > Try the patches at http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.22-rc6/ > I think patches 0012 and/or 0017 will fix this. They should but they will not apply directly against 2.6.18-something. Florian, can you consider one of the option below: - try c

Re: Fwd: r8169 driver supporting the 8167 dev ID

2007-07-10 Thread Francois Romieu
Jonathan Larsen <[EMAIL PROTECTED]> : > I've been looking for the r8169 driver that is for the 2.6.x kernel > and also supports the device id 8167, 10ec. chipset is the 8110sc. > im sure someone is familiar with this. It is not the most used chipset in the 816x family but there are some known use

Re: [PATCH] Fix kernel unaligned access with r8169 on sparc64

2007-07-10 Thread Francois Romieu
Francois Romieu <[EMAIL PROTECTED]> : [...] > - try http://www.fr.zoreil.com/people/francois/backport/r8169/20070604-00 > It is a backport against 2.6.18 which should bring you quite close to > 2.6.23-git wrt r8169. Regarding the backport option, it was initially more a compi

Re: No network on Asus P5B (r8169)

2007-07-10 Thread Francois Romieu
Clemens Brunner <[EMAIL PROTECTED]> : [...] > I just found out that everything is working just fine with a 64-bit Linux > kernel. I hope this helps you hunt down the error in the 32-bit version. > https://bugzilla.novell.com/show_bug.cgi?id=288406 Does your setup exclude the "wake up" issue descr

Re: Fwd: r8169 driver supporting the 8167 dev ID

2007-07-11 Thread Francois Romieu
Jonathan Larsen <[EMAIL PROTECTED]> : > I got git installed on my dev box. i went to my linux source dir and ran, > git init > git add . > git format-patch v2.6.18..v2.6.23-rc1 -- drivers/net/r8169.c > > and i got an error > fatal: bad revision 'v2.6.18..v2.6.23-rc1' > > what did i do wrong? im

Re: [PATCH 2.6.22-rc7] 8139cp: dev->tx_timeout

2007-07-13 Thread Francois Romieu
[EMAIL PROTECTED] <[EMAIL PROTECTED]> : [...] > Can you test this one, this time it's made against the netdev-2.6 version. > There indeed is a slight offset in the line numbers. It still fails. Fixed version follow. -- Ueimor - To unsubscribe from this list: send the line "unsubscribe netdev" i

[PATCH 1/1] 8139cp: implement the missing dev->tx_timeout

2007-07-13 Thread Francois Romieu
Signed-off-by: Mika Lansirinne <[EMAIL PROTECTED]> --- drivers/net/8139cp.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 807e699..e970e64 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/813

Re: [PATCH 2.6.22 1/4]S2IO: Adding checks to check the return value of pci mapping function

2007-07-13 Thread Francois Romieu
Veena Parat <[EMAIL PROTECTED]> : > - Adding checks to check the return value of pci mapping function > > Signed-off-by: Veena Parat <[EMAIL PROTECTED]> > --- > diff -Nurp 2.0.23.1/drivers/net/s2io.c 2.0.23.1P1/drivers/net/s2io.c > --- 2.0.23.1/drivers/net/s2io.c 2007-07-03 08:54:02.000

Re: PATCH 2.6.22 3/4]S2IO: Removing 3 buffer mode support from the driver

2007-07-13 Thread Francois Romieu
Veena Parat <[EMAIL PROTECTED]> : > - Removed 3 buffer mode support from driver - unused feature Please make it the first patch in the serie. It will avoid modifying fill_rxd_3buf() needlessly in the previous patches. -- Ueimor - To unsubscribe from this list: send the line "unsubscribe netdev

Re: [PATCH 2.6.22 4/4]S2IO: Implementing review comments from old patches

2007-07-13 Thread Francois Romieu
Veena Parat <[EMAIL PROTECTED]> : > Implementation of review comments > - Incorporated Jeff Garzik's comments on coding standards > - Incorporated Andreas Schwab's comments on redundant condition check > > Signed-off-by: Veena Parat <[EMAIL PROTECTED]> [...] > diff -Nurp 2.0.23.1P3/drivers/net/s

Re: Fwd: r8169 driver supporting the 8167 dev ID

2007-07-14 Thread Francois Romieu
Jonathan Larsen <[EMAIL PROTECTED]> : > >You should read the tutorial until you find the 'Using git for > >collaboration' > >part. You missed a: > > > >git clone > >git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git > > Alright sweet, i got somewhere :). i was able to pull tha

Re: r8169 in 2.6.22 release still not detecting link

2007-07-16 Thread Francois Romieu
Andrew Paprocki <[EMAIL PROTECTED]> : [...] > Just writing to let you know that I'm still not getting a link on > either r8169 port with the stock 2.6.22 kernel. I haven't been able to > get any other network interface working on this device yet, as it only > has a mini-PCI slot and I haven't found

Re: Realtek RTL8111B serious performance issues

2007-07-18 Thread Francois Romieu
[EMAIL PROTECTED] <[EMAIL PROTECTED]> : [...] > Anyone have any suggestions for solving this problem? Try 2.6.23-rc1 when it is published or apply against 2.6.22 one of: http://www.fr.zoreil.com/people/francois/misc/20070628-2.6.22-rc6-r8169-test.patch http://www.fr.zoreil.com/linux/kernel/2.6.x/2

Re: Realtek RTL8111B serious performance issues

2007-07-18 Thread Francois Romieu
[EMAIL PROTECTED] <[EMAIL PROTECTED]> : [...] > Unfortunately, the 20070628 patch did not make any difference. @!#$ [...] > >http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.22-rc6/r8169-20070628/ > > I tried various patches from that directory (aren't most or all of them > included in the 200706

Re: [RFT] Realtek 8168 ethernet support

2006-07-18 Thread Francois Romieu
Francois Romieu <[EMAIL PROTECTED]> : > The patch below agaisnt 2.6.17-rc6 includes the following changes: > > commit 3072cc0aba3ac0c944e196a63c4154ca5746ec0b > > r8169: sync with vendor's driver > > - add several PCI ID for the PCI-E adapters ; &g

  1   2   3   4   5   6   7   8   9   >