Skip to content

Replace hibmc code with generic implmentation

Thomas Zimmermann dri-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 0 repliesSuperseded
  3. v14 patches 9 repliesSuperseded

Changes in v3 from the cover letter

* only do power-of-2 test if pitch_align is given
* update mgag200 for changes to drm_gem_vram_fill_create_dumb()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/hisilicon/hibmc: Switch to generic fbdev emulationdrivers/gpu/drm/hisilicon/hibmc/Makefile drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +1 more+3 -2550 replies
2/5drm/hisilicon/hibmc: Replace struct hibmc_framebuffer with generic codedrivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c+3 -810 replies
3/5drm/vram: Support scanline alignment for dumb buffersdrivers/gpu/drm/drm_gem_vram_helper.c drivers/gpu/drm/mgag200/mgag200_drv.c include/drm/drm_gem_vram_helper.h+12 -40 replies
4/5drm/hisilicon/hibmc: Implement hibmc_dumb_create() with generic helpersdrivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c+2 -500 replies
5/5drm/hisilicon/hibmc: Export VRAM MM information to debugfsdrivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c+1 -00 replies

Reviews trailers per patch

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

PatchDaniel VetterSam Ravnborg
1/5R-b A-b
2/5R-b A-b
3/5R-b A-b
4/5R-b A-b
5/5R-b A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Replace hibmc code with generic implmentation

The patch set replaces code in hibmc with generic implementation. Version 3 of the patchset only adds fixes. I'm reposting the whole thing for possible testers.

Patches 1 to 4 replace fbdev emuation, framebuffer and creation of dumb buffers with respective code from DRM helpers. Patch 5 adds an additional interface to debugfs that displays the allocated and free areas in video memory.

The patches have only been compile-tested. Further testing is appreciated.

v3:
* only do power-of-2 test if pitch_align is given
* update mgag200 for changes to drm_gem_vram_fill_create_dumb()
v2:
* split [3/4] into vram and hibmc changes
* verify that pitch_align is power of two

Thomas Zimmermann (5):
drm/hisilicon/hibmc: Switch to generic fbdev emulation drm/hisilicon/hibmc: Replace struct hibmc_framebuffer with generic
code
drm/vram: Support scanline alignment for dumb buffers drm/hisilicon/hibmc: Implement hibmc_dumb_create() with generic
helpers
drm/hisilicon/hibmc: Export VRAM MM information to debugfs

 drivers/gpu/drm/drm_gem_vram_helper.c         |  13 +-
 drivers/gpu/drm/hisilicon/hibmc/Makefile      |   2 +-
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_de.c    |   4 +-
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c   |   6 +-
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h   |  26 --
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c | 240 ------------------
 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c   | 117 +--------
 drivers/gpu/drm/mgag200/mgag200_drv.c         |   2 +-
 include/drm/drm_gem_vram_helper.h             |   1 +
 9 files changed, 21 insertions(+), 390 deletions(-)
 delete mode 100644 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c

--
2.23.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel