Re: [PATCH 2/2] drm/amdgpu: add AMDGPURESET uevent on AMD GPU reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 17.01.22 um 12:43 schrieb Sharma, Shashank:
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.

Yeah, that's a really good question I can't fully answer. As far as I know you can filter in userspace what you get from the tracer, but I don't know if you can block on a specific event.

Christian.



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






[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux