History

drm/amdgpu: Fix the exported always on CU bitmap

Newer asics with 4 SEs are not able to fit the entire bitmask in the original field, use an array instead. v2: keep cu_ao_mask for backward compatibility.

Flora Cui committed 9 years ago

Commit dbfe85e1 parent 552c8f78 files · +24 −7Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+3−0
@@ -764,6 +764,7 @@ struct drm_amdgpu_info_device { · 763 unmodified lines
764764 __u64 max_memory_clock;
765765 /* cu information */
766766 __u32 cu_active_number;
767+ /* NOTE: cu_ao_mask is INVALID, DON'T use it */
767768 __u32 cu_ao_mask;
768769 __u32 cu_bitmap[4][4];
769770 /** Render backend pipe mask. One render backend is CB+DB. */
@@ -818,6 +819,8 @@ struct drm_amdgpu_info_device { · 48 unmodified lines
818819 /* max gs wavefront per vgt*/
819820 __u32 max_gs_waves_per_vgt;
820821 __u32 _pad1;
822+ /* always on cu bitmap */
823+ __u32 cu_ao_bitmap[4][4];
821824 };
822825
823826 struct drm_amdgpu_info_hw_ip {

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