[PATCH v6 2/8] drm/ttm: Add ttm_bo_access
Christian König
christian.koenig at amd.com
Mon Nov 25 16:19:54 UTC 2024
Am 25.11.24 um 16:29 schrieb Matthew Brost:
> On Fri, Nov 15, 2024 at 10:27:59AM -0800, Matthew Brost wrote:
>> [SNIP]
>> We use this interface to read a BO marked with a dumpable flag during a
>> GPU hang in our error capture code. This is an internal KMD feature, not
>> directly exposed to user space. Would adding this helper be acceptable
>> for this use case? I can add kernel indicating the current restrictions
>> of the helper (do not directly expose to user space) too if that would
>> help.
>>
> Christian - ping on above.
Sorry, I will try to give those mailing list tasks a bit more time in
before the xmas holidays.
That is an acceptable use case, but the problem is that this helper
won't work for that.
See during a GPU hang you can't lock BOs, so how do you want to look
into their content with the peek helper?
The only thing you could potentially do is to trylock the BO and then
dump, but that would most likely be a bit unreliable.
Regards,
Christian.
>> Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20241125/4fe2d618/attachment.htm>
More information about the dri-devel
mailing list