From: "Somalapuram, Amaranath" <asomalap@amd.com>
To: "Christian König" <christian.koenig@amd.com>,
"Sharma, Shashank" <shashank.sharma@amd.com>,
"Somalapuram, Amaranath" <Amaranath.Somalapuram@amd.com>,
"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Cc: "Deucher, Alexander" <Alexander.Deucher@amd.com>
Subject: Re: [PATCH 2/2] drm/amdgpu: add AMDGPURESET uevent on AMD GPU reset
Date: Mon, 17 Jan 2022 19:49:33 +0530 [thread overview]
Message-ID: <98202e9d-cefa-8874-8a8d-58ec512f80ca@amd.com> (raw)
In-Reply-To: <8ffbf71a-9c62-b153-bf52-a88e7bcf91d3@amd.com>
Hi Christian,
if sending udev event during reset is going to create problem, we can
move this code from reset sequence to re-int (after GPU reset succeeded).
Regards,
S.Amarnath
On 1/17/2022 5:27 PM, Christian König wrote:
> 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
>>>>
>>>
>
next prev parent reply other threads:[~2022-01-17 14:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-17 6:33 [PATCH 2/2] drm/amdgpu: add AMDGPURESET uevent on AMD GPU reset Somalapuram Amaranath
2022-01-17 7:27 ` Christian König
2022-01-17 10:01 ` Somalapuram, Amaranath
2022-01-17 10:03 ` Christian König
2022-01-17 10:09 ` Somalapuram, Amaranath
2022-01-17 10:19 ` Christian König
2022-01-17 10:34 ` Somalapuram, Amaranath
2022-01-17 10:37 ` Christian König
2022-01-17 11:43 ` Sharma, Shashank
2022-01-17 11:57 ` Christian König
2022-01-17 14:19 ` Somalapuram, Amaranath [this message]
2022-01-17 16:07 ` Christian König
2022-01-17 11:54 ` Lazar, Lijo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98202e9d-cefa-8874-8a8d-58ec512f80ca@amd.com \
--to=asomalap@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Amaranath.Somalapuram@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=shashank.sharma@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.