Nicolin Chen
bd2e75633c
dma-contiguous: use fallback alloc_pages for single pages
...
The addresses within a single page are always contiguous, so it's
not so necessary to always allocate one single page from CMA area.
Since the CMA area has a limited predefined size of space, it may
run out of space in heavy use cases, where there might be quite a
lot CMA pages being allocated for single pages.
However, there is also a concern that a device might care where a
page comes from -- it might expect the page from CMA area and act
differently if the page doesn't.
This patch tries to use the fallback alloc_pages path, instead of
one-page size allocations from the global CMA area in case that a
device does not have its own CMA area. This'd save resources from
the CMA global area for more CMA allocations, and also reduce CMA
fragmentations resulted from trivial allocations.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com >
Tested-by: dann frazier <dann.frazier@canonical.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2019-06-03 16:00:07 +02:00
..
2019-05-21 12:33:38 -07:00
2019-05-21 10:50:45 +02:00
2018-10-24 20:55:56 -04:00
2019-05-21 10:50:46 +02:00
2019-06-03 16:00:07 +02:00
2019-05-14 09:47:49 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 11:28:45 +02:00
2019-05-24 14:17:18 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 11:28:45 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:46 +02:00
2019-05-26 13:49:40 -07:00
2019-04-29 16:48:03 +02:00
2019-04-04 21:04:13 -04:00
2019-04-09 14:19:06 +02:00
2019-04-28 20:33:43 -04:00
2019-04-26 13:51:03 -04:00
2019-04-28 20:33:43 -04:00
2019-03-20 20:57:48 -04:00
2019-04-28 20:33:43 -04:00
2019-05-07 20:03:32 -07:00
2019-05-07 20:03:32 -07:00
2019-04-29 12:37:47 +02:00
2018-10-31 08:54:14 -07:00
2019-01-25 11:22:43 -08:00
2019-05-15 08:16:14 -07:00
2019-03-07 18:32:02 -08:00
2019-05-21 10:50:45 +02:00
2019-05-06 14:50:46 -07:00
2019-03-05 21:07:14 -08:00
2019-05-21 10:50:45 +02:00
2019-05-24 17:27:11 +02:00
2019-05-21 11:52:39 +02:00
2018-05-16 07:23:35 +02:00
2018-05-16 07:23:35 +02:00
2019-05-21 10:50:45 +02:00
2018-02-21 16:54:06 +01:00
2019-04-09 14:19:06 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-14 09:47:46 -07:00
2019-04-29 16:48:03 +02:00
2019-05-21 10:50:45 +02:00
2019-04-19 12:59:36 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-03-07 18:32:02 -08:00
2019-05-03 19:42:41 +02:00
2019-05-14 09:47:50 -07:00
2018-07-16 12:31:57 -07:00
2019-04-29 16:48:03 +02:00
2019-04-16 09:38:16 +02:00
2019-05-21 10:50:45 +02:00
2019-05-14 19:52:49 -07:00
2019-05-14 19:52:47 -07:00
2019-05-14 09:47:51 -07:00
2019-05-24 17:27:11 +02:00
2019-05-24 17:27:11 +02:00
2019-05-14 10:55:54 -07:00
2019-05-21 10:50:45 +02:00
2019-04-25 22:06:11 +02:00
2019-05-21 10:50:45 +02:00
2018-04-11 10:28:37 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-03-12 13:27:20 -07:00
2019-05-21 10:50:45 +02:00
2019-04-19 12:39:32 +02:00
2019-05-07 19:06:04 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-03-22 14:36:02 +01:00
2018-12-05 19:31:44 -08:00
2019-05-21 10:50:45 +02:00
2019-05-24 17:27:11 +02:00
2019-05-07 14:31:03 +02:00
2019-05-14 09:47:44 -07:00
2019-01-04 13:13:47 -08:00
2019-05-21 10:50:45 +02:00
2019-04-27 17:07:22 -04:00
2019-05-21 11:52:39 +02:00
2019-03-26 14:42:53 -07:00
2018-11-27 09:21:41 -08:00
2018-04-05 21:36:27 -07:00
2018-04-02 20:15:59 +02:00
2018-04-02 20:15:30 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2018-11-07 23:51:16 -06:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2018-08-11 02:05:53 -05:00
2018-04-11 10:28:35 -07:00
2019-04-19 09:46:05 -07:00
2019-04-18 14:05:51 +02:00
2019-04-16 16:55:15 +02:00
2019-05-21 10:50:45 +02:00