netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: NAPI for eepro100
       [not found] <3D0740ED.2060907@ict.ac.cn>
@ 2002-06-12 23:00 ` Jeff Garzik
       [not found] ` <3D07D270.5060902@mandrakesoft.com>
  1 sibling, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2002-06-12 23:00 UTC (permalink / raw)
  To: Zhang Fuxin; +Cc: linux-mips, saw, linux-kernel, netdev

Zhang Fuxin wrote:
> hi,all
>   Recently i've converted eepro100 driver to use napi,in order to improve
> network performance of my poor 150M mips machine. It does eliminate
> the interrupt live lock seen before,maintaining a peak throughput under
> heavy load.
>  In case anybody are interested,i post the patches to the list. They are
> 3 incremental patchs:
>   eepro100-napi.patch is against 2.5.20 eepro100.c and provide basic
> napi support

Nifty, I'll take a look at this.


>   eepro100-proc.patch is proc file system support adapted from intel's
> e100 driver. I am using it for debugging.
>   eepro100-mips.patch is mips specific patch to make it work(well) for 
> my mips
> platform.


Just FWIW I'm not gonna apply these... for the 'proc' patch, that either 
needs to be moved to ethtool, or we should make a filesystem for net 
drivers that exports procfs-like inodes.  for the 'mips' patch, it looks 
like the arch maintainer(s) need to fix the PCI DMA support...

	Jeff

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NAPI for eepro100
       [not found] ` <3D07D270.5060902@mandrakesoft.com>
@ 2002-06-12 23:05   ` David S. Miller
       [not found]   ` <20020612.160532.134201977.davem@redhat.com>
  1 sibling, 0 replies; 7+ messages in thread
From: David S. Miller @ 2002-06-12 23:05 UTC (permalink / raw)
  To: jgarzik; +Cc: fxzhang, linux-mips, saw, linux-kernel, netdev

   From: Jeff Garzik <jgarzik@mandrakesoft.com>
   Date: Wed, 12 Jun 2002 19:00:00 -0400
   
   for the 'mips' patch, it looks 
   like the arch maintainer(s) need to fix the PCI DMA support...

No, it's worse than that.

See how non-consistent memory is used by the eepro100 driver
for descriptor bits?  The skb->tail bits?

That is very problematic.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NAPI for eepro100
       [not found]   ` <20020612.160532.134201977.davem@redhat.com>
@ 2002-06-12 23:17     ` Jeff Garzik
       [not found]     ` <3D07D6A6.7090308@mandrakesoft.com>
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2002-06-12 23:17 UTC (permalink / raw)
  To: David S. Miller; +Cc: fxzhang, linux-mips, saw, linux-kernel, netdev

David S. Miller wrote:
>    From: Jeff Garzik <jgarzik@mandrakesoft.com>
>    Date: Wed, 12 Jun 2002 19:00:00 -0400
>    
>    for the 'mips' patch, it looks 
>    like the arch maintainer(s) need to fix the PCI DMA support...
> 
> No, it's worse than that.
> 
> See how non-consistent memory is used by the eepro100 driver
> for descriptor bits?  The skb->tail bits?
> 
> That is very problematic.


Oh crap, you're right...   eepro100 in general does funky stuff with the 
way packets are handled, mainly due to the need to issue commands to the 
NIC engine instead of the normal per-descriptor owner bit way of doing 
things.

Well, I accept patches to that clean eepro100 up...   I'm not terribly 
motivated to clean it up myself, as we have e100 and an e100 maintainer 
we can beat on if such uglies arise :)

	Jeff

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NAPI for eepro100
       [not found]     ` <3D07D6A6.7090308@mandrakesoft.com>
@ 2002-06-12 23:33       ` David S. Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David S. Miller @ 2002-06-12 23:33 UTC (permalink / raw)
  To: jgarzik; +Cc: fxzhang, linux-mips, saw, linux-kernel, netdev

   From: Jeff Garzik <jgarzik@mandrakesoft.com>
   Date: Wed, 12 Jun 2002 19:17:58 -0400

   Oh crap, you're right...   eepro100 in general does funky stuff with the 
   way packets are handled, mainly due to the need to issue commands to the 
   NIC engine instead of the normal per-descriptor owner bit way of doing 
   things.

The question is, do the descriptor bits have to live right before
the RX packet data buffer or can other schemes be used?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NAPI for eepro100
       [not found] <20020612.163344.31410429.davem@redhat.com>
@ 2002-06-13  2:25 ` Donald Becker
  0 siblings, 0 replies; 7+ messages in thread
From: Donald Becker @ 2002-06-13  2:25 UTC (permalink / raw)
  To: David S. Miller
  Cc: Jeff Garzik, linux-mips, Linux Kernel Mailing List, netdev

On Wed, 12 Jun 2002, David S. Miller wrote:
>    From: Jeff Garzik <jgarzik@mandrakesoft.com>
>    Oh crap, you're right...   eepro100 in general does funky stuff with the
>    way packets are handled, mainly due to the need to issue commands to the
>    NIC engine instead of the normal per-descriptor owner bit way of doing
>    things.

The eepro100 has a unique design in many different aspects.

> The question is, do the descriptor bits have to live right before
> the RX packet data buffer or can other schemes be used?

With the current driver structure, yes, the descriptor words must be
immediately before the packet data.  You can use other Rx and Tx
structures/modes to avoid this, but they use less efficient memory access.
For instance, the current Tx structure allows transmitting a packet with
a single PCI burst, rather than multiple transfers.


-- 
Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NAPI for eepro100
       [not found]     ` <20020613125753.A23693@castle.nmd.msu.ru>
@ 2002-06-13  8:47       ` David S. Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David S. Miller @ 2002-06-13  8:47 UTC (permalink / raw)
  To: saw; +Cc: fxzhang, linux-mips, linux-kernel, netdev, jgarzik

   From: Andrey Savochkin <saw@saw.sw.com.sg>
   Date: Thu, 13 Jun 2002 12:57:53 +0400

   On Wed, Jun 12, 2002 at 04:05:32PM -0700, David S. Miller wrote:
   > No, it's worse than that.
   > 
   > See how non-consistent memory is used by the eepro100 driver
   > for descriptor bits?  The skb->tail bits?
   > 
   > That is very problematic.
   
   What's the problem?
   If it isn't allowed to do, then what is the meaning of PCI_DMA_BIDIRECTIONAL
   mappings?

It's slow.  Not wrong, just inefficient.

Descriptors were meant to be done using consistent mappings, not
"pci_map_*()"'d memory.  The latter is meant to be used for long
linear DMA transfers to/from the device.  It is not meant for things
the cpu pokes small bits of data in and out of, that is what
consistent DMA memory is for.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NAPI for eepro100
       [not found]   ` <20020612.160532.134201977.davem@redhat.com>
                       ` (2 preceding siblings ...)
       [not found]     ` <20020613125753.A23693@castle.nmd.msu.ru>
@ 2002-06-13  8:57     ` Andrey Savochkin
  3 siblings, 0 replies; 7+ messages in thread
From: Andrey Savochkin @ 2002-06-13  8:57 UTC (permalink / raw)
  To: David S. Miller; +Cc: fxzhang, linux-mips, linux-kernel, netdev, jgarzik

On Wed, Jun 12, 2002 at 04:05:32PM -0700, David S. Miller wrote:
>    From: Jeff Garzik <jgarzik@mandrakesoft.com>
>    Date: Wed, 12 Jun 2002 19:00:00 -0400
>    
>    for the 'mips' patch, it looks 
>    like the arch maintainer(s) need to fix the PCI DMA support...
> 
> No, it's worse than that.
> 
> See how non-consistent memory is used by the eepro100 driver
> for descriptor bits?  The skb->tail bits?
> 
> That is very problematic.

What's the problem?
If it isn't allowed to do, then what is the meaning of PCI_DMA_BIDIRECTIONAL
mappings?

	Andrey

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-06-13  8:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3D0740ED.2060907@ict.ac.cn>
2002-06-12 23:00 ` NAPI for eepro100 Jeff Garzik
     [not found] ` <3D07D270.5060902@mandrakesoft.com>
2002-06-12 23:05   ` David S. Miller
     [not found]   ` <20020612.160532.134201977.davem@redhat.com>
2002-06-12 23:17     ` Jeff Garzik
     [not found]     ` <3D07D6A6.7090308@mandrakesoft.com>
2002-06-12 23:33       ` David S. Miller
     [not found]     ` <20020613125753.A23693@castle.nmd.msu.ru>
2002-06-13  8:47       ` David S. Miller
2002-06-13  8:57     ` Andrey Savochkin
     [not found] <20020612.163344.31410429.davem@redhat.com>
2002-06-13  2:25 ` Donald Becker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).