Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: remove frame cntl for gfx v12

Remove emit_frame_cntl function for gfx v12, which is not support.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Likun Gao and committed by
Alex Deucher
5aaa5058 d4a814f4

-12
-12
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
··· 278 278 u32 sh_num, u32 instance, int xcc_id); 279 279 static u32 gfx_v12_0_get_wgp_active_bitmap_per_sh(struct amdgpu_device *adev); 280 280 281 - static void gfx_v12_0_ring_emit_frame_cntl(struct amdgpu_ring *ring, bool start, bool secure); 282 281 static void gfx_v12_0_ring_emit_wreg(struct amdgpu_ring *ring, uint32_t reg, 283 282 uint32_t val); 284 283 static int gfx_v12_0_wait_for_rlc_autoload_complete(struct amdgpu_device *adev); ··· 4628 4629 return r; 4629 4630 } 4630 4631 4631 - static void gfx_v12_0_ring_emit_frame_cntl(struct amdgpu_ring *ring, 4632 - bool start, 4633 - bool secure) 4634 - { 4635 - uint32_t v = secure ? FRAME_TMZ : 0; 4636 - 4637 - amdgpu_ring_write(ring, PACKET3(PACKET3_FRAME_CONTROL, 0)); 4638 - amdgpu_ring_write(ring, v | FRAME_CMD(start ? 0 : 1)); 4639 - } 4640 - 4641 4632 static void gfx_v12_0_ring_emit_rreg(struct amdgpu_ring *ring, uint32_t reg, 4642 4633 uint32_t reg_val_offs) 4643 4634 { ··· 5504 5515 .emit_cntxcntl = gfx_v12_0_ring_emit_cntxcntl, 5505 5516 .init_cond_exec = gfx_v12_0_ring_emit_init_cond_exec, 5506 5517 .preempt_ib = gfx_v12_0_ring_preempt_ib, 5507 - .emit_frame_cntl = gfx_v12_0_ring_emit_frame_cntl, 5508 5518 .emit_wreg = gfx_v12_0_ring_emit_wreg, 5509 5519 .emit_reg_wait = gfx_v12_0_ring_emit_reg_wait, 5510 5520 .emit_reg_write_reg_wait = gfx_v12_0_ring_emit_reg_write_reg_wait,