From: Alex Williamson <alex.williamson@redhat.com>
To: Sinan Kaya <okaya@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
Dennis Dalessandro <dennis.dalessandro@intel.com>,
Linux PCI <linux-pci@vger.kernel.org>
Subject: Re: RFC on PCI Device Lock
Date: Wed, 5 Sep 2018 11:37:35 -0600 [thread overview]
Message-ID: <20180905113735.3139120c@t450s.home> (raw)
In-Reply-To: <9e130f04-c570-b4ee-e040-b02c9ff80755@kernel.org>
On Wed, 5 Sep 2018 07:26:52 -0700
Sinan Kaya <okaya@kernel.org> wrote:
> On 9/4/2018 9:13 PM, Alex Williamson wrote:
> >> Let me know if I misunderstood you. I'll again wait for test feedback first.
> > Yep, that's essentially it. I assume we'd want to trickle this through
> > other interfaces and the hfi1 folks can look at whether they want to
> > drop their custom config save/restore in favor of using
> > pci_reset_function_locked(), which would do that for them.
> > pci_reset_bus() should also allow the caller to set a mask so vfio
> > doesn't worry about defaults changing in the core. Thanks,
> The testing was successful.
>
> "--- Comment #15 from Dennis (dennis.dalessandro@intel.com) ---
> I have tested the two new patches applied on top of 4.19-rc1 and they seem to
> be working as well."
>
> Before I post the code on the list, I want to make sure I capture your
> request correctly.
>
> You are asking for more APIs to have the mask feature. I can add
> slot and bus reset options to pci_reset_bus().
>
> If there are other functions that need mask feature, we can deal
> with them later as I want to focus on the regression short term.
>
> Though, it would be good to enumerate the functions with needed masks
> to start the conversation.
Well, if __pci_reset_function_locked() has this option, would only make
sense that these would as well:
pci_probe_reset_function()
pci_reset_function()
pci_reset_function_locked()
pci_try_reset_function()
Then I'd like to see the same sort of caller specification added to
pci_reset_bus() so that vfio can specify whether it's expecting a sbr
or slot reset. Thanks,
Alex
next prev parent reply other threads:[~2018-09-05 22:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-31 23:03 RFC on PCI Device Lock Sinan Kaya
2018-09-04 22:52 ` Alex Williamson
2018-09-05 1:12 ` Sinan Kaya
2018-09-05 2:46 ` Alex Williamson
2018-09-05 3:09 ` Sinan Kaya
2018-09-05 3:41 ` Sinan Kaya
2018-09-05 4:13 ` Alex Williamson
2018-09-05 14:26 ` Sinan Kaya
2018-09-05 17:37 ` Alex Williamson [this message]
2018-09-05 17:50 ` Sinan Kaya
2018-09-05 2:59 ` Dennis Dalessandro
2018-09-05 3:10 ` Sinan Kaya
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=20180905113735.3139120c@t450s.home \
--to=alex.williamson@redhat.com \
--cc=bhelgaas@google.com \
--cc=dennis.dalessandro@intel.com \
--cc=linux-pci@vger.kernel.org \
--cc=okaya@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 NNTP newsgroup(s).