mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Herbert Pötzl" <herbert@13thfloor.at>
To: Peter Osterlund <petero2@telia.com>
Cc: Matt Mackall <mpm@selenic.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH][RFC] Netconsole debugging tool for 2.6
Date: Wed, 27 Aug 2003 23:08:30 +0200	[thread overview]
Message-ID: <20030827210830.GF26817@www.13thfloor.at> (raw)
In-Reply-To: <m2vfsk16iv.fsf@p4.localdomain>

On Tue, Aug 26, 2003 at 10:57:28PM +0200, Peter Osterlund wrote:
> Matt Mackall <mpm@selenic.com> writes:
> 
> > I've decided to take a stab at resurrecting Ingo's netconsole patch.
> > 
> > For those who missed it the first time around (for 2.4.10), this
> > module is a "serial console over networks" which lets you catch kernel
> > messages, oopses and so on that can't be caught by syslog.

hmm, sounds somewhat familiar, could you give
the location of the patches/tools/etc ...

> > I've also added support for a third NIC (TLAN). Accepting patches for
> > other cards (only about 10 lines of code each).

hmm, which cards are (un)supported ...
(read: I'm interrested ;)

TIA,
Herbert

> 
> It works fine on my computer with the patch below. The only problem is
> that it taints the kernel because of missing module license information.
> 
> Netconsole support for the 8139too NIC.
> 
> 
>  linux-petero/Documentation/networking/netlogging.txt |    1 
>  linux-petero/drivers/net/8139too.c                   |   22 +++++++++++++++++++
>  2 files changed, 23 insertions(+)
> 
> diff -puN Documentation/networking/netlogging.txt~netconsole-8139too Documentation/networking/netlogging.txt
> --- linux/Documentation/networking/netlogging.txt~netconsole-8139too	2003-08-26 22:21:43.000000000 +0200
> +++ linux-petero/Documentation/networking/netlogging.txt	2003-08-26 22:21:43.000000000 +0200
> @@ -52,3 +52,4 @@ Currently supported network drivers:
>   eepro100
>   tulip
>   tlan
> + 8139too
> diff -puN drivers/net/8139too.c~netconsole-8139too drivers/net/8139too.c
> --- linux/drivers/net/8139too.c~netconsole-8139too	2003-08-26 22:22:06.000000000 +0200
> +++ linux-petero/drivers/net/8139too.c	2003-08-26 22:26:46.000000000 +0200
> @@ -625,6 +625,7 @@ static struct net_device_stats *rtl8139_
>  static void rtl8139_set_rx_mode (struct net_device *dev);
>  static void __set_rx_mode (struct net_device *dev);
>  static void rtl8139_hw_start (struct net_device *dev);
> +static void poll_8139 (struct net_device *dev);
>  
>  #ifdef USE_IO_OPS
>  
> @@ -973,6 +974,9 @@ static int __devinit rtl8139_init_one (s
>  	dev->do_ioctl = netdev_ioctl;
>  	dev->tx_timeout = rtl8139_tx_timeout;
>  	dev->watchdog_timeo = TX_TIMEOUT;
> +#ifdef HAVE_POLL_CONTROLLER
> +	dev->poll_controller = &poll_8139;
> +#endif
>  
>  	/* note: the hardware is not capable of sg/csum/highdma, however
>  	 * through the use of skb_copy_and_csum_dev we enable these
> @@ -2596,6 +2600,24 @@ static int rtl8139_resume (struct pci_de
>  
>  #endif /* CONFIG_PM */
>  
> +#ifdef HAVE_POLL_CONTROLLER
> +
> +/*
> + * Polling 'interrupt' - used by things like netconsole to send skbs
> + * without having to re-enable interrupts. It's not called while
> + * the interrupt routine is executing.
> + */
> +
> +static void poll_8139 (struct net_device *dev)
> +{
> +       disable_irq(dev->irq);
> +       rtl8139_interrupt (dev->irq, dev, NULL);
> +       enable_irq(dev->irq);
> +}
> +
> +#endif
> +
> +
>  
>  static struct pci_driver rtl8139_pci_driver = {
>  	.name		= DRV_NAME,
> 
> _
> 
> -- 
> Peter Osterlund - petero2@telia.com
> http://w1.894.telia.com/~u89404340
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2003-08-27 21:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11  8:55 Matt Mackall
2003-08-26 20:57 ` Peter Osterlund
2003-08-27 21:08   ` Herbert Pötzl [this message]
2003-08-27 21:14     ` J.A. Magallon
2003-08-28 12:38 ` Steffen Klassert
2003-08-12 14:13 Jon Burgess
2003-08-12 16:33 ` Matt Mackall
2003-08-12 17:09   ` Jeff Garzik
2003-08-12 17:39     ` Matt Mackall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030827210830.GF26817@www.13thfloor.at \
    --to=herbert@13thfloor.at \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpm@selenic.com \
    --cc=petero2@telia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®