Skip to content

drm/nouveau/gsp/r570: Follow OpenRM's runtime PM process more closely

Lyude Paul dri-devel lkml nouveau 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 0 repliesNew
  2. v55 patches 0 repliesSuperseded
  3. v45 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches3 repliesSuperseded
v25 patches0 repliesSuperseded
v15 patches2 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/nouveau/gsp/r570: Add support for INTERNAL_GCX_ENTRY_PREREQUISITEdrivers/gpu/drm/nouveau/include/nvif/cl0080.h drivers/gpu/drm/nouveau/include/nvif/device.h drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h +8 more+122 -00 replies
2/5drm/nouveau/gsp/r535: Add support for MEMSYS_GET_STATIC_CONFIGdrivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm/gsp.h +2 more+75 -00 replies
3/5drm/nouveau/gsp/r570: Add comp mode workaround from issue #3172217drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/fbsr.c drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/nvrm/fbsr.h+54 -00 replies
4/5drm/nouveau/gsp/r570: Start saving comptag backing storesdrivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/fbsr.c drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/nvrm/fbsr.h+49 -10 replies
5/5drm/nouveau/gsp/r570: Enable Gcoff in fbsr againdrivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/fbsr.c+1 -10 replies

Reviews trailers per patch

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

PatchDave Airlie
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 v6 thread

Cover letter [PATCH v6 0/5] drm/nouveau/gsp/r570: Follow OpenRM's runtime PM process more closely

While we have runtime PM working a lot more reliably then in the past with R570, we're still doing things a lot differently then OpenRM. For instance, we don't save/restore comptag backing stores, and we don't ask GSP whether it's OK to enter GcOff.

This series fixes this, and gets our runtime PM process to look a lot closer to OpenRM's by implementing some missing pieces and workarounds.

Tested on my daily-driver desktop with an AD102, a ThinkPad P17 Gen1 with a GA103GLM, a Dell Precision 7780 with an AD103, and my test machine with a GB206.

Patch series based on drm-misc/drm-misc-next. Branch with patches here:

https://gitlab.freedesktop.org/lyudess/linux/-/commits/nouveau/rpm-openrm-sync

Previous version:

	https://patchwork.freedesktop.org/series/173901/

NOTE: There are no actual changes besides a single fix to patch 1, which had already been requested from airlied but somehow didn't get sent with the rest of the patches.

Lyude Paul (5):
drm/nouveau/gsp/r570: Add support for INTERNAL_GCX_ENTRY_PREREQUISITE drm/nouveau/gsp/r535: Add support for MEMSYS_GET_STATIC_CONFIG drm/nouveau/gsp/r570: Add comp mode workaround from issue #3172217 drm/nouveau/gsp/r570: Start saving comptag backing stores drm/nouveau/gsp/r570: Enable Gcoff in fbsr again

 drivers/gpu/drm/nouveau/include/nvif/cl0080.h | 10 +++
 drivers/gpu/drm/nouveau/include/nvif/device.h |  1 +
 .../gpu/drm/nouveau/include/nvkm/subdev/gsp.h |  6 ++
 drivers/gpu/drm/nouveau/nouveau_drm.c         | 13 ++++
 drivers/gpu/drm/nouveau/nvif/device.c         | 13 ++++
 .../gpu/drm/nouveau/nvkm/engine/device/user.c | 35 +++++++++
 .../gpu/drm/nouveau/nvkm/subdev/gsp/base.c    | 10 +++
 .../gpu/drm/nouveau/nvkm/subdev/gsp/priv.h    |  1 +
 .../drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c | 17 ++++
 .../nvkm/subdev/gsp/rm/r535/nvrm/gsp.h        | 45 +++++++++++
 .../nouveau/nvkm/subdev/gsp/rm/r570/fbsr.c    | 77 ++++++++++++++++++-
 .../drm/nouveau/nvkm/subdev/gsp/rm/r570/gsp.c | 36 +++++++++
 .../nvkm/subdev/gsp/rm/r570/nvrm/fbsr.h       | 29 +++++++
 .../nvkm/subdev/gsp/rm/r570/nvrm/gsp.h        |  7 ++
 .../gpu/drm/nouveau/nvkm/subdev/gsp/rm/rm.h   |  3 +
 15 files changed, 301 insertions(+), 2 deletions(-)

base-commit: 1e04611d3735543bd80a67d9d13dc13f503746fb

Signature · 1 line
2.55.0