---
title: "Discussion on \"A 32-bit Truncation, Three Fences and a GPU Test: Catching an Explicit-Fencing Bug in the Display Driver\" | Hashnode"
description: "Discussion on \"A 32-bit Truncation, Three Fences and a GPU Test: Catching an Explicit-Fencing Bug in the Display Driver\". How a long stored in an int made the display skip a fence wait, and how the GPU test I wrote keeps it from coming back\n\n\n\nSome kernel bugs hide for a long time because the code path that triggers them"
url: "https://hashnode.com/posts/a-32-bit-truncation-three-fences-and-a-gpu-test-catching-an-explicit-fencing-bug-in-the-display-driver/6aeacd25728ee0f4614452ff"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A 32-bit Truncation, Three Fences and a GPU Test: Catching an Explicit-Fencing Bug in the Display Driver](https://sebinrajs.hashnode.dev/a-32-bit-truncation-three-fences-and-a-gpu-test-catching-an-explicit-fencing-bug-in-the-display-driver?utm_source=hashnode&utm_medium=feed)

How a long stored in an int made the display skip a fence wait, and how the GPU test I wrote keeps it from coming back Some kernel bugs hide for a long time because the code path that triggers them

Nov 4 · 8 min read · sebinrajs.hashnode.dev  
Read the article

-   [#linux-kernel](https://hashnode.com/tag/linux-kernel)
-   [#graphics](https://hashnode.com/tag/graphics)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#android](https://hashnode.com/tag/android)
-   [#display-driver](https://hashnode.com/tag/display-driver)
-   [#open-source-gpu-tools](https://hashnode.com/tag/open-source-gpu-tools)
-   [#bugs-and-errors](https://hashnode.com/tag/bugs-and-errors)
-   [#gpu](https://hashnode.com/tag/gpu)

## Written by

[Sebinraj](https://hashnode.com/@sebinrajs)

@sebinrajs

  
[View profile](https://hashnode.com/@sebinrajs)

Making pixels behave, from ring 0

I work below the graphics APIs, on GPU drivers, display pipelines and virtualization in the Linux, Android and Windows graphics stack. My patches have landed in the Android/Linux kernel, Mesa and IGT. On 'Ring Zero GPU' I write about what really happens between a frame being drawn and a pixel lighting up: Graphics, GPU drivers, Virtualization, Display, driver bugs and the tests that catch them. Expect real kernel code, honest debugging stories and diagrams that make the hard parts easier.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
