From: Ivan Mercier <ivan.mercier@nexvision.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] Ethernet i210 (e1000 driver) on tegra K1
Date: Fri, 30 Oct 2015 12:07:34 +0100 [thread overview]
Message-ID: <56334F76.4040208@nexvision.fr> (raw)
Hi,
I'm using a ethernet controller intel i210
(http://www.commell.com.tw/product/Surveillance/MPX-210.htm) on my
nvidia tegra k1 jetson.
I not an expert with pci, but the only way to make it working in u-boot
(upstream) is with the workaround below.
E1000 is very common, so finding a critical bug in this driver seems
weird...
Do you think there is a bug in e1000.c or in tegra pci layer?
diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 2ba03ed..206884d 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -5186,7 +5186,7 @@ static int _e1000_transmit(struct e1000_hw *hw,
void *txpacket, int length)
txp = tx_base + tx_tail;
tx_tail = (tx_tail + 1) % 8;
- txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, nv_packet));
+ txp->buffer_addr = cpu_to_le64((unsigned long) nv_packet);
txp->lower.data = cpu_to_le32(hw->txd_cmd | length);
txp->upper.data = 0;
thank you
--
Best regards / Bien cordialement
Ivan Mercier
next reply other threads:[~2015-10-30 11:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 11:07 Ivan Mercier [this message]
2015-11-04 18:54 ` [U-Boot] Ethernet i210 (e1000 driver) on tegra K1 Stephen Warren
2015-11-05 3:49 ` Bin Meng
2015-11-09 17:21 ` Stephen Warren
2015-11-18 10:37 ` Marcel Ziswiler
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=56334F76.4040208@nexvision.fr \
--to=ivan.mercier@nexvision.fr \
--cc=u-boot@lists.denx.de \
/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