iommu/ipmmu-vmsa: Rereserving a free context before setting up a pagetable
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Wed, 23 Aug 2017 14:31:42 +0000 (17:31 +0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Aug 2017 13:10:46 +0000 (15:10 +0200)
commita175a67d306ab3fd0e140595f49290b80c909ae8
treec6fc86d1e879fcae6a541b9f20968887d520c7a2
parent7af9a5fdb9e0ca33c9c18d5a9b1512c98a03120f
iommu/ipmmu-vmsa: Rereserving a free context before setting up a pagetable

Reserving a free context is both quicker and more likely to fail
(due to limited hardware resources) than setting up a pagetable.
What is more the pagetable init/cleanup code could require
the context to be set up.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
CC: Robin Murphy <robin.murphy@arm.com>
CC: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
CC: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c