Bug 14538

Summary: [core TTM] Premature fence timeouts.
Product: DRI Reporter: Thomas Hellström <thomas>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Thomas Hellström 2008-02-18 02:32:46 UTC
Symtoms:
gltestperf times out with an -EBUSY (-16).

It's possible to feed enough rendering commands in a command FIFO for the GPU to be busy more than 3 seconds, which is the default fence wait.

Proposed fix:
1) Add an issued_jiffies timestamp member to the fence. The fence maximum wait time will be relative to this timestamp, instead of relative to the wait start. This will remove all needs for extra user-space fence time-out checks.

2) If a timeout is hit, we call a device-specific callback "fence_timeout" that checks in one way or another whether the GPU is still alive. In that case, reset issued_jiffies to the current time. If not, Really time out.
Comment 1 Martin Peres 2019-10-14 13:20:15 UTC
Hi,

Freedesktop's Bugzilla instance is EOLed and open bugs are about to be migrated to http://gitlab.freedesktop.org.

To avoid migrating out of date bugs, I am now closing all the bugs that did not see any activity in the past year. If the issue is still happening, please create a new bug in the relevant project at https://gitlab.freedesktop.org/drm (use misc by default).

Sorry about the noise!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.