Is amdgpu open to converting logging to drm_* functions
Christian König
christian.koenig at amd.com
Thu Aug 7 13:29:44 UTC 2025
On 07.08.25 15:22, Alex Deucher wrote:
> On Thu, Aug 7, 2025 at 9:13 AM Brahmajit Das <listout at listout.xyz> wrote:
>>
>> Hello Alex, Christian,
>>
>> I'm a mentee at Linux kernel Bug Fixing Summer 2025. I came across the
>> TODO list on the kernel doc, and specifically this section[0]. Would
>> amdgpu be open to this conversion. I saw that before starting it is
>> recommended to talk with Sean and the relevant maintainer. Hence I'm
>> emailing you folks.
>
> It would be nice to get rid of the old DRM_INFO/ERROR/DEBUG macros and
> replace them with the dev_ or drm_ replacements.
Good point.
For the background, the old DRM_INFO/ERROR/DEBUG macros only printed a message without noting from which device it came from.
That made sense when you only had a single VGA graphics card in the system, but those days are long gone and today when we have a system with multiple graphics device we sometimes wonder where a message came from.
On the other hand if you just seek for something todo Alex and I can potentially come up with some cleanup work or maybe you could write some test cases or whatever.
Christian.
>
> Alex
>
>>
>> I guess you can also refer to this,
>> https://patchwork.freedesktop.org/patch/msgid/20191219161722.2779994-1-daniel.vetter@ffwll.ch
>>
>> [0]:
>> https://docs.kernel.org/gpu/todo.html#convert-logging-to-drm-functions-with-drm-device-parameter
>>
>> --
>> Regards,
>> listout
More information about the amd-gfx
mailing list