linux/drivers/gpu/drm/amd
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
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
amdkfd drm/amd/amdkfd: Fix large framesize for kfd_smi_ev_read() 2020-07-15 13:27:34 -04:00
display Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
include drm/amd/display: Read VBIOS Golden Settings Tbl 2020-08-06 16:47:13 -04:00
powerplay drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resume 2020-08-07 17:52:15 -04:00