Skip to content

drm/nouveau: Fix a lot of nasty RPM bugs and deadlocks

Lyude Paul dri-devel linux-pm lkml nouveau stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/nouveau: Prevent RPM callback recursion in suspend/resume pathsdrivers/gpu/drm/nouveau/nouveau_drm.c+9 -115 replies
2/5drm/nouveau: Grab RPM ref while probing outputsdrivers/gpu/drm/nouveau/dispnv50/disp.c+9 -12 replies
3/5drm/nouveau: Add missing RPM get/put() when probing connectorsdrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/nouveau_connector.c drivers/gpu/drm/nouveau/nouveau_connector.h+23 -31 reply
4/5drm/nouveau: Grab RPM ref when i2c bus is in usedrivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c+11 -13 replies
5/5drm/nouveau: Grab RPM ref when aux bus is in usedrivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c+11 -10 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchKarol Herbst
1/5
2/5R-b
3/5R-b
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] drm/nouveau: Fix a lot of nasty RPM bugs and deadlocks

This fixes quite a number of runtime PM bugs I found that have been causing some pretty nasty issues such as:
- Deadlocking on boot
- Connector probing potentially not working while the GPU is in runtime suspend
- i2c char dev not working while the GPU is in runtime suspend
- aux char dev not working while the GPU is in runtime suspend

There's definitely more parts of nouveau that need to be fixed to use runtime power management correctly, such as the hwmon portions, but this series just handles the more important fixes that should get into stable for the time being.

Lyude Paul (5):
drm/nouveau: Prevent RPM callback recursion in suspend/resume paths drm/nouveau: Grab RPM ref while probing outputs drm/nouveau: Add missing RPM get/put() when probing connectors drm/nouveau: Grab RPM ref when i2c bus is in use drm/nouveau: Grab RPM ref when aux bus is in use

 drivers/gpu/drm/nouveau/dispnv50/disp.c       | 12 +++++++++--
 drivers/gpu/drm/nouveau/nouveau_connector.c   | 21 +++++++++++++++++--
 drivers/gpu/drm/nouveau/nouveau_connector.h   |  3 +++
 drivers/gpu/drm/nouveau/nouveau_drm.c         | 10 ++++++++-
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c | 12 ++++++++++-
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c | 12 ++++++++++-
 6 files changed, 63 insertions(+), 7 deletions(-)
Signature · 6 lines
2.17.1

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau