android_kernel_asus_sm8350/drivers/gpu/msm
Lynus Vaz b3194eb5ca msm: kgsl: Do not free sharedmem if it cannot be unmapped
If sharedmem cannot be unmapped from the mmu, it can still be accessed
by the GPU. Therefore it is not safe to free the backing memory. In the
case that unmap fails, do not free it or return it to the system.

Change-Id: Iad3e86d043f129a4d71cf862865d9033d4a315e3
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
(cherry picked from commit 330843f544)
2023-11-30 22:11:30 -08:00
..
a3xx_reg.h
a5xx_reg.h
a6xx_reg.h msm: kgsl: Zap performance counters across context switches 2022-03-09 11:58:35 +05:30
adreno_a3xx_perfcounter.c msm: kgsl: Finish up the last bits of the perfcounter transition 2020-09-25 12:41:37 -06:00
adreno_a3xx_snapshot.c msm: kgsl: Read snapshot registers in the target specific functions 2020-03-16 09:52:02 -06:00
adreno_a3xx.c msm: kgsl: Set correct values for SMMU protect register for A3xx 2021-03-01 16:13:58 +05:30
adreno_a3xx.h msm: kgsl: Finish up the last bits of the perfcounter transition 2020-09-25 12:41:37 -06:00
adreno_a5xx_packets.h
adreno_a5xx_perfcounter.c msm: kgsl: Fixup 5xx perfcounter update 2020-11-03 14:25:12 -07:00
adreno_a5xx_preempt.c msm: kgsl: Support adding VA padding for global allocations 2020-11-03 14:25:14 -07:00
adreno_a5xx_snapshot.c msm: kgsl: Support adding VA padding for global allocations 2020-11-03 14:25:14 -07:00
adreno_a5xx.c msm: kgsl: Configure UCHE GMEM base address based on GMEM size 2021-03-10 15:55:02 +05:30
adreno_a5xx.h msm: kgsl: Finish up the last bits of the perfcounter transition 2020-09-25 12:41:37 -06:00
adreno_a6xx_gmu_snapshot.c msm: kgsl: Remove protected GPUCC registers from snapshot 2022-11-24 17:32:47 +05:30
adreno_a6xx_gmu.c msm: kgsl: Enable BCL only after first boot is done 2022-06-21 17:47:00 +05:30
adreno_a6xx_gmu.h msm: kgsl: Allow concurrent requests for oob_perfcntr 2021-10-13 21:35:51 +05:30
adreno_a6xx_hfi.c msm: kgsl: Abort poll for HFI response if GMU fails any assertion 2021-05-08 10:17:40 +05:30
adreno_a6xx_hfi.h msm: kgsl: Add sysfs node to enable GMU log streaming 2020-11-06 15:43:02 -07:00
adreno_a6xx_hwsched_hfi.c Merge "msm: kgsl: Increase GMU log size to 16 KB" 2020-11-14 01:35:44 -08:00
adreno_a6xx_hwsched_hfi.h msm: kgsl: Hook preemption sysfs nodes to hwscheduling 2020-10-07 08:38:12 -06:00
adreno_a6xx_hwsched.c msm: kgsl: Dump cx regulator consumer list in case disable timeouts 2021-07-27 20:58:00 +05:30
adreno_a6xx_hwsched.h msm: kgsl: Add a6xx_hwsched_snapshot function 2020-09-02 13:24:24 -06:00
adreno_a6xx_perfcounter.c msm: kgsl: Add a6xx GMU performance counters 2020-09-25 12:51:48 -06:00
adreno_a6xx_preempt.c msm: kgsl: Keep postamble packets in a privileged buffer 2023-03-31 16:21:55 +05:30
adreno_a6xx_rgmu.c msm: kgsl: Allow concurrent requests for oob_perfcntr 2021-10-13 21:35:51 +05:30
adreno_a6xx_rgmu.h msm: kgsl: Allow concurrent requests for oob_perfcntr 2021-10-13 21:35:51 +05:30
adreno_a6xx_rpmh.c msm: kgsl: Fix check for oversized HFI messages 2020-09-02 13:23:42 -06:00
adreno_a6xx_snapshot.c msm: kgsl: Add CX_MISC registers in a6xx gpu snapshot 2021-08-11 20:37:28 +05:30
adreno_a6xx.c msm: kgsl: Update the IFPC power up reglist 2021-11-04 10:13:48 +05:30
adreno_a6xx.h msm: kgsl: Dump cx regulator consumer list in case disable timeouts 2021-07-27 20:58:00 +05:30
adreno_compat.c msm: kgsl: Add a sysfs node to control performance counter reads 2022-02-24 11:07:31 +05:30
adreno_compat.h
adreno_coresight.c msm: kgsl: constify structs with function pointers 2020-11-03 14:25:14 -07:00
adreno_coresight.h
adreno_cp_parser.c
adreno_cp_parser.h
adreno_debugfs.c msm: kgsl: Compare pid pointer instead of TGID for a new process 2020-11-03 20:02:16 +05:30
adreno_dispatch.c msm: kgsl: Fix gpuaddr_in_range() to check upper bound 2022-05-18 17:58:41 +05:30
adreno_dispatch.h msm: kgsl: Add a requeue list for unprocessed dispatcher jobs 2020-04-20 12:03:54 -06:00
adreno_drawctxt.c msm: kgsl: constify structs with function pointers 2020-11-03 14:25:14 -07:00
adreno_drawctxt.h msm: kgsl: Do not call dispatcher functions directly 2020-02-04 13:15:30 -08:00
adreno_hwsched.c Merge "msm: kgsl: Check user generated timestamp before queuing drawobjs" 2023-04-18 10:00:06 -07:00
adreno_hwsched.h msm: kgsl: Add a6xx_hwsched_snapshot function 2020-09-02 13:24:24 -06:00
adreno_ioctl.c msm: kgsl: Add a sysfs node to control performance counter reads 2022-02-24 11:07:31 +05:30
adreno_iommu.c msm: kgsl: Zap performance counters across context switches 2022-03-09 11:58:35 +05:30
adreno_iommu.h
adreno_perfcounter.c msm: kgsl: Zap performance counters across context switches 2022-03-09 11:58:35 +05:30
adreno_perfcounter.h msm: kgsl: Finish up the last bits of the perfcounter transition 2020-09-25 12:41:37 -06:00
adreno_pm4types.h msm: kgsl: Zap performance counters across context switches 2022-03-09 11:58:35 +05:30
adreno_profile.c Merge "msm: kgsl: constify structs with function pointers" 2020-11-12 20:42:06 -08:00
adreno_profile.h msm: kgsl: Move globals to the KGSL device handle 2019-12-03 13:45:24 -07:00
adreno_ringbuffer.c msm: kgsl: use kvmalloc for ringbuffer submission 2022-05-25 04:37:07 -07:00
adreno_ringbuffer.h msm: kgsl: Mark the scratch buffer as privileged 2020-08-11 21:25:53 +05:30
adreno_snapshot.c msm: kgsl: Avoid parsing IBs during atomic snapshot 2021-09-23 07:16:11 -07:00
adreno_snapshot.h msm: kgsl: Capture gpu globals in hwsched snapshot 2020-09-02 13:24:25 -06:00
adreno_sysfs.c msm: kgsl: Add a sysfs node to control performance counter reads 2022-02-24 11:07:31 +05:30
adreno_sysfs.h msm: kgsl: constify structs with function pointers 2020-11-03 14:25:14 -07:00
adreno_trace.c
adreno_trace.h msm: kgsl: Fix adreno_cmdbatch_retired tracepoint format 2021-01-07 13:12:32 -07:00
adreno-gpulist.h msm: kgsl: Update register protection config 2021-11-04 10:09:26 +05:30
adreno.c msm: kgsl: Cleanup correctly when platform probe fails 2022-10-17 11:41:04 +05:30
adreno.h msm: kgsl: Keep postamble packets in a privileged buffer 2023-03-31 16:21:55 +05:30
governor_gpubw_mon.c msm: kgsl: Initialize local variable 2021-04-26 15:00:13 +08:00
governor_msm_adreno_tz.c msm: kgsl: Fix maximum allowed power level for A660 2020-08-25 11:20:48 -07:00
Kconfig msm: kgsl: Support QDSS_STM based on QCOM_KGSL_QDSS_STM config 2021-07-12 16:41:06 +05:30
kgsl_bus.c msm: kgsl: Cleanup correctly when platform probe fails 2022-10-17 11:41:04 +05:30
kgsl_bus.h msm: kgsl: Add GPU minimum bandwidth vote state 2020-08-28 19:31:41 +05:30
kgsl_compat.c msm: kgsl: Avoid flooding kernel log with invalid ioctl errors 2021-05-07 00:44:15 -07:00
kgsl_compat.h msm: kgsl: Add APIs to provide GPU stats 2021-06-15 13:27:24 +05:30
kgsl_debugfs.c msm: kgsl: Print map count instead of map size 2021-08-27 05:13:36 -07:00
kgsl_debugfs.h
kgsl_device.h msm: kgsl: Add APIs to provide GPU stats 2021-06-15 13:27:24 +05:30
kgsl_drawobj.c msm: kgsl: Defer drawobj_sync_timeline_fence_work() to a workqueue 2023-07-30 19:26:44 -07:00
kgsl_drawobj.h msm: kgsl: Defer drawobj_sync_timeline_fence_work() to a workqueue 2023-07-30 19:26:44 -07:00
kgsl_events.c msm: kgsl: Move event groups to the KGSL device 2020-03-04 17:50:21 -08:00
kgsl_gmu_core.c msm: kgsl: constify structs with function pointers 2020-11-03 14:25:14 -07:00
kgsl_gmu_core.h msm: kgsl: constify structs with function pointers 2020-11-03 14:25:14 -07:00
kgsl_ioctl.c msm: kgsl: Avoid flooding kernel log with invalid ioctl errors 2021-05-07 00:44:15 -07:00
kgsl_iommu.c msm: kgsl: Prevent wrap around during user address mapping 2023-10-09 13:38:49 +05:30
kgsl_iommu.h msm: kgsl: Configure UCHE GMEM base address based on GMEM size 2021-03-10 15:55:02 +05:30
kgsl_mmu.c msm: kgsl: Do not free sharedmem if it cannot be unmapped 2023-11-30 22:11:30 -08:00
kgsl_mmu.h msm: kgsl: Fix gpuaddr_in_range() to check upper bound 2022-05-18 17:58:41 +05:30
kgsl_pool.c msm: kgsl: Add support for enhanced memory accounting 2021-06-09 18:52:04 +05:30
kgsl_pool.h msm: kgsl: Move memory pool initialization to the KGSL core 2019-12-06 09:05:19 -07:00
kgsl_pwrctrl.c msm: kgsl: Support QDSS_STM based on QCOM_KGSL_QDSS_STM config 2021-07-12 16:41:06 +05:30
kgsl_pwrctrl.h msm: kgsl: Add APIs to provide GPU stats 2021-06-15 13:27:24 +05:30
kgsl_pwrscale.c msm: kgsl: Add APIs to provide GPU stats 2021-06-15 13:27:24 +05:30
kgsl_pwrscale.h msm: kgsl: Set up the adreno device at runtime 2019-12-06 09:05:21 -07:00
kgsl_sharedmem.c msm: kgsl: Do not free sharedmem if it cannot be unmapped 2023-11-30 22:11:30 -08:00
kgsl_sharedmem.h msm: kgsl: Support adding VA padding for global allocations 2020-11-03 14:25:14 -07:00
kgsl_snapshot.c msm: kgsl: Add fallback condition for atomic snapshot 2021-07-23 13:28:59 +05:30
kgsl_snapshot.h
kgsl_sync.c msm: kgsl: Keep the context alive until its fences signal 2021-08-05 12:25:12 +05:30
kgsl_sync.h msm: kgsl: Keep the context alive until its fences signal 2021-08-05 12:25:12 +05:30
kgsl_sysfs.h msm: kgsl: constify structs with function pointers 2020-11-03 14:25:14 -07:00
kgsl_timeline.c msm: kgsl: Signal fence only if last fence refcount was not put 2021-12-02 21:27:14 +05:30
kgsl_timeline.h Merge "msm: kgsl: Fix spinlock recursion issues" 2021-05-14 10:11:00 -07:00
kgsl_trace.c
kgsl_trace.h msm: kgsl: Add tracepoints for the pools 2021-05-21 19:55:57 +05:30
kgsl_util.c msm: kgsl: Add support for voting vdd parent supply voltage 2020-10-30 20:58:48 +05:30
kgsl_util.h msm: kgsl: Add support for voting vdd parent supply voltage 2020-10-30 20:58:48 +05:30
kgsl.c msm: kgsl: Limit the syncpoint count for AUX commands 2023-10-09 13:28:53 +05:30
kgsl.h msm: kgsl: Keep postamble packets in a privileged buffer 2023-03-31 16:21:55 +05:30
Makefile msm: kgsl: Move a6xx perfcounters to target specific 2020-09-25 12:41:37 -06:00
msm_adreno_devfreq.h msm: kgsl: Increase MAX_PWRLEVELS Limit 2020-10-21 15:52:00 -07:00