[PATCH] drm/amdgpu: Update SPM_VMID with the job's vmid when application reserves the vmid

2020-03-05 Thread Jacob He
SPM access the video memory according to SPM_VMID. It should be updated with the job's vmid right before the job is scheduled. SPM_VMID is a global resource Change-Id: Id3881908960398f87e7c95026a54ff83ff826700 Signed-off-by: Jacob He --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

[PATCH] drm/amdgpu: Update SPM_VMID with the job's vmid when application reserves the vmid

2020-03-03 Thread Jacob He
SPM access the video memory according to SPM_VMID. It should be updated with the job's vmid right before the job is scheduled. SPM_VMID is a global resource Change-Id: Id3881908960398f87e7c95026a54ff83ff826700 Signed-off-by: Jacob He --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

[PATCH] drm/amdgpu: Update SPM_VMID with the job's vmid when application reserves the vmid

2020-03-01 Thread Jacob He
SPM access the video memory according to SPM_VMID. It should be updated with the job's vmid right before the job is scheduled. SPM_VMID is a global resource Change-Id: Id3881908960398f87e7c95026a54ff83ff826700 Signed-off-by: Jacob He --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 1

[PATCH] drm/amdgpu: Initialize SPM_VMID with 0xf

2020-02-27 Thread Jacob He
process at most. Change-Id: Ieb54f6a16869b827504355a90a98663908d5087c Signed-off-by: Jacob He --- drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 19 ++- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 19 ++- drivers/gpu/drm/amd

[PATCH] drm/amdgpu: Add a chunk ID for spm trace

2020-02-19 Thread Jacob He
trace enabled processes simultaneously is not supported. Change-Id: Ic932ef6ac9dbf244f03aaee90550e8ff3a675666 Signed-off-by: Jacob He --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 7 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 10 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_job.h | 1