History

drm/amdgpu:fix race condition

sequence is protected by spinlock so don't access sequence in paramter seq when invoking this function. ~0 means to get the latest sequence number and 0 means none to get.

Monk Liu committed 9 years ago

Commit d7b1eeb1 parent 5e788352 files · +7 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+4−1
@@ -295,7 +295,10 @@ union drm_amdgpu_gem_wait_idle { · 294 unmodified lines
295295 };
296296
297297 struct drm_amdgpu_wait_cs_in {
298− /** Command submission handle */
298+ /* Command submission handle
299+ * handle equals 0 means none to wait for
300+ * handle equal ~0ull meanas wait for the latest sequence number
301+ */
299302 __u64 handle;
300303 /** Absolute timeout to wait */
301304 __u64 timeout;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t