Skip to content

fb fixes for gk20a/gm20b

Alexandre Courbot nouveau 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fb/gk20a: fix constructor calldrm/nouveau/nvkm/subdev/fb/gk20a.c+2 -10 replies
2/3fb/gk20a: use regular gf100's functionsdrm/nouveau/nvkm/subdev/fb/gk20a.c+5 -121 reply
3/3fb: add gm20b devicedrm/nouveau/include/nvkm/subdev/fb.h drm/nouveau/nvkm/engine/device/base.c drm/nouveau/nvkm/subdev/fb/Kbuild +3 more+48 -21 reply

Reviews trailers per patch

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

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

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/3] fb fixes for gk20a/gm20b

After observing random crashes on Tegra devices when patch "fb/gf100: defer DMA mapping of scratch page to oneinit() hook" was applied, I noticed that moving the 100c10 page allocation to the oneinit() hook resulted in that page being now allocated for Tegra as well, and accesses be made to members of gf100_fb which were not accessible because gk20a_fb_new() called nvkm_fb_new_() directly.

This is fixed by patch 1, but looking at this code made me realize we may just as well use the regular FB functions for gk20a/gm20b (without the ablity to allocate VRAM of course), so patches 2 and 3 do that.

Alexandre Courbot (3):
fb/gk20a: fix constructor call
fb/gk20a: use regular gf100's functions
fb: add gm20b device

 drm/nouveau/include/nvkm/subdev/fb.h  |  1 +
 drm/nouveau/nvkm/engine/device/base.c |  2 +-
 drm/nouveau/nvkm/subdev/fb/Kbuild     |  1 +
 drm/nouveau/nvkm/subdev/fb/gf100.h    |  4 ++++
 drm/nouveau/nvkm/subdev/fb/gk20a.c    | 20 ++++++------------
 drm/nouveau/nvkm/subdev/fb/gm200.c    |  2 +-
 drm/nouveau/nvkm/subdev/fb/gm20b.c    | 40 +++++++++++++++++++++++++++++++++++
 7 files changed, 55 insertions(+), 15 deletions(-)
 create mode 100644 drm/nouveau/nvkm/subdev/fb/gm20b.c
Signature · 6 lines
2.10.0

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