Skip to content

drm/bochs: Modernize driver

Thomas Zimmermann dri-devel virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 5 repliesIn review
  2. v110 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- fix linker error (kernel test robot)
- fix mode validation

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/bochs: Remove manual format test from fb_createdrivers/gpu/drm/tiny/bochs.c+1 -120 replies
2/10drm/bochs: Use helpers for struct drm_ediddrivers/gpu/drm/tiny/bochs.c+22 -263 replies
3/10drm/bochs: Do managed resource cleanupdrivers/gpu/drm/tiny/bochs.c+10 -320 replies
4/10drm/bochs: Pass bochs device to various functionsdrivers/gpu/drm/tiny/bochs.c+6 -60 replies
5/10drm/bochs: Upcast with to_bochs_device()drivers/gpu/drm/tiny/bochs.c+9 -40 replies
6/10drm/bochs: Allocate DRM device in struct bochs_devicedrivers/gpu/drm/tiny/bochs.c+25 -272 replies
7/10drm/bochs: Use regular atomic helpersdrivers/gpu/drm/tiny/bochs.c+132 -450 replies
8/10drm/bochs: Use GEM SHMEM helpers for memory managementdrivers/gpu/drm/tiny/Kconfig drivers/gpu/drm/tiny/bochs.c+38 -440 replies
9/10drm/bochs: Validate display modes against available video memorydrivers/gpu/drm/tiny/bochs.c+20 -70 replies
10/10drm/gem-vram: Remove support for simple display pipelinesdrivers/gpu/drm/drm_gem_vram_helper.c include/drm/drm_gem_vram_helper.h+0 -580 replies

Reviews trailers per patch

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

PatchGerd Hoffmann
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10A-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 [PATCH v2 00/10] drm/bochs: Modernize driver

(was: rm/bochs: Modernize driver)

Bochs is lagging behind the overall state of DRM. This series gives the driver an update.

Patch 1 removes duplicated functionality that is already handled by the DRM core.

Patches 2 and 3 streamlines driver cleanup. Patch 2 reworks EDID handling to follow current best practices. All buffers with EDID data will now be cleaned up automatically. Patch 3 adds managed cleanups for I/O resources. No fini function is needed.

Patches 4 to 6 embed struct drm_device in struct bochs_device and remove all uses of dev_private.

Patch 7 replaces simple display helpers with regular atomic helpers. The former are a mid-layer that is more often 'in the way' than helping. Regular atomic helpers are composable with each other. Simple-pipe is not.

Patch 8 replaces GEM VRAM with GEM SHMEM. The new memory manager is more reliable and allows for larger resolutions. Display updates were so slow that Gnome was unmanageable with a flickering cursor and single FPS. The new memory management makes Gnome at least useable.

Patch 9 implements display-mode validation against the available video memory. Modes should now be useable iff they passed mode_valid.

Patch 10 removes code from GEM VRAM helpers that is now no longer in use.

Tested with qemu emulation.

v2:
- fix linker error (kernel test robot)
- fix mode validation

Thomas Zimmermann (10):
drm/bochs: Remove manual format test from fb_create drm/bochs: Use helpers for struct drm_edid
drm/bochs: Do managed resource cleanup
drm/bochs: Pass bochs device to various functions drm/bochs: Upcast with to_bochs_device()
drm/bochs: Allocate DRM device in struct bochs_device drm/bochs: Use regular atomic helpers
drm/bochs: Use GEM SHMEM helpers for memory management drm/bochs: Validate display modes against available video memory drm/gem-vram: Remove support for simple display pipelines

 drivers/gpu/drm/drm_gem_vram_helper.c |  45 ---
 drivers/gpu/drm/tiny/Kconfig          |   4 +-
 drivers/gpu/drm/tiny/bochs.c          | 384 +++++++++++++++-----------
 include/drm/drm_gem_vram_helper.h     |  13 -
 4 files changed, 224 insertions(+), 222 deletions(-)
Signature · 1 line
2.46.0