/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_jd_debugfs.c | 120 * kbasep_jd_debugfs_atoms_show - Show callback for the JD atoms debugfs file. 124 * This function is called to get the contents of the JD atoms debugfs file. 125 * This is a report of all atoms managed by kbase_jd_context.atoms 133 struct kbase_jd_atom *atoms; in kbasep_jd_debugfs_atoms_show() local 148 atoms = kctx->jctx.atoms; in kbasep_jd_debugfs_atoms_show() 154 struct kbase_jd_atom *atom = &atoms[i]; in kbasep_jd_debugfs_atoms_show() 207 /* Expose all atoms */ in kbasep_jd_debugfs_ctx_init() 208 debugfs_create_file("atoms", S_IRUG in kbasep_jd_debugfs_ctx_init() [all...] |
H A D | mali_kbase_jd.c | 43 * dependency-only atoms do not run on the GPU */
117 * met. Other atoms must have had both dependencies resolved.
in kbase_jd_dep_clear_locked() 227 * completed before the atom was run, so only flush for failed atoms.
in kbase_jd_free_external_resources() 637 if (kbase_jd_katom_dep_atom(&kctx->jctx.atoms[i].dep[0]) == katom ||
in jd_check_force_failure() 638 kbase_jd_katom_dep_atom(&kctx->jctx.atoms[i].dep[1]) == katom) {
in jd_check_force_failure() 639 struct kbase_jd_atom *dep_atom = &kctx->jctx.atoms[i];
in jd_check_force_failure() 1012 struct kbase_jd_atom *dep_atom = &jctx->atoms[dep_atom_number];
in jd_submit_atom() 1096 struct kbase_jd_atom *dep_atom = &jctx->atoms[dep_atom_number];
in jd_submit_atom() 1102 /* Reject atoms with job chain = NULL, as these cause issues with soft-stop */
in jd_submit_atom() 1110 /* Reject atoms wit in jd_submit_atom() [all...] |
H A D | mali_kbase_replay.c | 552 * If no atoms are available then the function will fail.
563 if (jctx->atoms[i].status == KBASE_JD_ATOM_STATE_UNUSED) {
in kbasep_allocate_katom() 564 jctx->atoms[i].status = KBASE_JD_ATOM_STATE_QUEUED;
in kbasep_allocate_katom() 589 while (!list_empty(&jctx->atoms[atom_id].dep_head[0])) {
in kbasep_release_katom() 590 list_del(jctx->atoms[atom_id].dep_head[0].next);
in kbasep_release_katom() 593 while (!list_empty(&jctx->atoms[atom_id].dep_head[1])) {
in kbasep_release_katom() 594 list_del(jctx->atoms[atom_id].dep_head[1].next);
in kbasep_release_katom() 597 jctx->atoms[atom_id].status = KBASE_JD_ATOM_STATE_UNUSED;
in kbasep_release_katom() 617 * @brief Create two atoms for the purpose of replaying jobs
619 * Two atoms ar [all...] |
H A D | mali_kbase.h | 107 * kbase_jd_submit - Submit atoms to the job dispatcher
111 * @nr_atoms: The number of atoms in the array
113 * @uk6_atom: true if the atoms are legacy atoms (struct base_jd_atom_v2_uk6)
150 * kbase_job_slot_ctx_priority_check_locked(): - Check for lower priority atoms
156 * than @katom will be soft stopped and put back in the queue, so that atoms
245 result = katom - &kctx->jctx.atoms[0];
in kbase_jd_atom_id() 259 return &kctx->jctx.atoms[id];
in kbase_jd_atom_from_id()
|
H A D | mali_kbase_event.c | 85 uevent->atom_number = (atom - ctx->jctx.atoms);
in kbase_event_dequeue() 101 * kbase_event_process_noreport_worker - Worker for processing atoms that do not
121 * kbase_event_process_noreport - Process atoms that do not return an event
239 * deals with all the cleanup needed for the atoms.
in kbase_event_cleanup()
|
H A D | mali_kbase_defs.h | 182 /* Atom is currently in the list of atoms blocked on cross-slot dependencies */
210 /* Serialize atoms within a slot (ie only one atom per job slot) */
212 /* Serialize atoms between slots (ie only one job slot running at any time) */
515 /* JS atom priority with respect to other atoms on its kctx. */
586 /* 'Age' of atom relative to other atoms in the context. */
608 struct kbase_jd_atom atoms[BASE_JD_ATOM_COUNT];
member 1252 * @runnable_tree: Root of RB-tree containing currently runnable atoms on this
1254 * @x_dep_head: Head item of the linked list of atoms blocked on cross-slot
1278 * @KCTX_PULLED: Set when last kick() caused atoms to be pulled from this
1424 /* This list will keep the following atoms durin [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_jd_debugfs.c | 140 * kbasep_jd_debugfs_atoms_show - Show callback for the JD atoms debugfs file. 144 * This function is called to get the contents of the JD atoms debugfs file. 145 * This is a report of all atoms managed by kbase_jd_context.atoms 153 struct kbase_jd_atom *atoms; in kbasep_jd_debugfs_atoms_show() local 169 atoms = kctx->jctx.atoms; in kbasep_jd_debugfs_atoms_show() 175 struct kbase_jd_atom *atom = &atoms[i]; in kbasep_jd_debugfs_atoms_show() 246 /* Expose all atoms */ in kbasep_jd_debugfs_ctx_init() 247 debugfs_create_file("atoms", mod in kbasep_jd_debugfs_ctx_init() [all...] |
H A D | mali_kbase_jd.c | 46 * dependency-only atoms do not run on the GPU 135 * met. Other atoms must have had both dependencies resolved. in kbase_jd_dep_clear_locked() 167 * completed before the atom was run, so only flush for failed atoms. in kbase_jd_free_external_resources() 571 * Read back actual just-in-time memory region usage from atoms that provide 954 /* Older API version atoms might have random values where jit_id now in jd_submit_atom() 1012 struct kbase_jd_atom *dep_atom = &jctx->atoms[dep_atom_number]; in jd_submit_atom() 1094 /* Reject atoms for incremental rendering if not supported */ in jd_submit_atom() 1110 /* Reject atoms with job chain = NULL, as these cause issues in jd_submit_atom() 1118 /* Reject atoms with an invalid device_nr */ in jd_submit_atom() 1128 /* Reject atoms wit in jd_submit_atom() [all...] |
H A D | mali_kbase.h | 222 * kbase_jd_submit - Submit atoms to the job dispatcher 226 * @nr_atoms: The number of atoms in the array 228 * @uk6_atom: true if the atoms are legacy atoms (struct base_jd_atom_v2_uk6) 277 * kbase_job_slot_ctx_priority_check_locked(): - Check for lower priority atoms 283 * than @katom will be soft stopped and put back in the queue, so that atoms 550 result = katom - &kctx->jctx.atoms[0]; in kbase_jd_atom_id() 565 return &kctx->jctx.atoms[id]; in kbase_jd_atom_from_id()
|
H A D | mali_kbase_event.c | 85 uevent->atom_number = (atom - ctx->jctx.atoms); in kbase_event_dequeue() 100 * kbase_event_process_noreport_worker - Worker for processing atoms that do not 120 * kbase_event_process_noreport - Process atoms that do not return an event 257 * deals with all the cleanup needed for the atoms. in kbase_event_cleanup()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_jd_debugfs.c | 128 * kbasep_jd_debugfs_atoms_show - Show callback for the JD atoms debugfs file. 132 * This function is called to get the contents of the JD atoms debugfs file. 133 * This is a report of all atoms managed by kbase_jd_context.atoms 141 struct kbase_jd_atom *atoms; in kbasep_jd_debugfs_atoms_show() local 156 atoms = kctx->jctx.atoms; in kbasep_jd_debugfs_atoms_show() 162 struct kbase_jd_atom *atom = &atoms[i]; in kbasep_jd_debugfs_atoms_show() 227 /* Expose all atoms */ in kbasep_jd_debugfs_ctx_init() 228 debugfs_create_file("atoms", mod in kbasep_jd_debugfs_ctx_init() [all...] |
H A D | mali_kbase_jd.c | 51 * dependency-only atoms do not run on the GPU */ 134 * met. Other atoms must have had both dependencies resolved. in kbase_jd_dep_clear_locked() 159 * completed before the atom was run, so only flush for failed atoms. in kbase_jd_free_external_resources() 541 * Read back actual just-in-time memory region usage from atoms that provide 891 /* Older API version atoms might have random values where jit_id now in jd_submit_atom() 946 struct kbase_jd_atom *dep_atom = &jctx->atoms[dep_atom_number]; in jd_submit_atom() 1022 /* Reject atoms for incremental rendering if not supported */ in jd_submit_atom() 1034 /* Reject atoms with job chain = NULL, as these cause issues in jd_submit_atom() 1042 /* Reject atoms with an invalid device_nr */ in jd_submit_atom() 1050 /* Reject atoms wit in jd_submit_atom() [all...] |
H A D | mali_kbase.h | 226 * kbase_jd_submit - Submit atoms to the job dispatcher 230 * @nr_atoms: The number of atoms in the array 232 * @uk6_atom: true if the atoms are legacy atoms (struct base_jd_atom_v2_uk6) 278 * kbase_job_slot_ctx_priority_check_locked(): - Check for lower priority atoms 284 * than @katom will be soft stopped and put back in the queue, so that atoms 492 result = katom - &kctx->jctx.atoms[0]; in kbase_jd_atom_id() 506 return &kctx->jctx.atoms[id]; in kbase_jd_atom_from_id()
|
H A D | mali_kbase_event.c | 85 uevent->atom_number = (atom - ctx->jctx.atoms); in kbase_event_dequeue() 101 * kbase_event_process_noreport_worker - Worker for processing atoms that do not 121 * kbase_event_process_noreport - Process atoms that do not return an event 252 * deals with all the cleanup needed for the atoms. in kbase_event_cleanup()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_jd_debugfs.c | 133 * kbasep_jd_debugfs_atoms_show - Show callback for the JD atoms debugfs file. 137 * This function is called to get the contents of the JD atoms debugfs file. 138 * This is a report of all atoms managed by kbase_jd_context.atoms 146 struct kbase_jd_atom *atoms; in kbasep_jd_debugfs_atoms_show() local 162 atoms = kctx->jctx.atoms; in kbasep_jd_debugfs_atoms_show() 168 struct kbase_jd_atom *atom = &atoms[i]; in kbasep_jd_debugfs_atoms_show() 227 /* Expose all atoms */ in kbasep_jd_debugfs_ctx_init() 228 debugfs_create_file("atoms", S_IRUG in kbasep_jd_debugfs_ctx_init() [all...] |
H A D | mali_kbase_jd.c | 47 * dependency-only atoms do not run on the GPU */ 122 * met. Other atoms must have had both dependencies resolved. in kbase_jd_dep_clear_locked() 232 * completed before the atom was run, so only flush for failed atoms. in kbase_jd_free_external_resources() 667 if (kbase_jd_katom_dep_atom(&kctx->jctx.atoms[i].dep[0]) == katom || in jd_check_force_failure() 668 kbase_jd_katom_dep_atom(&kctx->jctx.atoms[i].dep[1]) == katom) { in jd_check_force_failure() 669 struct kbase_jd_atom *dep_atom = &kctx->jctx.atoms[i]; in jd_check_force_failure() 1054 struct kbase_jd_atom *dep_atom = &jctx->atoms[dep_atom_number]; in jd_submit_atom() 1152 &jctx->atoms[dep_atom_number]; in jd_submit_atom() 1159 /* Reject atoms with job chain = NULL, as these cause issues with soft-stop */ in jd_submit_atom() 1167 /* Reject atoms wit in jd_submit_atom() [all...] |
H A D | mali_kbase_replay.c | 602 * If no atoms are available then the function will fail. 613 if (jctx->atoms[i].status == KBASE_JD_ATOM_STATE_UNUSED) { in kbasep_allocate_katom() 614 jctx->atoms[i].status = KBASE_JD_ATOM_STATE_QUEUED; in kbasep_allocate_katom() 642 while (!list_empty(&jctx->atoms[atom_id].dep_head[0])) in kbasep_release_katom() 643 list_del(jctx->atoms[atom_id].dep_head[0].next); in kbasep_release_katom() 645 while (!list_empty(&jctx->atoms[atom_id].dep_head[1])) in kbasep_release_katom() 646 list_del(jctx->atoms[atom_id].dep_head[1].next); in kbasep_release_katom() 648 jctx->atoms[atom_id].status = KBASE_JD_ATOM_STATE_UNUSED; in kbasep_release_katom() 670 * @brief Create two atoms for the purpose of replaying jobs 672 * Two atoms ar [all...] |
H A D | mali_kbase.h | 116 * kbase_jd_submit - Submit atoms to the job dispatcher 120 * @nr_atoms: The number of atoms in the array 122 * @uk6_atom: true if the atoms are legacy atoms (struct base_jd_atom_v2_uk6) 164 * kbase_job_slot_ctx_priority_check_locked(): - Check for lower priority atoms 170 * than @katom will be soft stopped and put back in the queue, so that atoms 266 result = katom - &kctx->jctx.atoms[0]; in kbase_jd_atom_id() 281 return &kctx->jctx.atoms[id]; in kbase_jd_atom_from_id()
|
H A D | mali_kbase_event.c | 91 uevent->atom_number = (atom - ctx->jctx.atoms); in kbase_event_dequeue() 106 * kbase_event_process_noreport_worker - Worker for processing atoms that do not 126 * kbase_event_process_noreport - Process atoms that do not return an event 244 * deals with all the cleanup needed for the atoms. in kbase_event_cleanup()
|
H A D | mali_kbase_defs.h | 187 /* Atom is currently in the list of atoms blocked on cross-slot dependencies */ 216 /* Serialize atoms within a slot (ie only one atom per job slot) */ 218 /* Serialize atoms between slots (ie only one job slot running at any time) */ 522 /* JS atom priority with respect to other atoms on its kctx. */ 593 /* 'Age' of atom relative to other atoms in the context. */ 615 struct kbase_jd_atom atoms[BASE_JD_ATOM_COUNT]; member 1267 * @runnable_tree: Root of RB-tree containing currently runnable atoms on this 1269 * @x_dep_head: Head item of the linked list of atoms blocked on cross-slot 1296 * @KCTX_PULLED: Set when last kick() caused atoms to be pulled from this 1442 /* This list will keep the following atoms durin [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/jm/ |
H A D | mali_kbase_jm_defs.h | 89 /* Atom is currently in the list of atoms blocked on cross-slot dependencies */ 122 /* Serialize atoms within a slot (ie only one atom per job slot) */ 124 /* Serialize atoms between slots (ie only one job slot running at any time) */ 141 * of job done for the atoms which followed the faulty atom. 143 * faulty atoms or context specific list of atoms which got 246 * previously added atoms in current & other 263 * atoms in fifo have completed or have also 284 * atoms currently submitted to GPU and protected mode 319 * atoms currentl 779 struct kbase_jd_atom atoms[BASE_JD_ATOM_COUNT]; global() member [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/jm/ |
H A D | mali_kbase_jm_defs.h | 88 /* Atom is currently in the list of atoms blocked on cross-slot dependencies */ 120 /* Serialize atoms within a slot (ie only one atom per job slot) */ 122 /* Serialize atoms between slots (ie only one job slot running at any time) */ 139 * of job done for the atoms which followed the faulty atom. 141 * faulty atoms or context specific list of atoms which got 249 * previously added atoms in current & other 266 * atoms in fifo have completed or have also 287 * atoms currently submitted to GPU and protected mode 322 * atoms currentl 837 struct kbase_jd_atom atoms[BASE_JD_ATOM_COUNT]; global() member [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_jm_hw.c | 610 if (!work_pending(&kctx->jctx.atoms[i].work)) { in kbase_backend_jm_kill_jobs_from_kctx() 611 kctx->jctx.atoms[i].event_code = BASE_JD_EVENT_JOB_CANCELLED; in kbase_backend_jm_kill_jobs_from_kctx() 806 * @target_katom: An atom to check, or NULL if all atoms from @kctx on 835 /* Otherwise, we must chweck the hardware to see if it has atoms from in kbasep_check_for_afbc_on_slot() 845 /* Ignore atoms from other contexts, they won't be stopped when in kbasep_check_for_afbc_on_slot() 915 /* We make the check for AFBC before evicting/stopping atoms. Note in kbase_job_slot_hardstop()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_jm_hw.c | 713 if (!work_pending(&kctx->jctx.atoms[i].work)) in kbase_backend_jm_kill_jobs_from_kctx() 714 kctx->jctx.atoms[i].event_code = in kbase_backend_jm_kill_jobs_from_kctx() 913 * @target_katom: An atom to check, or NULL if all atoms from @kctx on 942 /* Otherwise, we must chweck the hardware to see if it has atoms from in kbasep_check_for_afbc_on_slot() 951 /* Ignore atoms from other contexts, they won't be stopped when in kbasep_check_for_afbc_on_slot() 1023 /* We make the check for AFBC before evicting/stopping atoms. Note in kbase_job_slot_hardstop()
|