diff options
| author | Yong Zhao <[email protected]> | 2019-09-25 23:57:30 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-10-03 09:11:04 -0500 |
| commit | 56fc40aba4d9bc22ccbb8ce88a1c41f666d04f05 (patch) | |
| tree | 5047bac876d499703715286c831c39f2420c0784 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3fe023d42ea82be7d32ad26ab9409d970c1d361f (diff) | |
drm/amdkfd: Eliminate get_atc_vmid_pasid_mapping_valid
get_atc_vmid_pasid_mapping_valid() is very similar to
get_atc_vmid_pasid_mapping_pasid(), so they can be merged into a new
function get_atc_vmid_pasid_mapping_info() to reduce register access
times. More importantly, getting the PASID and the valid bit atomically
with a single read fixes some potential race conditions where the
mapping changes between the two reads.
Signed-off-by: Yong Zhao <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions