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