2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/drivers/gpu/drm/panfrost
Boris Brezillon 9870dc39dc drm/panfrost: Make sure a BO is only unmapped when appropriate
mmu_ops->unmap() will fail when called on a BO that has not been
previously mapped, and the error path in panfrost_ioctl_create_bo()
can call drm_gem_object_put_unlocked() (which in turn calls
panfrost_mmu_unmap()) on a BO that has not been mapped yet.

Keep track of the mapped/unmapped state to avoid such issues.

Fixes: f3ba91228e ("drm/panfrost: Add initial panfrost driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618081343.16927-1-boris.brezillon@collabora.com
2019-06-18 09:26:28 -06:00
..
Kconfig drm/panfrost: Require the simple_ondemand governor 2019-06-10 09:30:34 -06:00
Makefile
panfrost_devfreq.c drm/panfrost: make devfreq optional again 2019-06-10 09:30:20 -06:00
panfrost_devfreq.h
panfrost_device.c drm/panfrost: Add missing _fini() calls in panfrost_device_fini() 2019-05-13 09:51:13 -05:00
panfrost_device.h drm/panfrost: Prevent concurrent resets 2019-04-18 09:27:34 -05:00
panfrost_drv.c drm/panfrost: Only put sync_out if non-NULL 2019-05-13 09:46:53 -05:00
panfrost_features.h
panfrost_gem.c drm/panfrost: Make sure a BO is only unmapped when appropriate 2019-06-18 09:26:28 -06:00
panfrost_gem.h drm/panfrost: Make sure a BO is only unmapped when appropriate 2019-06-18 09:26:28 -06:00
panfrost_gpu.c drm/panfrost: Show stored feature registers 2019-05-03 15:36:23 -05:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c drm/panfrost: Prevent concurrent resets 2019-04-18 09:27:34 -05:00
panfrost_job.h
panfrost_mmu.c drm/panfrost: Make sure a BO is only unmapped when appropriate 2019-06-18 09:26:28 -06:00
panfrost_mmu.h
panfrost_regs.h
TODO