diff options
| author | Lang Yu <[email protected]> | 2023-06-21 15:49:48 +0800 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-31 16:40:56 -0400 |
| commit | dc6f3d6ff2cae6bb4dbc621dade8bd20f9aa69a2 (patch) | |
| tree | 0f70255a97bc90b5472df69aa7aca5c645f9517d | |
| parent | 3488c79beafac3efbac571a2ebffc8ffd78bb7f0 (diff) | |
drm/amdgpu: enable UMSCH scheduling for VPE
Add VPE into UMSCH hw resourses,
set vmid mask to 0xf00,
set hqd mask to 0xfe,
then UMSCH can schedule VPE queues.
Signed-off-by: Lang Yu <[email protected]>
Reviewed-by: Leo Liu <[email protected]>
Reviewed-by: Veerabadhran Gopalakrishnan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c index a8a35547e883..29457c503c85 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c @@ -231,6 +231,10 @@ static int umsch_mm_init(struct amdgpu_device *adev) { int r; + adev->umsch_mm.vmid_mask_mm_vpe = 0xf00; + adev->umsch_mm.engine_mask = (1 << UMSCH_SWIP_ENGINE_TYPE_VPE); + adev->umsch_mm.vpe_hqd_mask = 0xfe; + r = amdgpu_device_wb_get(adev, &adev->umsch_mm.wb_index); if (r) { dev_err(adev->dev, "failed to alloc wb for umsch: %d\n", r); |