linux-stable/drivers/staging
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
..
axis-fifo
board
clocking-wizard
emxx_udc
fbtft fbdev: Use pageref offset for deferred-I/O writeback 2022-05-03 16:04:22 +02:00
fieldbus
fwserial
gdm724x Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
greybus Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
iio iio:adc:ad7280a: Move out of staging 2022-02-21 19:33:05 +00:00
ks7010 staging/ks7010: Remove redundant 'flush_workqueue()' calls 2022-02-15 17:05:43 +01:00
media media: atomisp: fix bad usage at error handling logic 2022-03-18 05:58:35 +01:00
most Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
nvec Staging: nvec: Fix ending in '(' error 2022-02-08 10:46:01 +01:00
octeon
octeon-usb
olpc_dcon
pi433 Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
qlge staging: qlge: add unregister_netdev in qlge_probe 2022-02-21 18:07:23 +01:00
r8188eu staging: r8188eu: Fix PPPoE tag insertion on little endian systems 2022-04-04 16:35:20 +02:00
rtl8192e staging: rtl8192e: Fix spelling mistake "RESQUEST" -> "REQUEST" 2022-03-16 15:08:53 +01:00
rtl8192u staging: rtl8192u: rework init and exit function 2022-02-25 10:08:32 +01:00
rtl8712 Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
rtl8723bs Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
rts5208 staging: rts5208: Resolve checkpatch.pl issues. 2022-03-18 13:44:02 +01:00
sm750fb staging: sm750fb: fix naming style 2022-03-18 13:43:41 +01:00
unisys Staging: unisys: visorhba: alignment should match open parenthesis 2022-02-08 10:34:53 +01:00
vc04_services Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
vme
vt6655 staging: vt6655: Remove unused byRFType in card.c 2022-03-14 18:32:39 +01:00
vt6656 staging: vt6656: Removed unused variable vt3342_vnt_threshold 2022-03-15 15:17:09 +01:00
wfx Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
wlan-ng staging: Use netif_rx(). 2022-03-07 11:40:40 +00:00
Kconfig mips: dts: ralink: add MT7621 SoC 2022-03-16 15:10:23 +01:00
Makefile mips: dts: ralink: add MT7621 SoC 2022-03-16 15:10:23 +01:00