mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
disp: msm: sde: release splash memory using memblock_free
The splash memory initialized by the bootloader needs to be released after the first frame update. Add memblock_free() call to release this memory that was reserved during the kernel boot. Change-Id: I2633305528b1767b87273d027b8a939da0cedfc4 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
This commit is contained in:
parent
8510269a39
commit
7ef5f60e6b
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include <linux/of_address.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/dma-buf.h>
|
||||
#include <linux/memblock.h>
|
||||
#include <drm/drm_atomic_uapi.h>
|
||||
#include <drm/drm_probe_helper.h>
|
||||
|
||||
|
|
@ -817,6 +818,7 @@ static int _sde_kms_release_splash_buffer(unsigned int mem_addr,
|
|||
pfn_start = mem_addr >> PAGE_SHIFT;
|
||||
pfn_end = (mem_addr + splash_buffer_size) >> PAGE_SHIFT;
|
||||
|
||||
ret = memblock_free(mem_addr, splash_buffer_size);
|
||||
if (ret) {
|
||||
SDE_ERROR("continuous splash memory free failed:%d\n", ret);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue