mirror-linux/drivers/gpu/drm/vmwgfx
Thomas Zimmermann e2d8b4289c fbdev: Use pageref offset for deferred-I/O writeback
Use pageref->offset instead of page->index for deferred-I/O writeback
where appropriate. Distinguishes between file-mapping offset and video-
memory offset. While at it, also remove unnecessary references to
struct page.

Fbdev's deferred-I/O code uses the two related page->index and
pageref->offset. The former is the page offset in the mapped file,
the latter is the byte offset in the video memory (or fbdev screen
buffer). It's the same value for fbdev drivers, but for DRM the values
can be different. Because GEM buffer objects are mapped at an offset
in the DRM device file, page->index has this offset added to it as well.
We currently don't hit this case in DRM, because all affected mappings
of GEM memory are performed with an internal, intermediate shadow buffer.

The value of page->index is required by page_mkclean(), which we
call to reset the mappings during the writeback phase of the deferred
I/O. The value of pageref->offset is for conveniently getting an offset
into video memory in fb helpers.

v4:
	* fix commit message (Javier)

Suggested-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220429100834.18898-6-tzimmermann@suse.de
2022-05-03 16:04:22 +02:00
..
device_include
Kconfig
Makefile
ttm_object.c
ttm_object.h
vmw_surface_cache.h
vmwgfx_binding.c
vmwgfx_binding.h
vmwgfx_blit.c
vmwgfx_bo.c Linux 5.18-rc5 2022-05-03 16:08:48 +10:00
vmwgfx_cmd.c drm/vmwgfx: Disable command buffers on svga3 without gbobjects 2022-03-21 10:10:36 -04:00
vmwgfx_cmdbuf.c
vmwgfx_cmdbuf_res.c
vmwgfx_context.c
vmwgfx_cotable.c drm/vmwgfx: Reserve fence slots on buffer objects in cotables 2022-04-22 21:41:14 -04:00
vmwgfx_devcaps.c
vmwgfx_devcaps.h
vmwgfx_drv.c Linux 5.18-rc5 2022-05-03 16:08:48 +10:00
vmwgfx_drv.h drm/vmwgfx: Implement MSI/MSI-X support for IRQs 2022-03-11 13:29:37 -05:00
vmwgfx_execbuf.c Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2022-02-07 17:03:24 +01:00
vmwgfx_fb.c fbdev: Use pageref offset for deferred-I/O writeback 2022-05-03 16:04:22 +02:00
vmwgfx_fence.c drm/vmwgfx: Fix fencing on SVGAv3 2022-03-11 13:29:34 -05:00
vmwgfx_fence.h drm/vmwgfx: remove vmw_wait_dma_fence 2022-02-02 16:15:37 +01:00
vmwgfx_gem.c
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c
vmwgfx_hashtab.c
vmwgfx_hashtab.h
vmwgfx_ioctl.c drm/vmwgfx: Allow querying of the SVGA PCI id from the userspace 2022-03-11 13:29:35 -05:00
vmwgfx_irq.c drm/vmwgfx: Implement MSI/MSI-X support for IRQs 2022-03-11 13:29:37 -05:00
vmwgfx_kms.c drm/vmwgfx: validate the screen formats 2022-03-21 10:10:35 -04:00
vmwgfx_kms.h drm/vmwgfx: validate the screen formats 2022-03-21 10:10:35 -04:00
vmwgfx_ldu.c drm/vmwgfx: Cleanup multimon initialization code 2022-03-11 13:29:32 -05:00
vmwgfx_mksstat.h
vmwgfx_mob.c
vmwgfx_msg.c
vmwgfx_msg_arm64.h
vmwgfx_msg_x86.h
vmwgfx_overlay.c
vmwgfx_page_dirty.c
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/ttm: remove bo->moving 2022-04-07 12:53:54 +02:00
vmwgfx_resource_priv.h
vmwgfx_scrn.c drm/vmwgfx: Add support for CursorMob and CursorBypass 4 2022-03-11 13:29:30 -05:00
vmwgfx_shader.c
vmwgfx_simple_resource.c
vmwgfx_so.c
vmwgfx_so.h
vmwgfx_stdu.c drm/vmwgfx: Stop using surface dma commands on most configurations 2022-03-11 13:29:38 -05:00
vmwgfx_streamoutput.c
vmwgfx_surface.c drm/vmwgfx: Fix gem refcounting and memory evictions 2022-04-20 21:30:43 -04:00
vmwgfx_system_manager.c
vmwgfx_ttm_buffer.c drm/ttm: Add a parameter to add extra pages into ttm_tt 2022-04-02 08:22:48 +05:30
vmwgfx_ttm_glue.c
vmwgfx_va.c
vmwgfx_validation.c
vmwgfx_validation.h