History

drm/amd/amdgpu: add info about vram and gtt total size

Junwei Zhang committed 10 years ago

Commit 9f6163e1 parent 46c9cc12 files · +18 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+8−0
@@ -487,6 +487,8 @@ struct drm_amdgpu_cs_chunk_data { · 486 unmodified lines
487487 #define AMDGPU_INFO_VIS_VRAM_USAGE 0x17
488488 /* number of TTM buffer evictions */
489489 #define AMDGPU_INFO_NUM_EVICTIONS 0x18
490+/* Query the total size of VRAM and GTT domains */
491+#define AMDGPU_INFO_VRAM_GTT_TOTAL 0x19
490492
491493 #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0
492494 #define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff
@@ -572,6 +574,12 @@ struct drm_amdgpu_info_vram_gtt { · 79 unmodified lines
572574 __u64 gtt_size;
573575 };
574576
577+struct drm_amdgpu_info_vram_gtt_total {
578+ __u64 vram_total_size;
579+ __u64 vram_cpu_accessible_total_size;
580+ __u64 gtt_total_size;
581+};
582+
575583 struct drm_amdgpu_info_firmware {
576584 __u32 ver;
577585 __u32 feature;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t