linux_dsm_epyc7002/drivers/gpu/drm/rockchip
Gerd Hoffmann 707d561f77 drm: allow limiting the scatter list size.
Add drm_device argument to drm_prime_pages_to_sg(), so we can
call dma_max_mapping_size() to figure the segment size limit
and call into __sg_alloc_table_from_pages() with the correct
limit.

This fixes virtio-gpu with sev.  Possibly it'll fix other bugs
too given that drm seems to totaly ignore segment size limits
so far ...

v2: place max_segment in drm driver not gem object.
v3: move max_segment next to the other gem fields.
v4: just use dma_max_mapping_size().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20200907112425.15610-2-kraxel@redhat.com
2020-09-09 07:58:56 +02:00
..
analogix_dp-rockchip.c
cdn-dp-core.c ASoC: hdmi-codec: merge .digital_mute() into .mute_stream() 2020-07-16 23:06:06 +01:00
cdn-dp-core.h
cdn-dp-reg.c drm/rockchip: Remove unneeded semicolon 2020-04-27 21:15:55 +02:00
cdn-dp-reg.h
dw_hdmi-rockchip.c drm: bridge: dw-hdmi: Pass drm_display_info to dw_hdmi_support_scdc() 2020-06-23 19:57:06 +02:00
dw-mipi-dsi-rockchip.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
inno_hdmi.c
inno_hdmi.h
Kconfig
Makefile
rk3066_hdmi.c
rk3066_hdmi.h
rockchip_drm_drv.c
rockchip_drm_drv.h
rockchip_drm_fb.c drm/rockchip: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:35 +01:00
rockchip_drm_fb.h
rockchip_drm_fbdev.c
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
rockchip_drm_gem.h
rockchip_drm_vop.c drm/rockchip: Add per-pixel alpha support for the PX30 VOP 2020-06-17 12:04:46 +02:00
rockchip_drm_vop.h drm/rockchip: Add per-pixel alpha support for the PX30 VOP 2020-06-17 12:04:46 +02:00
rockchip_lvds.c drm: Remove unnecessary drm_panel_attach and drm_panel_detach 2020-08-08 09:06:33 +02:00
rockchip_lvds.h
rockchip_rgb.c
rockchip_rgb.h
rockchip_vop_reg.c drm/rockchip: Add per-pixel alpha support for the PX30 VOP 2020-06-17 12:04:46 +02:00
rockchip_vop_reg.h