Skip to content

drm/nouveau: display rework to support GSP-RM

Ben Skeggs nouveau 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest44 patches 1 replyIn review
  2. v144 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/44drm/nouveau/devinit/tu102-: remove attempt at loading PreOSdrivers/gpu/drm/nouveau/nvkm/subdev/devinit/tu102.c+2 -100 replies
2/44drm/nouveau/imem: support allocations not preserved across suspenddrivers/gpu/drm/nouveau/include/nvkm/core/memory.h drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h drivers/gpu/drm/nouveau/nvkm/core/memory.c +2 more+30 -80 replies
3/44drm/nouveau/gr/gf100-: lose contents of global ctxbufs across suspenddrivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c+5 -50 replies
4/44drm/nouveau/mmu/gp100-: always invalidate TLBs at CACHE_LEVEL_ALLdrivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c+2 -20 replies
5/44drm/nouveau/kms/nv50-: fix mst payload alloc fail crashing evodrivers/gpu/drm/nouveau/dispnv50/disp.c+7 -40 replies
6/44drm/nouveau/disp: rearrange output methodsdrivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+17 -140 replies
7/44drm/nouveau/disp: add output detect methoddrivers/gpu/drm/nouveau/include/nvif/conn.h drivers/gpu/drm/nouveau/include/nvif/if0011.h drivers/gpu/drm/nouveau/include/nvif/if0012.h +10 more+145 -1010 replies
8/44drm/nouveau/disp: add output method to fetch ediddrivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h drivers/gpu/drm/nouveau/nouveau_connector.c +3 more+70 -90 replies
9/44drm/nouveau/disp: rename internal output acquire/release functionsdrivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+19 -120 replies
10/44drm/nouveau/kms: Add INHERIT ioctl to nvkm/nvif for reading IOR statedrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h +5 more+291 -130 replies
11/44drm/nouveau/disp: shuffle to make upcoming diffs prettierdrivers/gpu/drm/nouveau/nvif/outp.c drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+91 -890 replies
12/44drm/nouveau/disp: add acquire_dac()drivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h +2 more+19 -120 replies
13/44drm/nouveau/disp: add acquire_sor/pior()drivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h +2 more+50 -260 replies
14/44drm/nouveau/disp: update SOR routing immediately on acquire()drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+3 -10 replies
15/44drm/nouveau/kms/nv50-: pull some common init out of OR-specific codedrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/nouveau_encoder.h+38 -330 replies
16/44drm/nouveau/kms/nv50-: remove nv_encoder.audio.connectordrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/nouveau_encoder.h+1 -40 replies
17/44drm/nouveau/kms/nv50-: keep output state around until modeset completedrivers/gpu/drm/nouveau/dispnv50/disp.c+6 -40 replies
18/44drm/nouveau/kms/nv50-: move audio enable post-modesetdrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/dispnv50/disp.h+34 -40 replies
19/44drm/nouveau/disp: add output hdmi config methoddrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h +4 more+74 -600 replies
20/44drm/nouveau/disp: move hdmi disable out of release()drivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/nouveau_encoder.h drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+20 -90 replies
21/44drm/nouveau/disp: release outputs post-modesetdrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+11 -100 replies
22/44drm/nouveau/disp: remove SOR routing updates from supervisordrivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c+0 -30 replies
23/44drm/nouveau/disp: add output backlight control methodsdrivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h drivers/gpu/drm/nouveau/nouveau_backlight.c +19 more+233 -810 replies
24/44drm/nouveau/disp: add output lvds config methoddrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h +2 more+28 -220 replies
25/44drm/nouveau/disp: add hdmi audio hal functiondrivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+10 -10 replies
26/44drm/nouveau/disp: move dp aux pwr method to HALdrivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c+16 -30 replies
27/44drm/nouveau/disp: add dp aux xfer methoddrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h +6 more+94 -310 replies
28/44drm/nouveau/disp: add dp rates methoddrivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h drivers/gpu/drm/nouveau/nouveau_dp.c +5 more+189 -990 replies
29/44drm/nouveau/kms/nv50-: split DP disable+enable into two modesetsdrivers/gpu/drm/nouveau/dispnv50/disp.c+2 -10 replies
30/44drm/nouveau/kms/nv50-: flush mst disables togetherdrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/dispnv50/disp.h+1 -110 replies
31/44drm/nouveau/kms/nv50-: fixup sink D3 before tearing down linkdrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/nouveau_dp.c drivers/gpu/drm/nouveau/nouveau_encoder.h+19 -100 replies
32/44drm/nouveau/disp: add dp train methoddrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h +6 more+143 -1760 replies
33/44drm/nouveau/disp: move link training out of supervisordrivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h drivers/gpu/drm/nouveau/nouveau_dp.c +6 more+218 -1460 replies
34/44drm/nouveau/disp: add dp sst config methoddrivers/gpu/drm/nouveau/include/nvif/if0012.h drivers/gpu/drm/nouveau/include/nvif/outp.h drivers/gpu/drm/nouveau/nvif/outp.c +2 more+54 -00 replies
35/44drm/nouveau/disp: add dp mst id get/put methodsdrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/dispnv50/head.h drivers/gpu/drm/nouveau/dispnv50/headc57d.c +6 more+137 -40 replies
36/44drm/nouveau/disp: move outp/conn construction to chipset codedrivers/gpu/drm/nouveau/nvkm/engine/disp/base.c drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c+121 -1180 replies
37/44drm/nouveau/disp: move outp init/fini paths to chipset codedrivers/gpu/drm/nouveau/nvkm/engine/disp/base.c drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.c drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.h +3 more+22 -560 replies
38/44drm/nouveau/disp/nv50-: skip DCB_OUTPUT_TVdrivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c+1 -10 replies
39/44drm/nouveau/kms/nv50-: create heads based on nvkm head maskdrivers/gpu/drm/nouveau/dispnv50/disp.c+3 -150 replies
40/44drm/nouveau/kms/nv50-: create heads after outps/connsdrivers/gpu/drm/nouveau/dispnv50/disp.c+32 -320 replies
41/44drm/nouveau/kms/nv50-: name aux channels after their connectordrivers/gpu/drm/nouveau/nouveau_connector.c+9 -160 replies
42/44drm/nouveau/kms/nv50-: create connectors based on nvkm infodrivers/gpu/drm/nouveau/dispnv04/disp.c drivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/include/nvif/conn.h +5 more+139 -710 replies
43/44drm/nouveau/kms/nv50-: create outputs based on nvkm infodrivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/dispnv50/disp.h drivers/gpu/drm/nouveau/include/nvif/if0012.h +6 more+223 -500 replies
44/44drm/nouveau/kms/nv50-: disable dcb parsingdrivers/gpu/drm/nouveau/nouveau_bios.c drivers/gpu/drm/nouveau/nouveau_display.c drivers/gpu/drm/nouveau/nvif/disp.c+10 -80 replies

Reviews trailers per patch

42 of 44 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLyude PaulDanilo Krummrich
SeriesA-b
1/44R-b
2/44R-b
3/44R-b
4/44R-b
5/44R-b
6/44R-b
7/44R-b
8/44R-b
9/44R-b
10/44
11/44R-b
12/44R-b
13/44R-b
14/44R-b
15/44R-b
16/44R-b
17/44R-b
18/44R-b
19/44R-b
20/44R-b
21/44R-b
22/44R-b
23/44R-b
24/44R-b
25/44R-b
26/44R-b
27/44R-b
28/44R-b
29/44R-b
30/44R-b
31/44R-b
32/44R-b
33/44R-b
34/44R-b
35/44R-b
36/44R-b
37/44R-b
38/44
39/44R-b
40/44R-b
41/44R-b
42/44R-b
43/44R-b
44/44R-b

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

Read the v2 thread

Cover letter [Nouveau] [PATCH v2 00/44] drm/nouveau: display rework to support GSP-RM

From: Ben Skeggs <[email protected]>

The primary issue being tackled here is that, for historical reasons (we didn't know any better / couldn't make it work reliably otherwise), some operations (SOR routing, DP link training) were performed during the 2nd HW supervisor interrupt.

We don't have control of the display supervisor when running on top of RM, so this needed to be untangled and fixed - which, is one of the main aims of this patch series.

The ordering of this series is pretty important, so take care if/when backporting patches from it.

Beyond that main goal, various other interfaces have been added or extended to provide the information that RM will need for its version of similar interfaces.

Ben Skeggs (43):
drm/nouveau/devinit/tu102-: remove attempt at loading PreOS drm/nouveau/imem: support allocations not preserved across suspend drm/nouveau/gr/gf100-: lose contents of global ctxbufs across suspend drm/nouveau/mmu/gp100-: always invalidate TLBs at CACHE_LEVEL_ALL drm/nouveau/kms/nv50-: fix mst payload alloc fail crashing evo drm/nouveau/disp: rearrange output methods drm/nouveau/disp: add output detect method drm/nouveau/disp: add output method to fetch edid drm/nouveau/disp: rename internal output acquire/release functions drm/nouveau/disp: shuffle to make upcoming diffs prettier drm/nouveau/disp: add acquire_dac()
drm/nouveau/disp: add acquire_sor/pior()
drm/nouveau/disp: update SOR routing immediately on acquire() drm/nouveau/kms/nv50-: pull some common init out of OR-specific code drm/nouveau/kms/nv50-: remove nv_encoder.audio.connector drm/nouveau/kms/nv50-: keep output state around until modeset complete drm/nouveau/kms/nv50-: move audio enable post-modeset drm/nouveau/disp: add output hdmi config method drm/nouveau/disp: move hdmi disable out of release() drm/nouveau/disp: release outputs post-modeset drm/nouveau/disp: remove SOR routing updates from supervisor drm/nouveau/disp: add output backlight control methods drm/nouveau/disp: add output lvds config method drm/nouveau/disp: add hdmi audio hal function drm/nouveau/disp: move dp aux pwr method to HAL drm/nouveau/disp: add dp aux xfer method
drm/nouveau/disp: add dp rates method drm/nouveau/kms/nv50-: split DP disable+enable into two modesets drm/nouveau/kms/nv50-: flush mst disables together drm/nouveau/kms/nv50-: fixup sink D3 before tearing down link drm/nouveau/disp: add dp train method
drm/nouveau/disp: move link training out of supervisor drm/nouveau/disp: add dp sst config method drm/nouveau/disp: add dp mst id get/put methods drm/nouveau/disp: move outp/conn construction to chipset code drm/nouveau/disp: move outp init/fini paths to chipset code drm/nouveau/disp/nv50-: skip DCB_OUTPUT_TV drm/nouveau/kms/nv50-: create heads based on nvkm head mask drm/nouveau/kms/nv50-: create heads after outps/conns drm/nouveau/kms/nv50-: name aux channels after their connector drm/nouveau/kms/nv50-: create connectors based on nvkm info drm/nouveau/kms/nv50-: create outputs based on nvkm info drm/nouveau/kms/nv50-: disable dcb parsing

Lyude Paul (1):
drm/nouveau/kms: Add INHERIT ioctl to nvkm/nvif for reading IOR state

 drivers/gpu/drm/nouveau/dispnv04/disp.c       |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c       | 512 +++++++++++-------
 drivers/gpu/drm/nouveau/dispnv50/disp.h       |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/head.h       |   1 +
 drivers/gpu/drm/nouveau/dispnv50/headc57d.c   |  14 +
 drivers/gpu/drm/nouveau/include/nvif/conn.h   |  20 +-
 drivers/gpu/drm/nouveau/include/nvif/if0011.h |  21 +-
 drivers/gpu/drm/nouveau/include/nvif/if0012.h | 249 +++++++--
 drivers/gpu/drm/nouveau/include/nvif/outp.h   |  96 +++-
 .../drm/nouveau/include/nvkm/core/memory.h    |   1 +
 .../drm/nouveau/include/nvkm/subdev/instmem.h |   2 +-
 drivers/gpu/drm/nouveau/nouveau_backlight.c   |  90 +--
 drivers/gpu/drm/nouveau/nouveau_bios.c        |   8 +-
 drivers/gpu/drm/nouveau/nouveau_connector.c   | 251 ++++-----
 drivers/gpu/drm/nouveau/nouveau_connector.h   |   3 +-
 drivers/gpu/drm/nouveau/nouveau_display.c     |   8 +-
 drivers/gpu/drm/nouveau/nouveau_dp.c          | 345 ++++++++++--
 drivers/gpu/drm/nouveau/nouveau_encoder.h     |  30 +-
 drivers/gpu/drm/nouveau/nvif/conn.c           |  36 +-
 drivers/gpu/drm/nouveau/nvif/disp.c           |   2 +-
 drivers/gpu/drm/nouveau/nvif/outp.c           | 412 ++++++++++++--
 drivers/gpu/drm/nouveau/nvkm/core/memory.c    |  15 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/base.c   | 146 +----
 .../gpu/drm/nouveau/nvkm/engine/disp/conn.c   |  10 -
 .../gpu/drm/nouveau/nvkm/engine/disp/conn.h   |   2 -
 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c | 362 ++++---------
 .../gpu/drm/nouveau/nvkm/engine/disp/g84.c    |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/g94.c    |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/ga102.c  |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/gf119.c  |   2 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/gk104.c  |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/gm107.c  |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/gm200.c  |  17 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/gp100.c  |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/gt215.c  |  38 ++
 .../gpu/drm/nouveau/nvkm/engine/disp/gv100.c  |   2 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/ior.h    |  15 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/mcp89.c  |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/nv50.c   | 182 ++++++-
 .../gpu/drm/nouveau/nvkm/engine/disp/outp.c   | 144 ++++-
 .../gpu/drm/nouveau/nvkm/engine/disp/outp.h   |  43 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/tu102.c  |   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/uconn.c  |  67 +--
 .../gpu/drm/nouveau/nvkm/engine/disp/uoutp.c  | 460 +++++++++++++---
 .../gpu/drm/nouveau/nvkm/engine/gr/gf100.c    |  10 +-
 .../drm/nouveau/nvkm/subdev/devinit/tu102.c   |  12 +-
 .../drm/nouveau/nvkm/subdev/instmem/base.c    |  19 +-
 .../drm/nouveau/nvkm/subdev/instmem/priv.h    |   1 +
 .../drm/nouveau/nvkm/subdev/mmu/vmmgp100.c    |   2 +-
 .../drm/nouveau/nvkm/subdev/mmu/vmmtu102.c    |   2 +-
 50 files changed, 2461 insertions(+), 1207 deletions(-)
Signature · 1 line
2.41.0