Skip to content
Snippets Groups Projects
Commit c56428f3 authored by Simon Dubray's avatar Simon Dubray Committed by jenkins_ndg
Browse files

display: reduce graphics memory impact

The purpose of this patch is to reduce graphics memory usage.
It reduces the size of memory allocated for hashtables from 8MB to 512kB
as we assume that our small watches need less memory than merrifield phones.
This optimization should save around 15MB of RAM on our kernel.

Change-Id: Ic6737eb41b4286707193e6487287aa9cc2c57d26
Tracked-On: https://jira01.devtools.intel.com/browse/AW-4180


Signed-off-by: default avatarSimon Dubray <simonx.dubray@intel.com>
Reviewed-on: https://android.intel.com/564929


Reviewed-by: default avatarjenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: default avatarDeverge, Jean-francoisX <jean-francoisx.deverge@intel.com>
Reviewed-by: default avatarGong, Sophia <sophia.gong@intel.com>
Reviewed-by: default avatarWhitfield, MichaelX <michaelx.whitfield@intel.com>
Reviewed-by: default avatarBen Alaya, AymenX <aymenx.ben.alaya@intel.com>
Reviewed-by: default avatarLouis, FabienX <fabienx.louis@intel.com>
Reviewed-by: default avatarTasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: default avatarLedentec, AlexandreX <alexandrex.ledentec@intel.com>
Reviewed-by: default avatarKorpershoek, MattijsX <mattijsx.korpershoek@intel.com>
parent d8a3066f
No related branches found
No related tags found
No related merge requests found
......@@ -385,7 +385,7 @@ int psb_gtt_mm_init(struct psb_gtt *pg)
spin_lock_init(&gtt_mm->lock);
ht = &gtt_mm->hash;
ret = drm_ht_create(ht, 20);
ret = drm_ht_create(ht, 16);
if (ret) {
DRM_DEBUG("Create hash table failed(%d)\n", ret);
goto err_free;
......@@ -513,7 +513,7 @@ static int psb_gtt_mm_alloc_insert_ht(struct psb_gtt_mm *mm,
return -ENOMEM;
}
ret = drm_ht_create(&hentry->ht, 20);
ret = drm_ht_create(&hentry->ht, 16);
if (ret) {
DRM_DEBUG("Create hash table failed\n");
goto failed_drm_ht_create;
......
......@@ -537,7 +537,7 @@ int psb_gtt_mm_init(struct psb_gtt *pg)
spin_lock_init(&gtt_mm->lock);
ht = &gtt_mm->hash;
ret = drm_ht_create(ht, 20);
ret = drm_ht_create(ht, 16);
if (ret) {
DRM_DEBUG("Create hash table failed(%d)\n", ret);
goto err_free;
......@@ -669,7 +669,7 @@ static int psb_gtt_mm_alloc_insert_ht(struct psb_gtt_mm *mm,
return -ENOMEM;
}
ret = drm_ht_create(&hentry->ht, 20);
ret = drm_ht_create(&hentry->ht, 16);
if (ret) {
DRM_DEBUG("Create hash table failed\n");
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment