drm/panfrost: Split io-pgtable requests properly
authorRobin Murphy <robin.murphy@arm.com>
Tue, 8 Nov 2022 17:06:19 +0000 (17:06 +0000)
committerSteven Price <steven.price@arm.com>
Wed, 9 Nov 2022 14:17:39 +0000 (14:17 +0000)
commitf352262f727215553879705bacbcb208979f3eff
tree0d87abb0e00a47d3c71c4d791dab2dec959edd02
parente0b26b9482461e9528552f54fa662c2269f75b3f
drm/panfrost: Split io-pgtable requests properly

Although we don't use 1GB block mappings, we still need to split
map/unmap requests at 1GB boundaries to match what io-pgtable expects.
Fix that, and add some explanation to make sense of it all.

Fixes: 3740b081795a ("drm/panfrost: Update io-pgtable API")
Reported-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/49e54bb4019cd06e01549b106d7ac37c3d182cd3.1667927179.git.robin.murphy@arm.com
drivers/gpu/drm/panfrost/panfrost_mmu.c