123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- #ifndef _ADRENO_GEN8_HWSCHED_HFI_H_
- #define _ADRENO_GEN8_HWSCHED_HFI_H_
- #define HWSCHED_MAX_NUMIBS \
- ((HFI_MAX_MSG_SIZE - offsetof(struct hfi_issue_cmd_cmd, ibs)) \
- / sizeof(struct hfi_issue_ib))
- #define GEN8_HWSCHED_HW_FENCE_SLEEP_BIT 0x0
- #define GEN8_HWSCHED_HW_FENCE_MAX_BIT 0x1
- #define GEN8_HWSCHED_HW_FENCE_ABORT_BIT 0x2
- struct gen8_hwsched_hfi {
- struct hfi_mem_alloc_entry mem_alloc_table[32]
- u32 mem_alloc_entries
-
- u32 irq_mask
-
- rwlock_t msglock
-
- struct list_head msglist
-
- struct task_struct *f2h_task
-
- wait_queue_head_t f2h_wq
-
- struct kgsl_memdesc *big_ib;
-
- struct kgsl_memdesc *big_ib_recurring;
-
- struct mutex msgq_mutex
- struct {
-
- spinlock_t lock
-
- u32 unack_count
-
- wait_queue_head_t unack_wq
-
- struct adreno_context *defer_drawctxt
-
- u32 defer_ts
-
- unsigned long flags
-
- atomic_t seqnum
- } hw_fence
-
- struct timer_list hw_fence_timer
-
- struct work_struct hw_fence_ws
-
- struct list_head detached_hw_fence_list
-
- struct kthread_work defer_hw_fence_work
- }
- struct kgsl_drawobj_cmd
- int gen8_hwsched_hfi_probe(struct adreno_device *adreno_dev);
- void gen8_hwsched_hfi_remove(struct adreno_device *adreno_dev);
- int gen8_hwsched_hfi_init(struct adreno_device *adreno_dev);
- int gen8_hwsched_hfi_start(struct adreno_device *adreno_dev);
- void gen8_hwsched_hfi_stop(struct adreno_device *adreno_dev);
- int gen8_hwsched_cp_init(struct adreno_device *adreno_dev);
- int gen8_hfi_send_cmd_async(struct adreno_device *adreno_dev, void *data, u32 size_bytes)
- int gen8_hwsched_submit_drawobj(struct adreno_device *adreno_dev,
- struct kgsl_drawobj *drawobj)
- void gen8_hwsched_context_detach(struct adreno_context *drawctxt)
- struct gen8_hwsched_hfi *to_gen8_hwsched_hfi(struct adreno_device *adreno_dev);
- u32 gen8_hwsched_preempt_count_get(struct adreno_device *adreno_dev);
- u32 gen8_hwsched_parse_payload(struct payload_section *payload, u32 key)
- int gen8_hwsched_lpac_cp_init(struct adreno_device *adreno_dev);
- int gen8_hfi_send_lpac_feature_ctrl(struct adreno_device *adreno_dev);
- void gen8_hwsched_context_destroy(struct adreno_device *adreno_dev,
- struct adreno_context *drawctxt)
- u32 gen8_hwsched_hfi_get_value(struct adreno_device *adreno_dev, u32 prop)
- int gen8_send_hw_fence_hfi_wait_ack(struct adreno_device *adreno_dev,
- struct adreno_hw_fence_entry *entry, u64 flags)
- void gen8_hwsched_create_hw_fence(struct adreno_device *adreno_dev,
- struct kgsl_sync_fence *kfence)
- int gen8_hwsched_drain_context_hw_fences(struct adreno_device *adreno_dev,
- struct adreno_context *drawctxt)
- int gen8_hwsched_check_context_inflight_hw_fences(struct adreno_device *adreno_dev,
- struct adreno_context *drawctxt)
- void gen8_remove_hw_fence_entry(struct adreno_device *adreno_dev,
- struct adreno_hw_fence_entry *entry)
- void gen8_trigger_hw_fence_cpu(struct adreno_device *adreno_dev,
- struct adreno_hw_fence_entry *fence)
- int gen8_hwsched_disable_hw_fence_throttle(struct adreno_device *adreno_dev);
- void gen8_hwsched_process_msgq(struct adreno_device *adreno_dev);
- int gen8_hwsched_boot_gpu(struct adreno_device *adreno_dev);
- #endif
|