From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: "Tobias Diedrich" <ranma+kernel@tdiedrich.de>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
"Kernel Testers List" <kernel-testers@vger.kernel.org>,
"Jeff Garzik" <jeff@garzik.org>,
"Yinghai Lu" <yhlu.kernel@gmail.com>
Subject: Re: [Bug #11358] net: forcedeth call restore mac addr in nv_shutdown path
Date: Sun, 31 Aug 2008 11:02:46 -0700 [thread overview]
Message-ID: <86802c440808311102jffbaa48n4c5b46d8a9ba1d0@mail.gmail.com> (raw)
In-Reply-To: <20080831130904.GA4070@yamamaya.is-a-geek.org>
On Sun, Aug 31, 2008 at 6:09 AM, Tobias Diedrich
<ranma+kernel@tdiedrich.de> wrote:
> Tobias Diedrich wrote:
>> I got around to try kexec and found that on 2.6.27-rc5, without
>> Yinghai Lu's patch, when I kexec while forecdeth is loaded I get the
>> following when the new kernel tries to load the module (on my Asus
>> M2N-SLI Deluxe):
>>
>> |Aug 31 10:10:42 melchior kernel: [ 10.578053] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61.
>> |Aug 31 10:10:42 melchior kernel: [ 10.578256] forcedeth 0000:00:08.0: BAR 0: error updating (0xfe02a000 != 0x000000)
>> |Aug 31 10:10:42 melchior kernel: [ 10.580901] forcedeth 0000:00:08.0: enabling device (0000 -> 0003)
>> |Aug 31 10:10:42 melchior kernel: [ 10.581405] ACPI: PCI Interrupt Link [APCH] enabled at IRQ 22
>> |Aug 31 10:10:42 melchior kernel: [ 10.581509] forcedeth 0000:00:08.0: PCI INT A -> Link[APCH] -> GSI 22 (level, low) -> IRQ 22
>> |Aug 31 10:10:42 melchior kernel: [ 10.581699] forcedeth 0000:00:08.0: setting latency timer to 64
>> |Aug 31 10:10:42 melchior kernel: [ 10.581748] forcedeth 0000:00:08.0: Invalid Mac address detected: ff:ff:ff:ff:ff:ff
>> |Aug 31 10:10:42 melchior kernel: [ 10.581936] forcedeth 0000:00:08.0: Please complain to your hardware vendor. Switching to a random MAC.
>> |Aug 31 10:10:42 melchior kernel: [ 15.981960] forcedeth 0000:00:08.0: open: Could not find a valid PHY.
>> |Aug 31 10:10:42 melchior kernel: [ 15.982131] forcedeth 0000:00:08.0: PCI INT A disabled
>> |Aug 31 10:10:42 melchior kernel: [ 15.982283] forcedeth: probe of 0000:00:08.0 failed with error -12
>> |Aug 31 10:10:42 melchior kernel: [ 16.017545] forcedeth 0000:00:09.0: BAR 0: error updating (0xfe027000 != 0x000000)
>> |Aug 31 10:10:42 melchior kernel: [ 16.017766] forcedeth 0000:00:09.0: enabling device (0000 -> 0003)
>> |Aug 31 10:10:42 melchior kernel: [ 16.018720] ACPI: PCI Interrupt Link [AMC1] enabled at IRQ 21
>> |Aug 31 10:10:42 melchior kernel: [ 16.018839] forcedeth 0000:00:09.0: PCI INT A -> Link[AMC1] -> GSI 21 (level, low) -> IRQ 21
>> |Aug 31 10:10:42 melchior kernel: [ 16.019050] forcedeth 0000:00:09.0: setting latency timer to 64
>> |Aug 31 10:10:42 melchior kernel: [ 16.019129] forcedeth 0000:00:09.0: Invalid Mac address detected: ff:ff:ff:ff:ff:ff
>> |Aug 31 10:10:42 melchior kernel: [ 16.019339] forcedeth 0000:00:09.0: Please complain to your hardware vendor. Switching to a random MAC.
>> |Aug 31 10:10:42 melchior kernel: [ 21.399400] forcedeth 0000:00:09.0: open: Could not find a valid PHY.
>> |Aug 31 10:10:42 melchior kernel: [ 21.399572] forcedeth 0000:00:09.0: PCI INT A disabled
>> |Aug 31 10:10:42 melchior kernel: [ 21.399723] forcedeth: probe of 0000:00:09.0 failed with error -12
>>
>> If I rmmod forcedeth before kexec, it loads fine later.
> [...]
>> Maybe also calling nv_restore_phy() and/or pci_release_regions() in
>> the shutdown hook would help.
>>
>> TODO:
>> Try with the patch, maybe try nv_restore_phy, test if WOL is
>> affected by the patch.
>
> I just tried with the patch and both options above in the shutdown
> path and the kexec'd kernel still had the same problems as above.
>
> Interestingly the message comes from drivers/pci/setup-res.c, where
> it updates the BAR register and reads it back to make sure it was
> updated and somehow reads back zeroes?
>
> I wonder what's going on there, that should never happen AFAIK...
> Maybe the pci device was not properly reenabled, but OTOH when I
> just rmmod before kexec it seems to work and nv_remove also calls
> pci_disable_device()...
in addition to this patch, you may need another patch from Rafael...,
that one fix the MSI...etc,
YH
next prev parent reply other threads:[~2008-08-31 18:02 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 19:46 2.6.27-rc5-git2: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-08-30 19:46 ` [Bug #11141] no battery or DC status - Dell i1501 Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11207] VolanoMark regression with 2.6.27-rc1 Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11191] 2.6.26-git8: spinlock lockup in c1e_idle() Rafael J. Wysocki
2008-09-01 20:46 ` Mikhail Kshevetskiy
2008-09-01 21:20 ` Thomas Gleixner
2008-08-30 19:50 ` [Bug #11209] 2.6.27-rc1 process time accounting Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11215] INFO: possible recursive locking detected ps2_command Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11210] libata badness Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11220] Screen stays black after resume Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11230] Kconfig no longer outputs a .config with freshly updated defconfigs Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11224] Only three cores found on quad-core machine Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11237] corrupt PMD after resume Rafael J. Wysocki
2008-08-30 21:49 ` Alan Jenkins
2008-08-30 22:04 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11271] BUG: fealnx in 2.6.27-rc1 Rafael J. Wysocki
2008-09-01 17:02 ` Jaswinder Singh
2008-09-01 17:06 ` Arjan van de Ven
2008-09-01 17:27 ` Jaswinder Singh
2008-09-01 21:18 ` Francois Romieu
2008-08-30 19:50 ` [Bug #11264] Invalid op opcode in kernel/workqueue Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11276] build error: CONFIG_OPTIMIZE_INLINING=y causes gcc 4.2 to do stupid things Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11272] BUG: parport_serial in 2.6.27-rc1 for NetMos Technology PCI 9835 Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11279] 2.6.27-rc0 Power Bugs with HP/Compaq Laptops Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11335] 2.6.27-rc2-git5 BUG: unable to handle kernel paging request Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11334] myri10ge: use ioremap_wc: compilation failure on ARM Rafael J. Wysocki
2008-08-31 7:38 ` Martin Michlmayr
2008-08-30 19:50 ` [Bug #11308] tbench regression on each kernel release from 2.6.22 -> 2.6.28 Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11340] LTP overnight run resulted in unusable box Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11336] 2.6.27-rc2:stall while mounting root fs Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11357] Can not boot up with zd1211rw USB-Wlan Stick Rafael J. Wysocki
2008-08-31 16:30 ` John W. Linville
2008-08-31 19:47 ` Rafael J. Wysocki
2008-09-20 14:05 ` Steven Rostedt
2008-08-30 19:50 ` [Bug #11355] Regression in 2.6.27-rc2 when cross-building the kernel Rafael J. Wysocki
2008-08-30 21:34 ` Larry Finger
2008-08-30 19:50 ` [Bug #11343] SATA Cold Boot Problems with 2.6.27-rc[23] on nVidia 680i Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11358] net: forcedeth call restore mac addr in nv_shutdown path Rafael J. Wysocki
2008-08-31 8:41 ` Tobias Diedrich
2008-08-31 13:09 ` Tobias Diedrich
2008-08-31 18:02 ` Yinghai Lu [this message]
2008-08-30 19:50 ` [Bug #11361] my servers with nvidia mcp55 nic don't work with msi in second kernel by kexec Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11382] e1000e: 2.6.27-rc1 corrupts EEPROM/NVM Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11388] 2.6.27-rc3 warns about MTRR range; only 3 of 16gb of memory is usable Rafael J. Wysocki
2008-08-30 21:29 ` Yinghai Lu
2008-08-30 21:39 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11398] hda_intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj Rafael J. Wysocki
2008-08-31 10:39 ` Frans Pop
2008-08-30 19:50 ` [Bug #11407] suspend: unable to handle kernel paging request Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11404] BUG: in 2.6.23-rc3-git7 in do_cciss_intr Rafael J. Wysocki
2008-09-04 18:47 ` Randy Dunlap
2008-08-30 19:50 ` [Bug #11403] 2.6.27-rc2 USB suspend regression Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11409] build issue #564 for v2.6.27-rc4 : undefined reference to `NS8390p_init' Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11410] SLUB list_lock vs obj_hash.lock Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11435] oops due to smp_call_function_single changes Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11439] [2.6.27-rc4-git4] compilation warnings Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11441] lots of 'in_atomic():1, irqs_disabled():0' with software-raid1 Rafael J. Wysocki
2008-09-03 19:44 ` thunder7
2008-09-03 20:00 ` Rafael J. Wysocki
2008-09-04 5:01 ` Neil Brown
2008-08-30 19:50 ` [Bug #11438] Upcoming oops in lockdep Rafael J. Wysocki
2008-08-30 21:36 ` Peter Zijlstra
2008-09-01 4:01 ` Arjan van de Ven
2008-09-01 11:48 ` Rafael J. Wysocki
2008-09-01 14:48 ` Arjan van de Ven
2008-08-30 19:50 ` [Bug #11451] /proc/acpi/ibm/wan stopped appearing Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11442] btusb hibernation/suspend breakage in current -git Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11452] md (regression): reboot/shutdown hangs Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11460] 2.6.27-rc3 to -rc4 regression: init 0 hangs in halt Rafael J. Wysocki
2008-08-30 22:20 ` David Greaves
2008-09-01 2:54 ` Neil Brown
2008-09-01 9:23 ` David Greaves
2008-08-30 19:50 ` [Bug #11459] kernel crash after wifi connection established Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11461] build breakage Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11462] v2.6.27-rc5 regression: mtd/block device issue with cmd_filter Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11463] sshd hangs on close Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11464] BUG: kernel-2.6.27-rc5: soft lockup - CPU#X stuck for 61s! Rafael J. Wysocki
2008-08-31 2:27 ` Herton Ronaldo Krzesinski
2008-08-31 11:56 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11465] Linux-2.6.27-rc5, drm errors in log Rafael J. Wysocki
2008-08-31 1:21 ` Gene Heskett
2008-08-30 21:32 ` 2.6.27-rc5-git2: Reported regressions from 2.6.26 David Miller
2008-08-30 21:42 ` Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2008-09-12 18:59 2.6.27-rc6-git2: " Rafael J. Wysocki
2008-09-12 19:06 ` [Bug #11358] net: forcedeth call restore mac addr in nv_shutdown path Rafael J. Wysocki
2008-09-06 21:24 2.6.27-rc5-git8: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-09-06 21:30 ` [Bug #11358] net: forcedeth call restore mac addr in nv_shutdown path Rafael J. Wysocki
2008-08-23 18:07 2.6.27-rc4-git1: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-08-23 18:10 ` [Bug #11358] net: forcedeth call restore mac addr in nv_shutdown path Rafael J. Wysocki
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=86802c440808311102jffbaa48n4c5b46d8a9ba1d0@mail.gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=jeff@garzik.org \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ranma+kernel@tdiedrich.de \
--cc=rjw@sisk.pl \
/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®