* [PATCH v2] drm/radeon: convert VCE logging to drm_* helpers
@ 2025-12-20 8:01 Mukesh Ogare
2026-01-07 12:28 ` Christian König
0 siblings, 1 reply; 4+ messages in thread
From: Mukesh Ogare @ 2025-12-20 8:01 UTC (permalink / raw)
To: alexander.deucher, christian.koenig, airlied, simona, amd-gfx
Cc: dri-devel, linux-kernel, Mukesh Ogare
Replace legacy DRM_ERROR() and DRM_INFO() logging in the VCE code
with drm_err() and drm_info() helpers that take a struct drm_device.
Using drm_* logging provides proper device context in dmesg, which is
important for systems with multiple DRM devices, and aligns the radeon
driver with current DRM logging practices.
No functional change intended.
Signed-off-by: Mukesh Ogare <mukeshogare871@gmail.com>
---
drivers/gpu/drm/radeon/radeon_vce.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c
index a203992cb932..fd176034b251 100644
--- a/drivers/gpu/drm/radeon/radeon_vce.c
+++ b/drivers/gpu/drm/radeon/radeon_vce.c
@@ -121,7 +121,7 @@ int radeon_vce_init(struct radeon_device *rdev)
if (sscanf(c, "%2u]", &rdev->vce.fb_version) != 1)
return -EINVAL;
- drm_err(&rdev->ddev, "Found VCE firmware/feedback version %d.%d.%d / %d!\n",
+ 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);
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/radeon: convert VCE logging to drm_* helpers
2025-12-20 8:01 [PATCH v2] drm/radeon: convert VCE logging to drm_* helpers Mukesh Ogare
@ 2026-01-07 12:28 ` Christian König
2026-01-20 6:37 ` [PATCH] " Mukesh Ogare
0 siblings, 1 reply; 4+ messages in thread
From: Christian König @ 2026-01-07 12:28 UTC (permalink / raw)
To: Mukesh Ogare, alexander.deucher, airlied, simona, amd-gfx
Cc: dri-devel, linux-kernel
On 12/20/25 09:01, Mukesh Ogare wrote:
> Replace legacy DRM_ERROR() and DRM_INFO() logging in the VCE code
> with drm_err() and drm_info() helpers that take a struct drm_device.
>
> Using drm_* logging provides proper device context in dmesg, which is
> important for systems with multiple DRM devices, and aligns the radeon
> driver with current DRM logging practices.
>
> No functional change intended.
I agree that this should only be info level, but you turn an error level into an info level, so that is a functional change.
Please adjust the commit message accordingly.
Regards,
Christian.
>
> Signed-off-by: Mukesh Ogare <mukeshogare871@gmail.com>
> ---
> drivers/gpu/drm/radeon/radeon_vce.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c
> index a203992cb932..fd176034b251 100644
> --- a/drivers/gpu/drm/radeon/radeon_vce.c
> +++ b/drivers/gpu/drm/radeon/radeon_vce.c
> @@ -121,7 +121,7 @@ int radeon_vce_init(struct radeon_device *rdev)
> if (sscanf(c, "%2u]", &rdev->vce.fb_version) != 1)
> return -EINVAL;
>
> - drm_err(&rdev->ddev, "Found VCE firmware/feedback version %d.%d.%d / %d!\n",
> + 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);
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] drm/radeon: convert VCE logging to drm_* helpers
2026-01-07 12:28 ` Christian König
@ 2026-01-20 6:37 ` Mukesh Ogare
2026-01-20 15:08 ` Alex Deucher
0 siblings, 1 reply; 4+ messages in thread
From: Mukesh Ogare @ 2026-01-20 6:37 UTC (permalink / raw)
To: christian.koenig
Cc: alexander.deucher, airlied, simona, amd-gfx, dri-devel,
linux-kernel, Mukesh Ogare
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>
---
drivers/gpu/drm/radeon/radeon_vce.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c
index bdbc1bbe8a9b..ed631c0e5e28 100644
--- a/drivers/gpu/drm/radeon/radeon_vce.c
+++ b/drivers/gpu/drm/radeon/radeon_vce.c
@@ -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);
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/radeon: convert VCE logging to drm_* helpers
2026-01-20 6:37 ` [PATCH] " Mukesh Ogare
@ 2026-01-20 15:08 ` Alex Deucher
0 siblings, 0 replies; 4+ messages in thread
From: Alex Deucher @ 2026-01-20 15:08 UTC (permalink / raw)
To: Mukesh Ogare
Cc: christian.koenig, alexander.deucher, airlied, simona, amd-gfx,
dri-devel, linux-kernel
Applied. Thanks!
On Tue, Jan 20, 2026 at 3:26 AM Mukesh Ogare <mukeshogare871@gmail.com> wrote:
>
> 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>
> ---
> drivers/gpu/drm/radeon/radeon_vce.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c
> index bdbc1bbe8a9b..ed631c0e5e28 100644
> --- a/drivers/gpu/drm/radeon/radeon_vce.c
> +++ b/drivers/gpu/drm/radeon/radeon_vce.c
> @@ -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);
>
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-20 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-20 8:01 [PATCH v2] drm/radeon: convert VCE logging to drm_* helpers Mukesh Ogare
2026-01-07 12:28 ` Christian König
2026-01-20 6:37 ` [PATCH] " Mukesh Ogare
2026-01-20 15:08 ` Alex Deucher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®