unsigned long hisi_get_reserve_mem_size(void)
{
    unsigned long reserved = SZ_2M;
	if(!get_isfullhd())
	{
		memset_for_hd();
	}
	else
	{
		memset_for_fhd();
	}
    reserved += hisi_media_mem.gpu_size;
    reserved += hisi_media_mem.codec_size;
    reserved += hisi_media_mem.camera_size;
    reserved += hisi_media_mem.gralloc_size;
	reserved += hisi_media_mem.vpp_size;
#if defined(CONFIG_OVERLAY_COMPOSE)
    reserved += hisi_media_mem.overlay_size;
#endif
	reserved += hisi_media_mem.fb_size;
    //reserved += HISI_PMEM_DUMPLOG_SIZE;
    reserved = (reserved & 0xFFF00000) + SZ_1M;

    return reserved;
}
unsigned long hisi_get_reserve_mem_size(void)
{
    unsigned long reserved = SZ_2M;
/*FHD&HD DTS:2013072204915 modifier: yuanfang y00241633 begin*/
	if(!get_isfullhd())
	{
		memset_for_hd();
	}
	else
	{
		memset_for_fhd();
	}
/*FHD&HD DTS:2013072204915 modifier: yuanfang y00241633 end*/
    reserved += hisi_media_mem.gpu_size;
    reserved += hisi_media_mem.codec_size;
    reserved += hisi_media_mem.camera_size;
    reserved += hisi_media_mem.gralloc_size;
	reserved += hisi_media_mem.vpp_size;
#if defined(CONFIG_OVERLAY_COMPOSE)
    reserved += hisi_media_mem.overlay_size;
#endif
	reserved += hisi_media_mem.fb_size;
    //reserved += HISI_PMEM_DUMPLOG_SIZE;
    reserved = (reserved & 0xFFF00000) + SZ_1M;

    return reserved;
}