linux-stable/drivers/gpu/drm/amd/amdgpu
Christian König 5c675bf2c6 drm/amdgpu: clean up UVD instance handling v2
The whole handle, filp and entity handling is superfluous here.

We should have reviewed that more thoughtfully. It looks like somebody
just made the code instance aware without knowing the background.

v2: fix one more missed case in amdgpu_uvd_suspend

Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming  Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-19 13:56:44 -05:00
..
amdgpu.h drm/amdgpu: remove internal/unused kernel module parameters 2018-07-18 16:18:44 -05:00
amdgpu_acp.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
amdgpu_acp.h
amdgpu_acpi.c drm/amdgpu: Dynamically probe for ATIF handle (v2) 2018-07-05 16:38:58 -05:00
amdgpu_afmt.c
amdgpu_amdkfd.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_amdkfd.h drm/amdgpu: conditionally compile amdgpu's amdkfd files 2018-05-18 22:18:16 +03:00
amdgpu_amdkfd_fence.c drm/amdgpu: Remove unecessary dma_fence_ops 2018-07-03 13:13:08 +02:00
amdgpu_amdkfd_gfx_v7.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
amdgpu_amdkfd_gfx_v8.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
amdgpu_amdkfd_gfx_v9.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
amdgpu_amdkfd_gpuvm.c drm/amdgpu: separate gpu address from bo pin 2018-07-10 14:15:39 -05:00
amdgpu_atombios.c drm/amdgpu: move atom functions from amdgpu_device.c 2017-12-18 10:58:35 -05:00
amdgpu_atombios.h drm/amdgpu: move atom functions from amdgpu_device.c 2017-12-18 10:58:35 -05:00
amdgpu_atomfirmware.c drm/amdgpu: Update GFX info structure to match what vega20 used 2018-05-24 10:07:55 -05:00
amdgpu_atomfirmware.h drm/amdgpu/atomfirmware: add parser for gfx_info table 2018-05-17 10:13:22 -05:00
amdgpu_atpx_handler.c drm/amdgpu: Add amdgpu_atpx_get_dhandle() 2018-07-05 16:38:58 -05:00
amdgpu_benchmark.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_bios.c drm/amdgpu: rename amdgpu_need_post 2017-12-18 10:59:46 -05:00
amdgpu_bo_list.c drm/amdgpu: Allow to create BO lists in CS ioctl v3 2018-07-16 15:29:47 -05:00
amdgpu_cgs.c drm/amdgpu: switch firmware path for CIK parts (v2) 2018-07-05 16:39:58 -05:00
amdgpu_connectors.c drm/admgpu: fix mode_valid's return type 2018-05-15 13:43:51 -05:00
amdgpu_connectors.h
amdgpu_cs.c drm/amdgpu: change ring priority after pushing the job (v2) 2018-07-18 16:18:44 -05:00
amdgpu_ctx.c drm/scheduler: modify args of drm_sched_entity_init 2018-07-13 14:46:05 -05:00
amdgpu_debugfs.c drm/amd/amdgpu: Add some documentation to the debugfs entries 2018-05-15 13:44:19 -05:00
amdgpu_debugfs.h drm/amdgpu: move debugfs functions to their own file 2017-12-18 10:59:01 -05:00
amdgpu_device.c drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86 2018-07-19 13:56:43 -05:00
amdgpu_display.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_display.h drm/amdgpu: Rename amdgpu_display_framebuffer_domains() 2018-05-15 13:43:43 -05:00
amdgpu_dpm.c drm/amdgpu: use pcie functions for link width and speed 2018-07-05 16:39:59 -05:00
amdgpu_dpm.h drm/amd/pp: Unify powergate_uvd/vce/mmhub to set_powergating_by_smu 2018-07-05 16:38:48 -05:00
amdgpu_drv.c drm/amdgpu: remove internal/unused kernel module parameters 2018-07-18 16:18:44 -05:00
amdgpu_drv.h
amdgpu_encoders.c
amdgpu_fb.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_fence.c drm-misc-next for 4.19: 2018-07-06 10:01:56 +10:00
amdgpu_gart.c drm/amdgpu: separate gpu address from bo pin 2018-07-10 14:15:39 -05:00
amdgpu_gart.h drm/amdgpu: Add AMDGPU_GPU_PAGES_IN_CPU_PAGE define 2018-07-05 16:39:49 -05:00
amdgpu_gds.h
amdgpu_gem.c drm/amdgpu: fix the wrong type of gem object creation 2018-07-05 16:39:54 -05:00
amdgpu_gfx.c drm/amdgpu: use queue 0 for kiq ring 2018-01-29 23:14:30 -05:00
amdgpu_gfx.h drm/amdgpu/gfx: consolidate mqd buffer setup code 2017-06-07 18:20:59 -04:00
amdgpu_gmc.h drm/amdgpu: Consolidate visible vs. real vram check v2. 2018-06-15 12:20:44 -05:00
amdgpu_gtt_mgr.c drm/amdgpu: Add a missing lock for drm_mm_takedown 2018-02-20 15:09:21 -05:00
amdgpu_i2c.c
amdgpu_i2c.h
amdgpu_ib.c drm/amdgpu: remove fence context from the job 2018-07-16 16:11:52 -05:00
amdgpu_ids.c drm/amdgpu: remove duplicated codes 2018-07-05 16:38:46 -05:00
amdgpu_ids.h drm/amdgpu: update the PASID mapping only on demand 2018-02-19 14:20:18 -05:00
amdgpu_ih.c drm/amdgpu: rename amdgpu_wb_* functions 2017-12-18 10:59:07 -05:00
amdgpu_ih.h drm/amdgpu: Move IH clientid defs to separate file 2018-03-14 15:16:35 -05:00
amdgpu_ioc32.c
amdgpu_irq.c drm/amdgpu: update documentation for amdgpu_irq.c v3 2018-06-15 12:20:44 -05:00
amdgpu_irq.h drm/amdgpu: drop the drm irq pre/post/un install callbacks 2018-02-19 14:18:16 -05:00
amdgpu_job.c drm/amdgpu: change ring priority after pushing the job (v2) 2018-07-18 16:18:44 -05:00
amdgpu_job.h drm/amdgpu: remove job->adev (v2) 2018-07-17 14:18:28 -05:00
amdgpu_kms.c drm/amdgpu: Make pin_size values atomic 2018-07-13 14:46:21 -05:00
amdgpu_mn.c drm/amd: Remove errors from sphinx documentation 2018-07-05 16:40:03 -05:00
amdgpu_mn.h drm/amdgpu: Add MMU notifier type for KFD userptr 2018-03-23 15:32:28 -04:00
amdgpu_mode.h drm/amdgpu: Move GEM BO to drm_framebuffer 2018-04-11 13:07:56 -05:00
amdgpu_object.c drm/amdgpu: Warn and update pin_size values when destroying a pinned BO 2018-07-13 14:46:28 -05:00
amdgpu_object.h drm/amdgpu: separate gpu address from bo pin 2018-07-10 14:15:39 -05:00
amdgpu_pll.c
amdgpu_pll.h
amdgpu_pm.c drm/amdgpu/pm: Remove VLA usage 2018-07-18 16:18:45 -05:00
amdgpu_pm.h drm/amdgpu: Fix amdgpu_pm_acpi_event_handler warning 2017-08-15 14:46:06 -04:00
amdgpu_prime.c drm/amdgpu: separate gpu address from bo pin 2018-07-10 14:15:39 -05:00
amdgpu_psp.c drm/amdgpu/psp: Add initial psp support for vega20 2018-05-17 10:13:11 -05:00
amdgpu_psp.h drm/amdgpu/soc15: don't abuse IP soft reset for adapter reset 2018-02-19 14:18:31 -05:00
amdgpu_queue_mgr.c drm/amdgpu: add AMDGPU_HW_IP_VCN_JPEG to queue mgr 2018-06-15 12:20:40 -05:00
amdgpu_ring.c drm/amdgpu: allow for more flexible priority handling 2018-07-18 16:18:43 -05:00
amdgpu_ring.h drm/amdgpu: remove ring parameter from amdgpu_job_submit 2018-07-16 16:11:52 -05:00
amdgpu_sa.c drm/amdgpu: cleanup SA inti and fini(v2) 2018-02-28 14:18:07 -05:00
amdgpu_sched.c drm: move amd_gpu_scheduler into common location 2017-12-07 11:51:56 -05:00
amdgpu_sched.h drm: move amd_gpu_scheduler into common location 2017-12-07 11:51:56 -05:00
amdgpu_sync.c drm/amdgpu: add amdgpu_sync_clone 2018-02-06 20:32:37 -05:00
amdgpu_sync.h drm/amdgpu: add amdgpu_sync_clone 2018-02-06 20:32:37 -05:00
amdgpu_test.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_trace.h drm/amdgpu: remove job->ring 2018-07-16 16:11:53 -05:00
amdgpu_trace_points.c main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
amdgpu_ttm.c drm/amdgpu: add amdgpu_job_submit_direct helper 2018-07-16 16:11:53 -05:00
amdgpu_ttm.h drm/amdgpu: Keep track of amount of pinned CPU visible VRAM 2018-07-13 14:46:11 -05:00
amdgpu_ucode.c drm/amdgpu: Set vega20 load_type to AMDGPU_FW_LOAD_DIRECT. 2018-05-17 10:13:22 -05:00
amdgpu_ucode.h drm/amdgpu: add save restore list cntl gpm and srm firmware support 2018-05-15 13:43:36 -05:00
amdgpu_uvd.c drm/amdgpu: clean up UVD instance handling v2 2018-07-19 13:56:44 -05:00
amdgpu_uvd.h drm/amdgpu: clean up UVD instance handling v2 2018-07-19 13:56:44 -05:00
amdgpu_vce.c drm/amdgpu: add amdgpu_job_submit_direct helper 2018-07-16 16:11:53 -05:00
amdgpu_vce.h drm/amdgpu: limit the VM address space with older VCE FW versions 2018-02-19 14:19:05 -05:00
amdgpu_vcn.c drm/amdgpu: add amdgpu_job_submit_direct helper 2018-07-16 16:11:53 -05:00
amdgpu_vcn.h drm/amdgpu: add vcn jpeg ib test 2018-06-15 12:20:38 -05:00
amdgpu_vf_error.c drm/amdgpu:fix vf_error_put 2017-10-20 13:28:44 -04:00
amdgpu_vf_error.h drm/amdgpu: fix vf error handling 2017-09-28 16:03:20 -04:00
amdgpu_virt.c drm/amdgpu: give warning before sleep in kiq_r/wreg 2018-03-07 16:10:13 -05:00
amdgpu_virt.h drm/amdgpu: move static CSA address to top of address space v2 2018-02-19 14:18:48 -05:00
amdgpu_vm.c drm/amdgpu: simplify the bo reference on amdgpu_bo_update 2018-07-18 16:18:44 -05:00
amdgpu_vm.h drm/amdgpu: Add support for logging process info in amdgpu_vm. 2018-07-10 14:17:29 -05:00
amdgpu_vram_mgr.c drm/amdgpu: Keep track of amount of pinned CPU visible VRAM 2018-07-13 14:46:11 -05:00
atom.c Revert "drm/amdgpu: avoid sleep while executing atombios table (V2)" 2018-07-05 16:38:27 -05:00
atom.h drm/amdgpu: Add debugfs file for VBIOS and version 2017-08-29 15:27:54 -04:00
atombios_crtc.c drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating 2017-06-20 12:06:49 -04:00
atombios_crtc.h
atombios_dp.c
atombios_dp.h
atombios_encoders.c drm/amdgpu: save/restore backlight level in legacy dce code 2018-03-14 15:39:51 -05:00
atombios_encoders.h drm/amdgpu: save/restore backlight level in legacy dce code 2018-03-14 15:39:51 -05:00
atombios_i2c.c drm/amd/amdgpu: Fix missing null check in atombios_i2c.c 2017-12-06 12:47:59 -05:00
atombios_i2c.h
ci_dpm.c drm/amdgpu: use pcie functions for link width and speed 2018-07-05 16:39:59 -05:00
ci_dpm.h drm/amd/pp: Revert gfx/compute profile switch sysfs 2018-03-06 13:12:38 -05:00
ci_smc.c
cik.c drm/amdgpu/pp: switch the default dpm implementation for CI 2018-06-15 12:20:30 -05:00
cik.h drm/amdgpu: add PASID mapping for GMC v7 2018-02-19 14:18:10 -05:00
cik_dpm.h drm/amdgpu: Remove wrapper layer of smu ip functions 2018-03-15 09:57:50 -05:00
cik_ih.c drm/amdgpu: use the TTM dummy page instead of allocating one 2018-02-26 23:09:36 -05:00
cik_ih.h
cik_sdma.c drm/amdgpu: switch firmware path for CIK parts (v2) 2018-07-05 16:39:58 -05:00
cik_sdma.h
cikd.h drm/amdgpu: Fix definition of KFD_CIK_SDMA_QUEUE_OFFSET 2017-11-27 18:29:47 -05:00
clearstate_ci.h
clearstate_defs.h
clearstate_gfx9.h drm/amdgpu: remove some old gc 9.x registers 2017-12-13 17:28:08 -05:00
clearstate_si.h
clearstate_vi.h
cz_ih.c drm/amdgpu: use the TTM dummy page instead of allocating one 2018-02-26 23:09:36 -05:00
cz_ih.h
dce_v6_0.c drm/amdgpu: separate gpu address from bo pin 2018-07-10 14:15:39 -05:00
dce_v6_0.h
dce_v8_0.c drm/amdgpu: separate gpu address from bo pin 2018-07-10 14:15:39 -05:00
dce_v8_0.h
dce_v10_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
dce_v10_0.h
dce_v11_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
dce_v11_0.h
dce_virtual.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
dce_virtual.h
df_v1_7.c drm/amdgpu: add a df 1.7 implementation of enable_ecc_force_par_wr_rmw 2018-05-23 23:51:21 -05:00
df_v1_7.h drm/amdgpu/df: implement df v1_7 callback functions 2018-04-11 13:07:54 -05:00
df_v3_6.c drm/amdgpu/df: fix potential array out-of-bounds read 2018-06-01 09:45:05 -05:00
df_v3_6.h drm/amdgpu/df: implement df v3_6 callback functions (v2) 2018-05-18 16:08:15 -05:00
emu_soc.c drm/amdgpu: Add place holder for soc15 asic init on emulation 2018-02-19 14:19:49 -05:00
gfx_v6_0.c drm/amdgpu: switch firmware path for SI parts 2018-07-05 16:39:58 -05:00
gfx_v6_0.h
gfx_v7_0.c drm/amdgpu: switch firmware path for CIK parts (v2) 2018-07-05 16:39:58 -05:00
gfx_v7_0.h drm/amdgpu: unify MQD programming sequence for kfd and amdgpu v2 2017-05-31 16:48:48 -04:00
gfx_v8_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
gfx_v8_0.h drm/amdgpu: unify MQD programming sequence for kfd and amdgpu v2 2017-05-31 16:48:48 -04:00
gfx_v9_0.c drm/amdgpu/gfx9: Update golden settings for vg10. 2018-07-18 16:18:43 -05:00
gfx_v9_0.h drm/amdgpu: set gfx_v9_0_ip_funcs as static 2017-08-15 14:46:13 -04:00
gfxhub_v1_0.c drm/amdgpu: use the TTM dummy page instead of allocating one 2018-02-26 23:09:36 -05:00
gfxhub_v1_0.h drm/amdgpu: drop old ip definitions for gfxhub and mmhub 2017-08-15 14:46:00 -04:00
gmc_v6_0.c drm/amdgpu: switch firmware path for SI parts 2018-07-05 16:39:58 -05:00
gmc_v6_0.h
gmc_v7_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
gmc_v7_0.h
gmc_v8_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
gmc_v8_0.h
gmc_v9_0.c drm/amd: Use newly added interrupt source defs for SOC15. 2018-07-13 14:45:43 -05:00
gmc_v9_0.h
iceland_ih.c drm/amdgpu: use the TTM dummy page instead of allocating one 2018-02-26 23:09:36 -05:00
iceland_ih.h
iceland_sdma_pkt_open.h
Kconfig drm/amd/dc: Add dc display driver (v2) 2017-09-26 17:01:32 -04:00
kv_dpm.c drm/amd/pp: Unify powergate_uvd/vce/mmhub to set_powergating_by_smu 2018-07-05 16:38:48 -05:00
kv_dpm.h
kv_smc.c
Makefile drm/amdgpu/df: implement df v3_6 callback functions (v2) 2018-05-18 16:08:15 -05:00
mmhub_v1_0.c drm/amd/pp: Unify powergate_uvd/vce/mmhub to set_powergating_by_smu 2018-07-05 16:38:48 -05:00
mmhub_v1_0.h drm/amdgpu: drop old ip definitions for gfxhub and mmhub 2017-08-15 14:46:00 -04:00
mmsch_v1_0.h
mxgpu_ai.c drm/amdgpu/sriov: Need to set in_gpu_reset flag to back after gpu reset 2018-05-15 13:44:06 -05:00
mxgpu_ai.h drm/amdgpu: refactoring mailbox to fix TDR handshake bugs(v2) 2018-03-14 14:38:27 -05:00
mxgpu_vi.c drm/amdgpu: rename amdgpu_gpu_recover 2017-12-18 10:59:58 -05:00
mxgpu_vi.h drm/amdgpu/sriov:increate mailbox polling timeout 2017-09-26 15:14:12 -04:00
nbio_v6_1.c drm/amdgpu/nbio6: Correct PCIE_INDEX/DATA pair used for smn register accessing 2018-03-20 23:43:25 -05:00
nbio_v6_1.h drm/amdgpu: convert nbio to use callbacks (v2) 2017-12-13 17:28:07 -05:00
nbio_v7_0.c drm/amdgpu: Add nbio support for vega20 (v2) 2018-05-17 10:13:18 -05:00
nbio_v7_0.h drm/amdgpu: convert nbio to use callbacks (v2) 2017-12-13 17:28:07 -05:00
ObjectID.h drm/amdgpu: Add BRACKET_LAYOUT_ENUMs to ObjectID.h 2018-06-15 12:20:42 -05:00
ppsmc.h
psp_gfx_if.h drm/amdgpu: update psp gfx if header 2018-05-15 13:43:35 -05:00
psp_v3_1.c drm/amdgpu: add checking for sos version 2018-06-13 13:45:20 -05:00
psp_v3_1.h drm/amdgpu/psp: use a function pointer structure 2018-02-19 14:18:31 -05:00
psp_v10_0.c drm/amdgpu: add save restore list cntl gpm and srm firmware support 2018-05-15 13:43:36 -05:00
psp_v10_0.h drm/amdgpu/psp: use a function pointer structure 2018-02-19 14:18:31 -05:00
r600_dpm.h
sdma_v2_4.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
sdma_v2_4.h
sdma_v3_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
sdma_v3_0.h
sdma_v4_0.c drm/amd: Use newly added interrupt source defs for SOC15. 2018-07-13 14:45:43 -05:00
sdma_v4_0.h
si.c drm/amdgpu/si: implement asic need_full_reset callback 2018-04-11 13:07:57 -05:00
si.h drm/amdgpu: implement gmc_v6_0_emit_flush_gpu_tlb 2018-02-19 14:18:08 -05:00
si_dma.c drm/amdgpu: change amdgpu_ttm_set_active_vram_size 2018-03-05 15:37:12 -05:00
si_dma.h
si_dpm.c drm/amdgpu: use pcie functions for link width and speed 2018-07-05 16:39:59 -05:00
si_dpm.h drm/amdgpu: Remove wrapper layer of smu ip functions 2018-03-15 09:57:50 -05:00
si_enums.h
si_ih.c drm/amdgpu: rename vm_id to vmid 2017-12-27 11:34:02 -05:00
si_ih.h
si_smc.c
sid.h
sislands_smc.h
soc15.c drm/amdgpu: typo fix for vega20 cg flags 2018-05-30 12:37:05 -05:00
soc15.h drm/amdgpu/soc15: dynamic initialize ip offset for vega20 2018-05-17 10:13:17 -05:00
soc15_common.h drm/amdgpu: Add SOC15_WAIT_ON_RREG macro define 2018-05-24 00:18:02 -05:00
soc15d.h drm/amdgpu: add jpeg packet defines to soc15d.h 2018-06-15 12:20:34 -05:00
tonga_ih.c drm/amdgpu: use the TTM dummy page instead of allocating one 2018-02-26 23:09:36 -05:00
tonga_ih.h
tonga_sdma_pkt_open.h
uvd_v4_2.c drm/amdgpu: fix insert nop for UVD4.2 ring 2018-05-18 16:08:32 -05:00
uvd_v4_2.h
uvd_v5_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
uvd_v5_0.h
uvd_v6_0.c drm/amdgpu: remove superflous UVD encode entity 2018-07-19 13:56:44 -05:00
uvd_v6_0.h
uvd_v7_0.c drm/amdgpu: remove superflous UVD encode entity 2018-07-19 13:56:44 -05:00
uvd_v7_0.h
vce_v2_0.c drm/amdgpu/vce: simplify vce instance setup 2018-07-05 16:39:53 -05:00
vce_v2_0.h
vce_v3_0.c drm/amd: Use newly added interrupt source defs for VI v3. 2018-07-13 14:45:30 -05:00
vce_v3_0.h
vce_v4_0.c drm/amd: Use newly added interrupt source defs for SOC15. 2018-07-13 14:45:43 -05:00
vce_v4_0.h
vcn_v1_0.c drm/amd: Use newly added interrupt source defs for SOC15. 2018-07-13 14:45:43 -05:00
vcn_v1_0.h drm/amdgpu: add vcn ip block and type 2017-05-24 17:41:27 -04:00
vega10_ih.c drm/amdgpu: Move IH clientid defs to separate file 2018-03-14 15:16:35 -05:00
vega10_ih.h
vega10_reg_init.c drm/amdgpu: Add CLK IP base offset 2018-07-10 14:16:39 -05:00
vega10_sdma_pkt_open.h
vega20_reg_init.c drm/amdgpu/soc15: dynamic initialize ip offset for vega20 2018-05-17 10:13:17 -05:00
vi.c drm/amdgpu/vi: fix mixed up state in smu clockgating setup 2018-07-13 14:52:41 -05:00
vi.h drm/amdgpu: add PASID mapping for GMC v8 2018-02-19 14:18:11 -05:00
vi_dpm.h
vid.h drm/amdgpu: Implement amdgpu SDMA functions for VI 2017-11-01 19:22:00 -04:00