From 3090ace7937e38513c421426f1066836ef55877e Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 21 Apr 2015 13:17:03 -0700 Subject: gpu: nvgpu: Do not leak ACR header 4b6f83704f054f5b21e05873fa5862c667a9992e tried to fix ACR related leak. It fell short, because the data structures related were local and thus the leak was not really fixed. This patch stores the ACR ucode blob in a global variable, which survives across rail gating. Change-Id: Iec3ac9d41156baa26048e079732568c0a95264f4 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/733732 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman --- drivers/gpu/nvgpu/gm20b/acr_gm20b.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b/acr_gm20b.h') diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.h b/drivers/gpu/nvgpu/gm20b/acr_gm20b.h index 557acbc7..8970bf55 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.h @@ -259,7 +259,6 @@ struct lsfm_managed_ucode_img { struct ls_flcn_mgr { u16 managed_flcn_cnt; u32 wpr_size; - struct mem_desc mem; u32 disable_mask; struct lsfm_managed_ucode_img *ucode_img_list; void *wpr_client_req_state;/*PACR_CLIENT_REQUEST_STATE originally*/ @@ -373,8 +372,7 @@ struct acr_fw_header { }; struct acr_gm20b { - u64 ucode_blob_start; - u32 ucode_blob_size; + struct mem_desc ucode_blob; struct bin_hdr *bl_bin_hdr; struct hsflcn_bl_desc *pmu_hsbl_desc; struct bin_hdr *hsbin_hdr; -- cgit v1.2.2