From: Igor Bezukh <Igor@galilsoft.com>
To: linux-hotplug@vger.kernel.org
Subject: A question about hotplug and suspend-resume functionallity
Date: Tue, 08 Jul 2014 17:02:57 +0000 [thread overview]
Message-ID: <1404838924725.18833@galilsoft.com> (raw)
Hi,
We are testing Intel Gigabit adapter driver (igb) under Fedora 20, kernel 3.14.4 for the following use-case:
(*) Adapter is connected to the PCIE slot
(*) We put the system under suspend by running pm-suspend from user-space
(*) Remove the adapter from the PCIE slot
(*) Wake up the system
Currently, we got kernel panics and the system gets stuck.
My questions are -
1) in order to support hot-unplugging in igb driver, should I implement the check of device presence in igb_resume
function?
2) After the system wakes up, I see in dmesg that the PCI device function igb refuses to change power state and remains in PCI power state D3.
can I assume that after suspend-resume if the function remains in D3 and refuses to move to D1 then hot-unplug event has occured?
Thanks and BR,
Igor Bezukh
next reply other threads:[~2014-07-08 17:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 17:02 Igor Bezukh [this message]
2014-07-08 17:29 ` A question about hotplug and suspend-resume functionallity Greg KH
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=1404838924725.18833@galilsoft.com \
--to=igor@galilsoft.com \
--cc=linux-hotplug@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).