[PATCH 0/6] RFC Support hot device unplug in amdgpu
daniel at ffwll.ch
Mon May 11 11:03:29 UTC 2020
On Mon, May 11, 2020 at 11:19:30AM +0100, Chris Wilson wrote:
> Quoting Daniel Vetter (2020-05-11 10:54:33)
> > - worse, neither vk nor gl (to my knowledge) have a concept of events
> > for when the gpu died. The only stuff you have is things like
> > arb_robustness which says a) everything continues as if nothing
> > happened b) there's a function where you can ask whether your gl
> > context and all the textures/buffers are toast.
> Vulkan/DX12 arrived after eGPU, and there is at least the concept of
> VK_ERROR_DEVICE_LOST. Mainly used at the moment after a GPU hang and
> loss of context.
Ah cool, so -EIO on some ioctls, with silencing it in the gl driver and
passing it on for the vk driver should be ok. Assuming vk frameworks
bother to implement the *may* thing. I'm assuming if the validation
midlayer doesn't inject this, it's untested and firework will ensue.
But then more direct path to fireworks is what vk is all about :-)
Software Engineer, Intel Corporation
More information about the dri-devel