diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index e6fb7ded5a66..d7f1e49ab6ce 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -704,6 +704,7 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data) | |||
704 | 704 | ||
705 | mutex_lock(&adev->gem.mutex); | 705 | mutex_lock(&adev->gem.mutex); |
706 | list_for_each_entry(rbo, &adev->gem.objects, list) { | 706 | list_for_each_entry(rbo, &adev->gem.objects, list) { |
707 | unsigned pin_count; | ||
707 | unsigned domain; | 708 | unsigned domain; |
708 | const char *placement; | 709 | const char *placement; |
709 | 710 | ||
@@ -720,8 +721,13 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data) | |||
720 | placement = " CPU"; | 721 | placement = " CPU"; |
721 | break; | 722 | break; |
722 | } | 723 | } |
723 | seq_printf(m, "bo[0x%08x] %12ld %s pid %8d\n", | 724 | seq_printf(m, "bo[0x%08x] %12ld %s pid %8d", |
724 | i, amdgpu_bo_size(rbo), placement, rbo->pid); | 725 | i, amdgpu_bo_size(rbo), placement, rbo->pid); |
726 | |||
727 | pin_count = ACCESS_ONCE(rbo->pin_count); | ||
728 | if (pin_count) | ||
729 | seq_printf(m, " pin count %d", pin_count); | ||
730 | seq_printf(m, "\n"); | ||
725 | i++; | 731 | i++; |
726 | } | 732 | } |
727 | mutex_unlock(&adev->gem.mutex); | 733 | mutex_unlock(&adev->gem.mutex); |