aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2024-08-30 00:06:19 +0000
committerJoerg Roedel <[email protected]>2024-09-04 09:39:01 +0000
commit485534bfccb23e1c3e5915aca9acce1ecdc07a3f (patch)
tree9d48152c92b62d711f9f6081567ec059c46a4772 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentiommu/amd: Narrow the use of struct protection_domain to invalidation (diff)
downloadkernel-485534bfccb23e1c3e5915aca9acce1ecdc07a3f.tar.gz
kernel-485534bfccb23e1c3e5915aca9acce1ecdc07a3f.zip
iommu/amd: Remove conditions from domain free paths
Don't use tlb as some flag to indicate if protection_domain_alloc() completed. Have protection_domain_alloc() unwind itself in the normal kernel style and require protection_domain_free() only be called on successful results of protection_domain_alloc(). Also, the amd_iommu_domain_free() op is never called by the core code with a NULL argument, so remove all the NULL tests as well. Reviewed-by: Vasant Hegde <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions