• Home
  • Raw
  • Download

Lines Matching refs:adev

71 	struct amdgpu_device *adev = file_inode(f)->i_private;  in amdgpu_debugfs_process_reg_op()  local
113 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op()
115 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op()
119 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_process_reg_op()
121 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op()
126 if ((sh_bank != 0xFFFFFFFF && sh_bank >= adev->gfx.config.max_sh_per_se) || in amdgpu_debugfs_process_reg_op()
127 (se_bank != 0xFFFFFFFF && se_bank >= adev->gfx.config.max_shader_engines)) { in amdgpu_debugfs_process_reg_op()
128 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op()
129 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op()
130 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_process_reg_op()
133 mutex_lock(&adev->grbm_idx_mutex); in amdgpu_debugfs_process_reg_op()
134 amdgpu_gfx_select_se_sh(adev, se_bank, in amdgpu_debugfs_process_reg_op()
137 mutex_lock(&adev->srbm_mutex); in amdgpu_debugfs_process_reg_op()
138 amdgpu_gfx_select_me_pipe_q(adev, me, pipe, queue, vmid); in amdgpu_debugfs_process_reg_op()
142 mutex_lock(&adev->pm.mutex); in amdgpu_debugfs_process_reg_op()
153 amdgpu_mm_wreg_mmio_rlc(adev, *pos >> 2, value); in amdgpu_debugfs_process_reg_op()
168 amdgpu_gfx_select_se_sh(adev, 0xffffffff, 0xffffffff, 0xffffffff); in amdgpu_debugfs_process_reg_op()
169 mutex_unlock(&adev->grbm_idx_mutex); in amdgpu_debugfs_process_reg_op()
171 amdgpu_gfx_select_me_pipe_q(adev, 0, 0, 0, 0); in amdgpu_debugfs_process_reg_op()
172 mutex_unlock(&adev->srbm_mutex); in amdgpu_debugfs_process_reg_op()
176 mutex_unlock(&adev->pm.mutex); in amdgpu_debugfs_process_reg_op()
178 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op()
179 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_process_reg_op()
181 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_process_reg_op()
219 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_regs_pcie_read() local
226 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
228 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
232 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_regs_pcie_read()
234 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
244 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
245 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
246 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_pcie_read()
256 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
257 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_read()
259 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_pcie_read()
278 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_regs_pcie_write() local
285 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
287 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
291 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_regs_pcie_write()
293 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
302 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
303 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
304 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_pcie_write()
316 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
317 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_pcie_write()
319 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_pcie_write()
338 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_regs_didt_read() local
345 if (!adev->didt_rreg) in amdgpu_debugfs_regs_didt_read()
348 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
350 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
354 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_regs_didt_read()
356 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
366 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
367 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
368 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_didt_read()
378 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
379 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_read()
381 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_didt_read()
400 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_regs_didt_write() local
407 if (!adev->didt_wreg) in amdgpu_debugfs_regs_didt_write()
410 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
412 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
416 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_regs_didt_write()
418 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
427 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
428 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
429 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_didt_write()
441 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
442 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_didt_write()
444 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_didt_write()
463 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_regs_smc_read() local
467 if (!adev->smc_rreg) in amdgpu_debugfs_regs_smc_read()
473 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_read()
475 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_read()
479 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_regs_smc_read()
481 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_read()
491 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_read()
492 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_read()
493 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_smc_read()
503 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_read()
504 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_read()
506 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_smc_read()
525 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_regs_smc_write() local
529 if (!adev->smc_wreg) in amdgpu_debugfs_regs_smc_write()
535 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_write()
537 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_write()
541 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_regs_smc_write()
543 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_write()
552 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_write()
553 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_write()
554 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_smc_write()
566 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_write()
567 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_regs_smc_write()
569 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_regs_smc_write()
590 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_gca_config_read() local
604 config[no_regs++] = adev->gfx.config.max_shader_engines; in amdgpu_debugfs_gca_config_read()
605 config[no_regs++] = adev->gfx.config.max_tile_pipes; in amdgpu_debugfs_gca_config_read()
606 config[no_regs++] = adev->gfx.config.max_cu_per_sh; in amdgpu_debugfs_gca_config_read()
607 config[no_regs++] = adev->gfx.config.max_sh_per_se; in amdgpu_debugfs_gca_config_read()
608 config[no_regs++] = adev->gfx.config.max_backends_per_se; in amdgpu_debugfs_gca_config_read()
609 config[no_regs++] = adev->gfx.config.max_texture_channel_caches; in amdgpu_debugfs_gca_config_read()
610 config[no_regs++] = adev->gfx.config.max_gprs; in amdgpu_debugfs_gca_config_read()
611 config[no_regs++] = adev->gfx.config.max_gs_threads; in amdgpu_debugfs_gca_config_read()
612 config[no_regs++] = adev->gfx.config.max_hw_contexts; in amdgpu_debugfs_gca_config_read()
613 config[no_regs++] = adev->gfx.config.sc_prim_fifo_size_frontend; in amdgpu_debugfs_gca_config_read()
614 config[no_regs++] = adev->gfx.config.sc_prim_fifo_size_backend; in amdgpu_debugfs_gca_config_read()
615 config[no_regs++] = adev->gfx.config.sc_hiz_tile_fifo_size; in amdgpu_debugfs_gca_config_read()
616 config[no_regs++] = adev->gfx.config.sc_earlyz_tile_fifo_size; in amdgpu_debugfs_gca_config_read()
617 config[no_regs++] = adev->gfx.config.num_tile_pipes; in amdgpu_debugfs_gca_config_read()
618 config[no_regs++] = adev->gfx.config.backend_enable_mask; in amdgpu_debugfs_gca_config_read()
619 config[no_regs++] = adev->gfx.config.mem_max_burst_length_bytes; in amdgpu_debugfs_gca_config_read()
620 config[no_regs++] = adev->gfx.config.mem_row_size_in_kb; in amdgpu_debugfs_gca_config_read()
621 config[no_regs++] = adev->gfx.config.shader_engine_tile_size; in amdgpu_debugfs_gca_config_read()
622 config[no_regs++] = adev->gfx.config.num_gpus; in amdgpu_debugfs_gca_config_read()
623 config[no_regs++] = adev->gfx.config.multi_gpu_tile_size; in amdgpu_debugfs_gca_config_read()
624 config[no_regs++] = adev->gfx.config.mc_arb_ramcfg; in amdgpu_debugfs_gca_config_read()
625 config[no_regs++] = adev->gfx.config.gb_addr_config; in amdgpu_debugfs_gca_config_read()
626 config[no_regs++] = adev->gfx.config.num_rbs; in amdgpu_debugfs_gca_config_read()
629 config[no_regs++] = adev->rev_id; in amdgpu_debugfs_gca_config_read()
630 config[no_regs++] = adev->pg_flags; in amdgpu_debugfs_gca_config_read()
631 config[no_regs++] = adev->cg_flags; in amdgpu_debugfs_gca_config_read()
634 config[no_regs++] = adev->family; in amdgpu_debugfs_gca_config_read()
635 config[no_regs++] = adev->external_rev_id; in amdgpu_debugfs_gca_config_read()
638 config[no_regs++] = adev->pdev->device; in amdgpu_debugfs_gca_config_read()
639 config[no_regs++] = adev->pdev->revision; in amdgpu_debugfs_gca_config_read()
640 config[no_regs++] = adev->pdev->subsystem_device; in amdgpu_debugfs_gca_config_read()
641 config[no_regs++] = adev->pdev->subsystem_vendor; in amdgpu_debugfs_gca_config_read()
679 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_sensor_read() local
686 if (!adev->pm.dpm_enabled) in amdgpu_debugfs_sensor_read()
694 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_sensor_read()
696 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_sensor_read()
700 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_sensor_read()
702 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_sensor_read()
706 r = amdgpu_dpm_read_sensor(adev, idx, &values[0], &valuesize); in amdgpu_debugfs_sensor_read()
708 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_sensor_read()
709 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_sensor_read()
712 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_sensor_read()
717 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_sensor_read()
732 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_sensor_read()
760 struct amdgpu_device *adev = f->f_inode->i_private; in amdgpu_debugfs_wave_read() local
776 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_wave_read()
778 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_wave_read()
782 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_wave_read()
784 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_wave_read()
789 mutex_lock(&adev->grbm_idx_mutex); in amdgpu_debugfs_wave_read()
790 amdgpu_gfx_select_se_sh(adev, se, sh, cu); in amdgpu_debugfs_wave_read()
793 if (adev->gfx.funcs->read_wave_data) in amdgpu_debugfs_wave_read()
794 adev->gfx.funcs->read_wave_data(adev, simd, wave, data, &x); in amdgpu_debugfs_wave_read()
796 amdgpu_gfx_select_se_sh(adev, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF); in amdgpu_debugfs_wave_read()
797 mutex_unlock(&adev->grbm_idx_mutex); in amdgpu_debugfs_wave_read()
799 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_wave_read()
800 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_wave_read()
803 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_wave_read()
813 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_wave_read()
823 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_wave_read()
852 struct amdgpu_device *adev = f->f_inode->i_private; in amdgpu_debugfs_gpr_read() local
874 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_gpr_read()
878 r = amdgpu_virt_enable_access_debugfs(adev); in amdgpu_debugfs_gpr_read()
883 mutex_lock(&adev->grbm_idx_mutex); in amdgpu_debugfs_gpr_read()
884 amdgpu_gfx_select_se_sh(adev, se, sh, cu); in amdgpu_debugfs_gpr_read()
887 if (adev->gfx.funcs->read_wave_vgprs) in amdgpu_debugfs_gpr_read()
888 adev->gfx.funcs->read_wave_vgprs(adev, simd, wave, thread, offset, size>>2, data); in amdgpu_debugfs_gpr_read()
890 if (adev->gfx.funcs->read_wave_sgprs) in amdgpu_debugfs_gpr_read()
891 adev->gfx.funcs->read_wave_sgprs(adev, simd, wave, offset, size>>2, data); in amdgpu_debugfs_gpr_read()
894 amdgpu_gfx_select_se_sh(adev, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF); in amdgpu_debugfs_gpr_read()
895 mutex_unlock(&adev->grbm_idx_mutex); in amdgpu_debugfs_gpr_read()
897 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_gpr_read()
898 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gpr_read()
906 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_gpr_read()
916 amdgpu_virt_disable_access_debugfs(adev); in amdgpu_debugfs_gpr_read()
920 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gpr_read()
938 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_gfxoff_write() local
945 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_write()
947 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_write()
956 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_write()
957 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_write()
961 amdgpu_gfx_off_ctrl(adev, value ? true : false); in amdgpu_debugfs_gfxoff_write()
969 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_write()
970 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_write()
987 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_gfxoff_read() local
994 r = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_read()
1001 r = amdgpu_get_gfx_off_status(adev, &value); in amdgpu_debugfs_gfxoff_read()
1003 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_read()
1004 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_read()
1010 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_read()
1011 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_read()
1021 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_read()
1022 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_gfxoff_read()
1112 int amdgpu_debugfs_regs_init(struct amdgpu_device *adev) in amdgpu_debugfs_regs_init() argument
1114 struct drm_minor *minor = adev_to_drm(adev)->primary; in amdgpu_debugfs_regs_init()
1121 adev, debugfs_regs[i]); in amdgpu_debugfs_regs_init()
1123 i_size_write(ent->d_inode, adev->rmmio_size); in amdgpu_debugfs_regs_init()
1131 struct amdgpu_device *adev = (struct amdgpu_device *)m->private; in amdgpu_debugfs_test_ib_show() local
1132 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_test_ib_show()
1142 r = down_read_killable(&adev->reset_sem); in amdgpu_debugfs_test_ib_show()
1148 struct amdgpu_ring *ring = adev->rings[i]; in amdgpu_debugfs_test_ib_show()
1156 r = amdgpu_ib_ring_tests(adev); in amdgpu_debugfs_test_ib_show()
1164 struct amdgpu_ring *ring = adev->rings[i]; in amdgpu_debugfs_test_ib_show()
1171 up_read(&adev->reset_sem); in amdgpu_debugfs_test_ib_show()
1181 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_evict_vram() local
1182 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_vram()
1191 *val = amdgpu_ttm_evict_resources(adev, TTM_PL_VRAM); in amdgpu_debugfs_evict_vram()
1202 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_evict_gtt() local
1203 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_evict_gtt()
1212 *val = amdgpu_ttm_evict_resources(adev, TTM_PL_TT); in amdgpu_debugfs_evict_gtt()
1223 struct amdgpu_device *adev = (struct amdgpu_device *)m->private; in amdgpu_debugfs_vm_info_show() local
1224 struct drm_device *dev = adev_to_drm(adev); in amdgpu_debugfs_vm_info_show()
1360 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_ib_preempt() local
1365 ring = adev->rings[val]; in amdgpu_debugfs_ib_preempt()
1380 r = down_read_killable(&adev->reset_sem); in amdgpu_debugfs_ib_preempt()
1387 resched = ttm_bo_lock_delayed_workqueue(&adev->mman.bdev); in amdgpu_debugfs_ib_preempt()
1423 up_read(&adev->reset_sem); in amdgpu_debugfs_ib_preempt()
1425 ttm_bo_unlock_delayed_workqueue(&adev->mman.bdev, resched); in amdgpu_debugfs_ib_preempt()
1437 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_sclk_set() local
1439 if (amdgpu_sriov_vf(adev) && !amdgpu_sriov_is_pp_one_vf(adev)) in amdgpu_debugfs_sclk_set()
1442 ret = pm_runtime_get_sync(adev_to_drm(adev)->dev); in amdgpu_debugfs_sclk_set()
1444 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_sclk_set()
1448 if (is_support_sw_smu(adev)) { in amdgpu_debugfs_sclk_set()
1449 ret = smu_get_dpm_freq_range(&adev->smu, SMU_SCLK, &min_freq, &max_freq); in amdgpu_debugfs_sclk_set()
1452 ret = smu_set_soft_freq_range(&adev->smu, SMU_SCLK, (uint32_t)val, (uint32_t)val); in amdgpu_debugfs_sclk_set()
1457 pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); in amdgpu_debugfs_sclk_set()
1458 pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); in amdgpu_debugfs_sclk_set()
1472 int amdgpu_debugfs_init(struct amdgpu_device *adev) in amdgpu_debugfs_init() argument
1474 struct dentry *root = adev_to_drm(adev)->primary->debugfs_root; in amdgpu_debugfs_init()
1478 ent = debugfs_create_file("amdgpu_preempt_ib", 0600, root, adev, in amdgpu_debugfs_init()
1485 ent = debugfs_create_file("amdgpu_force_sclk", 0200, root, adev, in amdgpu_debugfs_init()
1493 amdgpu_ttm_debugfs_init(adev); in amdgpu_debugfs_init()
1494 amdgpu_debugfs_pm_init(adev); in amdgpu_debugfs_init()
1495 amdgpu_debugfs_sa_init(adev); in amdgpu_debugfs_init()
1496 amdgpu_debugfs_fence_init(adev); in amdgpu_debugfs_init()
1497 amdgpu_debugfs_gem_init(adev); in amdgpu_debugfs_init()
1499 r = amdgpu_debugfs_regs_init(adev); in amdgpu_debugfs_init()
1503 amdgpu_debugfs_firmware_init(adev); in amdgpu_debugfs_init()
1506 if (amdgpu_device_has_dc_support(adev)) in amdgpu_debugfs_init()
1507 dtn_debugfs_init(adev); in amdgpu_debugfs_init()
1511 struct amdgpu_ring *ring = adev->rings[i]; in amdgpu_debugfs_init()
1516 if (amdgpu_debugfs_ring_init(adev, ring)) { in amdgpu_debugfs_init()
1521 amdgpu_ras_debugfs_create_all(adev); in amdgpu_debugfs_init()
1522 amdgpu_rap_debugfs_init(adev); in amdgpu_debugfs_init()
1523 amdgpu_securedisplay_debugfs_init(adev); in amdgpu_debugfs_init()
1524 amdgpu_fw_attestation_debugfs_init(adev); in amdgpu_debugfs_init()
1526 debugfs_create_file("amdgpu_evict_vram", 0444, root, adev, in amdgpu_debugfs_init()
1528 debugfs_create_file("amdgpu_evict_gtt", 0444, root, adev, in amdgpu_debugfs_init()
1530 debugfs_create_file("amdgpu_test_ib", 0444, root, adev, in amdgpu_debugfs_init()
1532 debugfs_create_file("amdgpu_vm_info", 0444, root, adev, in amdgpu_debugfs_init()
1535 adev->debugfs_vbios_blob.data = adev->bios; in amdgpu_debugfs_init()
1536 adev->debugfs_vbios_blob.size = adev->bios_size; in amdgpu_debugfs_init()
1538 &adev->debugfs_vbios_blob); in amdgpu_debugfs_init()
1544 int amdgpu_debugfs_init(struct amdgpu_device *adev) in amdgpu_debugfs_init() argument
1548 int amdgpu_debugfs_regs_init(struct amdgpu_device *adev) in amdgpu_debugfs_regs_init() argument