xen/arm: smmuv1: Fixed stream matching register allocation
authorRahul Singh <rahul.singh@arm.com>
Fri, 25 Jun 2021 16:37:26 +0000 (17:37 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 25 Jun 2021 21:53:48 +0000 (14:53 -0700)
commit93fe1817e7ca8c80f93c098a191e1cc3483190df
tree357a823e34c344acd6a6ed08a0ea53d0126ad939
parentf591755823a7e94fc6b4b8ddce71f0421a94fa09
xen/arm: smmuv1: Fixed stream matching register allocation

SMR allocation should be based on the number of supported stream
matching register for each SMMU device.

Issue introduced by commit 5e08586afbb90b2e2d56c175c07db77a4afa873c
when backported the patches from Linux to XEN to fix the stream match
conflict issue when two devices have the same stream-id.

Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
xen/drivers/passthrough/arm/smmu.c