drm/panfrost: Set DMA masks earlier
authorRobin Murphy <robin.murphy@arm.com>
Fri, 3 May 2019 15:31:42 +0000 (16:31 +0100)
committerRob Herring <robh@kernel.org>
Fri, 3 May 2019 20:35:54 +0000 (15:35 -0500)
commitd9b631f0a0c43ee180845d0a994d2cf4948a2eae
treedb1f20e7832bf81b42b2cac46e7e89940d817183
parent6ff408e6dc2072adc3e27d7687dfba19edb05d60
drm/panfrost: Set DMA masks earlier

The DMA masks need to be set correctly before any DMA API activity kicks
off, and the current point in panfrost_probe() is way too late in that
regard. since panfrost_mmu_init() has already set up a live address
space and DMA-mapped MMU pagetables. We can't set masks until we've
queried the appropriate value from MMU_FEATURES, but as soon as
reasonably possible after that should suffice.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/64361b929a5c61d2ab9580262ecb3d369164cfcb.1556195258.git.robin.murphy@arm.com
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/gpu/drm/panfrost/panfrost_gpu.c