Skip to contentSkip to conversation

logging:convert dev_info to drm_info

DISCUSSION Jani Nikula 2 participants 2 messages Oct 18, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 2 lines · jianengchencool

I want to convert logging dev_info/warn/err to drm_info/warn/err in drivers/gpu/drm/pl111, so I want to ask if this work will be merged?

Where are the patches?

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#2 lore raw
In reply to a message not in the archive

Hi

Am 18.10.22 um 09:20 schrieb jianengchencool:

Quoted 4 lines

Hi,
I want to convert logging dev_info/warn/err to drm_info/warn/err
 in drivers/gpu/drm/pl111, so I want to ask if this work will be merged?
Thanks!

Well, just send the patches for review.

Best regards
Thomas

Quoted 18 lines

TODO list below:

Convert logging to drm_* functions with drm_device paramater¶
<https://www.kernel.org/doc/html/latest/gpu/todo.html#convert-logging-to-drm-functions-with-drm-device-paramater>

For drivers which could have multiple instances, it is necessary to differentiate between which is which in the logs. Since DRM_INFO/WARN/ERROR don’t do this, drivers used dev_info/warn/err to make this differentiation. We now have drm_* variants of the drm print functions, so we can start to convert those drivers back to using drm-formatted specific log messages.

Before you start this conversion please contact the relevant maintainers to make sure your work will be merged - not everyone agrees that the DRM dmesg macros are better.

Neil
[email protected]

<https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=jianengchencool&uid=jianengchencool%40gmail.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22jianengchencool%40gmail.com%22%5D>

Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev