eb740b5f3e
Original EEH implementation depends on struct pci_dn heavily. However, EEH shouldn't depend on that actually because EEH needn't share much information with other PCI components. That's to say, EEH should have worked independently. The patch introduces struct eeh_dev so that EEH core components needn't be working based on struct pci_dn in future. Also, struct pci_dn, struct eeh_dev instances are created in dynamic fasion and the binding with EEH device, OF node, PCI device is implemented as well. The EEH devices are created after PHBs are detected and initialized, but PCI emunation hasn't started yet. Apart from that, PHB might be created dynamically through DLPAR component and the EEH devices should be creatd as well. Another case might be OF node is created dynamically by DR (Dynamic Reconfiguration), which has been defined by PAPR. For those OF nodes created by DR, EEH devices should be also created accordingly. The binding between EEH device and OF node is done while the EEH device is initially created. The binding between EEH device and PCI device should be done after PCI emunation is done. Besides, PCI hotplug also needs the binding so that the EEH devices could be traced from the newly coming PCI buses or PCI devices. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
30 lines
991 B
Makefile
30 lines
991 B
Makefile
ccflags-$(CONFIG_PPC64) := -mno-minimal-toc
|
|
ccflags-$(CONFIG_PPC_PSERIES_DEBUG) += -DDEBUG
|
|
|
|
obj-y := lpar.o hvCall.o nvram.o reconfig.o \
|
|
setup.o iommu.o event_sources.o ras.o \
|
|
firmware.o power.o dlpar.o mobility.o
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
obj-$(CONFIG_SCANLOG) += scanlog.o
|
|
obj-$(CONFIG_EEH) += eeh.o eeh_dev.o eeh_cache.o eeh_driver.o \
|
|
eeh_event.o eeh_sysfs.o eeh_pseries.o
|
|
obj-$(CONFIG_KEXEC) += kexec.o
|
|
obj-$(CONFIG_PCI) += pci.o pci_dlpar.o
|
|
obj-$(CONFIG_PSERIES_MSI) += msi.o
|
|
obj-$(CONFIG_PSERIES_ENERGY) += pseries_energy.o
|
|
|
|
obj-$(CONFIG_HOTPLUG_CPU) += hotplug-cpu.o
|
|
obj-$(CONFIG_MEMORY_HOTPLUG) += hotplug-memory.o
|
|
|
|
obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o
|
|
obj-$(CONFIG_HVCS) += hvcserver.o
|
|
obj-$(CONFIG_HCALL_STATS) += hvCall_inst.o
|
|
obj-$(CONFIG_CMM) += cmm.o
|
|
obj-$(CONFIG_DTL) += dtl.o
|
|
obj-$(CONFIG_IO_EVENT_IRQ) += io_event_irq.o
|
|
obj-$(CONFIG_PSERIES_IDLE) += processor_idle.o
|
|
|
|
ifeq ($(CONFIG_PPC_PSERIES),y)
|
|
obj-$(CONFIG_SUSPEND) += suspend.o
|
|
endif
|