linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pciehp PCI_BASE_CLASS_DISPLAY check
@ 2014-08-27 22:03 Bjorn Helgaas
  2014-08-28  4:21 ` Yinghai Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2014-08-27 22:03 UTC (permalink / raw)
  To: Yinghai Lu; +Cc: linux-pci

Hi Yinghai,

In 9789ac979b6b ("PCI: pciehp: cleanup flow in
pciehp_configure_device") [1], you added a check that prevents us from
calling pci_configure_slot() for PCI_BASE_CLASS_DISPLAY devices.

Do you remember why we need that check?  I would like to configure
devices in the pci_device_add() path instead of doing it in the
hotplug drivers.  pci_configure_device() is currently called from:

  acpiphp_set_hpp_values()
  pciehp_configure_device()
  shpchp_configure_device()

Only pciehp_configure_device() has the PCI_BASE_CLASS_DISPLAY check.

Bjorn

[1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9789ac979b6b

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pciehp PCI_BASE_CLASS_DISPLAY check
  2014-08-27 22:03 pciehp PCI_BASE_CLASS_DISPLAY check Bjorn Helgaas
@ 2014-08-28  4:21 ` Yinghai Lu
  2014-08-30  0:01   ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Yinghai Lu @ 2014-08-28  4:21 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci

On Wed, Aug 27, 2014 at 3:03 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:

>
> Only pciehp_configure_device() has the PCI_BASE_CLASS_DISPLAY check.

That commit actually split the loop to two loops, so second loop still
have check.

but later

| Author: Praveen Kalamegham <praveen@nextio.com>
| Date:   Wed May 19 17:03:12 2010 -0500
|
|    PCI: hotplug: pciehp: Removed check for hotplug of display devices
|
|    Removed check to prevent hotplug of display devices within pciehp.
|    Originally this was thought to have been required within the PCI
|    Hotplug specification for some legacy devices.  However there is
|    no such requirement in the most recent revision. The check prevents
|    hotplug of not only display devices but also computational GPUs
|    which require serviceability.

only removed the first one in pciehp_configure_device().

So you can drop that checking.

Thanks

Yinghai

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pciehp PCI_BASE_CLASS_DISPLAY check
  2014-08-28  4:21 ` Yinghai Lu
@ 2014-08-30  0:01   ` Bjorn Helgaas
  0 siblings, 0 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2014-08-30  0:01 UTC (permalink / raw)
  To: Yinghai Lu; +Cc: linux-pci

On Wed, Aug 27, 2014 at 10:21 PM, Yinghai Lu <yinghai@kernel.org> wrote:
> On Wed, Aug 27, 2014 at 3:03 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>
>>
>> Only pciehp_configure_device() has the PCI_BASE_CLASS_DISPLAY check.
>
> That commit actually split the loop to two loops, so second loop still
> have check.
>
> but later
>
> | Author: Praveen Kalamegham <praveen@nextio.com>
> | Date:   Wed May 19 17:03:12 2010 -0500
> |
> |    PCI: hotplug: pciehp: Removed check for hotplug of display devices
> |
> |    Removed check to prevent hotplug of display devices within pciehp.
> |    Originally this was thought to have been required within the PCI
> |    Hotplug specification for some legacy devices.  However there is
> |    no such requirement in the most recent revision. The check prevents
> |    hotplug of not only display devices but also computational GPUs
> |    which require serviceability.
>
> only removed the first one in pciehp_configure_device().
>
> So you can drop that checking.

Great, thanks!  I missed the fact that the check was there before.

Bjorn

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-30  0:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-27 22:03 pciehp PCI_BASE_CLASS_DISPLAY check Bjorn Helgaas
2014-08-28  4:21 ` Yinghai Lu
2014-08-30  0:01   ` Bjorn Helgaas

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).