From: Chenbo Xia <chenbox@nvidia.com>
To: "dev@dpdk.org" <dev@dpdk.org>,
Anatoly Burakov <anatoly.burakov@intel.com>,
"jerinjacobk@gmail.com" <jerinjacobk@gmail.com>,
"nipun.gupta@amd.com" <nipun.gupta@amd.com>
Cc: "NBU-Contact-Thomas Monjalon (EXTERNAL)" <thomas@monjalon.net>,
"niketkandya@google.com" <niketkandya@google.com>
Subject: Question about why doing VFIO RESET after device open
Date: Mon, 6 May 2024 07:37:09 +0000 [thread overview]
Message-ID: <4C227746-F037-4BD9-8C0B-C6E8434C7C7C@nvidia.com> (raw)
Hi,
I am not sure why we are calling ioctl(vfio_dev_fd, VFIO_DEVICE_RESET) in pci_rte_vfio_setup_device()
, which is after opening the VFIO device fd. As I see in linux kernel, opening the vfio device fd will
trigger the device reset and put device into clean state. Another VFIO_DEVICE_RESET seems not needed?
Could anyone help confirm or correct me?
There was also a related question in community two years ago:
https://mails.dpdk.org/archives/dev/2022-September/251640.html
Thanks,
Chenbo
reply other threads:[~2024-05-06 7:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4C227746-F037-4BD9-8C0B-C6E8434C7C7C@nvidia.com \
--to=chenbox@nvidia.com \
--cc=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
--cc=jerinjacobk@gmail.com \
--cc=niketkandya@google.com \
--cc=nipun.gupta@amd.com \
--cc=thomas@monjalon.net \
/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).