Re: [PATCH] drm/amdkfd: avoid conflicting address mappings

2021-09-30 Thread Sierra Guiza, Alejandro (Alex)
On 9/29/2021 9:15 PM, Felix Kuehling wrote: On 2021-09-29 7:35 p.m., Mike Lothian wrote: Hi This patch is causing a compile failure for me drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1254:25: error: unused variable 'svms' [-Werror,-Wunused-variable]     struct svm_range_list *svms

Re: [PATCH] drm/amdkfd: avoid conflicting address mappings

2021-09-29 Thread Felix Kuehling
On 2021-09-29 7:35 p.m., Mike Lothian wrote: Hi This patch is causing a compile failure for me drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1254:25: error: unused variable 'svms' [-Werror,-Wunused-variable] struct svm_range_list *svms = &p->svms; ^ 1

Re: [PATCH] drm/amdkfd: avoid conflicting address mappings

2021-09-29 Thread Mike Lothian
Hi This patch is causing a compile failure for me drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1254:25: error: unused variable 'svms' [-Werror,-Wunused-variable] struct svm_range_list *svms = &p->svms; ^ 1 error generated. I'll turn off Werror On Mon,

Re: [PATCH] drm/amdkfd: avoid conflicting address mappings

2021-07-29 Thread Felix Kuehling
Am 2021-07-19 um 5:18 p.m. schrieb Alex Sierra: > [Why] > Avoid conflict with address ranges mapped by SVM > mechanism that try to be allocated again through > ioctl_alloc in the same process. And viceversa. > > [How] > For ioctl_alloc_memory_of_gpu allocations > Check if the address range passed i

[PATCH] drm/amdkfd: avoid conflicting address mappings

2021-07-19 Thread Alex Sierra
[Why] Avoid conflict with address ranges mapped by SVM mechanism that try to be allocated again through ioctl_alloc in the same process. And viceversa. [How] For ioctl_alloc_memory_of_gpu allocations Check if the address range passed into ioctl memory alloc does not exist already in the kfd_proces

Re: [PATCH] drm/amdkfd: avoid conflicting address mappings

2021-07-15 Thread Felix Kuehling
On 2021-07-15 3:59 p.m., Alex Sierra wrote: [Why] Avoid conflict with address ranges mapped by SVM mechanism that try to be allocated again through ioctl_alloc in the same process. And viceversa. [How] For ioctl_alloc_memory_of_gpu allocations Check if the address range passed into ioctl memory

[PATCH] drm/amdkfd: avoid conflicting address mappings

2021-07-15 Thread Alex Sierra
[Why] Avoid conflict with address ranges mapped by SVM mechanism that try to be allocated again through ioctl_alloc in the same process. And viceversa. [How] For ioctl_alloc_memory_of_gpu allocations Check if the address range passed into ioctl memory alloc does not exist already in the kfd_proces