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
489#define AMDGPU_INFO_NUM_EVICTIONS 0x18489#define AMDGPU_INFO_NUM_EVICTIONS 0x18
490/* Query the total size of VRAM and GTT domains */490/* Query the total size of VRAM and GTT domains */
491#define AMDGPU_INFO_VRAM_GTT_TOTAL 0x19491#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
492 494
493#define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0495#define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0
494#define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff496#define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff
@@ -580,6 +582,12 @@ struct drm_amdgpu_info_vram_gtt_total { · 85 unmodified lines
580 __u64 gtt_total_size;582 __u64 gtt_total_size;
581};583};
582 584
585struct 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
583struct drm_amdgpu_info_firmware {591struct drm_amdgpu_info_firmware {
584 __u32 ver;592 __u32 ver;
585 __u32 feature;593 __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