[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACK8Z6E_zbUguY2qUE5Jbgzj3fwcQ_xMVxHYs_VeY5Hm=S4zGQ@mail.gmail.com>
Date: Thu, 29 Apr 2021 09:59:39 -0700
From: Rajat Jain <rajatja@...gle.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>
Cc: Oliver Neukum <oneukum@...e.com>,
David Laight <David.Laight@...lab.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Alan Stern <stern@...land.harvard.edu>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux PCI <linux-pci@...r.kernel.org>,
"open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:"
<linux-usb@...r.kernel.org>, Bjorn Helgaas <helgaas@...nel.org>,
Rajat Jain <rajatxjain@...il.com>,
Jesse Barnes <jsbarnes@...gle.com>,
Dmitry Torokhov <dtor@...gle.com>
Subject: Re: [PATCH v2 2/2] pci: Support "removable" attribute for PCI devices
On Thu, Apr 29, 2021 at 2:58 AM Rafael J. Wysocki <rafael@...nel.org> wrote:
>
> On Thu, Apr 29, 2021 at 11:03 AM Oliver Neukum <oneukum@...e.com> wrote:
> >
> > Am Mittwoch, den 28.04.2021, 14:21 +0200 schrieb Rafael J. Wysocki:
> >
> > > In principle, in the wake of Thunderbolt every PCI driver handling
> > > PCIe devices needs to be able to deal with a device that's gone away
> > > without notice, because in principle any PCIe device can be included
> > > into a Thunderbolt docking station which may go away as a whole
> > > without notice.
> >
> > Yes, but we are dealing with what we export to user space, don't we?
>
> Right, so it would be good to know why exporting this information to
> user space is desired.
For us, the driving motivation is to implement policies in userspace
for user removable devices. Eg:
* Tracking the statistics around usage of user removable devices (how
many users use such devices, how often etc).
* Removing user removable devices when a user logs out.
* Not allowing a new user removable device while the screen is locked.
* (perhaps additional such policies in future).
Thanks,
Rajat
Powered by blists - more mailing lists