-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/amdgpu: Fix CP_HQD_PQ_WPTR initialization on KFD HQD load
The return value from copy_from_user() was interpreted as the opposite of its intended meaning. This caused PQ_WPTR to be populated with the uninitialized value from shadow_wptr, causing intermittent HIQ hangs. Always initialize PQ_WPTR to zero if a shadow write pointer is not available. Also check for NULL as this may be mapped in userspace but has a specific meaning when passed to hqd_load(). Change-Id: I3ced7765659a043a53b8123bace0e6288a23b59d Signed-off-by: Jay Cornwall <jay.cornwall@amd.com> Reviewed-by: David Ogbeide <davidboyowa.ogbeide@amd.com>
- Loading branch information
Jay Cornwall
authored and
Gerrit Code Review
committed
May 2, 2016
1 parent
3c396d2
commit b3c5e1b
Showing
2 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters