This patch enables GFX-v11 IP support in the usermode queue base code. It typically: - adds a GFX_v11 specific MQD structure - sets IP functions to create and destroy MQDs - sets MQD objects coming from userspace V10: introduced this spearate patch for GFX V11 enabling (Alex). V11: Addressed review comments: - update the comments in GFX mqd structure informing user about using the INFO IOCTL for object sizes (Alex) - rename struct drm_amdgpu_userq_mqd_gfx_v11 to drm_amdgpu_userq_mqd_gfx11 (Marek)
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -409,6 +409,25 @@ union drm_amdgpu_userq { · 408 unmodified lines | ||
| 409 | 409 | struct drm_amdgpu_userq_out out; |
| 410 | 410 | }; |
| 411 | 411 | |
| 412 | +/* GFX V11 IP specific MQD parameters */ | |
| 413 | +struct drm_amdgpu_userq_mqd_gfx11 { | |
| 414 | + /** | |
| 415 | + * @shadow_va: Virtual address of the GPU memory to hold the shadow buffer. | |
| 416 | + * Use AMDGPU_INFO_IOCTL to find the exact size of the object. | |
| 417 | + */ | |
| 418 | + __u64 shadow_va; | |
| 419 | + /** | |
| 420 | + * @gds_va: Virtual address of the GPU memory to hold the GDS buffer. | |
| 421 | + * Use AMDGPU_INFO_IOCTL to find the exact size of the object. | |
| 422 | + */ | |
| 423 | + __u64 gds_va; | |
| 424 | + /** | |
| 425 | + * @csa_va: Virtual address of the GPU memory to hold the CSA buffer. | |
| 426 | + * Use AMDGPU_INFO_IOCTL to find the exact size of the object. | |
| 427 | + */ | |
| 428 | + __u64 csa_va; | |
| 429 | +}; | |
| 430 | + | |
| 412 | 431 | /* vm ioctl */ |
| 413 | 432 | #define AMDGPU_VM_OP_RESERVE_VMID 1 |
| 414 | 433 | #define AMDGPU_VM_OP_UNRESERVE_VMID 2 |