* [PATCH 0/2] PCI: Convert hotplug core and pciehp to be builtin only @ 2013-07-25 17:57 Bjorn Helgaas 2013-07-25 17:57 ` [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular Bjorn Helgaas 2013-07-25 17:57 ` [PATCH 2/2] PCI: pciehp: Convert pciehp " Bjorn Helgaas 0 siblings, 2 replies; 11+ messages in thread From: Bjorn Helgaas @ 2013-07-25 17:57 UTC (permalink / raw) To: linux-pci Cc: Fenghua Yu, Tony Luck, linux-ia64, linux-sh, linuxppc-dev, Rafael J. Wysocki, Paul Mundt, Paul Mackerras, Yinghai Lu Yinghai is working on a regression fix ("PCI: Separate stop and remove devices in pciehp") that needs to go into v3.11, and his fix will be simpler if we remove the module option for pciehp in v3.11. That will mean he won't have to export pci_stop_bus_device() and pci_remove_bus_device() for use by modules. So these two patches convert CONFIG_HOTPLUG_PCI and CONFIG_HOTPLUG_PCI_PCIE to be bool (not tristate) and update defconfig files that had CONFIG_HOTPLUG_PCI=m. The motivation was for CONFIG_HOTPLUG_PCI_PCIE, but I also converted CONFIG_HOTPLUG_PCI to bool because the CONFIG_HOTPLUG_PCI=m and CONFIG_HOTPLUG_PCI_PCIE=y combination was accepted by Kconfig and builds a kernel, but pciehp doesn't actually work in that case (pointed out by Yinghai, thanks!) These are intended for v3.11. --- Bjorn Helgaas (2): PCI: hotplug: Convert to be builtin only, not modular PCI: pciehp: Convert pciehp to be builtin only, not modular arch/ia64/configs/generic_defconfig | 2 +- arch/ia64/configs/gensparse_defconfig | 2 +- arch/ia64/configs/tiger_defconfig | 2 +- arch/ia64/configs/xen_domu_defconfig | 2 +- arch/powerpc/configs/ppc64_defconfig | 2 +- arch/powerpc/configs/ppc64e_defconfig | 2 +- arch/powerpc/configs/pseries_defconfig | 2 +- arch/sh/configs/sh03_defconfig | 2 +- drivers/pci/hotplug/Kconfig | 5 +---- drivers/pci/pcie/Kconfig | 5 +---- 10 files changed, 10 insertions(+), 16 deletions(-) ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular 2013-07-25 17:57 [PATCH 0/2] PCI: Convert hotplug core and pciehp to be builtin only Bjorn Helgaas @ 2013-07-25 17:57 ` Bjorn Helgaas 2013-07-25 19:34 ` Rafael J. Wysocki 2013-07-26 12:42 ` Yinghai Lu 2013-07-25 17:57 ` [PATCH 2/2] PCI: pciehp: Convert pciehp " Bjorn Helgaas 1 sibling, 2 replies; 11+ messages in thread From: Bjorn Helgaas @ 2013-07-25 17:57 UTC (permalink / raw) To: linux-pci Cc: Fenghua Yu, Tony Luck, linux-ia64, linux-sh, linuxppc-dev, Rafael J. Wysocki, Paul Mundt, Paul Mackerras, Yinghai Lu Convert CONFIG_HOTPLUG_PCI from tristate to bool. This only affects the hotplug core; several of the hotplug drivers can still be modules. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> --- arch/ia64/configs/generic_defconfig | 2 +- arch/ia64/configs/gensparse_defconfig | 2 +- arch/ia64/configs/tiger_defconfig | 2 +- arch/ia64/configs/xen_domu_defconfig | 2 +- arch/powerpc/configs/ppc64_defconfig | 2 +- arch/powerpc/configs/ppc64e_defconfig | 2 +- arch/powerpc/configs/pseries_defconfig | 2 +- arch/sh/configs/sh03_defconfig | 2 +- drivers/pci/hotplug/Kconfig | 5 +---- 9 files changed, 9 insertions(+), 12 deletions(-) diff --git a/arch/ia64/configs/generic_defconfig b/arch/ia64/configs/generic_defconfig index 7913695..efbd292 100644 --- a/arch/ia64/configs/generic_defconfig +++ b/arch/ia64/configs/generic_defconfig @@ -31,7 +31,7 @@ CONFIG_ACPI_FAN=m CONFIG_ACPI_DOCK=y CONFIG_ACPI_PROCESSOR=m CONFIG_ACPI_CONTAINER=m -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_HOTPLUG_PCI_ACPI=m CONFIG_PACKET=y CONFIG_UNIX=y diff --git a/arch/ia64/configs/gensparse_defconfig b/arch/ia64/configs/gensparse_defconfig index f8e9133..f64980d 100644 --- a/arch/ia64/configs/gensparse_defconfig +++ b/arch/ia64/configs/gensparse_defconfig @@ -25,7 +25,7 @@ CONFIG_ACPI_BUTTON=m CONFIG_ACPI_FAN=m CONFIG_ACPI_PROCESSOR=m CONFIG_ACPI_CONTAINER=m -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_HOTPLUG_PCI_ACPI=m CONFIG_PACKET=y CONFIG_UNIX=y diff --git a/arch/ia64/configs/tiger_defconfig b/arch/ia64/configs/tiger_defconfig index a5a9e02..0f4e9e4 100644 --- a/arch/ia64/configs/tiger_defconfig +++ b/arch/ia64/configs/tiger_defconfig @@ -31,7 +31,7 @@ CONFIG_ACPI_BUTTON=m CONFIG_ACPI_FAN=m CONFIG_ACPI_PROCESSOR=m CONFIG_ACPI_CONTAINER=m -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_HOTPLUG_PCI_ACPI=m CONFIG_PACKET=y CONFIG_UNIX=y diff --git a/arch/ia64/configs/xen_domu_defconfig b/arch/ia64/configs/xen_domu_defconfig index 37b9b42..b025acf 100644 --- a/arch/ia64/configs/xen_domu_defconfig +++ b/arch/ia64/configs/xen_domu_defconfig @@ -32,7 +32,7 @@ CONFIG_ACPI_BUTTON=m CONFIG_ACPI_FAN=m CONFIG_ACPI_PROCESSOR=m CONFIG_ACPI_CONTAINER=m -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_HOTPLUG_PCI_ACPI=m CONFIG_PACKET=y CONFIG_UNIX=y diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index c86fcb9..0e8cfd0 100644 --- a/arch/powerpc/configs/ppc64_defconfig +++ b/arch/powerpc/configs/ppc64_defconfig @@ -58,7 +58,7 @@ CONFIG_SCHED_SMT=y CONFIG_PPC_DENORMALISATION=y CONFIG_PCCARD=y CONFIG_ELECTRA_CF=y -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_HOTPLUG_PCI_RPA=m CONFIG_HOTPLUG_PCI_RPA_DLPAR=m CONFIG_PACKET=y diff --git a/arch/powerpc/configs/ppc64e_defconfig b/arch/powerpc/configs/ppc64e_defconfig index 4b20f76..0085dc4 100644 --- a/arch/powerpc/configs/ppc64e_defconfig +++ b/arch/powerpc/configs/ppc64e_defconfig @@ -32,7 +32,7 @@ CONFIG_IRQ_ALL_CPUS=y CONFIG_SPARSEMEM_MANUAL=y CONFIG_PCI_MSI=y CONFIG_PCCARD=y -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_PACKET=y CONFIG_UNIX=y CONFIG_XFRM_USER=m diff --git a/arch/powerpc/configs/pseries_defconfig b/arch/powerpc/configs/pseries_defconfig index bea8587..1d4b976 100644 --- a/arch/powerpc/configs/pseries_defconfig +++ b/arch/powerpc/configs/pseries_defconfig @@ -53,7 +53,7 @@ CONFIG_PPC_64K_PAGES=y CONFIG_PPC_SUBPAGE_PROT=y CONFIG_SCHED_SMT=y CONFIG_PPC_DENORMALISATION=y -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_HOTPLUG_PCI_RPA=m CONFIG_HOTPLUG_PCI_RPA_DLPAR=m CONFIG_PACKET=y diff --git a/arch/sh/configs/sh03_defconfig b/arch/sh/configs/sh03_defconfig index 2051821..0cf4097 100644 --- a/arch/sh/configs/sh03_defconfig +++ b/arch/sh/configs/sh03_defconfig @@ -22,7 +22,7 @@ CONFIG_PREEMPT=y CONFIG_CMDLINE_OVERWRITE=y CONFIG_CMDLINE="console=ttySC1,115200 mem=64M root=/dev/nfs" CONFIG_PCI=y -CONFIG_HOTPLUG_PCI=m +CONFIG_HOTPLUG_PCI=y CONFIG_BINFMT_MISC=y CONFIG_NET=y CONFIG_PACKET=y diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig index bb7ebb2..d85009d 100644 --- a/drivers/pci/hotplug/Kconfig +++ b/drivers/pci/hotplug/Kconfig @@ -3,16 +3,13 @@ # menuconfig HOTPLUG_PCI - tristate "Support for PCI Hotplug" + bool "Support for PCI Hotplug" depends on PCI && SYSFS ---help--- Say Y here if you have a motherboard with a PCI Hotplug controller. This allows you to add and remove PCI cards while the machine is powered up and running. - To compile this driver as a module, choose M here: the - module will be called pci_hotplug. - When in doubt, say N. if HOTPLUG_PCI ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular 2013-07-25 17:57 ` [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular Bjorn Helgaas @ 2013-07-25 19:34 ` Rafael J. Wysocki 2013-07-26 12:42 ` Yinghai Lu 1 sibling, 0 replies; 11+ messages in thread From: Rafael J. Wysocki @ 2013-07-25 19:34 UTC (permalink / raw) To: Bjorn Helgaas Cc: Fenghua Yu, Tony Luck, linux-ia64, linux-sh, linux-pci, linuxppc-dev, Paul Mundt, Paul Mackerras, Yinghai Lu On Thursday, July 25, 2013 11:57:20 AM Bjorn Helgaas wrote: > Convert CONFIG_HOTPLUG_PCI from tristate to bool. This only affects > the hotplug core; several of the hotplug drivers can still be modules. > > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > --- > arch/ia64/configs/generic_defconfig | 2 +- > arch/ia64/configs/gensparse_defconfig | 2 +- > arch/ia64/configs/tiger_defconfig | 2 +- > arch/ia64/configs/xen_domu_defconfig | 2 +- > arch/powerpc/configs/ppc64_defconfig | 2 +- > arch/powerpc/configs/ppc64e_defconfig | 2 +- > arch/powerpc/configs/pseries_defconfig | 2 +- > arch/sh/configs/sh03_defconfig | 2 +- > drivers/pci/hotplug/Kconfig | 5 +---- > 9 files changed, 9 insertions(+), 12 deletions(-) > > diff --git a/arch/ia64/configs/generic_defconfig b/arch/ia64/configs/generic_defconfig > index 7913695..efbd292 100644 > --- a/arch/ia64/configs/generic_defconfig > +++ b/arch/ia64/configs/generic_defconfig > @@ -31,7 +31,7 @@ CONFIG_ACPI_FAN=m > CONFIG_ACPI_DOCK=y > CONFIG_ACPI_PROCESSOR=m > CONFIG_ACPI_CONTAINER=m > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_HOTPLUG_PCI_ACPI=m > CONFIG_PACKET=y > CONFIG_UNIX=y > diff --git a/arch/ia64/configs/gensparse_defconfig b/arch/ia64/configs/gensparse_defconfig > index f8e9133..f64980d 100644 > --- a/arch/ia64/configs/gensparse_defconfig > +++ b/arch/ia64/configs/gensparse_defconfig > @@ -25,7 +25,7 @@ CONFIG_ACPI_BUTTON=m > CONFIG_ACPI_FAN=m > CONFIG_ACPI_PROCESSOR=m > CONFIG_ACPI_CONTAINER=m > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_HOTPLUG_PCI_ACPI=m > CONFIG_PACKET=y > CONFIG_UNIX=y > diff --git a/arch/ia64/configs/tiger_defconfig b/arch/ia64/configs/tiger_defconfig > index a5a9e02..0f4e9e4 100644 > --- a/arch/ia64/configs/tiger_defconfig > +++ b/arch/ia64/configs/tiger_defconfig > @@ -31,7 +31,7 @@ CONFIG_ACPI_BUTTON=m > CONFIG_ACPI_FAN=m > CONFIG_ACPI_PROCESSOR=m > CONFIG_ACPI_CONTAINER=m > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_HOTPLUG_PCI_ACPI=m > CONFIG_PACKET=y > CONFIG_UNIX=y > diff --git a/arch/ia64/configs/xen_domu_defconfig b/arch/ia64/configs/xen_domu_defconfig > index 37b9b42..b025acf 100644 > --- a/arch/ia64/configs/xen_domu_defconfig > +++ b/arch/ia64/configs/xen_domu_defconfig > @@ -32,7 +32,7 @@ CONFIG_ACPI_BUTTON=m > CONFIG_ACPI_FAN=m > CONFIG_ACPI_PROCESSOR=m > CONFIG_ACPI_CONTAINER=m > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_HOTPLUG_PCI_ACPI=m > CONFIG_PACKET=y > CONFIG_UNIX=y > diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig > index c86fcb9..0e8cfd0 100644 > --- a/arch/powerpc/configs/ppc64_defconfig > +++ b/arch/powerpc/configs/ppc64_defconfig > @@ -58,7 +58,7 @@ CONFIG_SCHED_SMT=y > CONFIG_PPC_DENORMALISATION=y > CONFIG_PCCARD=y > CONFIG_ELECTRA_CF=y > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_HOTPLUG_PCI_RPA=m > CONFIG_HOTPLUG_PCI_RPA_DLPAR=m > CONFIG_PACKET=y > diff --git a/arch/powerpc/configs/ppc64e_defconfig b/arch/powerpc/configs/ppc64e_defconfig > index 4b20f76..0085dc4 100644 > --- a/arch/powerpc/configs/ppc64e_defconfig > +++ b/arch/powerpc/configs/ppc64e_defconfig > @@ -32,7 +32,7 @@ CONFIG_IRQ_ALL_CPUS=y > CONFIG_SPARSEMEM_MANUAL=y > CONFIG_PCI_MSI=y > CONFIG_PCCARD=y > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_PACKET=y > CONFIG_UNIX=y > CONFIG_XFRM_USER=m > diff --git a/arch/powerpc/configs/pseries_defconfig b/arch/powerpc/configs/pseries_defconfig > index bea8587..1d4b976 100644 > --- a/arch/powerpc/configs/pseries_defconfig > +++ b/arch/powerpc/configs/pseries_defconfig > @@ -53,7 +53,7 @@ CONFIG_PPC_64K_PAGES=y > CONFIG_PPC_SUBPAGE_PROT=y > CONFIG_SCHED_SMT=y > CONFIG_PPC_DENORMALISATION=y > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_HOTPLUG_PCI_RPA=m > CONFIG_HOTPLUG_PCI_RPA_DLPAR=m > CONFIG_PACKET=y > diff --git a/arch/sh/configs/sh03_defconfig b/arch/sh/configs/sh03_defconfig > index 2051821..0cf4097 100644 > --- a/arch/sh/configs/sh03_defconfig > +++ b/arch/sh/configs/sh03_defconfig > @@ -22,7 +22,7 @@ CONFIG_PREEMPT=y > CONFIG_CMDLINE_OVERWRITE=y > CONFIG_CMDLINE="console=ttySC1,115200 mem=64M root=/dev/nfs" > CONFIG_PCI=y > -CONFIG_HOTPLUG_PCI=m > +CONFIG_HOTPLUG_PCI=y > CONFIG_BINFMT_MISC=y > CONFIG_NET=y > CONFIG_PACKET=y > diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig > index bb7ebb2..d85009d 100644 > --- a/drivers/pci/hotplug/Kconfig > +++ b/drivers/pci/hotplug/Kconfig > @@ -3,16 +3,13 @@ > # > > menuconfig HOTPLUG_PCI > - tristate "Support for PCI Hotplug" > + bool "Support for PCI Hotplug" > depends on PCI && SYSFS > ---help--- > Say Y here if you have a motherboard with a PCI Hotplug controller. > This allows you to add and remove PCI cards while the machine is > powered up and running. > > - To compile this driver as a module, choose M here: the > - module will be called pci_hotplug. > - > When in doubt, say N. > > if HOTPLUG_PCI > -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular 2013-07-25 17:57 ` [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular Bjorn Helgaas 2013-07-25 19:34 ` Rafael J. Wysocki @ 2013-07-26 12:42 ` Yinghai Lu 1 sibling, 0 replies; 11+ messages in thread From: Yinghai Lu @ 2013-07-26 12:42 UTC (permalink / raw) To: Bjorn Helgaas Cc: Fenghua Yu, Tony Luck, linux-ia64@vger.kernel.org, linux-sh, linux-pci@vger.kernel.org, Rafael J. Wysocki, Paul Mundt, Paul Mackerras, linuxppc-dev On Thu, Jul 25, 2013 at 10:57 AM, Bjorn Helgaas <bhelgaas@google.com> wrote: > Convert CONFIG_HOTPLUG_PCI from tristate to bool. This only affects > the hotplug core; several of the hotplug drivers can still be modules. > > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> > --- > arch/ia64/configs/generic_defconfig | 2 +- > arch/ia64/configs/gensparse_defconfig | 2 +- > arch/ia64/configs/tiger_defconfig | 2 +- > arch/ia64/configs/xen_domu_defconfig | 2 +- > arch/powerpc/configs/ppc64_defconfig | 2 +- > arch/powerpc/configs/ppc64e_defconfig | 2 +- > arch/powerpc/configs/pseries_defconfig | 2 +- > arch/sh/configs/sh03_defconfig | 2 +- > drivers/pci/hotplug/Kconfig | 5 +---- > 9 files changed, 9 insertions(+), 12 deletions(-) Acked-by: Yinghai Lu <yinghai@kernel.org> ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 2/2] PCI: pciehp: Convert pciehp to be builtin only, not modular 2013-07-25 17:57 [PATCH 0/2] PCI: Convert hotplug core and pciehp to be builtin only Bjorn Helgaas 2013-07-25 17:57 ` [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular Bjorn Helgaas @ 2013-07-25 17:57 ` Bjorn Helgaas 2013-07-26 12:43 ` Yinghai Lu 1 sibling, 1 reply; 11+ messages in thread From: Bjorn Helgaas @ 2013-07-25 17:57 UTC (permalink / raw) To: linux-pci Cc: Fenghua Yu, Tony Luck, linux-ia64, linux-sh, linuxppc-dev, Rafael J. Wysocki, Paul Mundt, Paul Mackerras, Yinghai Lu Convert pciehp to be builtin only, with no module option. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> --- drivers/pci/pcie/Kconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig index 569f82f..3b94cfc 100644 --- a/drivers/pci/pcie/Kconfig +++ b/drivers/pci/pcie/Kconfig @@ -14,15 +14,12 @@ config PCIEPORTBUS # Include service Kconfig here # config HOTPLUG_PCI_PCIE - tristate "PCI Express Hotplug driver" + bool "PCI Express Hotplug driver" depends on HOTPLUG_PCI && PCIEPORTBUS help Say Y here if you have a motherboard that supports PCI Express Native Hotplug - To compile this driver as a module, choose M here: the - module will be called pciehp. - When in doubt, say N. source "drivers/pci/pcie/aer/Kconfig" ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] PCI: pciehp: Convert pciehp to be builtin only, not modular 2013-07-25 17:57 ` [PATCH 2/2] PCI: pciehp: Convert pciehp " Bjorn Helgaas @ 2013-07-26 12:43 ` Yinghai Lu 2015-05-27 18:31 ` Yinghai Lu 0 siblings, 1 reply; 11+ messages in thread From: Yinghai Lu @ 2013-07-26 12:43 UTC (permalink / raw) To: Bjorn Helgaas Cc: Fenghua Yu, Tony Luck, linux-ia64@vger.kernel.org, linux-sh, linux-pci@vger.kernel.org, Rafael J. Wysocki, Paul Mundt, Paul Mackerras, linuxppc-dev On Thu, Jul 25, 2013 at 10:57 AM, Bjorn Helgaas <bhelgaas@google.com> wrote: > Convert pciehp to be builtin only, with no module option. > > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> > Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > --- > drivers/pci/pcie/Kconfig | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig > index 569f82f..3b94cfc 100644 > --- a/drivers/pci/pcie/Kconfig > +++ b/drivers/pci/pcie/Kconfig > @@ -14,15 +14,12 @@ config PCIEPORTBUS > # Include service Kconfig here > # > config HOTPLUG_PCI_PCIE > - tristate "PCI Express Hotplug driver" > + bool "PCI Express Hotplug driver" > depends on HOTPLUG_PCI && PCIEPORTBUS > help > Say Y here if you have a motherboard that supports PCI Express Native > Hotplug > > - To compile this driver as a module, choose M here: the > - module will be called pciehp. > - > When in doubt, say N. > > source "drivers/pci/pcie/aer/Kconfig" > Acked-by: Yinghai Lu <yinghai@kernel.org> ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] PCI: pciehp: Convert pciehp to be builtin only, not modular 2013-07-26 12:43 ` Yinghai Lu @ 2015-05-27 18:31 ` Yinghai Lu 2015-05-27 19:31 ` Bjorn Helgaas 0 siblings, 1 reply; 11+ messages in thread From: Yinghai Lu @ 2015-05-27 18:31 UTC (permalink / raw) To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Fenghua Yu, Tony Luck, linux-ia64@vger.kernel.org, linux-sh, Benjamin Herrenschmidt, Rafael J. Wysocki, Paul Mundt, Paul Mackerras, linuxppc-dev On Fri, Jul 26, 2013 at 5:43 AM, Yinghai Lu <yinghai@kernel.org> wrote: > On Thu, Jul 25, 2013 at 10:57 AM, Bjorn Helgaas <bhelgaas@google.com> wrote: >> Convert pciehp to be builtin only, with no module option. >> >> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> >> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> >> --- >> drivers/pci/pcie/Kconfig | 5 +---- >> 1 file changed, 1 insertion(+), 4 deletions(-) >> >> diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig >> index 569f82f..3b94cfc 100644 >> --- a/drivers/pci/pcie/Kconfig >> +++ b/drivers/pci/pcie/Kconfig >> @@ -14,15 +14,12 @@ config PCIEPORTBUS >> # Include service Kconfig here >> # >> config HOTPLUG_PCI_PCIE >> - tristate "PCI Express Hotplug driver" >> + bool "PCI Express Hotplug driver" >> depends on HOTPLUG_PCI && PCIEPORTBUS >> help >> Say Y here if you have a motherboard that supports PCI Express Native >> Hotplug >> >> - To compile this driver as a module, choose M here: the >> - module will be called pciehp. >> - >> When in doubt, say N. >> >> source "drivers/pci/pcie/aer/Kconfig" >> > > Acked-by: Yinghai Lu <yinghai@kernel.org> Hi Bjorn, Looks like we lose the option to disable pciehp after we make it as built-in. Before acpiphp and pciehp could be compiled as modules, and user could blacklist to disable them. Now they are all built-in, but only acpiphp has acpiphp.disable to disable acpiphp. we don't have pciehp.disable yet. Do you think if we should add pciehp.disable ? BTW we don't have any description for acpiphp.disable anywhere. Thanks Yinghai ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] PCI: pciehp: Convert pciehp to be builtin only, not modular 2015-05-27 18:31 ` Yinghai Lu @ 2015-05-27 19:31 ` Bjorn Helgaas 2015-05-28 1:30 ` Rafael J. Wysocki 0 siblings, 1 reply; 11+ messages in thread From: Bjorn Helgaas @ 2015-05-27 19:31 UTC (permalink / raw) To: Yinghai Lu Cc: linux-pci@vger.kernel.org, Fenghua Yu, Tony Luck, linux-ia64@vger.kernel.org, linux-sh, Benjamin Herrenschmidt, Rafael J. Wysocki, Paul Mundt, Paul Mackerras, linuxppc-dev [updated Rafael's email addr; not sure if sisk.pl still works or not] On Wed, May 27, 2015 at 11:31:21AM -0700, Yinghai Lu wrote: > On Fri, Jul 26, 2013 at 5:43 AM, Yinghai Lu <yinghai@kernel.org> wrote: > > On Thu, Jul 25, 2013 at 10:57 AM, Bjorn Helgaas <bhelgaas@google.com> wrote: > >> Convert pciehp to be builtin only, with no module option. > >> > >> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> > >> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > >> --- > >> drivers/pci/pcie/Kconfig | 5 +---- > >> 1 file changed, 1 insertion(+), 4 deletions(-) > >> > >> diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig > >> index 569f82f..3b94cfc 100644 > >> --- a/drivers/pci/pcie/Kconfig > >> +++ b/drivers/pci/pcie/Kconfig > >> @@ -14,15 +14,12 @@ config PCIEPORTBUS > >> # Include service Kconfig here > >> # > >> config HOTPLUG_PCI_PCIE > >> - tristate "PCI Express Hotplug driver" > >> + bool "PCI Express Hotplug driver" > >> depends on HOTPLUG_PCI && PCIEPORTBUS > >> help > >> Say Y here if you have a motherboard that supports PCI Express Native > >> Hotplug > >> > >> - To compile this driver as a module, choose M here: the > >> - module will be called pciehp. > >> - > >> When in doubt, say N. > >> > >> source "drivers/pci/pcie/aer/Kconfig" > >> > > > > Acked-by: Yinghai Lu <yinghai@kernel.org> > > Hi Bjorn, > > Looks like we lose the option to disable pciehp after we make it as built-in. > > Before acpiphp and pciehp could be compiled as modules, and user could > blacklist to disable them. > > Now they are all built-in, but only acpiphp has acpiphp.disable to > disable acpiphp. > we don't have pciehp.disable yet. > > Do you think if we should add pciehp.disable ? Did you find a situation that would require pciehp.disable? I hesitate to add it because if there's a problem and pciehp.disable fixes it, people tend to think the solution is "boot with pciehp.disable." But the *real* solution is to fix whatever is broken in the kernel, so no parameter is needed at all. > BTW we don't have any description for acpiphp.disable anywhere. True. I'll give you my opinion; Rafael may have a different one. I don't know whether it's a good idea to add a description or not, for the same reason as above. I think we should actively discourage people from using kernel parameters, except for debugging purposes and for some legacy issues where there's no way for the kernel to figure things out by itself. But in my opinion, acpiphp isn't in any of those categories, so I'm content to have the parameter present but undocumented. It seems more likely that we'll hear about issues then, and we might be able to do something about them. Bjorn ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] PCI: pciehp: Convert pciehp to be builtin only, not modular 2015-05-27 19:31 ` Bjorn Helgaas @ 2015-05-28 1:30 ` Rafael J. Wysocki 2015-05-28 22:08 ` Yinghai Lu 0 siblings, 1 reply; 11+ messages in thread From: Rafael J. Wysocki @ 2015-05-28 1:30 UTC (permalink / raw) To: Bjorn Helgaas, Yinghai Lu Cc: linux-pci@vger.kernel.org, Fenghua Yu, Tony Luck, linux-ia64@vger.kernel.org, linux-sh, Benjamin Herrenschmidt, Paul Mundt, Paul Mackerras, linuxppc-dev On Wednesday, May 27, 2015 02:31:49 PM Bjorn Helgaas wrote: > [updated Rafael's email addr; not sure if sisk.pl still works or not] > > On Wed, May 27, 2015 at 11:31:21AM -0700, Yinghai Lu wrote: > > On Fri, Jul 26, 2013 at 5:43 AM, Yinghai Lu <yinghai@kernel.org> wrote: > > > On Thu, Jul 25, 2013 at 10:57 AM, Bjorn Helgaas <bhelgaas@google.com> wrote: > > >> Convert pciehp to be builtin only, with no module option. > > >> > > >> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> > > >> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > > >> --- > > >> drivers/pci/pcie/Kconfig | 5 +---- > > >> 1 file changed, 1 insertion(+), 4 deletions(-) > > >> > > >> diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig > > >> index 569f82f..3b94cfc 100644 > > >> --- a/drivers/pci/pcie/Kconfig > > >> +++ b/drivers/pci/pcie/Kconfig > > >> @@ -14,15 +14,12 @@ config PCIEPORTBUS > > >> # Include service Kconfig here > > >> # > > >> config HOTPLUG_PCI_PCIE > > >> - tristate "PCI Express Hotplug driver" > > >> + bool "PCI Express Hotplug driver" > > >> depends on HOTPLUG_PCI && PCIEPORTBUS > > >> help > > >> Say Y here if you have a motherboard that supports PCI Express Native > > >> Hotplug > > >> > > >> - To compile this driver as a module, choose M here: the > > >> - module will be called pciehp. > > >> - > > >> When in doubt, say N. > > >> > > >> source "drivers/pci/pcie/aer/Kconfig" > > >> > > > > > > Acked-by: Yinghai Lu <yinghai@kernel.org> > > > > Hi Bjorn, > > > > Looks like we lose the option to disable pciehp after we make it as built-in. > > > > Before acpiphp and pciehp could be compiled as modules, and user could > > blacklist to disable them. > > > > Now they are all built-in, but only acpiphp has acpiphp.disable to > > disable acpiphp. > > we don't have pciehp.disable yet. > > > > Do you think if we should add pciehp.disable ? > > Did you find a situation that would require pciehp.disable? I hesitate to > add it because if there's a problem and pciehp.disable fixes it, people > tend to think the solution is "boot with pciehp.disable." But the *real* > solution is to fix whatever is broken in the kernel, so no parameter is > needed at all. Agreed. For debug you can always use pcie_ports=compat and that will disable pciehp too. > > BTW we don't have any description for acpiphp.disable anywhere. > > True. I'll give you my opinion; Rafael may have a different one. > > I don't know whether it's a good idea to add a description or not, for the > same reason as above. I think we should actively discourage people from > using kernel parameters, except for debugging purposes and for some legacy > issues where there's no way for the kernel to figure things out by itself. > But in my opinion, acpiphp isn't in any of those categories, so I'm content > to have the parameter present but undocumented. It seems more likely that > we'll hear about issues then, and we might be able to do something about > them. Agreed again. Rafael ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] PCI: pciehp: Convert pciehp to be builtin only, not modular 2015-05-28 1:30 ` Rafael J. Wysocki @ 2015-05-28 22:08 ` Yinghai Lu 2015-05-28 22:19 ` Benjamin Herrenschmidt 0 siblings, 1 reply; 11+ messages in thread From: Yinghai Lu @ 2015-05-28 22:08 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Bjorn Helgaas, linux-pci@vger.kernel.org, Fenghua Yu, Tony Luck, linux-ia64@vger.kernel.org, linux-sh, Benjamin Herrenschmidt, Paul Mundt, Paul Mackerras, linuxppc-dev On Wed, May 27, 2015 at 6:30 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote: > On Wednesday, May 27, 2015 02:31:49 PM Bjorn Helgaas wrote: > For debug you can always use pcie_ports=compat and that will disable > pciehp too. That will disable AER at the same time, right?. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] PCI: pciehp: Convert pciehp to be builtin only, not modular 2015-05-28 22:08 ` Yinghai Lu @ 2015-05-28 22:19 ` Benjamin Herrenschmidt 0 siblings, 0 replies; 11+ messages in thread From: Benjamin Herrenschmidt @ 2015-05-28 22:19 UTC (permalink / raw) To: Yinghai Lu Cc: Rafael J. Wysocki, Bjorn Helgaas, linux-pci@vger.kernel.org, Fenghua Yu, Tony Luck, linux-ia64@vger.kernel.org, linux-sh, Paul Mundt, Paul Mackerras, linuxppc-dev On Thu, 2015-05-28 at 15:08 -0700, Yinghai Lu wrote: > On Wed, May 27, 2015 at 6:30 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote: > > On Wednesday, May 27, 2015 02:31:49 PM Bjorn Helgaas wrote: > > For debug you can always use pcie_ports=compat and that will disable > > pciehp too. > > That will disable AER at the same time, right?. For ppc machines under either our hypervisor or running bare metal with our EEH-enabled bridges, both generic AER and hotplug code are going to interfere. EEH "subsumes" AER, and we have firmware interfaces to do hotplug that know more than what the generic code can know about (such as on-board GPIOs that can control PERST, it's not always via the hotplug registers or hotplug from top-level slots which isn't the same as hotplug from switch slots on our platforms). So basically, at this point, we must not have the PCIe port drivers at all, just just interfere. We should replace that with the appropriate "hooks" for the platform to disable selected functions (hotplug and AER) from the generic port drivers. Cheers, Ben. ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-05-28 22:22 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-07-25 17:57 [PATCH 0/2] PCI: Convert hotplug core and pciehp to be builtin only Bjorn Helgaas 2013-07-25 17:57 ` [PATCH 1/2] PCI: hotplug: Convert to be builtin only, not modular Bjorn Helgaas 2013-07-25 19:34 ` Rafael J. Wysocki 2013-07-26 12:42 ` Yinghai Lu 2013-07-25 17:57 ` [PATCH 2/2] PCI: pciehp: Convert pciehp " Bjorn Helgaas 2013-07-26 12:43 ` Yinghai Lu 2015-05-27 18:31 ` Yinghai Lu 2015-05-27 19:31 ` Bjorn Helgaas 2015-05-28 1:30 ` Rafael J. Wysocki 2015-05-28 22:08 ` Yinghai Lu 2015-05-28 22:19 ` Benjamin Herrenschmidt
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).