/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | jpeg_v1_0.c | 182 amdgpu_ring_write(ring, in jpeg_v1_0_decode_ring_insert_start() 184 amdgpu_ring_write(ring, 0x68e04); in jpeg_v1_0_decode_ring_insert_start() 186 amdgpu_ring_write(ring, PACKETJ(0, 0, 0, PACKETJ_TYPE0)); in jpeg_v1_0_decode_ring_insert_start() 187 amdgpu_ring_write(ring, 0x80010000); in jpeg_v1_0_decode_ring_insert_start() 201 amdgpu_ring_write(ring, in jpeg_v1_0_decode_ring_insert_end() 203 amdgpu_ring_write(ring, 0x68e04); in jpeg_v1_0_decode_ring_insert_end() 205 amdgpu_ring_write(ring, PACKETJ(0, 0, 0, PACKETJ_TYPE0)); in jpeg_v1_0_decode_ring_insert_end() 206 amdgpu_ring_write(ring, 0x00010000); in jpeg_v1_0_decode_ring_insert_end() 226 amdgpu_ring_write(ring, in jpeg_v1_0_decode_ring_emit_fence() 228 amdgpu_ring_write(ring, seq); in jpeg_v1_0_decode_ring_emit_fence() [all …]
|
D | jpeg_v2_0.c | 443 amdgpu_ring_write(ring, PACKETJ(mmUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET, in jpeg_v2_0_dec_ring_insert_start() 445 amdgpu_ring_write(ring, 0x68e04); in jpeg_v2_0_dec_ring_insert_start() 447 amdgpu_ring_write(ring, PACKETJ(JRBC_DEC_EXTERNAL_REG_WRITE_ADDR, in jpeg_v2_0_dec_ring_insert_start() 449 amdgpu_ring_write(ring, 0x80010000); in jpeg_v2_0_dec_ring_insert_start() 461 amdgpu_ring_write(ring, PACKETJ(mmUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET, in jpeg_v2_0_dec_ring_insert_end() 463 amdgpu_ring_write(ring, 0x68e04); in jpeg_v2_0_dec_ring_insert_end() 465 amdgpu_ring_write(ring, PACKETJ(JRBC_DEC_EXTERNAL_REG_WRITE_ADDR, in jpeg_v2_0_dec_ring_insert_end() 467 amdgpu_ring_write(ring, 0x00010000); in jpeg_v2_0_dec_ring_insert_end() 485 amdgpu_ring_write(ring, PACKETJ(mmUVD_JPEG_GPCOM_DATA0_INTERNAL_OFFSET, in jpeg_v2_0_dec_ring_emit_fence() 487 amdgpu_ring_write(ring, seq); in jpeg_v2_0_dec_ring_emit_fence() [all …]
|
D | vcn_sw_ring.c | 32 amdgpu_ring_write(ring, VCN_DEC_SW_CMD_FENCE); in vcn_dec_sw_ring_emit_fence() 33 amdgpu_ring_write(ring, addr); in vcn_dec_sw_ring_emit_fence() 34 amdgpu_ring_write(ring, upper_32_bits(addr)); in vcn_dec_sw_ring_emit_fence() 35 amdgpu_ring_write(ring, seq); in vcn_dec_sw_ring_emit_fence() 36 amdgpu_ring_write(ring, VCN_DEC_SW_CMD_TRAP); in vcn_dec_sw_ring_emit_fence() 41 amdgpu_ring_write(ring, VCN_DEC_SW_CMD_END); in vcn_dec_sw_ring_insert_end() 49 amdgpu_ring_write(ring, VCN_DEC_SW_CMD_IB); in vcn_dec_sw_ring_emit_ib() 50 amdgpu_ring_write(ring, vmid); in vcn_dec_sw_ring_emit_ib() 51 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr)); in vcn_dec_sw_ring_emit_ib() 52 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in vcn_dec_sw_ring_emit_ib() [all …]
|
D | uvd_v6_0.c | 183 amdgpu_ring_write(ring, HEVC_ENC_CMD_END); in uvd_v6_0_enc_ring_test_ring() 486 amdgpu_ring_write(ring, tmp); in uvd_v6_0_hw_init() 487 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v6_0_hw_init() 490 amdgpu_ring_write(ring, tmp); in uvd_v6_0_hw_init() 491 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v6_0_hw_init() 494 amdgpu_ring_write(ring, tmp); in uvd_v6_0_hw_init() 495 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v6_0_hw_init() 498 amdgpu_ring_write(ring, PACKET0(mmUVD_SEMA_TIMEOUT_STATUS, 0)); in uvd_v6_0_hw_init() 499 amdgpu_ring_write(ring, 0x8); in uvd_v6_0_hw_init() 501 amdgpu_ring_write(ring, PACKET0(mmUVD_SEMA_CNTL, 0)); in uvd_v6_0_hw_init() [all …]
|
D | uvd_v5_0.c | 174 amdgpu_ring_write(ring, tmp); in uvd_v5_0_hw_init() 175 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v5_0_hw_init() 178 amdgpu_ring_write(ring, tmp); in uvd_v5_0_hw_init() 179 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v5_0_hw_init() 182 amdgpu_ring_write(ring, tmp); in uvd_v5_0_hw_init() 183 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v5_0_hw_init() 186 amdgpu_ring_write(ring, PACKET0(mmUVD_SEMA_TIMEOUT_STATUS, 0)); in uvd_v5_0_hw_init() 187 amdgpu_ring_write(ring, 0x8); in uvd_v5_0_hw_init() 189 amdgpu_ring_write(ring, PACKET0(mmUVD_SEMA_CNTL, 0)); in uvd_v5_0_hw_init() 190 amdgpu_ring_write(ring, 3); in uvd_v5_0_hw_init() [all …]
|
D | uvd_v3_1.c | 94 amdgpu_ring_write(ring, PACKET0(mmUVD_RBC_IB_BASE, 0)); in uvd_v3_1_ring_emit_ib() 95 amdgpu_ring_write(ring, ib->gpu_addr); in uvd_v3_1_ring_emit_ib() 96 amdgpu_ring_write(ring, PACKET0(mmUVD_RBC_IB_SIZE, 0)); in uvd_v3_1_ring_emit_ib() 97 amdgpu_ring_write(ring, ib->length_dw); in uvd_v3_1_ring_emit_ib() 115 amdgpu_ring_write(ring, PACKET0(mmUVD_CONTEXT_ID, 0)); in uvd_v3_1_ring_emit_fence() 116 amdgpu_ring_write(ring, seq); in uvd_v3_1_ring_emit_fence() 117 amdgpu_ring_write(ring, PACKET0(mmUVD_GPCOM_VCPU_DATA0, 0)); in uvd_v3_1_ring_emit_fence() 118 amdgpu_ring_write(ring, addr & 0xffffffff); in uvd_v3_1_ring_emit_fence() 119 amdgpu_ring_write(ring, PACKET0(mmUVD_GPCOM_VCPU_DATA1, 0)); in uvd_v3_1_ring_emit_fence() 120 amdgpu_ring_write(ring, upper_32_bits(addr) & 0xff); in uvd_v3_1_ring_emit_fence() [all …]
|
D | uvd_v4_2.c | 177 amdgpu_ring_write(ring, tmp); in uvd_v4_2_hw_init() 178 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v4_2_hw_init() 181 amdgpu_ring_write(ring, tmp); in uvd_v4_2_hw_init() 182 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v4_2_hw_init() 185 amdgpu_ring_write(ring, tmp); in uvd_v4_2_hw_init() 186 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v4_2_hw_init() 189 amdgpu_ring_write(ring, PACKET0(mmUVD_SEMA_TIMEOUT_STATUS, 0)); in uvd_v4_2_hw_init() 190 amdgpu_ring_write(ring, 0x8); in uvd_v4_2_hw_init() 192 amdgpu_ring_write(ring, PACKET0(mmUVD_SEMA_CNTL, 0)); in uvd_v4_2_hw_init() 193 amdgpu_ring_write(ring, 3); in uvd_v4_2_hw_init() [all …]
|
D | sdma_v2_4.c | 236 amdgpu_ring_write(ring, ring->funcs->nop | in sdma_v2_4_ring_insert_nop() 239 amdgpu_ring_write(ring, ring->funcs->nop); in sdma_v2_4_ring_insert_nop() 262 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_INDIRECT) | in sdma_v2_4_ring_emit_ib() 265 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v2_4_ring_emit_ib() 266 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v2_4_ring_emit_ib() 267 amdgpu_ring_write(ring, ib->length_dw); in sdma_v2_4_ring_emit_ib() 268 amdgpu_ring_write(ring, 0); in sdma_v2_4_ring_emit_ib() 269 amdgpu_ring_write(ring, 0); in sdma_v2_4_ring_emit_ib() 289 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_POLL_REGMEM) | in sdma_v2_4_ring_emit_hdp_flush() 292 amdgpu_ring_write(ring, mmGPU_HDP_FLUSH_DONE << 2); in sdma_v2_4_ring_emit_hdp_flush() [all …]
|
D | si_dma.c | 72 amdgpu_ring_write(ring, DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0, 0)); in si_dma_ring_emit_ib() 73 amdgpu_ring_write(ring, DMA_IB_PACKET(DMA_PACKET_INDIRECT_BUFFER, vmid, 0)); in si_dma_ring_emit_ib() 74 amdgpu_ring_write(ring, (ib->gpu_addr & 0xFFFFFFE0)); in si_dma_ring_emit_ib() 75 amdgpu_ring_write(ring, (ib->length_dw << 12) | (upper_32_bits(ib->gpu_addr) & 0xFF)); in si_dma_ring_emit_ib() 97 amdgpu_ring_write(ring, DMA_PACKET(DMA_PACKET_FENCE, 0, 0, 0, 0)); in si_dma_ring_emit_fence() 98 amdgpu_ring_write(ring, addr & 0xfffffffc); in si_dma_ring_emit_fence() 99 amdgpu_ring_write(ring, (upper_32_bits(addr) & 0xff)); in si_dma_ring_emit_fence() 100 amdgpu_ring_write(ring, seq); in si_dma_ring_emit_fence() 104 amdgpu_ring_write(ring, DMA_PACKET(DMA_PACKET_FENCE, 0, 0, 0, 0)); in si_dma_ring_emit_fence() 105 amdgpu_ring_write(ring, addr & 0xfffffffc); in si_dma_ring_emit_fence() [all …]
|
D | uvd_v7_0.c | 191 amdgpu_ring_write(ring, HEVC_ENC_CMD_END); in uvd_v7_0_enc_ring_test_ring() 551 amdgpu_ring_write(ring, tmp); in uvd_v7_0_hw_init() 552 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v7_0_hw_init() 556 amdgpu_ring_write(ring, tmp); in uvd_v7_0_hw_init() 557 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v7_0_hw_init() 561 amdgpu_ring_write(ring, tmp); in uvd_v7_0_hw_init() 562 amdgpu_ring_write(ring, 0xFFFFF); in uvd_v7_0_hw_init() 565 amdgpu_ring_write(ring, PACKET0(SOC15_REG_OFFSET(UVD, j, in uvd_v7_0_hw_init() 567 amdgpu_ring_write(ring, 0x8); in uvd_v7_0_hw_init() 569 amdgpu_ring_write(ring, PACKET0(SOC15_REG_OFFSET(UVD, j, in uvd_v7_0_hw_init() [all …]
|
D | sdma_v6_0.c | 108 amdgpu_ring_write(ring, SDMA_PKT_COPY_LINEAR_HEADER_OP(SDMA_OP_COND_EXE)); in sdma_v6_0_ring_init_cond_exec() 109 amdgpu_ring_write(ring, lower_32_bits(ring->cond_exe_gpu_addr)); in sdma_v6_0_ring_init_cond_exec() 110 amdgpu_ring_write(ring, upper_32_bits(ring->cond_exe_gpu_addr)); in sdma_v6_0_ring_init_cond_exec() 111 amdgpu_ring_write(ring, 1); in sdma_v6_0_ring_init_cond_exec() 113 amdgpu_ring_write(ring, 0x55aa55aa);/* insert dummy here and patch it later */ in sdma_v6_0_ring_init_cond_exec() 253 amdgpu_ring_write(ring, ring->funcs->nop | in sdma_v6_0_ring_insert_nop() 256 amdgpu_ring_write(ring, ring->funcs->nop); in sdma_v6_0_ring_insert_nop() 285 amdgpu_ring_write(ring, SDMA_PKT_COPY_LINEAR_HEADER_OP(SDMA_OP_INDIRECT) | in sdma_v6_0_ring_emit_ib() 288 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v6_0_ring_emit_ib() 289 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v6_0_ring_emit_ib() [all …]
|
D | cik_sdma.c | 208 amdgpu_ring_write(ring, ring->funcs->nop | in cik_sdma_ring_insert_nop() 211 amdgpu_ring_write(ring, ring->funcs->nop); in cik_sdma_ring_insert_nop() 235 amdgpu_ring_write(ring, SDMA_PACKET(SDMA_OPCODE_INDIRECT_BUFFER, 0, extra_bits)); in cik_sdma_ring_emit_ib() 236 amdgpu_ring_write(ring, ib->gpu_addr & 0xffffffe0); /* base must be 32 byte aligned */ in cik_sdma_ring_emit_ib() 237 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr) & 0xffffffff); in cik_sdma_ring_emit_ib() 238 amdgpu_ring_write(ring, ib->length_dw); in cik_sdma_ring_emit_ib() 260 amdgpu_ring_write(ring, SDMA_PACKET(SDMA_OPCODE_POLL_REG_MEM, 0, extra_bits)); in cik_sdma_ring_emit_hdp_flush() 261 amdgpu_ring_write(ring, mmGPU_HDP_FLUSH_DONE << 2); in cik_sdma_ring_emit_hdp_flush() 262 amdgpu_ring_write(ring, mmGPU_HDP_FLUSH_REQ << 2); in cik_sdma_ring_emit_hdp_flush() 263 amdgpu_ring_write(ring, ref_and_mask); /* reference */ in cik_sdma_ring_emit_hdp_flush() [all …]
|
D | vcn_v2_0.c | 1381 amdgpu_ring_write(ring, PACKET0(adev->vcn.internal.data0, 0)); in vcn_v2_0_dec_ring_insert_start() 1382 amdgpu_ring_write(ring, 0); in vcn_v2_0_dec_ring_insert_start() 1383 amdgpu_ring_write(ring, PACKET0(adev->vcn.internal.cmd, 0)); in vcn_v2_0_dec_ring_insert_start() 1384 amdgpu_ring_write(ring, VCN_DEC_KMD_CMD | (VCN_DEC_CMD_PACKET_START << 1)); in vcn_v2_0_dec_ring_insert_start() 1398 amdgpu_ring_write(ring, PACKET0(adev->vcn.internal.cmd, 0)); in vcn_v2_0_dec_ring_insert_end() 1399 amdgpu_ring_write(ring, VCN_DEC_KMD_CMD | (VCN_DEC_CMD_PACKET_END << 1)); in vcn_v2_0_dec_ring_insert_end() 1418 amdgpu_ring_write(ring, PACKET0(adev->vcn.internal.nop, 0)); in vcn_v2_0_dec_ring_insert_nop() 1419 amdgpu_ring_write(ring, 0); in vcn_v2_0_dec_ring_insert_nop() 1439 amdgpu_ring_write(ring, PACKET0(adev->vcn.internal.context_id, 0)); in vcn_v2_0_dec_ring_emit_fence() 1440 amdgpu_ring_write(ring, seq); in vcn_v2_0_dec_ring_emit_fence() [all …]
|
D | sdma_v5_2.c | 149 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_COND_EXE)); in sdma_v5_2_ring_init_cond_exec() 150 amdgpu_ring_write(ring, lower_32_bits(ring->cond_exe_gpu_addr)); in sdma_v5_2_ring_init_cond_exec() 151 amdgpu_ring_write(ring, upper_32_bits(ring->cond_exe_gpu_addr)); in sdma_v5_2_ring_init_cond_exec() 152 amdgpu_ring_write(ring, 1); in sdma_v5_2_ring_init_cond_exec() 154 amdgpu_ring_write(ring, 0x55aa55aa);/* insert dummy here and patch it later */ in sdma_v5_2_ring_init_cond_exec() 266 amdgpu_ring_write(ring, ring->funcs->nop | in sdma_v5_2_ring_insert_nop() 269 amdgpu_ring_write(ring, ring->funcs->nop); in sdma_v5_2_ring_insert_nop() 300 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_INDIRECT) | in sdma_v5_2_ring_emit_ib() 303 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v5_2_ring_emit_ib() 304 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v5_2_ring_emit_ib() [all …]
|
D | vcn_v1_0.c | 1429 amdgpu_ring_write(ring, in vcn_v1_0_dec_ring_insert_start() 1431 amdgpu_ring_write(ring, 0); in vcn_v1_0_dec_ring_insert_start() 1432 amdgpu_ring_write(ring, in vcn_v1_0_dec_ring_insert_start() 1434 amdgpu_ring_write(ring, VCN_DEC_CMD_PACKET_START << 1); in vcn_v1_0_dec_ring_insert_start() 1448 amdgpu_ring_write(ring, in vcn_v1_0_dec_ring_insert_end() 1450 amdgpu_ring_write(ring, VCN_DEC_CMD_PACKET_END << 1); in vcn_v1_0_dec_ring_insert_end() 1470 amdgpu_ring_write(ring, in vcn_v1_0_dec_ring_emit_fence() 1472 amdgpu_ring_write(ring, seq); in vcn_v1_0_dec_ring_emit_fence() 1473 amdgpu_ring_write(ring, in vcn_v1_0_dec_ring_emit_fence() 1475 amdgpu_ring_write(ring, addr & 0xffffffff); in vcn_v1_0_dec_ring_emit_fence() [all …]
|
D | sdma_v3_0.c | 410 amdgpu_ring_write(ring, ring->funcs->nop | in sdma_v3_0_ring_insert_nop() 413 amdgpu_ring_write(ring, ring->funcs->nop); in sdma_v3_0_ring_insert_nop() 436 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_INDIRECT) | in sdma_v3_0_ring_emit_ib() 439 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v3_0_ring_emit_ib() 440 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v3_0_ring_emit_ib() 441 amdgpu_ring_write(ring, ib->length_dw); in sdma_v3_0_ring_emit_ib() 442 amdgpu_ring_write(ring, 0); in sdma_v3_0_ring_emit_ib() 443 amdgpu_ring_write(ring, 0); in sdma_v3_0_ring_emit_ib() 463 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_POLL_REGMEM) | in sdma_v3_0_ring_emit_hdp_flush() 466 amdgpu_ring_write(ring, mmGPU_HDP_FLUSH_DONE << 2); in sdma_v3_0_ring_emit_hdp_flush() [all …]
|
D | gfx_v7_0.c | 2074 amdgpu_ring_write(ring, PACKET3(PACKET3_SET_UCONFIG_REG, 1)); in gfx_v7_0_ring_test_ring() 2075 amdgpu_ring_write(ring, mmSCRATCH_REG0 - PACKET3_SET_UCONFIG_REG_START); in gfx_v7_0_ring_test_ring() 2076 amdgpu_ring_write(ring, 0xDEADBEEF); in gfx_v7_0_ring_test_ring() 2117 amdgpu_ring_write(ring, PACKET3(PACKET3_WAIT_REG_MEM, 5)); in gfx_v7_0_ring_emit_hdp_flush() 2118 amdgpu_ring_write(ring, (WAIT_REG_MEM_OPERATION(1) | /* write, wait, write */ in gfx_v7_0_ring_emit_hdp_flush() 2121 amdgpu_ring_write(ring, mmGPU_HDP_FLUSH_REQ); in gfx_v7_0_ring_emit_hdp_flush() 2122 amdgpu_ring_write(ring, mmGPU_HDP_FLUSH_DONE); in gfx_v7_0_ring_emit_hdp_flush() 2123 amdgpu_ring_write(ring, ref_and_mask); in gfx_v7_0_ring_emit_hdp_flush() 2124 amdgpu_ring_write(ring, ref_and_mask); in gfx_v7_0_ring_emit_hdp_flush() 2125 amdgpu_ring_write(ring, 0x20); /* poll interval */ in gfx_v7_0_ring_emit_hdp_flush() [all …]
|
D | sdma_v5_0.c | 284 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_COND_EXE)); in sdma_v5_0_ring_init_cond_exec() 285 amdgpu_ring_write(ring, lower_32_bits(ring->cond_exe_gpu_addr)); in sdma_v5_0_ring_init_cond_exec() 286 amdgpu_ring_write(ring, upper_32_bits(ring->cond_exe_gpu_addr)); in sdma_v5_0_ring_init_cond_exec() 287 amdgpu_ring_write(ring, 1); in sdma_v5_0_ring_init_cond_exec() 289 amdgpu_ring_write(ring, 0x55aa55aa);/* insert dummy here and patch it later */ in sdma_v5_0_ring_init_cond_exec() 434 amdgpu_ring_write(ring, ring->funcs->nop | in sdma_v5_0_ring_insert_nop() 437 amdgpu_ring_write(ring, ring->funcs->nop); in sdma_v5_0_ring_insert_nop() 468 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_INDIRECT) | in sdma_v5_0_ring_emit_ib() 471 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v5_0_ring_emit_ib() 472 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v5_0_ring_emit_ib() [all …]
|
D | gfx_v8_0.c | 850 amdgpu_ring_write(ring, PACKET3(PACKET3_SET_UCONFIG_REG, 1)); in gfx_v8_0_ring_test_ring() 851 amdgpu_ring_write(ring, mmSCRATCH_REG0 - PACKET3_SET_UCONFIG_REG_START); in gfx_v8_0_ring_test_ring() 852 amdgpu_ring_write(ring, 0xDEADBEEF); in gfx_v8_0_ring_test_ring() 4186 amdgpu_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in gfx_v8_0_cp_gfx_start() 4187 amdgpu_ring_write(ring, PACKET3_PREAMBLE_BEGIN_CLEAR_STATE); in gfx_v8_0_cp_gfx_start() 4189 amdgpu_ring_write(ring, PACKET3(PACKET3_CONTEXT_CONTROL, 1)); in gfx_v8_0_cp_gfx_start() 4190 amdgpu_ring_write(ring, 0x80000000); in gfx_v8_0_cp_gfx_start() 4191 amdgpu_ring_write(ring, 0x80000000); in gfx_v8_0_cp_gfx_start() 4196 amdgpu_ring_write(ring, in gfx_v8_0_cp_gfx_start() 4199 amdgpu_ring_write(ring, in gfx_v8_0_cp_gfx_start() [all …]
|
D | gfx_v6_0.c | 1794 amdgpu_ring_write(ring, PACKET3(PACKET3_SET_CONFIG_REG, 1)); in gfx_v6_0_ring_test_ring() 1795 amdgpu_ring_write(ring, mmSCRATCH_REG0 - PACKET3_SET_CONFIG_REG_START); in gfx_v6_0_ring_test_ring() 1796 amdgpu_ring_write(ring, 0xDEADBEEF); in gfx_v6_0_ring_test_ring() 1813 amdgpu_ring_write(ring, PACKET3(PACKET3_EVENT_WRITE, 0)); in gfx_v6_0_ring_emit_vgt_flush() 1814 amdgpu_ring_write(ring, EVENT_TYPE(VGT_FLUSH) | in gfx_v6_0_ring_emit_vgt_flush() 1824 amdgpu_ring_write(ring, PACKET3(PACKET3_SET_CONFIG_REG, 1)); in gfx_v6_0_ring_emit_fence() 1825 amdgpu_ring_write(ring, (mmCP_COHER_CNTL2 - PACKET3_SET_CONFIG_REG_START)); in gfx_v6_0_ring_emit_fence() 1826 amdgpu_ring_write(ring, 0); in gfx_v6_0_ring_emit_fence() 1827 amdgpu_ring_write(ring, PACKET3(PACKET3_SURFACE_SYNC, 3)); in gfx_v6_0_ring_emit_fence() 1828 amdgpu_ring_write(ring, PACKET3_TCL1_ACTION_ENA | in gfx_v6_0_ring_emit_fence() [all …]
|
D | gfx_v9_0.c | 767 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_SET_RESOURCES, 6)); in gfx_v9_0_kiq_set_resources() 768 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_set_resources() 772 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_set_resources() 774 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_set_resources() 776 amdgpu_ring_write(kiq_ring, 0); /* gws mask lo */ in gfx_v9_0_kiq_set_resources() 777 amdgpu_ring_write(kiq_ring, 0); /* gws mask hi */ in gfx_v9_0_kiq_set_resources() 778 amdgpu_ring_write(kiq_ring, 0); /* oac mask */ in gfx_v9_0_kiq_set_resources() 779 amdgpu_ring_write(kiq_ring, 0); /* gds heap base:0, gds heap size:0 */ in gfx_v9_0_kiq_set_resources() 789 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_MAP_QUEUES, 5)); in gfx_v9_0_kiq_map_queues() 791 amdgpu_ring_write(kiq_ring, /* Q_sel: 0, vmid: 0, engine: 0, num_Q: 1 */ in gfx_v9_0_kiq_map_queues() [all …]
|
D | gfx_v11_0.c | 132 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_SET_RESOURCES, 6)); in gfx11_kiq_set_resources() 133 amdgpu_ring_write(kiq_ring, PACKET3_SET_RESOURCES_VMID_MASK(0) | in gfx11_kiq_set_resources() 135 amdgpu_ring_write(kiq_ring, lower_32_bits(queue_mask)); /* queue mask lo */ in gfx11_kiq_set_resources() 136 amdgpu_ring_write(kiq_ring, upper_32_bits(queue_mask)); /* queue mask hi */ in gfx11_kiq_set_resources() 137 amdgpu_ring_write(kiq_ring, 0); /* gws mask lo */ in gfx11_kiq_set_resources() 138 amdgpu_ring_write(kiq_ring, 0); /* gws mask hi */ in gfx11_kiq_set_resources() 139 amdgpu_ring_write(kiq_ring, 0); /* oac mask */ in gfx11_kiq_set_resources() 140 amdgpu_ring_write(kiq_ring, 0); /* gds heap base:0, gds heap size:0 */ in gfx11_kiq_set_resources() 167 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_MAP_QUEUES, 5)); in gfx11_kiq_map_queues() 169 amdgpu_ring_write(kiq_ring, /* Q_sel: 0, vmid: 0, engine: 0, num_Q: 1 */ in gfx11_kiq_map_queues() [all …]
|
D | vce_v3_0.c | 869 amdgpu_ring_write(ring, VCE_CMD_IB_VM); in vce_v3_0_ring_emit_ib() 870 amdgpu_ring_write(ring, vmid); in vce_v3_0_ring_emit_ib() 871 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr)); in vce_v3_0_ring_emit_ib() 872 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in vce_v3_0_ring_emit_ib() 873 amdgpu_ring_write(ring, ib->length_dw); in vce_v3_0_ring_emit_ib() 879 amdgpu_ring_write(ring, VCE_CMD_UPDATE_PTB); in vce_v3_0_emit_vm_flush() 880 amdgpu_ring_write(ring, vmid); in vce_v3_0_emit_vm_flush() 881 amdgpu_ring_write(ring, pd_addr >> 12); in vce_v3_0_emit_vm_flush() 883 amdgpu_ring_write(ring, VCE_CMD_FLUSH_TLB); in vce_v3_0_emit_vm_flush() 884 amdgpu_ring_write(ring, vmid); in vce_v3_0_emit_vm_flush() [all …]
|
D | vce_v4_0.c | 988 amdgpu_ring_write(ring, VCE_CMD_IB_VM); in vce_v4_0_ring_emit_ib() 989 amdgpu_ring_write(ring, vmid); in vce_v4_0_ring_emit_ib() 990 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr)); in vce_v4_0_ring_emit_ib() 991 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in vce_v4_0_ring_emit_ib() 992 amdgpu_ring_write(ring, ib->length_dw); in vce_v4_0_ring_emit_ib() 1000 amdgpu_ring_write(ring, VCE_CMD_FENCE); in vce_v4_0_ring_emit_fence() 1001 amdgpu_ring_write(ring, addr); in vce_v4_0_ring_emit_fence() 1002 amdgpu_ring_write(ring, upper_32_bits(addr)); in vce_v4_0_ring_emit_fence() 1003 amdgpu_ring_write(ring, seq); in vce_v4_0_ring_emit_fence() 1004 amdgpu_ring_write(ring, VCE_CMD_TRAP); in vce_v4_0_ring_emit_fence() [all …]
|
D | sdma_v4_0.c | 785 amdgpu_ring_write(ring, ring->funcs->nop | in sdma_v4_0_ring_insert_nop() 788 amdgpu_ring_write(ring, ring->funcs->nop); in sdma_v4_0_ring_insert_nop() 811 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_INDIRECT) | in sdma_v4_0_ring_emit_ib() 814 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v4_0_ring_emit_ib() 815 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v4_0_ring_emit_ib() 816 amdgpu_ring_write(ring, ib->length_dw); in sdma_v4_0_ring_emit_ib() 817 amdgpu_ring_write(ring, 0); in sdma_v4_0_ring_emit_ib() 818 amdgpu_ring_write(ring, 0); in sdma_v4_0_ring_emit_ib() 828 amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_POLL_REGMEM) | in sdma_v4_0_wait_reg_mem() 834 amdgpu_ring_write(ring, addr0); in sdma_v4_0_wait_reg_mem() [all …]
|