]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/radeon: convert VCE logging to drm_* helpers
authorMukesh Ogare <mukeshogare871@gmail.com>
Tue, 20 Jan 2026 06:37:18 +0000 (12:07 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Jan 2026 22:28:06 +0000 (17:28 -0500)
Replace legacy DRM_INFO() logging in the VCE code with drm_info()
helper that takes a struct drm_device.

This provides proper device context in dmesg on multi-GPU systems and
aligns the radeon driver with current DRM logging practices.

Note that this change logs firmware version information at info level
and does not indicate a failure.

Signed-off-by: Mukesh Ogare <mukeshogare871@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_vce.c

index bdbc1bbe8a9b5b20996193a7680fcc6dbc2df9a5..ed631c0e5e2800c3c09d62e427593393ea7689fd 100644 (file)
@@ -121,8 +121,9 @@ int radeon_vce_init(struct radeon_device *rdev)
        if (sscanf(c, "%2u]", &rdev->vce.fb_version) != 1)
                return -EINVAL;
 
-       DRM_INFO("Found VCE firmware/feedback version %d.%d.%d / %d!\n",
-                start, mid, end, rdev->vce.fb_version);
+       drm_info(&rdev->ddev,
+                       "Found VCE firmware/feedback version %d.%d.%d / %d!\n",
+                       start, mid, end, rdev->vce.fb_version);
 
        rdev->vce.fw_version = (start << 24) | (mid << 16) | (end << 8);