Carry tests, and docs for what a recovery carries and leaves refused
New device tests (tests/device_recovery_carry.rs, under the CPU-ICD and GPU cfgs): - One recovery carries a Private buffer (same address, zero after) and a buffer in fresh pages. The fresh-page buffer keeps its contents pointer and bytes, and the host's writes through that pointer after the recovery reach the GPU's copy. It also carries a shared event: its value, its listener's notification and a GPU signal after the recovery. - A pooled Shared buffer stays refused, and the notice counts it. It keeps the lost VkDevice, which then holds no empty block and less memory than before the loss. Dropping it takes the line back to one live VkDevice. - Seven recoveries with a carried buffer and event in use between them end with one live VkDevice, and eight made. The device_recovery helpers are shared with the new file. Docs: RuntimeGap::MadeBeforeRecovery, the DeviceRecovered catalogue entry and its consequence (runtime and API.md), the runtime README's lost-device section, line.rs's module and recover_for_test docs, in_place.rs, the validation lane's docs and the refusal surface's reach mark now say what is carried and what stays refused. REFUSALS.md is regenerated in the next commit. Not yet built. (cherry picked from commit 68d68cdfbdbbac979e5097a8ad286416450790bf)
This commit is contained in:
1 parent
17a35ba5c0
commit
33675e87f1
11 files changed
+326
-50
No files matched your search
+8
-5
@@ -3281,13 +3281,16 @@ bound.
|
||||
(`GpuRecoveryVictim`), and every later call of the device and of its command queues goes to the
|
||||
new `VkDevice`; a queue's lent `VkQueue` (`CommandQueue::with_vk_queue`) comes with the
|
||||
`VkDevice` it belongs to, the new one from then on. Announced at each recovery, by the call that made it; the reason names the hang's
|
||||
command buffer (an inference, said so, where two or more `VkQueue`s had work in flight) and how
|
||||
long the recovery took. Announced too, at most once each per recovery whatever an earlier
|
||||
command buffer (an inference, said so, where two or more `VkQueue`s had work in flight), how
|
||||
long the recovery took, and the objects it carried to the new `VkDevice` and left refused, by
|
||||
kind. Announced too, at most once each per recovery whatever an earlier
|
||||
recovery announced: where a call waited past 10 seconds for the recovery under way, where its
|
||||
command buffers in flight took past 10 seconds to fail, and where its new `VkDevice` could not
|
||||
be made, after which the device answers as a lost one. `Device::recover_for_test` runs the same recovery with no GPU fault. Cost: the objects made
|
||||
before the recovery are refused (`MadeBeforeRecovery`), where Metal's go on; the calls during it
|
||||
wait for it, and a device call the loss met while it ran runs again after it.
|
||||
be made, after which the device answers as a lost one. `Device::recover_for_test` runs the same recovery with no GPU fault. Cost: the events,
|
||||
`Private` buffers and buffers in fresh pages made before it go on, a `Private` buffer's contents
|
||||
lost (it reads zero); the other objects made before it are refused (`MadeBeforeRecovery`), where
|
||||
Metal's go on; the calls during it wait for it, and a device call the loss met while it ran runs
|
||||
again after it.
|
||||
- `metal2vulkan-degrade-private-properties-unknown` (precision). `PrivatePropertiesUnknown`: Apple's
|
||||
private device properties the device has no answer for: no document describes them and nothing the
|
||||
device reports maps to them. Cost: the device gives no answer for them (`PrivateAnswer::value` is
|
||||
|
||||
Reference in new issue
Block a user