mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesse Brandeburg <jesse.brandeburg@gmail.com>
To: Sai Bathina <sai.bathina@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.14.3 and page allocation failures..
Date: Wed, 25 Jan 2006 14:59:28 -0800	[thread overview]
Message-ID: <4807377b0601251459p76e4a6a1x1295ee3fd0cf95a5@mail.gmail.com> (raw)
In-Reply-To: <32e47b670601231255l16fa0fa5i20823aab0c213971@mail.gmail.com>

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

On 1/23/06, Sai Bathina <sai.bathina@gmail.com> wrote:
> Hi,
>      I am seeing page allocation errors and I have a snapshot of the
> /var/log/messages.
>
> My Hardware configs are
> Dell 750, using e1000 driver(e1000-6.2.15)

there is a leak in the 6.2.15 driver (this leak was not in the code
submitted to the kernel)

you can either use 6.3.9 or you can fix this by applying this attached
patch (or something similar)

Jesse

[-- Attachment #2: allocate_rx_buffer_change from 6.2.15-to-6.3.9.patch --]
[-- Type: application/octet-stream, Size: 873 bytes --]

--- linux-2.6.5-7.244/drivers/net/e1000/e1000_main.c.orgi	2006-01-12 22:03:43.147940808 -0600
+++ linux-2.6.5-7.244/drivers/net/e1000/e1000_main.c	2006-01-12 22:03:38.000000000 -0600
@@ -441,9 +441,14 @@ e1000_up(struct e1000_adapter *adapter)
 	e1000_configure_tx(adapter);
 	e1000_setup_rctl(adapter);
 	e1000_configure_rx(adapter);
-	for (i = 0; i < adapter->num_queues; i++)
-		adapter->alloc_rx_buf(adapter, &adapter->rx_ring[i],
-					adapter->rx_ring[i].count);
+	/* call E1000_DESC_UNUSED which always leaves
+	 * at least 1 descriptor unused to make sure
+	 * next_to_use != next_to_clean */
+	for (i = 0; i < adapter->num_rx_queues; i++) {
+		struct e1000_rx_ring *ring = &adapter->rx_ring[i];
+		adapter->alloc_rx_buf(adapter, ring,
+		                      E1000_DESC_UNUSED(ring));
+	}
 
 #ifdef CONFIG_PCI_MSI
 	if(adapter->hw.mac_type > e1000_82547_rev_2) {

  reply	other threads:[~2006-01-25 22:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1138048153.136509.119540@f14g2000cwb.googlegroups.com>
2006-01-23 20:55 ` Sai Bathina
2006-01-25 22:59   ` Jesse Brandeburg [this message]
2006-01-30 23:48     ` Sai Bathina

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=4807377b0601251459p76e4a6a1x1295ee3fd0cf95a5@mail.gmail.com \
    --to=jesse.brandeburg@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sai.bathina@gmail.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®