projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/ttm: make ttm_mem_type_manager_func debug more useful
[platform/kernel/linux-rpi.git]
/
drivers
/
gpu
/
drm
/
amd
/
amdgpu
/
amdgpu_gtt_mgr.c
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
index
5e6b90c
..
26818b0
100644
(file)
--- 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,
* amdgpu_gtt_mgr_debug - dump VRAM table
*
* @man: TTM memory type manager
* amdgpu_gtt_mgr_debug - dump VRAM table
*
* @man: TTM memory type manager
- * @pr
efix: text prefix
+ * @pr
inter: DRM printer to use
*
* Dump the table content using printk.
*/
static void amdgpu_gtt_mgr_debug(struct ttm_mem_type_manager *man,
*
* Dump the table content using printk.
*/
static void amdgpu_gtt_mgr_debug(struct ttm_mem_type_manager *man,
-
const char *prefix
)
+
struct drm_printer *printer
)
{
struct amdgpu_gtt_mgr *mgr = man->priv;
{
struct amdgpu_gtt_mgr *mgr = man->priv;
- struct drm_printer p = drm_debug_printer(prefix);
spin_lock(&mgr->lock);
spin_lock(&mgr->lock);
- drm_mm_print(&mgr->mm,
&p
);
+ drm_mm_print(&mgr->mm,
printer
);
spin_unlock(&mgr->lock);
}
spin_unlock(&mgr->lock);
}