mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-25 23:34:47 +08:00
drm/etnaviv: Add lockdep annotations for context lock
etnaviv_iommu_find_iova has it so etnaviv_iommu_insert_exact and lockdep_assert_held should have it as well. Signed-off-by: Guido Günther <agx@sigxcpu.org> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
3136fed4f9
commit
4612bad570
@ -131,6 +131,8 @@ static void etnaviv_iommu_remove_mapping(struct etnaviv_iommu_context *context,
|
||||
{
|
||||
struct etnaviv_gem_object *etnaviv_obj = mapping->object;
|
||||
|
||||
lockdep_assert_held(&context->lock);
|
||||
|
||||
etnaviv_iommu_unmap(context, mapping->vram_node.start,
|
||||
etnaviv_obj->sgt, etnaviv_obj->base.size);
|
||||
drm_mm_remove_node(&mapping->vram_node);
|
||||
@ -223,6 +225,8 @@ static int etnaviv_iommu_find_iova(struct etnaviv_iommu_context *context,
|
||||
static int etnaviv_iommu_insert_exact(struct etnaviv_iommu_context *context,
|
||||
struct drm_mm_node *node, size_t size, u64 va)
|
||||
{
|
||||
lockdep_assert_held(&context->lock);
|
||||
|
||||
return drm_mm_insert_node_in_range(&context->mm, node, size, 0, 0, va,
|
||||
va + size, DRM_MM_INSERT_LOWEST);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user