patch 3 is to fix kernel driver cannot removed bug (new regression) patch 1,2,6,7,8,10 are the cleanups to make code more readable and simple patch 4,5,9 are the fixes for memory leak bug after driver unloaded Monk Liu (10): drm/amdgpu:cleanup stolen vga memory finish drm/amdgpu:cleanup GMC & gart garbage function drm/amdgpu:fix NULL pointer access during drv remove drm/amdgpu:put reserve_fw_vram_fini to correct place drm/amdgpu:fix memleak in takedown drm/amdgpu:cleanup unused stack var drm/amdgpu:free CSA in unified place drm/amdgpu:cleanup firmware.fw_buf alloc/free drm/amdgpu:fix memleak drm/amdgpu:show error message if fail on event4 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 151 ++------------------------- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | 4 - drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 6 -- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 15 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 43 ++------ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 5 - drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 8 ++ drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 10 +- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 9 +- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 9 +- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 9 +- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 9 +- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 8 +- 17 files changed, 72 insertions(+), 230 deletions(-) -- 2.7.4