1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-15 02:57:38 +00:00
serenity/Kernel/Graphics/VirtIOGPU
Liav A efae6e2270 Kernel/Graphics: Propagate errors properly around in the VirtIO driver
This happens to be a sad truth for the VirtIOGPU driver - it lacked any
error propagation measures and generally relied on clunky assumptions
that most operations with the GPU device are infallible, although in
reality much of them could fail, so we do need to handle errors.

To fix this, synchronous GPU commands no longer rely on the wait queue
mechanism anymore, so instead we introduce a timeout-based mechanism,
similar to how other Kernel drivers use a polling based mechanism with
the assumption that hardware could get stuck in an error state and we
could abort gracefully.

Then, we change most of the VirtIOGraphicsAdapter methods to propagate
errors properly to the original callers, to ensure that if a synchronous
GPU command failed, either the Kernel or userspace could do something
meaningful about this situation.
2022-12-19 10:19:57 +00:00
..
Console.cpp Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
Console.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
DisplayConnector.cpp Kernel/Graphics: Propagate errors properly around in the VirtIO driver 2022-12-19 10:19:57 +00:00
DisplayConnector.h Kernel/Graphics: Propagate errors properly around in the VirtIO driver 2022-12-19 10:19:57 +00:00
GPU3DDevice.cpp Kernel/Graphics: Propagate errors properly around in the VirtIO driver 2022-12-19 10:19:57 +00:00
GPU3DDevice.h Kernel: Properly propagate errors in VirtIOGPU 3D device initialization 2022-12-19 10:19:57 +00:00
GraphicsAdapter.cpp Kernel/Graphics: Propagate errors properly around in the VirtIO driver 2022-12-19 10:19:57 +00:00
GraphicsAdapter.h Kernel/Graphics: Propagate errors properly around in the VirtIO driver 2022-12-19 10:19:57 +00:00
Protocol.h Everywhere: Prefix 'TYPEDEF_DISTINCT_ORDERED_ID' with 'AK_' 2022-07-22 23:09:43 +01:00