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. 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(-) -- 2.46.0