Hello Christian,
On 1/17/2022 11:37 AM, Christian König wrote:
Am 17.01.22 um 11:34 schrieb Somalapuram, Amaranath:
[SNIP]
Any suggestion how we can notify user space during this situation.
Well trace points should work. They use a ring buffer and are specially
made to work in such situations.
We are anyways sending a trace event with data, but can trace event be a
wake up source for an application (like a tracer) ? This DRM event is
just to indicate that reset happened, so app has to read from trace file.
Alternative would be to audit the udev code and allow giving a GFP mask
to the function to make sure that we don't run into the deadlock.
Another alternative is a debugfs file which just blocks for the next
reset to happen.
- Shashank
Regards,
Christian.
Regards,
S.Amarnath