Extend DRM_IOCTL_AMDXDNA_GET_INFO to include additional parameters that allow collection of resource data.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -442,6 +442,23 @@ enum amdxdna_drm_get_param { · 441 unmodified lines | ||
| 442 | 442 | DRM_AMDXDNA_QUERY_HW_CONTEXTS, |
| 443 | 443 | DRM_AMDXDNA_QUERY_FIRMWARE_VERSION = 8, |
| 444 | 444 | DRM_AMDXDNA_GET_POWER_MODE, |
| 445 | + DRM_AMDXDNA_QUERY_RESOURCE_INFO = 12, | |
| 446 | +}; | |
| 447 | + | |
| 448 | +/** | |
| 449 | + * struct amdxdna_drm_get_resource_info - Get resource information | |
| 450 | + */ | |
| 451 | +struct amdxdna_drm_get_resource_info { | |
| 452 | + /** @npu_clk_max: max H-Clocks */ | |
| 453 | + __u64 npu_clk_max; | |
| 454 | + /** @npu_tops_max: max TOPs */ | |
| 455 | + __u64 npu_tops_max; | |
| 456 | + /** @npu_task_max: max number of tasks */ | |
| 457 | + __u64 npu_task_max; | |
| 458 | + /** @npu_tops_curr: current TOPs */ | |
| 459 | + __u64 npu_tops_curr; | |
| 460 | + /** @npu_task_curr: current number of tasks */ | |
| 461 | + __u64 npu_task_curr; | |
| 445 | 462 | }; |
| 446 | 463 | |
| 447 | 464 | /** |