Repository navigation
Commit ab5a60c
David Herrmann
drm/omap: use __GFP_DMA32 for shmem-backed gem
OMAP requires bo-pages to be in the DMA32 zone. Explicitly request this by
setting __GFP_DMA32 as mapping-gfp-mask during shmem initialization. This
drops HIGHMEM from the gfp-mask and uses DMA32 instead. shmem-core takes
care to relocate pages during swap-in in case they have been loaded into
the wrong zone.
It is _not_ possible to pass __GFP_DMA32 to shmem_read_mapping_page_gfp()
as the page might have already been swapped-in at that time. The zone-mask
must be set during initialization and be kept constant for now.
Remove the now superfluous TODO in omap_gem.c.
Reviewed-by: Rob Clark <robdclark@gmail.com>
Tested-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>1 parent 4661270 commit ab5a60c
1 file changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | 236 | | |
241 | 237 | | |
242 | 238 | | |
| |||
1347 | 1343 | | |
1348 | 1344 | | |
1349 | 1345 | | |
| 1346 | + | |
1350 | 1347 | | |
1351 | 1348 | | |
1352 | 1349 | | |
| |||
1404 | 1401 | | |
1405 | 1402 | | |
1406 | 1403 | | |
1407 | | - | |
1408 | | - | |
| 1404 | + | |
1409 | 1405 | | |
1410 | | - | |
| 1406 | + | |
1411 | 1407 | | |
| 1408 | + | |
| 1409 | + | |
1412 | 1410 | | |
1413 | | - | |
1414 | | - | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1415 | 1414 | | |
1416 | 1415 | | |
1417 | 1416 | | |
| |||
0 commit comments