Skip to content

Allow Link state changes for Hot-Plug

Rajat Jain linux-pci lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 14 repliesIn review
  2. v24 patches 15 repliesSuperseded
  3. v1 RFC4 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8pciehp: Make check_link_active() non-staticdrivers/pci/hotplug/pciehp.h drivers/pci/hotplug/pciehp_hpc.c+4 -30 replies
2/8pciehp: Use link change notifications for hot-plug and removaldrivers/pci/hotplug/pciehp.h drivers/pci/hotplug/pciehp_ctrl.c drivers/pci/hotplug/pciehp_hpc.c+96 -10 replies
3/8pciehp: Enable link state change notificationsdrivers/pci/hotplug/pciehp_hpc.c+11 -20 replies
4/8pciehp: Don't disable the link permanently, during removaldrivers/pci/hotplug/pciehp_hpc.c+0 -1814 replies
5/8pciehp: Don't check for adapter or latch status while disablingdrivers/pci/hotplug/pciehp_ctrl.c+0 -180 replies
6/8pciehp: Disabling the link notification across slot resetdrivers/pci/hotplug/pciehp_hpc.c+17 -120 replies
7/8pciehp: Ensure very fast hotplug events are also processed.drivers/pci/hotplug/pciehp_ctrl.c+20 -90 replies
8/8pciehp: Introduce hotplug_lock to serialize HP eventsdrivers/pci/hotplug/pciehp.h drivers/pci/hotplug/pciehp_core.c drivers/pci/hotplug/pciehp_ctrl.c +1 more+23 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/8] Allow Link state changes for Hot-Plug

Hello,

This patch set enables the use of PCI Express link up and link down events for Hotplug or Unplug. Resending the patch after taking care of review comments, splitting patch into multiple smaller patches, and incorporating the conclusions drawn from the discussion here:

http://marc.info/?t=138611014300001&r=1&w=2

Due to splitting of the patch, 4 new patches are added to the patchset, although the content is almost the same.

Patch v2 [1/4] = Patch v3 [1/8]

Patch v2 [2/8] = Patch v3 [2/8] +

                 Patch v3 [3/8] +
                 Patch v3 [4/8] +
                 Patch v3 [5/8] +
                 Patch v3 [6/8]

Patch v2 [3/4] = Patch v3 [7/8]

Patch v2 [4/4] = Patch v3 [8/8]

(As a side effect, this patch also fixes the bug
https://bugzilla.kernel.org/show_bug.cgi?id=65521 )

I'd appreciate if you could please review and provide me with any comments.

Thanks,

Rajat

Rajat Jain (8):
pciehp: Make check_link_active() non-static
pciehp: Use link change notifications for hot-plug and removal
pciehp: Enable link state change notifications
pciehp: Don't disable the link permanently, during removal
pciehp: Don't check for adapter or latch status while disabling
pciehp: Disabling the link notification across slot reset
pciehp: Ensure very fast hotplug events are also processed.
pciehp: Introduce hotplug_lock to serialize HP events

 drivers/pci/hotplug/pciehp.h      |    5 ++
 drivers/pci/hotplug/pciehp_core.c |    7 +-
 drivers/pci/hotplug/pciehp_ctrl.c |  152 ++++++++++++++++++++++++++++++-------
 drivers/pci/hotplug/pciehp_hpc.c  |   73 +++++++++---------
 4 files changed, 171 insertions(+), 66 deletions(-)
Signature · 1 line
1.7.9.5