aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorXiaogang Chen <xiaogang.chen@amd.com>2024-10-28 15:06:19 -0500
committerAlex Deucher <alexander.deucher@amd.com>2024-11-11 11:56:08 -0500
commit6cb6d437b57a16487197e4abc3ab2838d7bf473c (patch)
treed723dcf5a71343f830831c0dfce86281ed4becce /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent408d20812742014c57b145eb4509364a0c92a1bb (diff)
downloadlinux-6cb6d437b57a16487197e4abc3ab2838d7bf473c.tar.gz
linux-6cb6d437b57a16487197e4abc3ab2838d7bf473c.tar.bz2
linux-6cb6d437b57a16487197e4abc3ab2838d7bf473c.zip
drm/amdkfd: change kfd process kref count at creation
kfd process kref count(process->ref) is initialized to 1 by kref_init. After it is created not need to increase its kref. Instad add kfd process kref at kfd process mmu notifier allocation since we already decrease the kref at free_notifier of mmu_notifier_ops, so pair them. When user process opens kfd node multiple times the kfd process kref is increased each time to balance with kfd node close operation. Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions