OSDN Git Service

x86/PCI: VMD: Request userspace control of PCIe hotplug indicators
authorKeith Busch <keith.busch@intel.com>
Tue, 13 Sep 2016 15:05:40 +0000 (09:05 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 Sep 2016 13:41:08 +0000 (08:41 -0500)
commit3161832d58c7f3bf8b190a2887086be0932d8dd3
tree2d310a553c2c47d16dd32d275324f669168a4836
parent576243b3f9eaa47ab568ac49574b3a095c2365f1
x86/PCI: VMD: Request userspace control of PCIe hotplug indicators

Add set_dev_domain_options() to set PCI domain-specific options as devices
are added.  The first usage is to request exclusive userspace control of
PCIe hotplug indicators in VMD domains.

Devices in a VMD domain use PCIe hotplug Attention and Power Indicators in
a non-standard way; tell pciehp to ignore the indicators so userspace can
control them via the sysfs "attention" file.

To determine whether a bus is within a VMD domain, add a bool to the
pci_sysdata structure that the VMD driver sets during initialization.

[bhelgaas: changelog]
Requested-by: Kapil Karkra <kapil.karkra@intel.com>
Tested-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/include/asm/pci.h
arch/x86/pci/common.c
arch/x86/pci/vmd.c