linux/drivers/gpu/drm/amd/amdgpu
Lijo Lazar e071dce38f drm/amdgpu: Add reset control to amdgpu_device
v1: Add generic amdgpu_reset_control to handle different types of resets. It
may be added at device, hive or ip level. Each reset control has a list
of handlers associated with it to handle different types of reset. Reset
control is responsible for choosing the right handler given a particular
reset context.

Handler objects may implement a set of functions on how to handle a
particular type of reset.

prepare_env = Prepare environment/software context (not used currently).
prepare_hwcontext = Prepare hardware context for the reset.
perform_reset = Perform the type of reset.
restore_hwcontext = Restore the hw context after reset.
restore_env = Restore the environment after reset (not used currently).

Reset context carries the context of reset, as of now this is based on
the parameters used for current set of resets.

v2: Fix coding style

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-04-09 16:46:08 -04:00
..
aldebaran_reg_init.c
amdgpu.h drm/amdgpu: Add reset control to amdgpu_device 2021-04-09 16:46:08 -04:00
amdgpu_acp.c
amdgpu_acp.h
amdgpu_acpi.c
amdgpu_afmt.c
amdgpu_amdkfd.c drm/amdgpu: use amdgpu_bo_user bo for metadata and tiling flag 2021-04-09 16:45:31 -04:00
amdgpu_amdkfd.h
amdgpu_amdkfd_aldebaran.c
amdgpu_amdkfd_arcturus.c
amdgpu_amdkfd_arcturus.h
amdgpu_amdkfd_fence.c
amdgpu_amdkfd_gfx_v7.c
amdgpu_amdkfd_gfx_v8.c
amdgpu_amdkfd_gfx_v9.c
amdgpu_amdkfd_gfx_v9.h
amdgpu_amdkfd_gfx_v10.c
amdgpu_amdkfd_gfx_v10_3.c
amdgpu_amdkfd_gpuvm.c Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2021-03-26 15:53:21 +01:00
amdgpu_atombios.c drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit 2021-04-09 16:43:47 -04:00
amdgpu_atombios.h
amdgpu_atomfirmware.c drm/amdgpu: update ecc query support for arcturus 2021-03-23 23:30:04 -04:00
amdgpu_atomfirmware.h
amdgpu_atpx_handler.c
amdgpu_benchmark.c drm/amdgpu: allow variable BO struct creation 2021-04-09 16:45:12 -04:00
amdgpu_bios.c Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2021-03-26 15:53:21 +01:00
amdgpu_bo_list.c
amdgpu_bo_list.h
amdgpu_cgs.c
amdgpu_connectors.c
amdgpu_connectors.h
amdgpu_cs.c
amdgpu_csa.c
amdgpu_csa.h
amdgpu_ctx.c
amdgpu_ctx.h
amdgpu_debugfs.c
amdgpu_debugfs.h
amdgpu_device.c drm/amd/amdgpu implement tdr advanced mode 2021-04-09 16:45:45 -04:00
amdgpu_df.h
amdgpu_discovery.c
amdgpu_discovery.h
amdgpu_display.c drm/amdgpu: Ensure that the modifier requested is supported by plane. 2021-04-09 16:43:54 -04:00
amdgpu_display.h drm/amdgpu: clean up non-DC suspend/resume handling 2021-04-09 16:36:40 -04:00
amdgpu_dma_buf.c
amdgpu_dma_buf.h
amdgpu_doorbell.h
amdgpu_drv.c drm/amd/amdgpu implement tdr advanced mode 2021-04-09 16:45:45 -04:00
amdgpu_drv.h
amdgpu_encoders.c
amdgpu_fb.c
amdgpu_fence.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
amdgpu_fru_eeprom.c
amdgpu_fru_eeprom.h
amdgpu_fw_attestation.c
amdgpu_fw_attestation.h
amdgpu_gart.c drm/amdgpu: allow variable BO struct creation 2021-04-09 16:45:12 -04:00
amdgpu_gart.h
amdgpu_gds.h
amdgpu_gem.c drm/amdgpu: use amdgpu_bo_create_user() for when possible 2021-04-09 16:45:28 -04:00
amdgpu_gem.h
amdgpu_gfx.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
amdgpu_gfx.h
amdgpu_gfxhub.h
amdgpu_gmc.c drm/amdgpu: allow variable BO struct creation 2021-04-09 16:45:12 -04:00
amdgpu_gmc.h
amdgpu_gtt_mgr.c drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit 2021-04-09 16:43:47 -04:00
amdgpu_hdp.h
amdgpu_i2c.c
amdgpu_i2c.h
amdgpu_ib.c
amdgpu_ids.c
amdgpu_ids.h
amdgpu_ih.c drm/amdgpu: nuke the ih reentrant lock 2021-03-23 23:30:23 -04:00
amdgpu_ih.h drm/amdgpu: nuke the ih reentrant lock 2021-03-23 23:30:23 -04:00
amdgpu_ioc32.c
amdgpu_irq.c drm/amdgpu: remove irq_src->data handling 2021-04-09 16:43:28 -04:00
amdgpu_irq.h drm/amdgpu: remove irq_src->data handling 2021-04-09 16:43:28 -04:00
amdgpu_job.c
amdgpu_job.h
amdgpu_jpeg.c
amdgpu_jpeg.h
amdgpu_kms.c drm/amdgpu: disentangle HG systems from vgaswitcheroo 2021-04-09 16:36:07 -04:00
amdgpu_mes.h
amdgpu_mmhub.c
amdgpu_mmhub.h
amdgpu_mn.c
amdgpu_mn.h
amdgpu_mode.h
amdgpu_nbio.c
amdgpu_nbio.h
amdgpu_object.c drm/amdgpu: make BO type check less restrictive 2021-04-09 16:45:37 -04:00
amdgpu_object.h drm/amdgpu: use amdgpu_bo_user bo for metadata and tiling flag 2021-04-09 16:45:31 -04:00
amdgpu_pll.c
amdgpu_pll.h
amdgpu_pmu.c
amdgpu_pmu.h
amdgpu_psp.c drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit 2021-04-09 16:43:47 -04:00
amdgpu_psp.h
amdgpu_rap.c
amdgpu_rap.h
amdgpu_ras.c drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit 2021-04-09 16:43:47 -04:00
amdgpu_ras.h drm/amdgpu: fix send ras disable cmd when asic not support ras 2021-03-23 23:30:12 -04:00
amdgpu_ras_eeprom.c drm/amdgpu: fix send ras disable cmd when asic not support ras 2021-03-23 23:30:12 -04:00
amdgpu_ras_eeprom.h
amdgpu_res_cursor.h drm/amdgpu: fix amdgpu_res_first() 2021-04-09 16:38:47 -04:00
amdgpu_reset.c drm/amdgpu: Add reset control to amdgpu_device 2021-04-09 16:46:08 -04:00
amdgpu_reset.h drm/amdgpu: Add reset control to amdgpu_device 2021-04-09 16:46:08 -04:00
amdgpu_ring.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
amdgpu_ring.h drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
amdgpu_rlc.c
amdgpu_rlc.h
amdgpu_sa.c
amdgpu_sched.c
amdgpu_sched.h
amdgpu_sdma.c
amdgpu_sdma.h
amdgpu_securedisplay.c amdgpu: securedisplay: simplify i2c hexdump output 2021-04-09 16:44:08 -04:00
amdgpu_securedisplay.h
amdgpu_smuio.h
amdgpu_socbb.h
amdgpu_sync.c
amdgpu_sync.h
amdgpu_test.c drm/amdgpu: allow variable BO struct creation 2021-04-09 16:45:12 -04:00
amdgpu_trace.h
amdgpu_trace_points.c
amdgpu_ttm.c drm/amdgpu: Use correct size when access vram 2021-04-09 16:39:49 -04:00
amdgpu_ttm.h Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2021-03-26 15:53:21 +01:00
amdgpu_ucode.c
amdgpu_ucode.h
amdgpu_umc.c
amdgpu_umc.h
amdgpu_uvd.c amdgpu: avoid incorrect %hu format string 2021-04-09 16:42:20 -04:00
amdgpu_uvd.h
amdgpu_vce.c
amdgpu_vce.h
amdgpu_vcn.c
amdgpu_vcn.h drm/amdgpu: share scheduler score on VCN3 instances 2021-04-09 16:45:03 -04:00
amdgpu_vf_error.c
amdgpu_vf_error.h
amdgpu_virt.c
amdgpu_virt.h
amdgpu_vm.c drm/amdgpu: allow variable BO struct creation 2021-04-09 16:45:12 -04:00
amdgpu_vm.h
amdgpu_vm_cpu.c
amdgpu_vm_sdma.c
amdgpu_vram_mgr.c drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit 2021-04-09 16:43:47 -04:00
amdgpu_xgmi.c drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit 2021-04-09 16:43:47 -04:00
amdgpu_xgmi.h
amdgv_sriovmsg.h
arct_reg_init.c
athub_v1_0.c
athub_v1_0.h
athub_v2_0.c
athub_v2_0.h
athub_v2_1.c
athub_v2_1.h
atom.c drm/amdgpu: drop legacy IO bar support 2021-03-23 23:31:17 -04:00
atom.h drm/amdgpu: drop legacy IO bar support 2021-03-23 23:31:17 -04:00
atombios_crtc.c
atombios_crtc.h
atombios_dp.c
atombios_dp.h
atombios_encoders.c
atombios_encoders.h
atombios_i2c.c
atombios_i2c.h
cik.c
cik.h
cik_ih.c
cik_ih.h
cik_sdma.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
cik_sdma.h
cikd.h
clearstate_ci.h
clearstate_defs.h
clearstate_gfx9.h
clearstate_gfx10.h
clearstate_si.h
clearstate_vi.h
cz_ih.c
cz_ih.h
dce_v6_0.c drm/amdgpu: clean up non-DC suspend/resume handling 2021-04-09 16:36:40 -04:00
dce_v6_0.h
dce_v8_0.c drm/amdgpu: clean up non-DC suspend/resume handling 2021-04-09 16:36:40 -04:00
dce_v8_0.h
dce_v10_0.c drm/amdgpu: clean up non-DC suspend/resume handling 2021-04-09 16:36:40 -04:00
dce_v10_0.h
dce_v11_0.c drm/amdgpu: clean up non-DC suspend/resume handling 2021-04-09 16:36:40 -04:00
dce_v11_0.h
dce_virtual.c drm/amdgpu: clean up non-DC suspend/resume handling 2021-04-09 16:36:40 -04:00
dce_virtual.h
df_v1_7.c
df_v1_7.h
df_v3_6.c drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit 2021-04-09 16:43:47 -04:00
df_v3_6.h
dimgrey_cavefish_reg_init.c
emu_soc.c
gfx_v6_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
gfx_v6_0.h
gfx_v7_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
gfx_v7_0.h
gfx_v8_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
gfx_v8_0.h
gfx_v9_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
gfx_v9_0.h
gfx_v9_4.c
gfx_v9_4.h
gfx_v9_4_2.c
gfx_v9_4_2.h
gfx_v10_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
gfx_v10_0.h
gfxhub_v1_0.c
gfxhub_v1_0.h
gfxhub_v1_1.c
gfxhub_v1_1.h
gfxhub_v2_0.c
gfxhub_v2_0.h
gfxhub_v2_1.c
gfxhub_v2_1.h
gmc_v6_0.c
gmc_v6_0.h
gmc_v7_0.c
gmc_v7_0.h
gmc_v8_0.c
gmc_v8_0.h
gmc_v9_0.c drm/amdgpu: Free PDB0 bo before bo_fini 2021-03-23 23:29:39 -04:00
gmc_v9_0.h
gmc_v10_0.c
gmc_v10_0.h
hdp_v4_0.c
hdp_v4_0.h
hdp_v5_0.c
hdp_v5_0.h
iceland_ih.c
iceland_ih.h
iceland_sdma_pkt_open.h
jpeg_v1_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
jpeg_v1_0.h
jpeg_v2_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
jpeg_v2_0.h
jpeg_v2_5.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
jpeg_v2_5.h
jpeg_v3_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
jpeg_v3_0.h
Kconfig
Makefile drm/amdgpu: Add reset control to amdgpu_device 2021-04-09 16:46:08 -04:00
mes_api_def.h
mes_v10_1.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
mes_v10_1.h
mmhub_v1_0.c
mmhub_v1_0.h
mmhub_v1_7.c
mmhub_v1_7.h
mmhub_v2_0.c
mmhub_v2_0.h
mmhub_v2_3.c
mmhub_v2_3.h
mmhub_v9_4.c
mmhub_v9_4.h
mmsch_v1_0.h
mmsch_v2_0.h
mmsch_v3_0.h
mxgpu_ai.c
mxgpu_ai.h
mxgpu_nv.c
mxgpu_nv.h
mxgpu_vi.c
mxgpu_vi.h
navi10_ih.c
navi10_ih.h
navi10_reg_init.c
navi10_sdma_pkt_open.h
navi12_reg_init.c
navi14_reg_init.c
nbio_v2_3.c
nbio_v2_3.h
nbio_v6_1.c
nbio_v6_1.h
nbio_v7_0.c
nbio_v7_0.h
nbio_v7_2.c
nbio_v7_2.h
nbio_v7_4.c
nbio_v7_4.h
nv.c drm/amd/pm: drop redundant and unneeded BACO APIs V2 2021-04-09 16:42:50 -04:00
nv.h
nvd.h
ObjectID.h
psp_gfx_if.h drm/amdgpu: update host to psp interface 2021-04-09 16:43:03 -04:00
psp_v3_1.c
psp_v3_1.h
psp_v10_0.c
psp_v10_0.h
psp_v11_0.c drm/amdgpu: Fix a typo 2021-04-09 16:37:45 -04:00
psp_v11_0.h
psp_v12_0.c
psp_v12_0.h
psp_v13_0.c
psp_v13_0.h
sdma_common.h
sdma_v2_4.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
sdma_v2_4.h
sdma_v3_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
sdma_v3_0.h
sdma_v4_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
sdma_v4_0.h
sdma_v4_4.c
sdma_v4_4.h
sdma_v5_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
sdma_v5_0.h
sdma_v5_2.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
sdma_v5_2.h
si.c
si.h
si_dma.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
si_dma.h
si_enums.h
si_ih.c
si_ih.h
sid.h
sienna_cichlid_reg_init.c
smu_v11_0_i2c.c
smu_v11_0_i2c.h
smuio_v9_0.c
smuio_v9_0.h
smuio_v11_0.c
smuio_v11_0.h
smuio_v11_0_6.c
smuio_v11_0_6.h
smuio_v13_0.c
smuio_v13_0.h
soc15.c drm/amd/pm: label these APIs used internally as static 2021-04-09 16:42:43 -04:00
soc15.h
soc15_common.h
soc15d.h
ta_rap_if.h
ta_ras_if.h
ta_secureDisplay_if.h
ta_xgmi_if.h
tonga_ih.c
tonga_ih.h
tonga_sdma_pkt_open.h
umc_v6_0.c
umc_v6_0.h
umc_v6_1.c
umc_v6_1.h
umc_v8_7.c
umc_v8_7.h
uvd_v3_1.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
uvd_v3_1.h
uvd_v4_2.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
uvd_v4_2.h
uvd_v5_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
uvd_v5_0.h
uvd_v6_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
uvd_v6_0.h
uvd_v7_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
uvd_v7_0.h
vangogh_reg_init.c
vce_v2_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
vce_v2_0.h
vce_v3_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
vce_v3_0.h
vce_v4_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
vce_v4_0.h
vcn_v1_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
vcn_v1_0.h
vcn_v2_0.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
vcn_v2_0.h
vcn_v2_5.c drm/amdgpu: add the sched_score to amdgpu_ring_init 2021-04-09 16:44:56 -04:00
vcn_v2_5.h
vcn_v3_0.c drm/amdgpu: load balance VCN3 decode as well v8 2021-04-09 16:45:07 -04:00
vcn_v3_0.h
vega10_ih.c
vega10_ih.h
vega10_reg_init.c
vega10_sdma_pkt_open.h
vega20_ih.c
vega20_ih.h
vega20_reg_init.c
vi.c
vi.h
vid.h