Home
last modified time | relevance | path

Searched refs:a5xx_gpu (Results 1 – 6 of 6) sorted by relevance

/drivers/gpu/drm/msm/adreno/
Da5xx_preempt.c12 static inline bool try_preempt_state(struct a5xx_gpu *a5xx_gpu, in try_preempt_state() argument
15 enum preempt_state cur = atomic_cmpxchg(&a5xx_gpu->preempt_state, in try_preempt_state()
25 static inline void set_preempt_state(struct a5xx_gpu *gpu, in set_preempt_state()
78 struct a5xx_gpu *a5xx_gpu = from_timer(a5xx_gpu, t, preempt_timer); in a5xx_preempt_timer() local
79 struct msm_gpu *gpu = &a5xx_gpu->base.base; in a5xx_preempt_timer()
82 if (!try_preempt_state(a5xx_gpu, PREEMPT_TRIGGERED, PREEMPT_FAULTED)) in a5xx_preempt_timer()
93 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in a5xx_preempt_trigger() local
104 if (!try_preempt_state(a5xx_gpu, PREEMPT_NONE, PREEMPT_START)) in a5xx_preempt_trigger()
114 if (!ring || (a5xx_gpu->cur_ring == ring)) { in a5xx_preempt_trigger()
127 set_preempt_state(a5xx_gpu, PREEMPT_ABORT); in a5xx_preempt_trigger()
[all …]
Da5xx_gpu.c24 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in update_shadow_rptr() local
26 if (a5xx_gpu->has_whereami) { in update_shadow_rptr()
28 OUT_RING(ring, lower_32_bits(shadowptr(a5xx_gpu, ring))); in update_shadow_rptr()
29 OUT_RING(ring, upper_32_bits(shadowptr(a5xx_gpu, ring))); in update_shadow_rptr()
37 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in a5xx_flush() local
62 if (a5xx_gpu->cur_ring == ring && !a5xx_in_preempt(a5xx_gpu)) in a5xx_flush()
128 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in a5xx_submit() local
148 OUT_RING(ring, lower_32_bits(a5xx_gpu->preempt_iova[submit->ring->id])); in a5xx_submit()
149 OUT_RING(ring, upper_32_bits(a5xx_gpu->preempt_iova[submit->ring->id])); in a5xx_submit()
512 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in a5xx_preempt_start() local
[all …]
Da5xx_power.c125 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in a530_lm_setup() local
141 gpu_write(gpu, REG_A5XX_GPMU_BASE_LEAKAGE, a5xx_gpu->lm_leakage); in a530_lm_setup()
223 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in a5xx_gpmu_init() local
226 if (!a5xx_gpu->gpmu_dwords) in a5xx_gpmu_init()
235 OUT_RING(ring, lower_32_bits(a5xx_gpu->gpmu_iova)); in a5xx_gpmu_init()
236 OUT_RING(ring, upper_32_bits(a5xx_gpu->gpmu_iova)); in a5xx_gpmu_init()
237 OUT_RING(ring, a5xx_gpu->gpmu_dwords); in a5xx_gpmu_init()
327 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in a5xx_gpmu_ucode_init() local
336 if (a5xx_gpu->gpmu_bo) in a5xx_gpmu_ucode_init()
367 &a5xx_gpu->gpmu_bo, &a5xx_gpu->gpmu_iova); in a5xx_gpmu_ucode_init()
[all …]
Da5xx_debugfs.c99 struct a5xx_gpu *a5xx_gpu = to_a5xx_gpu(adreno_gpu); in reset_set() local
118 if (a5xx_gpu->pm4_bo) { in reset_set()
119 msm_gem_unpin_iova(a5xx_gpu->pm4_bo, gpu->aspace); in reset_set()
120 drm_gem_object_put(a5xx_gpu->pm4_bo); in reset_set()
121 a5xx_gpu->pm4_bo = NULL; in reset_set()
124 if (a5xx_gpu->pfp_bo) { in reset_set()
125 msm_gem_unpin_iova(a5xx_gpu->pfp_bo, gpu->aspace); in reset_set()
126 drm_gem_object_put(a5xx_gpu->pfp_bo); in reset_set()
127 a5xx_gpu->pfp_bo = NULL; in reset_set()
Da5xx_gpu.h15 struct a5xx_gpu { struct
49 #define to_a5xx_gpu(x) container_of(x, struct a5xx_gpu, base) argument
151 #define shadowptr(a5xx_gpu, ring) ((a5xx_gpu)->shadow_iova + \ argument
166 static inline bool a5xx_in_preempt(struct a5xx_gpu *a5xx_gpu) in a5xx_in_preempt() argument
168 int preempt_state = atomic_read(&a5xx_gpu->preempt_state); in a5xx_in_preempt()
/drivers/gpu/drm/msm/
DMakefile13 adreno/a5xx_gpu.o \