• Home
  • Raw
  • Download

Lines Matching refs:m

48 	struct v9_mqd *m;  in update_cu_mask()  local
57 m = get_mqd(mqd); in update_cu_mask()
58 m->compute_static_thread_mgmt_se0 = se_mask[0]; in update_cu_mask()
59 m->compute_static_thread_mgmt_se1 = se_mask[1]; in update_cu_mask()
60 m->compute_static_thread_mgmt_se2 = se_mask[2]; in update_cu_mask()
61 m->compute_static_thread_mgmt_se3 = se_mask[3]; in update_cu_mask()
62 m->compute_static_thread_mgmt_se4 = se_mask[4]; in update_cu_mask()
63 m->compute_static_thread_mgmt_se5 = se_mask[5]; in update_cu_mask()
64 m->compute_static_thread_mgmt_se6 = se_mask[6]; in update_cu_mask()
65 m->compute_static_thread_mgmt_se7 = se_mask[7]; in update_cu_mask()
68 m->compute_static_thread_mgmt_se0, in update_cu_mask()
69 m->compute_static_thread_mgmt_se1, in update_cu_mask()
70 m->compute_static_thread_mgmt_se2, in update_cu_mask()
71 m->compute_static_thread_mgmt_se3, in update_cu_mask()
72 m->compute_static_thread_mgmt_se4, in update_cu_mask()
73 m->compute_static_thread_mgmt_se5, in update_cu_mask()
74 m->compute_static_thread_mgmt_se6, in update_cu_mask()
75 m->compute_static_thread_mgmt_se7); in update_cu_mask()
78 static void set_priority(struct v9_mqd *m, struct queue_properties *q) in set_priority() argument
80 m->cp_hqd_pipe_priority = pipe_priority_map[q->priority]; in set_priority()
81 m->cp_hqd_queue_priority = q->priority; in set_priority()
136 struct v9_mqd *m; in init_mqd() local
138 m = (struct v9_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
141 memset(m, 0, sizeof(struct v9_mqd)); in init_mqd()
143 m->header = 0xC0310800; in init_mqd()
144 m->compute_pipelinestat_enable = 1; in init_mqd()
145 m->compute_static_thread_mgmt_se0 = 0xFFFFFFFF; in init_mqd()
146 m->compute_static_thread_mgmt_se1 = 0xFFFFFFFF; in init_mqd()
147 m->compute_static_thread_mgmt_se2 = 0xFFFFFFFF; in init_mqd()
148 m->compute_static_thread_mgmt_se3 = 0xFFFFFFFF; in init_mqd()
149 m->compute_static_thread_mgmt_se4 = 0xFFFFFFFF; in init_mqd()
150 m->compute_static_thread_mgmt_se5 = 0xFFFFFFFF; in init_mqd()
151 m->compute_static_thread_mgmt_se6 = 0xFFFFFFFF; in init_mqd()
152 m->compute_static_thread_mgmt_se7 = 0xFFFFFFFF; in init_mqd()
154 m->cp_hqd_persistent_state = CP_HQD_PERSISTENT_STATE__PRELOAD_REQ_MASK | in init_mqd()
157 m->cp_mqd_control = 1 << CP_MQD_CONTROL__PRIV_STATE__SHIFT; in init_mqd()
159 m->cp_mqd_base_addr_lo = lower_32_bits(addr); in init_mqd()
160 m->cp_mqd_base_addr_hi = upper_32_bits(addr); in init_mqd()
162 m->cp_hqd_quantum = 1 << CP_HQD_QUANTUM__QUANTUM_EN__SHIFT | in init_mqd()
167 m->cp_hqd_aql_control = in init_mqd()
172 m->compute_pgm_rsrc2 |= in init_mqd()
177 m->cp_hqd_persistent_state |= in init_mqd()
179 m->cp_hqd_ctx_save_base_addr_lo = in init_mqd()
181 m->cp_hqd_ctx_save_base_addr_hi = in init_mqd()
183 m->cp_hqd_ctx_save_size = q->ctx_save_restore_area_size; in init_mqd()
184 m->cp_hqd_cntl_stack_size = q->ctl_stack_size; in init_mqd()
185 m->cp_hqd_cntl_stack_offset = q->ctl_stack_size; in init_mqd()
186 m->cp_hqd_wg_state_offset = q->ctl_stack_size; in init_mqd()
189 *mqd = m; in init_mqd()
192 mm->update_mqd(mm, m, q); in init_mqd()
218 struct v9_mqd *m; in update_mqd() local
220 m = get_mqd(mqd); in update_mqd()
222 m->cp_hqd_pq_control = 5 << CP_HQD_PQ_CONTROL__RPTR_BLOCK_SIZE__SHIFT; in update_mqd()
223 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in update_mqd()
224 pr_debug("cp_hqd_pq_control 0x%x\n", m->cp_hqd_pq_control); in update_mqd()
226 m->cp_hqd_pq_base_lo = lower_32_bits((uint64_t)q->queue_address >> 8); in update_mqd()
227 m->cp_hqd_pq_base_hi = upper_32_bits((uint64_t)q->queue_address >> 8); in update_mqd()
229 m->cp_hqd_pq_rptr_report_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd()
230 m->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd()
231 m->cp_hqd_pq_wptr_poll_addr_lo = lower_32_bits((uint64_t)q->write_ptr); in update_mqd()
232 m->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits((uint64_t)q->write_ptr); in update_mqd()
234 m->cp_hqd_pq_doorbell_control = in update_mqd()
238 m->cp_hqd_pq_doorbell_control); in update_mqd()
240 m->cp_hqd_ib_control = in update_mqd()
251 m->cp_hqd_eop_control = min(0xA, in update_mqd()
253 m->cp_hqd_eop_base_addr_lo = in update_mqd()
255 m->cp_hqd_eop_base_addr_hi = in update_mqd()
258 m->cp_hqd_iq_timer = 0; in update_mqd()
260 m->cp_hqd_vmid = q->vmid; in update_mqd()
263 m->cp_hqd_pq_control |= CP_HQD_PQ_CONTROL__NO_UPDATE_RPTR_MASK | in update_mqd()
267 m->cp_hqd_pq_doorbell_control |= 1 << in update_mqd()
271 m->cp_hqd_ctx_save_control = 0; in update_mqd()
274 set_priority(m, q); in update_mqd()
282 struct v9_mqd *m = (struct v9_mqd *)mqd; in read_doorbell_id() local
284 return m->queue_doorbell_id0; in read_doorbell_id()
324 struct v9_mqd *m; in get_wave_state() local
329 m = get_mqd(mqd); in get_wave_state()
331 *ctl_stack_used_size = m->cp_hqd_cntl_stack_size - in get_wave_state()
332 m->cp_hqd_cntl_stack_offset; in get_wave_state()
333 *save_area_used_size = m->cp_hqd_wg_state_offset - in get_wave_state()
334 m->cp_hqd_cntl_stack_size; in get_wave_state()
336 if (copy_to_user(ctl_stack, mqd_ctl_stack, m->cp_hqd_cntl_stack_size)) in get_wave_state()
346 struct v9_mqd *m; in init_mqd_hiq() local
350 m = get_mqd(*mqd); in init_mqd_hiq()
352 m->cp_hqd_pq_control |= 1 << CP_HQD_PQ_CONTROL__PRIV_STATE__SHIFT | in init_mqd_hiq()
360 struct v9_sdma_mqd *m; in init_mqd_sdma() local
362 m = (struct v9_sdma_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
364 memset(m, 0, sizeof(struct v9_sdma_mqd)); in init_mqd_sdma()
366 *mqd = m; in init_mqd_sdma()
370 mm->update_mqd(mm, m, q); in init_mqd_sdma()
387 struct v9_sdma_mqd *m; in update_mqd_sdma() local
389 m = get_sdma_mqd(mqd); in update_mqd_sdma()
390 m->sdmax_rlcx_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma()
396 m->sdmax_rlcx_rb_base = lower_32_bits(q->queue_address >> 8); in update_mqd_sdma()
397 m->sdmax_rlcx_rb_base_hi = upper_32_bits(q->queue_address >> 8); in update_mqd_sdma()
398 m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
399 m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits((uint64_t)q->read_ptr); in update_mqd_sdma()
400 m->sdmax_rlcx_doorbell_offset = in update_mqd_sdma()
403 m->sdma_engine_id = q->sdma_engine_id; in update_mqd_sdma()
404 m->sdma_queue_id = q->sdma_queue_id; in update_mqd_sdma()
405 m->sdmax_rlcx_dummy_reg = SDMA_RLC_DUMMY_DEFAULT; in update_mqd_sdma()
431 static int debugfs_show_mqd(struct seq_file *m, void *data) in debugfs_show_mqd() argument
433 seq_hex_dump(m, " ", DUMP_PREFIX_OFFSET, 32, 4, in debugfs_show_mqd()
438 static int debugfs_show_mqd_sdma(struct seq_file *m, void *data) in debugfs_show_mqd_sdma() argument
440 seq_hex_dump(m, " ", DUMP_PREFIX_OFFSET, 32, 4, in debugfs_show_mqd_sdma()