public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: eepro100 problems in 2.4.0
@ 2001-01-25 20:54 Micah Gorrell
  2001-01-25 21:05 ` [PATCH] " Jeff Garzik
  2001-01-25 21:06 ` Sergey Kubushin
  0 siblings, 2 replies; 11+ messages in thread
From: Micah Gorrell @ 2001-01-25 20:54 UTC (permalink / raw)
  To: Tom Sightler, linux-kernel

Because of the problems we where having we are no longer using the machine
with 3 nics.  We are now using a machine with just one and it is going live
next week.  We do need kernel 2.4 because of the process limits in 2.2.
Does the 'Enable Power Management (EXPERIMENTAL)' option fix the no
resources problems?

Micah
___
The irony is that Bill Gates claims to be making a stable operating system
and Linus Torvalds claims to be trying to take over the world
-----Original Message-----
From: "Tom Sightler" <ttsig@tuxyturvy.com>
To: "Micah Gorrell" <angelcode@myrealbox.com>;
<linux-kernel@vger.kernel.org>
Date: Thursday, January 25, 2001 1:48 PM
Subject: Re: eepro100 problems in 2.4.0


> > I have doing some testing with kernel 2.4 and I have had constant
>problems
>> with the eepro100 driver.  Under 2.2 it works perfectly but under 2.4 I
am
>> unable to use more than one card in a server and when I do use one card I
>> get errors stating that eth0 reports no recources.  Has anyone else seen
>> this kind of problem?
>
>I had a similar problem with a server that had dual embedded eepro100
>adapters however selecting the 'Enable Power Management (EXPERIMENTAL)'
>option for the eepro100 seemed to make the problem go away.  I don't really
>know why but it might be worth trying if it wasn't already selected.
>
>Later,
>Tom
>
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>Please read the FAQ at http://www.tux.org/lkml/
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: eepro100 problems in 2.4.0
@ 2001-01-26 11:13 Torben Mathiasen
  0 siblings, 0 replies; 11+ messages in thread
From: Torben Mathiasen @ 2001-01-26 11:13 UTC (permalink / raw)
  To: saw, jgarzik; +Cc: linux-kernel, scott

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

On Friday, 26 January 2001, saw@saw.sw.com.sg wrote:
> Hi,
> 
> On Thu, Jan 25, 2001 at 04:19:27PM -0500, Jeff Garzik wrote:
> > Oops, sorry guys.  Thanks to DaveM for correcting me -- my patch has
> > nothing to do with the "card reports no resources" problem.  My
> > apologies.
> 
> No problems.
> 
> However, there is a real problem with eepro100 when the system resumes
> operations after a sleep.
> May be, you could guess what's wrong in this case?
> 

I had to add this small patch to make it work properly with my Armada
M700. It basiclly just does something similar to what happens when we
get TX timeouts. Its just a quick hack, as I got tired of the eepro100
driver dumping the tx/rx queues when resuming.

Regards,

Torben Mathiasen


[-- Attachment #2: ee100apm.diff --]
[-- Type: application/octet-stream, Size: 976 bytes --]

--- /opt/kernel/kernels/linux/drivers/net/eepro100.c	Tue Nov 28 02:58:32 2000
+++ linux/drivers/net/eepro100.c	Wed Jan 24 16:26:14 2001
@@ -2145,7 +2145,7 @@
 {
 	struct net_device *dev = pdev->driver_data;
 	struct speedo_private *sp = (struct speedo_private *)dev->priv;
-	long ioaddr = dev->base_addr;
+	long ioaddr = dev->base_addr, flags;
 
 	/* I'm absolutely uncertain if this part of code may work.
 	   The problems are:
@@ -2154,12 +2154,19 @@
 		  reinitialization;
 		- serialization with other driver calls.
 	   2000/03/08  SAW */
+	outl(PortReset, ioaddr + SCBPort);
+	udelay(10);
 	outw(SCBMaskAll, ioaddr + SCBCmd);
+	synchronize_irq();
+	spin_lock_irqsave(&sp->lock, flags);
 	speedo_resume(dev);
-	netif_device_attach(dev);
+	dev->trans_start = jiffies;
 	sp->rx_mode = -1;
+	spin_unlock_irqrestore(&sp->lock, flags);
+	netif_device_attach(dev);
 	sp->flow_ctrl = sp->partner = 0;
 	set_rx_mode(dev);
+	reset_mii(dev);
 }
 #endif /* CONFIG_EEPRO100_PM */
 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* eepro100 problems in 2.4.0
@ 2001-01-25 20:20 Micah Gorrell
  2001-01-25 20:29 ` Sergey Kubushin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Micah Gorrell @ 2001-01-25 20:20 UTC (permalink / raw)
  To: linux-kernel

I have doing some testing with kernel 2.4 and I have had constant problems
with the eepro100 driver.  Under 2.2 it works perfectly but under 2.4 I am
unable to use more than one card in a server and when I do use one card I
get errors stating that eth0 reports no recources.  Has anyone else seen
this kind of problem?

Micah
___
The irony is that Bill Gates claims to be making a stable operating system
and Linus Torvalds claims to be trying to take over the world

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-01-29  9:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-25 20:54 eepro100 problems in 2.4.0 Micah Gorrell
2001-01-25 21:05 ` [PATCH] " Jeff Garzik
2001-01-25 21:19   ` Jeff Garzik
2001-01-26  0:50     ` Andrey Savochkin
2001-01-27 16:30       ` Jeff Garzik
2001-01-25 21:06 ` Sergey Kubushin
  -- strict thread matches above, loose matches on Subject: below --
2001-01-26 11:13 Torben Mathiasen
2001-01-25 20:20 Micah Gorrell
2001-01-25 20:29 ` Sergey Kubushin
2001-01-25 20:44 ` Tom Sightler
2001-01-29  9:13 ` Andrey Savochkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox