amdkfd: init aperture once per process
commitdd59239a9862a42e4b8d47e4aaa8d595d08c29ab
authorAlexey Skidanov <Alexey.Skidanov@amd.com>
Tue, 18 Nov 2014 11:56:23 +0000 (18 13:56 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Tue, 18 Nov 2014 11:56:23 +0000 (18 13:56 +0200)
tree094241804abad7eee48ac6d68c03da4903add690
parentf1386fbc2bc9e316c3f58ef9463f03002eb41346
amdkfd: init aperture once per process

Since the user space may call open() more that once from the same process,
the aperture initialization should be moved from kfd_open()

Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
drivers/gpu/drm/amd/amdkfd/kfd_process.c