Lines Matching refs:mqd

2815 			     struct cik_mqd *mqd,  in gfx_v7_0_mqd_init()  argument
2823 memset(mqd, 0, sizeof(struct cik_mqd)); in gfx_v7_0_mqd_init()
2825 mqd->header = 0xC0310800; in gfx_v7_0_mqd_init()
2826 mqd->compute_static_thread_mgmt_se0 = 0xffffffff; in gfx_v7_0_mqd_init()
2827 mqd->compute_static_thread_mgmt_se1 = 0xffffffff; in gfx_v7_0_mqd_init()
2828 mqd->compute_static_thread_mgmt_se2 = 0xffffffff; in gfx_v7_0_mqd_init()
2829 mqd->compute_static_thread_mgmt_se3 = 0xffffffff; in gfx_v7_0_mqd_init()
2832 mqd->cp_hqd_pq_doorbell_control = in gfx_v7_0_mqd_init()
2835 mqd->cp_hqd_pq_doorbell_control |= CP_HQD_PQ_DOORBELL_CONTROL__DOORBELL_EN_MASK; in gfx_v7_0_mqd_init()
2837 mqd->cp_hqd_pq_doorbell_control &= ~CP_HQD_PQ_DOORBELL_CONTROL__DOORBELL_EN_MASK; in gfx_v7_0_mqd_init()
2840 mqd->cp_mqd_base_addr_lo = mqd_gpu_addr & 0xfffffffc; in gfx_v7_0_mqd_init()
2841 mqd->cp_mqd_base_addr_hi = upper_32_bits(mqd_gpu_addr); in gfx_v7_0_mqd_init()
2844 mqd->cp_mqd_control = RREG32(mmCP_MQD_CONTROL); in gfx_v7_0_mqd_init()
2845 mqd->cp_mqd_control &= ~CP_MQD_CONTROL__VMID_MASK; in gfx_v7_0_mqd_init()
2849 mqd->cp_hqd_pq_base_lo = hqd_gpu_addr; in gfx_v7_0_mqd_init()
2850 mqd->cp_hqd_pq_base_hi = upper_32_bits(hqd_gpu_addr); in gfx_v7_0_mqd_init()
2853 mqd->cp_hqd_pq_control = RREG32(mmCP_HQD_PQ_CONTROL); in gfx_v7_0_mqd_init()
2854 mqd->cp_hqd_pq_control &= in gfx_v7_0_mqd_init()
2858 mqd->cp_hqd_pq_control |= in gfx_v7_0_mqd_init()
2860 mqd->cp_hqd_pq_control |= in gfx_v7_0_mqd_init()
2863 mqd->cp_hqd_pq_control |= in gfx_v7_0_mqd_init()
2866 mqd->cp_hqd_pq_control &= in gfx_v7_0_mqd_init()
2870 mqd->cp_hqd_pq_control |= in gfx_v7_0_mqd_init()
2876 mqd->cp_hqd_pq_wptr_poll_addr_lo = wb_gpu_addr & 0xfffffffc; in gfx_v7_0_mqd_init()
2877 mqd->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits(wb_gpu_addr) & 0xffff; in gfx_v7_0_mqd_init()
2881 mqd->cp_hqd_pq_rptr_report_addr_lo = wb_gpu_addr & 0xfffffffc; in gfx_v7_0_mqd_init()
2882 mqd->cp_hqd_pq_rptr_report_addr_hi = in gfx_v7_0_mqd_init()
2887 mqd->cp_hqd_pq_doorbell_control = in gfx_v7_0_mqd_init()
2889 mqd->cp_hqd_pq_doorbell_control &= in gfx_v7_0_mqd_init()
2891 mqd->cp_hqd_pq_doorbell_control |= in gfx_v7_0_mqd_init()
2894 mqd->cp_hqd_pq_doorbell_control |= in gfx_v7_0_mqd_init()
2896 mqd->cp_hqd_pq_doorbell_control &= in gfx_v7_0_mqd_init()
2901 mqd->cp_hqd_pq_doorbell_control = 0; in gfx_v7_0_mqd_init()
2906 mqd->cp_hqd_pq_wptr = lower_32_bits(ring->wptr); in gfx_v7_0_mqd_init()
2907 mqd->cp_hqd_pq_rptr = RREG32(mmCP_HQD_PQ_RPTR); in gfx_v7_0_mqd_init()
2910 mqd->cp_hqd_vmid = 0; in gfx_v7_0_mqd_init()
2913 mqd->cp_hqd_ib_control = RREG32(mmCP_HQD_IB_CONTROL); in gfx_v7_0_mqd_init()
2914 mqd->cp_hqd_ib_base_addr_lo = RREG32(mmCP_HQD_IB_BASE_ADDR); in gfx_v7_0_mqd_init()
2915 mqd->cp_hqd_ib_base_addr_hi = RREG32(mmCP_HQD_IB_BASE_ADDR_HI); in gfx_v7_0_mqd_init()
2916 mqd->cp_hqd_ib_rptr = RREG32(mmCP_HQD_IB_RPTR); in gfx_v7_0_mqd_init()
2917 mqd->cp_hqd_persistent_state = RREG32(mmCP_HQD_PERSISTENT_STATE); in gfx_v7_0_mqd_init()
2918 mqd->cp_hqd_sema_cmd = RREG32(mmCP_HQD_SEMA_CMD); in gfx_v7_0_mqd_init()
2919 mqd->cp_hqd_msg_type = RREG32(mmCP_HQD_MSG_TYPE); in gfx_v7_0_mqd_init()
2920 mqd->cp_hqd_atomic0_preop_lo = RREG32(mmCP_HQD_ATOMIC0_PREOP_LO); in gfx_v7_0_mqd_init()
2921 mqd->cp_hqd_atomic0_preop_hi = RREG32(mmCP_HQD_ATOMIC0_PREOP_HI); in gfx_v7_0_mqd_init()
2922 mqd->cp_hqd_atomic1_preop_lo = RREG32(mmCP_HQD_ATOMIC1_PREOP_LO); in gfx_v7_0_mqd_init()
2923 mqd->cp_hqd_atomic1_preop_hi = RREG32(mmCP_HQD_ATOMIC1_PREOP_HI); in gfx_v7_0_mqd_init()
2924 mqd->cp_hqd_pq_rptr = RREG32(mmCP_HQD_PQ_RPTR); in gfx_v7_0_mqd_init()
2925 mqd->cp_hqd_quantum = RREG32(mmCP_HQD_QUANTUM); in gfx_v7_0_mqd_init()
2926 mqd->cp_hqd_pipe_priority = RREG32(mmCP_HQD_PIPE_PRIORITY); in gfx_v7_0_mqd_init()
2927 mqd->cp_hqd_queue_priority = RREG32(mmCP_HQD_QUEUE_PRIORITY); in gfx_v7_0_mqd_init()
2928 mqd->cp_hqd_iq_rptr = RREG32(mmCP_HQD_IQ_RPTR); in gfx_v7_0_mqd_init()
2931 mqd->cp_hqd_active = 1; in gfx_v7_0_mqd_init()
2934 static int gfx_v7_0_mqd_commit(struct amdgpu_device *adev, struct cik_mqd *mqd) in gfx_v7_0_mqd_commit() argument
2941 mqd_data = &mqd->cp_mqd_base_addr_lo; in gfx_v7_0_mqd_commit()
2963 struct cik_mqd *mqd; in gfx_v7_0_compute_queue_init() local
2968 &mqd_gpu_addr, (void **)&mqd); in gfx_v7_0_compute_queue_init()
2977 gfx_v7_0_mqd_init(adev, mqd, mqd_gpu_addr, ring); in gfx_v7_0_compute_queue_init()
2979 gfx_v7_0_mqd_commit(adev, mqd); in gfx_v7_0_compute_queue_init()