From: Brice Goglin <brice@myri.com>
To: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Regression: myri10ge driver in 2.6.26
Date: Wed, 23 Jul 2008 00:52:16 +0200 [thread overview]
Message-ID: <488664A0.3040407@myri.com> (raw)
In-Reply-To: <48865B04.6030707@myri.com>
Brice Goglin wrote:
> Lukas Hejtmanek wrote:
>
>> Hello,
>>
>> the myri10ge driver in 2.6.26 vanila kernel does not work.
>>
>> Loading the driver produces only:
>> [ 86.641632] myri10ge: Version 1.3.99-1.347
>> [ 86.641632] PCI: Setting latency timer of device 0000:07:00.0 to 64
>>
>> and nothing more.
>>
>
> I have seen one machine with a similar problem. Does reverting
> 014377a1df693ff30a9e8b69f0bbb0a38e601f75 help? Also could you check that
> current Linus' git works fine? (just get the driver source from there,
> no need to build the whole tree)
>
If the above is correct, then patch below should fix it. If so, I'll
push this into the next stable 2.6.26.x release.
Brice
--- linux.old/drivers/net/myri10ge/myri10ge.c 2008-07-23 00:38:52.000000000 +0200
+++ linux/drivers/net/myri10ge/myri10ge.c 2008-07-23 00:43:16.000000000 +0200
@@ -3213,26 +3213,26 @@
for (i = 0; i < ETH_ALEN; i++)
netdev->dev_addr[i] = mgp->mac_addr[i];
- /* allocate rx done ring */
- bytes = mgp->max_intr_slots * sizeof(*mgp->ss.rx_done.entry);
- mgp->ss.rx_done.entry = dma_alloc_coherent(&pdev->dev, bytes,
- &mgp->ss.rx_done.bus, GFP_KERNEL);
- if (mgp->ss.rx_done.entry == NULL)
- goto abort_with_ioremap;
- memset(mgp->ss.rx_done.entry, 0, bytes);
-
myri10ge_select_firmware(mgp);
status = myri10ge_load_firmware(mgp);
if (status != 0) {
dev_err(&pdev->dev, "failed to load firmware\n");
- goto abort_with_rx_done;
+ goto abort_with_ioremap;
}
+ /* allocate rx done ring */
+ bytes = mgp->max_intr_slots * sizeof(*mgp->ss.rx_done.entry);
+ mgp->ss.rx_done.entry = dma_alloc_coherent(&pdev->dev, bytes,
+ &mgp->ss.rx_done.bus, GFP_KERNEL);
+ if (mgp->ss.rx_done.entry == NULL)
+ goto abort_with_firmware;
+ memset(mgp->ss.rx_done.entry, 0, bytes);
+
status = myri10ge_reset(mgp);
if (status != 0) {
dev_err(&pdev->dev, "failed reset\n");
- goto abort_with_firmware;
+ goto abort_with_rx_done;
}
pci_set_drvdata(pdev, mgp);
@@ -3258,7 +3258,7 @@
* is set to correct value if MSI is enabled */
status = myri10ge_request_irq(mgp);
if (status != 0)
- goto abort_with_firmware;
+ goto abort_with_rx_done;
netdev->irq = pdev->irq;
myri10ge_free_irq(mgp);
@@ -3287,14 +3287,14 @@
abort_with_state:
pci_restore_state(pdev);
-abort_with_firmware:
- myri10ge_dummy_rdma(mgp, 0);
-
abort_with_rx_done:
bytes = mgp->max_intr_slots * sizeof(*mgp->ss.rx_done.entry);
dma_free_coherent(&pdev->dev, bytes,
mgp->ss.rx_done.entry, mgp->ss.rx_done.bus);
+abort_with_firmware:
+ myri10ge_dummy_rdma(mgp, 0);
+
abort_with_ioremap:
iounmap(mgp->sram);
next prev parent reply other threads:[~2008-07-22 22:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-22 15:04 Regression: myri10ge driver in 2.6.26 Lukas Hejtmanek
2008-07-22 21:29 ` Willy Tarreau
2008-07-22 22:11 ` Brice Goglin
2008-07-22 22:52 ` Brice Goglin [this message]
2008-07-23 8:06 ` Lukas Hejtmanek
2008-07-23 8:17 ` Brice Goglin
2008-07-23 12:54 ` Lukas Hejtmanek
2008-07-23 20:17 ` Brice Goglin
2008-07-24 13:43 ` Lukas Hejtmanek
2008-07-24 17:12 ` Brice Goglin
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=488664A0.3040407@myri.com \
--to=brice@myri.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xhejtman@ics.muni.cz \
/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