drm/amdgpu: alloc vm inv engines for every vmhub
authorShiwu Zhang <shiwu.zhang@amd.com>
Thu, 23 Dec 2021 05:44:48 +0000 (13:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:40:35 +0000 (09:40 -0400)
commit62e790879efbf09edb9f262d5eb7765aeaf89809
treeba82bd14ad84ebc9d27bd9692e82349f09f53a58
parent0fa49d108386c201b5c2cce68066a9b8f66883a5
drm/amdgpu: alloc vm inv engines for every vmhub

There are AMDGPU_MAX_VMHUBS of vmhub in maximum and need to init the
vm_inv_engs for all of them.

In this way, the below error can be ruled out.
[  217.317752] amdgpu 0000:02:00.0: amdgpu: no VM inv eng for ring sdma0

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Christian Koenig <Christian.Koenig@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c