From: Bjorn Helgaas <helgaas@kernel.org>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: a.dibacco.ks@gmail.com, Cornelia Huck <cohuck@redhat.com>,
kvm@vger.kernel.org, linux-pci@vger.kernel.org
Subject: [bugzilla-daemon@kernel.org: [Bug 216449] New: vfio-pci calls pci_bus_reset whenever a pci_release is triggered and refcnt is zero]
Date: Mon, 5 Sep 2022 06:32:15 -0500 [thread overview]
Message-ID: <20220905113215.GA584198@bhelgaas> (raw)
----- Forwarded message from bugzilla-daemon@kernel.org -----
https://bugzilla.kernel.org/show_bug.cgi?id=216449
I'm using vfio-pci to map an FPGA. I have an utility program that gets a file
descriptor for the device and does an mmap to read and write registers.
When I close the utility the FPGA is reset and all registers are gone.
I wonder if this is the correct behaviour, I understand that the
vfio_pci_try_bus_reset is performed only when refcnt reaches zero but, in case
of other drivers, like UIO the behaviour is different.
I expected to be able to close my utility and restart it and find the FPGA
registers at the last configured value.
The vfio_pci_try_bus_reset is in vfio_pci_disable that is called by
pci_release.
Probably even a module parameter to prevent calling vfio_pci_try_bus_reset
could be useful.
reply other threads:[~2022-09-05 11:32 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=20220905113215.GA584198@bhelgaas \
--to=helgaas@kernel.org \
--cc=a.dibacco.ks@gmail.com \
--cc=alex.williamson@redhat.com \
--cc=cohuck@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-pci@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