Announce each recovery's own wait, slow failing and failed making
After a device's first recovery, a later recovery's step notices were never shown: a call's wait for the recovery past 10 seconds, its command buffers taking past 10 seconds to fail, and its new VkDevice's failure all went through degrade_once(DeviceRecovered), whose record carries across generations, and the first recovery's own notice set that record. So a slow second recovery announced nothing, and a second recovery whose VkDevice could not be made left the device answering as lost with no notice (rule 2: a degradation is announced). Each recovery's notices are now its own (Device::degrade_recovery_step, whatever the kind's record says), still bounded: the wait is announced once per recovery by the first call to wait past the bound (a flag in the line's Lost state, so N waiting calls give one notice, not N), the slow failing once per recovery by the call that claimed it, the failed making once (the line fails). degrade_recovered no longer sets the kind's record, which nothing reads for this kind now. Tests (tests::device_recovery, device builds): with the bound set to zero through a per-device test hook, each_recovery_announces_its_own_wait runs a first recovery, then recoveries with three threads calling the device, and requires a later recovery to announce one wait (never two); a_later_recovery_announces_its_failure fails the second recovery's making through a hook and requires its notice to reach the sink. (cherry picked from commit fefe1396ef30708568c6811e98659fbe08771671)
This commit is contained in:
1 parent
0f28b4b79e
commit
0529a98e4c
4 files changed
+232
-32
No files matched your search
+4
-3
@@ -3068,9 +3068,10 @@ bound.
|
||||
(`GpuRecoveryVictim`), and every later call of the device and of its command queues goes to the
|
||||
new `VkDevice`. 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 where a call waited past 10 seconds for a recovery under
|
||||
way, and where the 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
|
||||
long the recovery took. 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.
|
||||
- `metal2vulkan-degrade-private-properties-unknown` (precision). `PrivatePropertiesUnknown`: Apple's
|
||||
|
||||
Reference in new issue
Block a user