From: Keith Moore <keithmo@exmsft.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: 2.6.7-mm1 PCNet Problems under VMWare 4.5.2
Date: Wed, 23 Jun 2004 11:23:27 +0200 [thread overview]
Message-ID: <40D94C0F.6050400@exmsft.com> (raw)
I'm seeing problems running a 2.6.7-mm1 kernel with Fedora Core 2
running in a VMWare Workstation 4.5.2 VM. The kernel hangs trying to
bring up the (dhcp-enabled) eth0 interface.
I dug through the -mm1 patch, and the problem seems to be the changes at
the end of the pcnet32_interrupt() function (in drivers/net/pcnet32.c).
The relevant patch fragment is:
- /* Clear any other interrupt, and set interrupt enable. */
- lp->a.write_csr (ioaddr, 0, 0x7940);
+ /* Set interrupt enable. */
+ lp->a.write_csr (ioaddr, 0, 0x0040);
Reverting this one section of the patch makes eth0 happy again.
I poked around with the values written to the csr register, and it
appears the virtual PCNet-II adapter needs bit 0x0100 (initialzation
done) set. So, writing 0x0140 instead of 0x0040 seems to work well.
I have no idea how accurate VMWare's emulation of this adapter is, or if
this change may cause problems with other (physical) adapters.
KM
next reply other threads:[~2004-06-23 9:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-23 9:23 Keith Moore [this message]
2004-06-23 10:08 ` 2.6.7-mm1 PCNet Problems under VMWare 4.5.2 Esteve Espuña Sargatal
-- strict thread matches above, loose matches on Subject: below --
2004-06-23 14:26 Petr Vandrovec
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=40D94C0F.6050400@exmsft.com \
--to=keithmo@exmsft.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.