Re: [RFC PATCH 3/3] drm/log: Introduce a new boot logger to draw the kmsg on the screen

From: Jocelyn Falempe
Date: Fri Sep 06 2024 - 12:29:28 EST


On 06/09/2024 10:47, John Ogness wrote:
On 2024-09-06, John Ogness <john.ogness@xxxxxxxxxxxxx> wrote:
Your device_lock()/device_unlock() callbacks probably just need to
lock/unlock your mutex @drm_log_lock.

Sorry, forgot to mention that the device_lock() callback must also
disable migration. Since you are using a mutex, you will need to
manually do that as well...

mutex_lock(&drm_log_lock);
migrate_disable();

Thanks a lot, I've done most of the conversion, and it's already working great. I will send a new series next week.

Best regards,

--

Jocelyn



John