public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdlab.org>
To: mingo@elte.hu, linux-kernel@vger.kernel.org,
	linux-net@vger.kernel.org, netdev@oss.sgi.com,
	jgarzik@mandrakesoft.com
Subject: Re: [patch] netconsole-2.4.10-B1
Date: Sun, 30 Sep 2001 13:25:59 -0700	[thread overview]
Message-ID: <3BB77FD7.696CFC58@osdlab.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0109291146440.1715-100000@localhost.localdomain> <3BB77591.C1349C09@osdlab.org>

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

"Randy.Dunlap" wrote:
> 
> Ingo Molnar wrote:
> >
> >
> > does it make more sense now? :)
> 
> Thanks for the definitions.  I can work with them,
> although I think that there's much room for improvement...


and I did.  Eliminating typos on 'insmod netconsole.o ...' helps.  :)

Here's 3c59x.c patched for netconsole (HAVE_POLL_CONTROLLER).

Ingo, you _are_ planning to use most or all of Andreas's patches,
aren't you?

I'm interested in using netconsole early (during boot).
Any problems doing that, other than getting module parameters
to it?  I can fix that part.

~Randy

[-- Attachment #2: 3c59x-poll.patch --]
[-- Type: text/plain, Size: 1498 bytes --]

--- linux/drivers/net/3c59x.c.org	Sun Aug 12 12:27:18 2001
+++ linux/drivers/net/3c59x.c	Sun Sep 30 12:37:39 2001
@@ -842,6 +842,7 @@
 static int vortex_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
 static void vortex_tx_timeout(struct net_device *dev);
 static void acpi_set_WOL(struct net_device *dev);
+static void vorboom_poll(struct net_device *dev);
 \f
 /* This driver uses 'options' to pass the media type, full-duplex flag, etc. */
 /* Option count limit only -- unlimited interfaces are supported. */
@@ -1328,6 +1329,9 @@
 	dev->set_multicast_list = set_rx_mode;
 	dev->tx_timeout = vortex_tx_timeout;
 	dev->watchdog_timeo = (watchdog * HZ) / 1000;
+#ifdef HAVE_POLL_CONTROLLER
+	dev->poll_controller = &vorboom_poll;
+#endif
 	if (pdev && vp->enable_wol) {
 		vp->pm_state_valid = 1;
  		pci_save_state(vp->pdev, vp->power_state);
@@ -2295,6 +2299,29 @@
 handler_exit:
 	spin_unlock(&vp->lock);
 }
+
+#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 vorboom_poll (struct net_device *dev)
+{
+	struct vortex_private *vp = (struct vortex_private *)dev->priv;
+
+	disable_irq(dev->irq);
+	if (vp->full_bus_master_tx)
+		boomerang_interrupt(dev->irq, dev, 0);
+	else
+		vortex_interrupt(dev->irq, dev, 0);
+	enable_irq(dev->irq);
+}
+
+#endif
+
 
 static int vortex_rx(struct net_device *dev)
 {

  reply	other threads:[~2001-09-30 20:29 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-26 20:04 [patch] netconsole - log kernel messages over the network. 2.4.10 Ingo Molnar
2001-09-26 19:36 ` Marcelo Tosatti
2001-09-26 21:15   ` jamal
2001-09-27  5:45     ` Ingo Molnar
2001-09-26 21:29   ` Andreas Dilger
2001-09-26 23:46     ` Andreas Dilger
2001-09-27  5:28       ` Ingo Molnar
2001-09-27  6:38   ` [patch] netconsole-2.4.10-B1 Ingo Molnar
2001-09-28  7:08     ` Andreas Dilger
2001-09-29  1:34       ` Randy.Dunlap
2001-09-29  9:52         ` Ingo Molnar
2001-09-29 16:32           ` John Alvord
2001-09-29 16:40           ` Pekka Savola
2001-09-29 22:37             ` Andreas Dilger
2001-09-30  3:38           ` Kenneth Johansson
2001-09-30  7:52             ` Rik van Riel
2001-09-30 10:40               ` Riley Williams
2001-09-30 10:48               ` Glynn Clements
2001-09-30 12:25               ` Richard Gooch
2001-10-01  7:35                 ` Ingo Molnar
2001-10-01 14:55                   ` Oliver Xymoron
2001-10-01 16:28                   ` Richard Gooch
2001-10-01  8:47               ` Henning P. Schmiedehausen
2001-10-01 16:03                 ` Andreas Dilger
2001-09-30 21:18             ` H. Peter Anvin
2001-09-30 16:00           ` Marcus Sundberg
2001-10-01  7:39             ` Ingo Molnar
2001-09-30 19:42           ` Randy.Dunlap
2001-09-30 20:25             ` Randy.Dunlap [this message]
2001-10-01  4:09               ` Andreas Dilger
2001-10-03  1:09                 ` [patch] netconsole-2.4.10-C2 Randy.Dunlap
2001-10-01 16:58       ` [patch] netconsole-2.4.10-B1 Randy.Dunlap

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=3BB77FD7.696CFC58@osdlab.org \
    --to=rddunlap@osdlab.org \
    --cc=jgarzik@mandrakesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=netdev@oss.sgi.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