a low latency gpu engine based reset mechanism for a more
play

A low latency GPU engine based reset mechanism for a more robust UI - PowerPoint PPT Presentation

A low latency GPU engine based reset mechanism for a more robust UI experience Carlos Santa Intel/Chrome OS 1 Problem statement: Stability and Robustness Looking at a specific stability problem affecting the UI experience under Chrome OS -


  1. A low latency GPU engine based reset mechanism for a more robust UI experience Carlos Santa Intel/Chrome OS 1

  2. Problem statement: Stability and Robustness Looking at a specific stability problem affecting the UI experience under Chrome OS - under Intel Architecture when running gfx/video use case (video streaming type of app) The behavior was a frozen UI , followed by a black screen followed by system - reboot (of course after some random time interval (hours to long long hours)). Spent some time understanding the GFX architecture in Chrome OS as well as a - possible solution that could help here. 2

  3. Current limitation 1. If a 3D client app “hangs” the GPU then the GPU process may get killed followed by a full GPU reset. 2. For a complex use case such as video decode many frames and objects are currently in flight so killing the GPU Process and resetting the GPU causes undesirables effects to the user including a frozen UI, black screen or a full system reboot. Renderer Process (Client) GPU Process Shared Memory (Server) GPU Driver Compositor GL / D3D 2 full gpu reset Video App Compositor GPU H/W Context Video App Video Codec 3D Render Media Context Engine Engine Engine 1 crash/hang 3

  4. Proposed solution: TDR New feature for Intel GPUs (still not in upstream) that can increase both stability and - robustness for any h/w accelerated compositors. Timeout Detection and Recovery (TDR) allows for the independent engines in the GPU to be - reset independently (as opposed to a full GPU reset). The complete solution though still requires changes to be - taken by a “ qualified ” user space media driver 4

  5. Proposed solution: 1. UMD Media Driver starts the watchdog timer after sending batch buffers 2. At some time later the media engine is detected to be in hung state after the watchdog timer has expired 3. The GPU driver resets only the affected media engine 4. Because the UMD Media driver knows when the faulty batch got submitted it could take actions during the the time it take the media driver to come back from the reset. GPU Process UMD Media (Server) Driver GPU Driver GL / D3D 1 Compositor GPU H/W Context Video App Video Codec 3D Render Media Context Engine Engine Engine 3 media engine gpu reset 2 5

  6. Status of TDR in upstream: Accepted in upstream Comments TDR – Reset Engine  Yes TDR – with GuC X No TDR - Watchdog X No Requires qualify UI client IGT – TDR Watchdog X No Submitted last week Prototype Comments TDR - Watchdog Ubuntu OS w/ drm-tip iHD Media Stack IGT – TDR Watchdog Ubuntu OS w/ drm-tip Passes validation IGT – TDR Watchdog Chrome OS – cros-4.14 Passes validation TDR - Watchdog Chrome OS – cros-4.14 i965 Media Stack Support WIP 6

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend