Skip to content

Commit b1d8354

Browse files
davidwuAMDalexdeucher
authored andcommitted
drm/amdgpu/vcn: add instance number to VCN version message
For multiple VCN instances case we get multiple lines of the same message like below: amdgpu 0000:43:00.0: amdgpu: Found VCN firmware Version ENC: 1.24 DEC: 9 VEP: 0 Revision: 11 amdgpu 0000:43:00.0: amdgpu: Found VCN firmware Version ENC: 1.24 DEC: 9 VEP: 0 Revision: 11 By adding instance number to the log message for multiple VCN instances, each line will clearly indicate which VCN instance it refers to. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 010219c commit b1d8354

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,16 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev, int i)
185185
dec_ver = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xf;
186186
vep = (le32_to_cpu(hdr->ucode_version) >> 28) & 0xf;
187187
dev_info(adev->dev,
188-
"Found VCN firmware Version ENC: %u.%u DEC: %u VEP: %u Revision: %u\n",
189-
enc_major, enc_minor, dec_ver, vep, fw_rev);
188+
"[VCN instance %d] Found VCN firmware Version ENC: %u.%u DEC: %u VEP: %u Revision: %u\n",
189+
i, enc_major, enc_minor, dec_ver, vep, fw_rev);
190190
} else {
191191
unsigned int version_major, version_minor, family_id;
192192

193193
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
194194
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
195195
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
196-
dev_info(adev->dev, "Found VCN firmware Version: %u.%u Family ID: %u\n",
197-
version_major, version_minor, family_id);
196+
dev_info(adev->dev, "[VCN instance %d] Found VCN firmware Version: %u.%u Family ID: %u\n",
197+
i, version_major, version_minor, family_id);
198198
}
199199

200200
bo_size = AMDGPU_VCN_STACK_SIZE + AMDGPU_VCN_CONTEXT_SIZE;

0 commit comments

Comments
 (0)