History

drm/amdgpu: enable GFX-V11 userqueue support

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)

Shashank Sharma committed 2 years ago

Commit a1d201e1 parent d84607e4 files · +56 −0Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+19−0
@@ -409,6 +409,25 @@ union drm_amdgpu_userq { · 408 unmodified lines
409 struct drm_amdgpu_userq_out out;409 struct drm_amdgpu_userq_out out;
410};410};
411 411
412/* GFX V11 IP specific MQD parameters */
413struct 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/* vm ioctl */431/* vm ioctl */
413#define AMDGPU_VM_OP_RESERVE_VMID 1432#define AMDGPU_VM_OP_RESERVE_VMID 1
414#define AMDGPU_VM_OP_UNRESERVE_VMID 2433#define AMDGPU_VM_OP_UNRESERVE_VMID 2

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