linux_dsm_epyc7002/drivers/gpu/drm/nouveau
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
..
dispnv04
dispnv50 Linux 5.8 2020-08-11 11:58:31 +10:00
include
nvif
nvkm Linux 5.8 2020-08-11 11:58:31 +10:00
Kbuild
Kconfig
nouveau_abi16.c
nouveau_abi16.h
nouveau_acpi.c
nouveau_acpi.h
nouveau_backlight.c
nouveau_bios.c
nouveau_bios.h
nouveau_bo74c1.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_bo85b5.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_bo90b5.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_bo0039.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_bo5039.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_bo9039.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_bo.c drm/ttm/agp: remove bdev from agp helpers 2020-09-09 08:30:49 +10:00
nouveau_bo.h drm/nouveau: move io_reserve_lru handling into the driver v5 2020-09-03 11:40:38 +02:00
nouveau_boa0b5.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_chan.c
nouveau_chan.h
nouveau_connector.c
nouveau_connector.h
nouveau_crtc.h
nouveau_debugfs.c
nouveau_debugfs.h
nouveau_display.c Linux 5.8 2020-08-11 11:58:31 +10:00
nouveau_display.h
nouveau_dma.c
nouveau_dma.h
nouveau_dmem.c drm next for 5.9-rc1 2020-08-05 19:50:06 -07:00
nouveau_dmem.h
nouveau_dp.c
nouveau_drm.c
nouveau_drv.h drm/nouveau: move io_reserve_lru handling into the driver v5 2020-09-03 11:40:38 +02:00
nouveau_encoder.h
nouveau_fbcon.c drm/ttm: merge offset and base in ttm_bus_placement 2020-09-08 10:43:30 +02:00
nouveau_fbcon.h
nouveau_fence.c
nouveau_fence.h
nouveau_gem.c
nouveau_gem.h
nouveau_hwmon.c
nouveau_hwmon.h
nouveau_ioc32.c
nouveau_ioctl.h
nouveau_led.c
nouveau_led.h
nouveau_mem.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nouveau_mem.h drm/ttm: rename ttm_mem_reg to ttm_resource. 2020-08-06 13:19:21 +10:00
nouveau_nvif.c
nouveau_platform.c
nouveau_platform.h
nouveau_prime.c drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
nouveau_reg.h
nouveau_sgdma.c drm/nouveau/ttm: use driver bind/unbind/destroy functions. 2020-09-09 08:30:11 +10:00
nouveau_svm.c drm next for 5.9-rc1 2020-08-05 19:50:06 -07:00
nouveau_svm.h
nouveau_ttm.c drm/nouveau: move io_reserve_lru handling into the driver v5 2020-09-03 11:40:38 +02:00
nouveau_ttm.h drm/nouveau/ttm: use driver bind/unbind/destroy functions. 2020-09-09 08:30:11 +10:00
nouveau_usif.c
nouveau_usif.h
nouveau_vga.c
nouveau_vga.h
nouveau_vmm.c
nouveau_vmm.h
nv04_fbcon.c
nv04_fence.c
nv10_fence.c
nv10_fence.h
nv17_fence.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nv50_display.h
nv50_fbcon.c
nv50_fence.c Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
nv84_fence.c
nvc0_fbcon.c
nvc0_fence.c