From: Harris, James R <james.r.harris at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] Debugging /sys driver_override affecting driver binding
Date: Mon, 02 Jul 2018 20:57:09 +0000 [thread overview]
Message-ID: <D1894349-BFEC-44E8-955C-C494239EE806@intel.com> (raw)
In-Reply-To: 00E9253F-838F-44E4-BCEC-69DDA9B7A944@oracle.com
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
<snip>
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-pci seems to indicate that something must be writing “nvme” to that file – i.e. it’s not done internally by the kernel. Maybe our setup.sh script should at least check for this – i.e. don’t reset driver_override to (null) but print a warning message if it finds it set to “nvme”.
I agree completely, but so far my find/grep (for strings “override” and "30:00.0”) has failed to locate the source; again, neither below my real rootfs’s /etc nor anywhere on my initramfs. I also checked my kernel cmdline. The mystery continues. Like you, I was also considering modifying the SPDK’s scripts/setup.sh to inspect driver_override and at least put out some kind of message if the contents is not “(null)”.
One of my colleagues here suggested using ftrace to see what process is setting the driver_override.
Can you add “ftrace=function ftrace_filter=driver_override_store” to your kernel command line? Then after booting, just “cat /sys/kernel/debug/tracing/trace”.
-Jim
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4816 bytes --]
next reply other threads:[~2018-07-02 20:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-02 20:57 Harris, James R [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-07-03 22:35 [SPDK] Debugging /sys driver_override affecting driver binding Lance Hartmann ORACLE
2018-07-02 19:42 Lance Hartmann ORACLE
2018-07-02 16:54 Harris, James R
2018-06-26 17:17 Lance Hartmann ORACLE
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=D1894349-BFEC-44E8-955C-C494239EE806@intel.com \
--to=spdk@lists.01.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