Am 2021-04-21 um 3:51 p.m. schrieb Alex Sierra: > 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: Alex Sierra <alex.sierra@xxxxxxx> This patch is Reviewed-by: Felix Kuehling <Felix.Kuehling@xxxxxxx> > --- > drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c > index cb025a6f30d5..62cf342d254c 100644 > --- a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c > @@ -2963,12 +2963,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"); > svm_range_set_default_attributes(&location, &prefetch_loc, > &granularity, &flags); > - /* TODO: Automatically create SVM ranges and map them on > - * GPU page faults > if (p->xnack_enabled) > 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; > } > bitmap_fill(bitmap_access, MAX_GPU_INSTANCE); _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx