public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.4.9-pre13aa1 & 2.4.9-pre14: SMP + 3c59x: feature/bug?
  2001-09-22 20:21 2.4.9-pre13aa1 & 2.4.9-pre14: SMP + 3c59x: feature/bug? Mario Vanoni
@ 2001-09-22 20:08 ` Andrew Morton
  2001-09-22 23:37   ` Mario Vanoni
  2001-09-24  0:54   ` 2.4.10: 3c59x: buggy? Mario Vanoni
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Morton @ 2001-09-22 20:08 UTC (permalink / raw)
  To: Mario Vanoni; +Cc: linux-kernel@vger.kernel.org

Mario Vanoni wrote:
> 
> Dual SMP PIII550 BX400 1024MB mem
> according "Documentation/Changes" all >= update.
> 
> Both kernels compiled *_without_* modules:
> lilo.conf with append="ether=0,0,3,eth0".
> Ethernet doesn't work anymore,
> with 2.2.19pre#aa#, 2.2.20pre#aa# perfect.
> 
> Both kernels compiled with 3c59x as module:
> modules.conf:
> alias eth0 3c59x
> options 3c59x options=3
> obviously without append in lilo.conf.
> Ethernet works as usual.
> 
> No difference on all other application.

Net drivers which use the new alloc_etherdev API do not
support the `ether=' kernel boot option.

Going back to the old init_etherdev() API will make it
work again.

--- linux-2.4.10-pre14/drivers/net/3c59x.c	Sat Sep 22 10:41:53 2001
+++ linux-akpm/drivers/net/3c59x.c	Sat Sep 22 12:59:07 2001
@@ -984,7 +984,7 @@ static int __devinit vortex_probe1(struc
 
 	print_name = pdev ? pdev->slot_name : "3c59x";
 
-	dev = alloc_etherdev(sizeof(*vp));
+	dev = init_etherdev(NULL, sizeof(*vp));
 	retval = -ENOMEM;
 	if (!dev) {
 		printk (KERN_ERR PFX "unable to allocate etherdev, aborting\n");
@@ -1328,9 +1328,6 @@ static int __devinit vortex_probe1(struc
  		pci_save_state(vp->pdev, vp->power_state);
  		acpi_set_WOL(dev);
 	}
-	retval = register_netdev(dev);
-	if (retval == 0)
-		return 0;
 
 free_ring:
 	pci_free_consistent(pdev,
@@ -1341,6 +1338,7 @@ free_ring:
 free_region:
 	if (vp->must_free_region)
 		release_region(ioaddr, vci->io_size);
+	unregister_netdevice(dev);
 	kfree (dev);
 	printk(KERN_ERR PFX "vortex_probe1 fails.  Returns %d\n", retval);
 out:

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

* 2.4.9-pre13aa1 & 2.4.9-pre14: SMP + 3c59x: feature/bug?
@ 2001-09-22 20:21 Mario Vanoni
  2001-09-22 20:08 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Mario Vanoni @ 2001-09-22 20:21 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

Dual SMP PIII550 BX400 1024MB mem
according "Documentation/Changes" all >= update.

Both kernels compiled *_without_* modules:
lilo.conf with append="ether=0,0,3,eth0".
Ethernet doesn't work anymore,
with 2.2.19pre#aa#, 2.2.20pre#aa# perfect.

Both kernels compiled with 3c59x as module:
modules.conf:
alias eth0 3c59x
options 3c59x options=3
obviously without append in lilo.conf.
Ethernet works as usual.

No difference on all other application.

Regards

Mario, not in lkml!

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

* Re: 2.4.9-pre13aa1 & 2.4.9-pre14: SMP + 3c59x: feature/bug?
  2001-09-22 20:08 ` Andrew Morton
@ 2001-09-22 23:37   ` Mario Vanoni
  2001-09-24  0:54   ` 2.4.10: 3c59x: buggy? Mario Vanoni
  1 sibling, 0 replies; 4+ messages in thread
From: Mario Vanoni @ 2001-09-22 23:37 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel@vger.kernel.org

Andrew Morton wrote:
> 
> Mario Vanoni wrote:
> >
> > Dual SMP PIII550 BX400 1024MB mem
> > according "Documentation/Changes" all >= update.
> >
> > Both kernels compiled *_without_* modules:
> > lilo.conf with append="ether=0,0,3,eth0".
> > Ethernet doesn't work anymore,
> > with 2.2.19pre#aa#, 2.2.20pre#aa# perfect.
> >
> > Both kernels compiled with 3c59x as module:
> > modules.conf:
> > alias eth0 3c59x
> > options 3c59x options=3
> > obviously without append in lilo.conf.
> > Ethernet works as usual.
> >
> > No difference on all other application.
> 
> Net drivers which use the new alloc_etherdev API do not
> support the `ether=' kernel boot option.
> 
> Going back to the old init_etherdev() API will make it
> work again.
> 
> --- linux-2.4.10-pre14/drivers/net/3c59x.c      Sat Sep 22 10:41:53 2001
> +++ linux-akpm/drivers/net/3c59x.c      Sat Sep 22 12:59:07 2001
> @@ -984,7 +984,7 @@ static int __devinit vortex_probe1(struc
> 
>         print_name = pdev ? pdev->slot_name : "3c59x";
> 
> -       dev = alloc_etherdev(sizeof(*vp));
> +       dev = init_etherdev(NULL, sizeof(*vp));
>         retval = -ENOMEM;
>         if (!dev) {
>                 printk (KERN_ERR PFX "unable to allocate etherdev, aborting\n");
> @@ -1328,9 +1328,6 @@ static int __devinit vortex_probe1(struc
>                 pci_save_state(vp->pdev, vp->power_state);
>                 acpi_set_WOL(dev);
>         }
> -       retval = register_netdev(dev);
> -       if (retval == 0)
> -               return 0;
> 
>  free_ring:
>         pci_free_consistent(pdev,
> @@ -1341,6 +1338,7 @@ free_ring:
>  free_region:
>         if (vp->must_free_region)
>                 release_region(ioaddr, vci->io_size);
> +       unregister_netdevice(dev);
>         kfree (dev);
>         printk(KERN_ERR PFX "vortex_probe1 fails.  Returns %d\n", retval);
>  out:

Does not work, patched against 2.4.9-pre14aa1.

Returned (grin ...) ... to modules.

Regards

Mario, not in lkml.

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

* 2.4.10: 3c59x: buggy?
  2001-09-22 20:08 ` Andrew Morton
  2001-09-22 23:37   ` Mario Vanoni
@ 2001-09-24  0:54   ` Mario Vanoni
  1 sibling, 0 replies; 4+ messages in thread
From: Mario Vanoni @ 2001-09-24  0:54 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel@vger.kernel.org

2.4.10 works on a SMP and an UP perfectly,
except the ethernet with 3C905 COMBO.

UP:  works with or without enabled modules.

SMP: works _only_ with modularized kernel,
     only needed module: 3c59x.

Regards

Mario, not in lkml.

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

end of thread, other threads:[~2001-09-23 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-22 20:21 2.4.9-pre13aa1 & 2.4.9-pre14: SMP + 3c59x: feature/bug? Mario Vanoni
2001-09-22 20:08 ` Andrew Morton
2001-09-22 23:37   ` Mario Vanoni
2001-09-24  0:54   ` 2.4.10: 3c59x: buggy? Mario Vanoni

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