mbox series

[v3,0/5] Replace hibmc code with generic implmentation

Message ID 20191203083819.6643-1-tzimmermann@suse.de (mailing list archive)
Headers show
Series Replace hibmc code with generic implmentation | expand

Message

Thomas Zimmermann Dec. 3, 2019, 8:38 a.m. UTC
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