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
..
2020-09-09 07:58:56 +02:00
2020-06-10 09:02:03 +02:00
2020-08-18 15:26:32 +02:00
2020-06-24 15:45:51 +10:00
2020-07-24 08:48:05 +10:00
2020-08-19 09:14:40 +02:00
2020-07-02 20:25:51 +02:00
2020-08-11 11:58:31 +10:00
2020-09-08 10:19:55 +02:00
2020-09-09 07:58:56 +02:00
2020-08-18 14:14:25 +02:00
2020-08-08 09:06:33 +02:00
2020-09-01 15:30:27 +02:00
2020-08-30 20:35:55 -04:00
2020-08-06 14:27:31 -07:00
2020-07-20 09:34:24 +02:00
2020-08-18 14:14:25 +02:00
2020-08-12 20:42:08 +02:00
2020-07-30 18:19:57 +02:00
2020-08-11 11:58:31 +10:00
2020-08-15 12:14:18 +02:00
2020-08-08 09:06:33 +02:00
2020-07-24 08:48:05 +10:00
2020-08-27 11:17:52 +02:00
2020-09-09 07:58:56 +02:00
2020-07-28 17:21:58 +02:00
2020-09-09 07:58:56 +02:00
2020-08-21 15:15:11 +03:00
2020-09-06 21:55:03 +02:00
2020-08-18 14:14:25 +02:00
2020-07-23 10:06:22 +02:00
2020-09-09 08:29:47 +10:00
2020-04-03 17:11:41 +02:00
2020-09-09 07:58:56 +02:00
2020-08-12 20:42:08 +02:00
2020-09-09 07:58:56 +02:00
2020-08-06 11:55:43 -07:00
2020-06-23 15:57:30 +02:00
2020-06-10 09:05:18 +02:00
2020-08-18 14:14:25 +02:00
2020-07-08 11:47:01 +02:00
2020-08-27 17:55:50 +02:00
2020-09-09 07:58:56 +02:00
2020-08-21 15:17:05 +03:00
2020-07-14 10:32:33 +02:00
2020-06-24 09:17:34 +02:00
2020-09-09 08:30:54 +10:00
2020-06-10 09:06:11 +02:00
2020-06-10 10:17:21 +02:00
2020-08-10 15:32:00 +02:00
2020-07-16 22:12:50 +02:00
2020-09-07 18:14:55 +02:00
2020-09-09 07:58:56 +02:00
2020-09-02 08:09:57 +02:00
2020-09-07 17:03:48 -04:00
2020-09-09 08:30:16 +10:00
2020-09-09 07:58:56 +02:00
2020-08-01 01:56:10 +00:00
2020-08-06 14:27:31 -07:00
2020-06-23 19:53:27 +02:00
2020-07-02 20:25:51 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-06-15 14:49:50 +01:00
2020-05-14 02:10:52 +03:00
2020-08-26 19:11:41 +02:00
2020-06-23 19:53:27 +02:00
2020-07-02 15:26:00 +02:00
2020-05-27 14:31:42 +03:00
2020-05-26 13:31:01 +02:00
2020-09-01 13:38:34 +03:00
2020-03-16 09:23:55 +01:00
2020-07-13 13:29:20 -04:00
2020-07-02 15:26:00 +02:00
2020-03-18 17:53:28 +01:00
2020-07-02 15:26:00 +02:00
2020-09-01 09:45:44 +02:00
2020-06-25 15:47:14 -07:00
2020-04-03 17:11:41 +02:00
2020-08-11 14:06:04 +02:00
2020-09-01 12:18:13 +03:00
2020-09-03 16:25:06 +02:00
2020-08-05 19:50:06 -07:00
2020-06-19 09:20:21 +02:00
2020-04-21 08:15:03 +02:00
2020-08-11 11:58:31 +10:00
2020-07-02 15:26:00 +02:00
2020-05-26 13:33:08 +02:00
2020-06-19 13:33:40 +01:00
2020-07-02 15:26:00 +02:00
2020-07-20 09:34:24 +02:00
2020-05-19 22:31:31 +01:00
2020-09-09 07:58:56 +02:00
2020-09-08 10:43:30 +02:00
2020-09-09 08:30:29 +10:00
2020-08-11 12:00:30 +10:00
2020-05-05 14:01:53 -04:00
2020-07-16 18:16:31 -04:00
2020-07-02 15:26:00 +02:00
2020-06-24 15:45:51 +10:00
2020-05-29 12:58:11 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-09-03 16:25:06 +02:00
2020-08-11 11:58:31 +10:00
2020-07-10 20:21:45 +02:00
2020-06-23 15:46:40 +02:00
2020-07-02 15:26:00 +02:00
2020-05-05 10:51:56 +02:00
2020-07-20 11:47:28 +02:00
2020-08-11 11:58:31 +10:00
2020-08-04 11:45:23 +02:00
2020-08-16 17:12:18 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-09-09 07:58:56 +02:00
2020-07-31 14:42:37 +10:00
2020-06-02 10:59:11 -07:00
2020-03-06 09:24:29 +01:00
2020-08-02 15:22:31 +02:00
2020-06-03 10:24:23 +02:00
2020-08-06 11:55:43 -07:00
2020-07-21 11:08:35 -04:00
2020-06-24 15:45:51 +10:00
2020-05-20 20:03:45 +02:00
2020-07-18 02:59:16 +03:00
2020-07-23 15:31:38 +10:00