Commit 63f1af83 authored by Alex Sierra's avatar Alex Sierra Committed by Alex Deucher

drm/amdkfd: set attribute access for default ranges

Attribute access value for default ranges is set, based on
process xnack on/off.
XNACK ON has GPU access attribute for unregistered ranges through page
fault. While XNACK OFF has no access attribute for unregistered ranges.
Signed-off-by: default avatarAlex Sierra <alex.sierra@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b19dbb7a
...@@ -2887,12 +2887,11 @@ svm_range_get_attr(struct kfd_process *p, uint64_t start, uint64_t size, ...@@ -2887,12 +2887,11 @@ svm_range_get_attr(struct kfd_process *p, uint64_t start, uint64_t size,
pr_debug("range attrs not found return default values\n"); pr_debug("range attrs not found return default values\n");
svm_range_set_default_attributes(&location, &prefetch_loc, svm_range_set_default_attributes(&location, &prefetch_loc,
&granularity, &flags); &granularity, &flags);
/* TODO: Automatically create SVM ranges and map them on
* GPU page faults
if (p->xnack_enabled) if (p->xnack_enabled)
bitmap_fill(bitmap_access, MAX_GPU_INSTANCE); bitmap_fill(bitmap_access, MAX_GPU_INSTANCE);
*/ else
bitmap_zero(bitmap_access, MAX_GPU_INSTANCE);
bitmap_zero(bitmap_aip, MAX_GPU_INSTANCE);
goto fill_values; goto fill_values;
} }
bitmap_fill(bitmap_access, MAX_GPU_INSTANCE); bitmap_fill(bitmap_access, MAX_GPU_INSTANCE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment