Skip to content

pm_pme support on display hotplug

Vinod Govindapillai intel-gfx intel-xe 6 versions – Applied

Status from this message: pushed to drm-intel-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 6 repliesApplied
  2. v77 patches 1 replySuperseded
  3. v67 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v510 patches2 repliesSuperseded
v25 patches7 repliesSuperseded
v14 patches1 replySuperseded

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/5drm/xe/pm: introduce PM PME supportdrivers/gpu/drm/xe/xe_device_types.h drivers/gpu/drm/xe/xe_pci.c drivers/gpu/drm/xe/xe_pm.c +1 more+81 -12 replies
2/5drm/i915: add pme_enabled() to the parent interfacedrivers/gpu/drm/i915/display/intel_display_rpm.c drivers/gpu/drm/i915/display/intel_display_rpm.h include/drm/intel/display_parent_interface.h+9 -01 reply
3/5drm/i915/xe: plug the pme_enabed implementation for xedrivers/gpu/drm/xe/display/xe_display_rpm.c+6 -01 reply
4/5drm/i915/irq: conditional HPD IRQ resets based on PME capabilitydrivers/gpu/drm/i915/display/intel_display_irq.c+11 -71 reply
5/5drm/i915/hotplug: avoid HPD polling if the device is PME capabledrivers/gpu/drm/i915/display/intel_hotplug.c+5 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJouni Högander
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/5] pm_pme support on display hotplug

Introduce PME support for PME capable devices and avoid HPD polling on runtime suspend. For PME capable devices HPD will trigger PME which will wakeup the system. And rest of the runtime resume call is same as before.

v2: Instead of plumbing keep_hpd and pme_capability to
the existing interfaces, a separate helper function to set and get pme capability is added.

HPD polling is handled directly inside the intel_hpd_poll_enable() based on the pme capability flag

v3: Lockdep related splats were observed during some rare testing
scenarios. The PCI PME api to enable wake internally use kmalloc and can trigger deadlocks. So the calls to the PCI PME APIs are updated and placed within the no reclaim loop. Also any display specific calls are isolated within xe / i915 blocks and display parent interface is used to tackle the inter dependencies to keep the display module design clean.

v4: No need to maintaining another variable to keep track of PME
can be generated from HPD in intel_hotplug. Instead the parent interface function can be used directly to get the xe.pme.enabled to know PME is enabled and configure the IRQ resets and HPD polling

v5: Rebased

v6: Avoid "wakeup" false reporting platforms where PME is not supported

Vinod Govindapillai (5):
drm/xe/pm: introduce PM PME support
drm/i915: add pme_enabled() to the parent interface drm/i915/xe: plug the pme_enabed implementation for xe drm/i915/irq: conditional HPD IRQ resets based on PME capability drm/i915/hotplug: avoid HPD polling if the device is PME capable

 .../gpu/drm/i915/display/intel_display_irq.c  | 18 +++++---
 .../gpu/drm/i915/display/intel_display_rpm.c  |  7 +++
 .../gpu/drm/i915/display/intel_display_rpm.h  |  1 +
 drivers/gpu/drm/i915/display/intel_hotplug.c  |  5 +++
 drivers/gpu/drm/xe/display/xe_display_rpm.c   |  6 +++
 drivers/gpu/drm/xe/xe_device_types.h          | 13 ++++++
 drivers/gpu/drm/xe/xe_pci.c                   | 22 ++++++++-
 drivers/gpu/drm/xe/xe_pm.c                    | 45 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_pm.h                    |  2 +
 include/drm/intel/display_parent_interface.h  |  1 +
 10 files changed, 112 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.0