aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
index 5e6b90c6794f..26818b0a0cc8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
@@ -253,18 +253,17 @@ static void amdgpu_gtt_mgr_del(struct ttm_mem_type_manager *man,
253 * amdgpu_gtt_mgr_debug - dump VRAM table 253 * amdgpu_gtt_mgr_debug - dump VRAM table
254 * 254 *
255 * @man: TTM memory type manager 255 * @man: TTM memory type manager
256 * @prefix: text prefix 256 * @printer: DRM printer to use
257 * 257 *
258 * Dump the table content using printk. 258 * Dump the table content using printk.
259 */ 259 */
260static void amdgpu_gtt_mgr_debug(struct ttm_mem_type_manager *man, 260static void amdgpu_gtt_mgr_debug(struct ttm_mem_type_manager *man,
261 const char *prefix) 261 struct drm_printer *printer)
262{ 262{
263 struct amdgpu_gtt_mgr *mgr = man->priv; 263 struct amdgpu_gtt_mgr *mgr = man->priv;
264 struct drm_printer p = drm_debug_printer(prefix);
265 264
266 spin_lock(&mgr->lock); 265 spin_lock(&mgr->lock);
267 drm_mm_print(&mgr->mm, &p); 266 drm_mm_print(&mgr->mm, printer);
268 spin_unlock(&mgr->lock); 267 spin_unlock(&mgr->lock);
269} 268}
270 269