Skip to content

drm/nouveau: support for GK20A, cont'd

Alexandre Courbot dri-devel linux-tegra lkml nouveau 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 1 replyIn review
  2. v39 patches 7 repliesSuperseded
  3. v210 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches39 repliesSuperseded

Changes in v4 from the cover letter

- use only pfn_to_page() and page_to_pfn() in GK20A's FB. These functions are present on every arch and the physical address to page frame number conversion is also consistently a shift of PAGE_SHIFT. This part will probably be replaced by something nicer in the future anyway.
- fixed a warning on 64-bit architectures when printing a dma_addr_t
- tested compilation on x86_64 and ensured there was no error! ;)
- in graph, always use external firmware if no microcode is linked for the graph class (instead of only relying on the NvGrUseFW parameter).

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/nouveau/bar: only ioremap BAR3 if it existsdrivers/gpu/drm/nouveau/core/subdev/bar/base.c+4 -20 replies
2/9drm/nouveau/bar/nvc0: support chips without BAR3drivers/gpu/drm/nouveau/core/subdev/bar/nvc0.c+59 -550 replies
3/9drm/nouveau/ibus: add GK20A supportdrivers/gpu/drm/nouveau/Makefile drivers/gpu/drm/nouveau/core/include/subdev/ibus.h drivers/gpu/drm/nouveau/core/subdev/ibus/gk20a.c+105 -00 replies
4/9drm/nouveau/fb: add GK20A supportdrivers/gpu/drm/nouveau/Makefile drivers/gpu/drm/nouveau/core/include/subdev/fb.h drivers/gpu/drm/nouveau/core/subdev/fb/gk20a.c +2 more+227 -00 replies
5/9drm/nouveau/fifo: add GK20A supportdrivers/gpu/drm/nouveau/Makefile drivers/gpu/drm/nouveau/core/engine/fifo/gk20a.c drivers/gpu/drm/nouveau/core/engine/fifo/nve0.h +1 more+38 -00 replies
6/9drm/nouveau/graph: enable when using external fwdrivers/gpu/drm/nouveau/core/engine/graph/nvc0.c+7 -30 replies
7/9drm/nouveau/graph: pad firmware code at load timedrivers/gpu/drm/nouveau/core/engine/graph/nvc0.c+4 -00 replies
8/9drm/nouveau/graph: add GK20A supportdrivers/gpu/drm/nouveau/Makefile drivers/gpu/drm/nouveau/core/engine/graph/ctxgk20a.c drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.h +5 more+123 -90 replies
9/9drm/nouveau: support for probing GK20Adrivers/gpu/drm/nouveau/core/engine/device/nve0.c+17 -00 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchThierry Reding
1/9R-b
2/9
3/9
4/9
5/9R-b
6/9
7/9R-b
8/9
9/9

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

Read the v4 thread

Cover letter [PATCH v4 0/9] drm/nouveau: support for GK20A, cont'd

Latest patches for GK20A, taking comments received for v3 into account.

Changes since v3:
- use only pfn_to_page() and page_to_pfn() in GK20A's FB. These functions are present on every arch and the physical address to page frame number conversion is also consistently a shift of PAGE_SHIFT. This part will probably be replaced by something nicer in the future anyway.
- fixed a warning on 64-bit architectures when printing a dma_addr_t
- tested compilation on x86_64 and ensured there was no error! ;)
- in graph, always use external firmware if no microcode is linked for the graph class (instead of only relying on the NvGrUseFW parameter).

Alexandre Courbot (9):
drm/nouveau/bar: only ioremap BAR3 if it exists drm/nouveau/bar/nvc0: support chips without BAR3 drm/nouveau/ibus: add GK20A support drm/nouveau/fb: add GK20A support drm/nouveau/fifo: add GK20A support drm/nouveau/graph: enable when using external fw drm/nouveau/graph: pad firmware code at load time drm/nouveau/graph: add GK20A support drm/nouveau: support for probing GK20A

 drivers/gpu/drm/nouveau/Makefile                   |   6 +
 drivers/gpu/drm/nouveau/core/engine/device/nve0.c  |  17 +++
 drivers/gpu/drm/nouveau/core/engine/fifo/gk20a.c   |  35 +++++
 drivers/gpu/drm/nouveau/core/engine/fifo/nve0.h    |   1 +
 .../gpu/drm/nouveau/core/engine/graph/ctxgk20a.c   |  53 +++++++
 .../gpu/drm/nouveau/core/engine/graph/ctxnvc0.h    |   9 ++
 .../gpu/drm/nouveau/core/engine/graph/ctxnve4.c    |  14 +-
 drivers/gpu/drm/nouveau/core/engine/graph/gk20a.c  |  47 ++++++
 drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c   |  14 +-
 drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h   |   2 +
 drivers/gpu/drm/nouveau/core/engine/graph/nve4.c   |   4 +-
 drivers/gpu/drm/nouveau/core/include/engine/fifo.h |   1 +
 .../gpu/drm/nouveau/core/include/engine/graph.h    |   1 +
 drivers/gpu/drm/nouveau/core/include/subdev/fb.h   |   1 +
 drivers/gpu/drm/nouveau/core/include/subdev/ibus.h |   1 +
 drivers/gpu/drm/nouveau/core/subdev/bar/base.c     |   6 +-
 drivers/gpu/drm/nouveau/core/subdev/bar/nvc0.c     | 114 +++++++-------
 drivers/gpu/drm/nouveau/core/subdev/fb/gk20a.c     |  56 +++++++
 drivers/gpu/drm/nouveau/core/subdev/fb/priv.h      |   1 +
 drivers/gpu/drm/nouveau/core/subdev/fb/ramgk20a.c  | 167 +++++++++++++++++++++
 drivers/gpu/drm/nouveau/core/subdev/ibus/gk20a.c   | 103 +++++++++++++
 21 files changed, 584 insertions(+), 69 deletions(-)
 create mode 100644 drivers/gpu/drm/nouveau/core/engine/fifo/gk20a.c
 create mode 100644 drivers/gpu/drm/nouveau/core/engine/graph/ctxgk20a.c
 create mode 100644 drivers/gpu/drm/nouveau/core/engine/graph/gk20a.c
 create mode 100644 drivers/gpu/drm/nouveau/core/subdev/fb/gk20a.c
 create mode 100644 drivers/gpu/drm/nouveau/core/subdev/fb/ramgk20a.c
 create mode 100644 drivers/gpu/drm/nouveau/core/subdev/ibus/gk20a.c
Signature · 1 line
1.9.2