History

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

Junwei Zhang committed 10 years ago

Commit cfa32551 parent 9f6163e2 files · +26 −0Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+8−0
@@ -489,6 +489,8 @@ struct drm_amdgpu_cs_chunk_data { · 488 unmodified lines
489489 #define AMDGPU_INFO_NUM_EVICTIONS 0x18
490490 /* Query the total size of VRAM and GTT domains */
491491 #define AMDGPU_INFO_VRAM_GTT_TOTAL 0x19
492+/* Query the max allocation size of VRAM and GTT domains */
493+#define AMDGPU_INFO_VRAM_GTT_MAX 0x1a
492494
493495 #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0
494496 #define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff
@@ -580,6 +582,12 @@ struct drm_amdgpu_info_vram_gtt_total { · 85 unmodified lines
580582 __u64 gtt_total_size;
581583 };
582584
585+struct drm_amdgpu_info_vram_gtt_max {
586+ __u64 vram_max_size;
587+ __u64 vram_cpu_accessible_max_size;
588+ __u64 gtt_max_size;
589+};
590+
583591 struct drm_amdgpu_info_firmware {
584592 __u32 ver;
585593 __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