diff options
| author | Emily Deng <[email protected]> | 2023-06-06 06:27:04 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 16:44:12 +0000 |
| commit | f2bcc0c7db0c004f0184675e7862648e8aa197f9 (patch) | |
| tree | f12bdf34318797856ae712c944bd91d6d906db5b /drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | |
| parent | drm/amdkfd: potential error pointer dereference in ioctl (diff) | |
| download | kernel-f2bcc0c7db0c004f0184675e7862648e8aa197f9.tar.gz kernel-f2bcc0c7db0c004f0184675e7862648e8aa197f9.zip | |
drm/amdgpu/mmsch: Correct the definition for mmsch init header
For the header, it is version related, shouldn't use MAX_VCN_INSTANCES.
Signed-off-by: Emily Deng <[email protected]>
Reviewed-by: Feifei Xu <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c index 70fefbf26c48..c8f63b3c6f69 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c @@ -1313,7 +1313,7 @@ static int vcn_v3_0_start_sriov(struct amdgpu_device *adev) header.version = MMSCH_VERSION; header.total_size = sizeof(struct mmsch_v3_0_init_header) >> 2; - for (i = 0; i < AMDGPU_MAX_VCN_INSTANCES; i++) { + for (i = 0; i < MMSCH_V3_0_VCN_INSTANCES; i++) { header.inst[i].init_status = 0; header.inst[i].table_offset = 0; header.inst[i].table_size = 0; |
