linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] add hotplug depedency info
@ 2022-11-13 11:28 Albert Zhou
  2022-11-13 11:28 ` [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig Albert Zhou
  2022-11-13 11:28 ` [PATCH v2 2/2] pci: pcie: " Albert Zhou
  0 siblings, 2 replies; 6+ messages in thread
From: Albert Zhou @ 2022-11-13 11:28 UTC (permalink / raw)
  To: bhelgaas; +Cc: linux-pci, lukas, mika.westerberg

v1->v2: I added comments that PCIe cards with USB4 or Thunderbolt also
require the hotplug feature. I also added the "default y if USB4" line
to the relevant config options, as suggested by Lukas Wunner.

Albert Zhou (2):
  pci: hotplug: add dependency info to Kconfig
  pci: pcie: add dependency info to Kconfig

 drivers/pci/hotplug/Kconfig | 4 +++-
 drivers/pci/pcie/Kconfig    | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)


base-commit: fef7fd48922d11b22620e19f9c9101647bfe943d
-- 
2.34.1


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

* [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig
  2022-11-13 11:28 [PATCH v2 0/2] add hotplug depedency info Albert Zhou
@ 2022-11-13 11:28 ` Albert Zhou
  2022-11-14 10:37   ` Mika Westerberg
  2022-11-13 11:28 ` [PATCH v2 2/2] pci: pcie: " Albert Zhou
  1 sibling, 1 reply; 6+ messages in thread
From: Albert Zhou @ 2022-11-13 11:28 UTC (permalink / raw)
  To: bhelgaas; +Cc: linux-pci, lukas, mika.westerberg

Thunderbolt and USB4 PCI cards require the hotplug feature. This is now
recorded in the help message for HOTPLUG_PCI. Further, HOTPLUG_PCI is
defaulted to Y if USB4 is selected.

Signed-off-by: Albert Zhou <albert.zhou.50@gmail.com>
---
 drivers/pci/hotplug/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
index 840a84bb5ee2..06cc373834f5 100644
--- a/drivers/pci/hotplug/Kconfig
+++ b/drivers/pci/hotplug/Kconfig
@@ -6,10 +6,12 @@
 menuconfig HOTPLUG_PCI
 	bool "Support for PCI Hotplug"
 	depends on PCI && SYSFS
+	default y if USB4
 	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.
+	  powered up and running. Thunderbolt and USB4 PCI cards require
+	  Hotplug.
 
 	  When in doubt, say N.
 
-- 
2.34.1


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

* [PATCH v2 2/2] pci: pcie: add dependency info to Kconfig
  2022-11-13 11:28 [PATCH v2 0/2] add hotplug depedency info Albert Zhou
  2022-11-13 11:28 ` [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig Albert Zhou
@ 2022-11-13 11:28 ` Albert Zhou
  1 sibling, 0 replies; 6+ messages in thread
From: Albert Zhou @ 2022-11-13 11:28 UTC (permalink / raw)
  To: bhelgaas; +Cc: linux-pci, lukas, mika.westerberg

Thunderbolt and USB4 PCIe cards require the hotplug feature. This is now
recorded in the help message for HOTPLUG_PCI_PCIE. Further, PCIEPORTBUS
and HOTPLUG_PCI_PCIE are defaulted to Y if USB4 is selected.

Signed-off-by: Albert Zhou <albert.zhou.50@gmail.com>
---
 drivers/pci/pcie/Kconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig
index 788ac8df3f9d..6c54a4512e2b 100644
--- a/drivers/pci/pcie/Kconfig
+++ b/drivers/pci/pcie/Kconfig
@@ -4,20 +4,21 @@
 #
 config PCIEPORTBUS
 	bool "PCI Express Port Bus support"
+	default y if USB4
 	help
 	  This enables PCI Express Port Bus support. Users can then enable
 	  support for Native Hot-Plug, Advanced Error Reporting, Power
 	  Management Events, and Downstream Port Containment.
-
 #
 # Include service Kconfig here
 #
 config HOTPLUG_PCI_PCIE
 	bool "PCI Express Hotplug driver"
 	depends on HOTPLUG_PCI && PCIEPORTBUS
+	default y if USB4
 	help
 	  Say Y here if you have a motherboard that supports PCI Express Native
-	  Hotplug
+	  Hotplug. Thunderbolt and USB4 PCIe cards require Hotplug.
 
 	  When in doubt, say N.
 
-- 
2.34.1


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

* Re: [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig
  2022-11-13 11:28 ` [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig Albert Zhou
@ 2022-11-14 10:37   ` Mika Westerberg
  2022-11-15  1:38     ` Albert Zhou
  0 siblings, 1 reply; 6+ messages in thread
From: Mika Westerberg @ 2022-11-14 10:37 UTC (permalink / raw)
  To: Albert Zhou; +Cc: bhelgaas, linux-pci, lukas

On Sun, Nov 13, 2022 at 10:28:10PM +1100, Albert Zhou wrote:
> Thunderbolt and USB4 PCI cards require the hotplug feature. This is now
> recorded in the help message for HOTPLUG_PCI. Further, HOTPLUG_PCI is
> defaulted to Y if USB4 is selected.
> 
> Signed-off-by: Albert Zhou <albert.zhou.50@gmail.com>
> ---
>  drivers/pci/hotplug/Kconfig | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
> index 840a84bb5ee2..06cc373834f5 100644
> --- a/drivers/pci/hotplug/Kconfig
> +++ b/drivers/pci/hotplug/Kconfig
> @@ -6,10 +6,12 @@
>  menuconfig HOTPLUG_PCI
>  	bool "Support for PCI Hotplug"
>  	depends on PCI && SYSFS
> +	default y if USB4
>  	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.
> +	  powered up and running. Thunderbolt and USB4 PCI cards require
> +	  Hotplug.

I would not say they "require" this. PCIe is completely optional in USB4
systems and it is perfectly fine to have host controllers or
add-in-cards that don't have a single PCIe adapter.

Not objeting the patch, though. For Linux I guess it makes sense to have
this like what you are suggesting. Just perhaps changing the wordirng
;-)

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

* Re: [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig
  2022-11-14 10:37   ` Mika Westerberg
@ 2022-11-15  1:38     ` Albert Zhou
  2022-11-15  7:23       ` Mika Westerberg
  0 siblings, 1 reply; 6+ messages in thread
From: Albert Zhou @ 2022-11-15  1:38 UTC (permalink / raw)
  To: Mika Westerberg; +Cc: bhelgaas, linux-pci, lukas


[-- Attachment #1.1.1: Type: text/plain, Size: 876 bytes --]

On 14/11/22 21:37, Mika Westerberg wrote:
>> +	default y if USB4
>>   	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.
>> +	  powered up and running. Thunderbolt and USB4 PCI cards require
>> +	  Hotplug.
> I would not say they "require" this. PCIe is completely optional in USB4
> systems and it is perfectly fine to have host controllers or
> add-in-cards that don't have a single PCIe adapter.
> 
> Not objeting the patch, though. For Linux I guess it makes sense to have
> this like what you are suggesting. Just perhaps changing the wordirng
> 😉

How about “Thunderbolt and USB4 use Hotplug”

Do you agree with the “default y if USB4” for PCIEPORTBUS, HOTPLUG_PCI_PCIE, HOTPLUG_PCI.

 From Albert Zhou

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 653 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* Re: [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig
  2022-11-15  1:38     ` Albert Zhou
@ 2022-11-15  7:23       ` Mika Westerberg
  0 siblings, 0 replies; 6+ messages in thread
From: Mika Westerberg @ 2022-11-15  7:23 UTC (permalink / raw)
  To: Albert Zhou; +Cc: bhelgaas, linux-pci, lukas

Hi,

On Tue, Nov 15, 2022 at 12:38:11PM +1100, Albert Zhou wrote:
> On 14/11/22 21:37, Mika Westerberg wrote:
> > > +	default y if USB4
> > >   	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.
> > > +	  powered up and running. Thunderbolt and USB4 PCI cards require
> > > +	  Hotplug.
> > I would not say they "require" this. PCIe is completely optional in USB4
> > systems and it is perfectly fine to have host controllers or
> > add-in-cards that don't have a single PCIe adapter.
> > 
> > Not objeting the patch, though. For Linux I guess it makes sense to have
> > this like what you are suggesting. Just perhaps changing the wordirng
> > 😉
> 
> How about “Thunderbolt and USB4 use Hotplug”

Or

"Thunderbolt/USB4 PCIe tunneling needs Native PCIe Hotplug to be enabled"

> Do you agree with the “default y if USB4” for PCIEPORTBUS, HOTPLUG_PCI_PCIE, HOTPLUG_PCI.

Yes, I think for Linux perspective it makes sense to have them enabled
by default.

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

end of thread, other threads:[~2022-11-15  7:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-13 11:28 [PATCH v2 0/2] add hotplug depedency info Albert Zhou
2022-11-13 11:28 ` [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig Albert Zhou
2022-11-14 10:37   ` Mika Westerberg
2022-11-15  1:38     ` Albert Zhou
2022-11-15  7:23       ` Mika Westerberg
2022-11-13 11:28 ` [PATCH v2 2/2] pci: pcie: " Albert Zhou

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