mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
rk29: vivante: alloc_pages add GFP_DMA flag to support 1G memory
This commit is contained in:
@@ -494,7 +494,7 @@ gckOS_AllocateNonPagedMemoryFromSystem(
|
||||
#else
|
||||
size = mdl->numPages * PAGE_SIZE;
|
||||
order = get_order(size);
|
||||
page = alloc_pages(GFP_KERNEL , order); // dkm modify 110330 <20><>GFP_DMAȥ<41><C8A5>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䲻<EFBFBD><E4B2BB>DMA<4D>ڴ<EFBFBD>
|
||||
page = alloc_pages(GFP_KERNEL | GFP_DMA, order);
|
||||
|
||||
if (page == gcvNULL)
|
||||
{
|
||||
@@ -1883,10 +1883,10 @@ gckOS_AllocateNonPagedMemory(
|
||||
|
||||
if (page == gcvNULL)
|
||||
{
|
||||
page = alloc_pages(GFP_KERNEL, order);
|
||||
page = alloc_pages(GFP_KERNEL | GFP_DMA, order);
|
||||
}
|
||||
#else
|
||||
page = alloc_pages(GFP_KERNEL , order); // dkm modify 110330 <20><>GFP_DMAȥ<41><C8A5>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䲻<EFBFBD><E4B2BB>DMA<4D>ڴ<EFBFBD>
|
||||
page = alloc_pages(GFP_KERNEL | GFP_DMA, order);
|
||||
#endif /* gcdkUSE_NON_PAGED_MEMORY_CACHE */
|
||||
|
||||
if (page == gcvNULL)
|
||||
|
||||
Reference in New Issue
Block a user