Skip to content

Commit 00018cb

Browse files
Madhurkiran Harikrishnanrhythm16
authored andcommitted
linux: mali_memory_os_alloc: Remove __GFP_COLD
The support for Cache hot and cold pages are removed from the kernel. For more information refer kernel commit 453f85d Link: https://github.com/Xilinx/meta-xilinx/tree/rel-v2020.1/meta-xilinx-bsp/recipes-graphics/mali/kernel-module-mali Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com> Upstream Status: Pending Signed-off-by: Shane Lin <shane.lin@canonical.com> Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
1 parent 61713b3 commit 00018cb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ubuntu/mali/linux/mali_memory_os_alloc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ int mali_mem_os_alloc_pages(mali_mem_os_mem *os_mem, u32 size)
202202
/* Allocate new pages, if needed. */
203203
for (i = 0; i < remaining; i++) {
204204
dma_addr_t dma_addr;
205-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
205+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
206+
gfp_t flags = __GFP_ZERO | __GFP_RETRY_MAYFAIL | __GFP_NOWARN;
207+
#elif LINUX_VERSION_CODE == KERNEL_VERSION(4, 14, 0)
206208
gfp_t flags = __GFP_ZERO | __GFP_RETRY_MAYFAIL | __GFP_NOWARN | __GFP_COLD;
207209
#else
208210
gfp_t flags = __GFP_ZERO | __GFP_REPEAT | __GFP_NOWARN | __GFP_COLD;

0 commit comments

Comments
 (0)