From: "Joachim Deguara" <joachim.deguara@amd.com>
To: Michael Chan <mchan@broadcom.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
lkml List <linux-kernel@vger.kernel.org>,
Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
netdev <netdev@vger.kernel.org>,
linux-acpi@vger.kernel.org
Subject: Re: [REGRESSION] tg3 dead after s2ram
Date: Thu, 2 Aug 2007 11:15:05 +0200 [thread overview]
Message-ID: <200708021115.10812.joachim.deguara@amd.com> (raw)
In-Reply-To: <200708021005.45773.joachim.deguara@amd.com>
On Thursday 02 August 2007 10:05:44 Joachim Deguara wrote:
> On Wednesday 01 August 2007 23:00:23 Michael Chan wrote:
> > On Wed, 2007-08-01 at 10:47 -0700, Michael Chan wrote:
> > The problem is that memory enable and bus master were not set in PCI
> > register 4 after resume. This also explains the register access
> > failures.
Found it! I did the instrumentation and found pci_restore was not being
called. Why, because this code failed:
printk(KERN_INFO "tg3_resume: entered\n");
if (!netif_running(dev))
return 0;
printk(KERN_INFO "tg3_resume: before restore\n");
Bad dmesg:
[ 0.581236] PM: Writing back config space on device 0000:07:00.0 at offset
4
(was 4, writing d0200004)
[ 0.581259] tg3_resume: entered
[ 0.581276] PM: Writing back config space on device 0000:08:09.0 at offset
f
(was c001ff, writing 1c0010b)
why is this, oh damn it is because I was calling openSUSE's "powersave -u" and
not s2ram directly. powersave is disabling the network and the tg3 will not
restore the pci device like this! right?
here is a good dmesg with by calling s2ram:
[ 0.577085] PM: Writing back config space on device 0000:07:00.0 at offset
4
(was 4, writing d0200004)
[ 0.577108] tg3_resume: entered
[ 0.577109] tg3_resume: before restore
[ 0.577140] PM: Writing back config space on device 0000:08:04.0 at offset
c
(was 0, writing ffff0000)
[ 0.577171] PM: Writing back config space on device 0000:08:04.0 at offset
1
(was 2b00000, writing 2b00006)
[ 0.577304] tg3_resume: after set_power_state
[ 0.579119] tg3: eth0: Link is down.
[ 0.786266] ata2: SATA link down (SStatus 0 SControl 310)
[ 0.848176] tg3_resume: after tg3_restart_hw
[ 0.848265] PM: Writing back config space on device 0000:08:09.0 at offset
f
(was c001ff, writing 1c0010b)
Seams like even if powersave shuts down the network that the device should
still work after a suspend to ram, so who is at fault here?
-Joachim
next prev parent reply other threads:[~2007-08-02 9:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200707311128.32528.joachim.deguara@amd.com>
2007-08-01 0:45 ` [REGRESSION] tg3 dead after s2ram Andrew Morton
2007-08-01 7:53 ` Michael Chan
2007-08-01 8:01 ` Joachim Deguara
2007-08-01 17:47 ` Michael Chan
2007-08-01 21:00 ` Michael Chan
2007-08-02 8:05 ` Joachim Deguara
2007-08-02 9:15 ` Joachim Deguara [this message]
2007-08-02 9:23 ` David Miller
2007-08-02 19:10 ` Michael Chan
2007-08-02 22:06 ` David Miller
2007-08-02 23:38 ` Michael Chan
2007-08-03 9:47 ` Joachim Deguara
2007-08-04 3:57 ` David Miller
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=200708021115.10812.joachim.deguara@amd.com \
--to=joachim.deguara@amd.com \
--cc=akpm@linux-foundation.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchan@broadcom.com \
--cc=michal.k.k.piotrowski@gmail.com \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox