Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-12-14 | drm/amd/display: MPC updates | Eric Bernstein | 2 | -5/+8 | |
Fix update_mpcc logic to only call assert_mpcc_idle_before_connect if mpcc is not already being used (and required removal). Update set_out_rate_control to include optional flow control parameter. In init_mpcc_from_hw check for case where bot_sel is same as mpcc_id. Signed-off-by: Eric Bernstein <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: Fixed read wrong reg to get bot_sel. | Yongqiang Sun | 1 | -1/+1 | |
Signed-off-by: Yongqiang Sun <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: Fix potential mem leak in DC construct | Harry Wentland | 1 | -16/+18 | |
Found by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:506 construct() warn: possible memory leak of 'dc_ctx' drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:506 construct() warn: possible memory leak of 'dc_vbios' drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:506 construct() warn: possible memory leak of 'dcn_ip' drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:506 construct() warn: possible memory leak of 'dcn_soc' Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: Remove redundant checks in set_default_colors | Harry Wentland | 1 | -10/+2 | |
pipe_ctx->stream and pipe_ctx->plane_state are never NULL Found by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2111 set_default_colors() error: we previously assumed 'pipe_ctx->stream' could be null (see line 2101) Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: Remove plane_res.mi check in dce110_apply_ctx_for_surface | Harry Wentland | 1 | -7/+6 | |
plane_res.mi (memory interface) can never be NULL for DCE110 Found by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2881 dce110_apply_ctx_for_surface() error: we previously assumed 'pipe_ctx->plane_res.mi' could be null (see line 2873) Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: Remove PSR functions in Linux | Harry Wentland | 1 | -138/+0 | |
NULL check issue found by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1976 dc_link_setup_psr() warn: variable dereferenced before check 'link' (see line 1970) We don't use these functions so might as well remove them. Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: Integrating MPC pseudocode | Eric Bernstein | 7 | -356/+594 | |
Integrating MPC pseudocode to support new blending cases with secondary MPCC list. This includes a design change to MPC data structures and interfaces. Signed-off-by: Eric Bernstein <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: dal 3.1.21 | Tony Cheng | 1 | -1/+1 | |
Signed-off-by: Tony Cheng <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: try to find matching audio inst for enc inst first | Charlene Liu | 1 | -3/+1 | |
[Description] in eDP+ HDMI/DP clone or extended configuration, audio inst changed from inst 1 to inst0. No failure related this though, just playback device endpoint inst changed. Also remove one addition register read. Signed-off-by: Charlene Liu <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: fix seq issue: turn on clock before programming afmt. | Charlene Liu | 1 | -1/+3 | |
Signed-off-by: Charlene Liu <[email protected]> Reviewed-by: Krunoslav Kovac <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/display: Remove unnecessary wait mpcc idle. | Yongqiang Sun | 1 | -6/+0 | |
Before power gate plane, mpcc idle wait is processed, no need to wait another time. Signed-off-by: Yongqiang Sun <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amd/pp: reset dpm level when adjust power state | Rex Zhu | 1 | -1/+1 | |
Acked-by: Alex Deucher <[email protected]> Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amd/pp: implement dpm_get_sclk/mclk for RV | Rex Zhu | 1 | -2/+23 | |
RV implementation was missing these callbacks. Used to fetch the clock values for other components. Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: fix huge page setting for ATS case | Chunming Zhou | 1 | -1/+1 | |
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: drop amdgpu_atombios_scratch_regs_save/restore | Alex Deucher | 2 | -24/+0 | |
No longer used. Reviewed-by: Harry Wentland <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: drop scratch regs save and restore from GPU reset handling | Alex Deucher | 1 | -2/+0 | |
The expectation is that the base driver doesn't mess with these. Some components interact with these directly so let the components handle these directly. Reviewed-by: Harry Wentland <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: drop scratch regs save and restore from S3/S4 handling | Alex Deucher | 1 | -2/+0 | |
The expectation is that the base driver doesn't mess with these. Some components interact with these directly so let the components handle these directly. Reviewed-by: Harry Wentland <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: remove some old gc 9.x registers | Alex Deucher | 5 | -84/+4 | |
Leftover from bring up. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: drop soc15_init_golden_registers | Alex Deucher | 1 | -31/+0 | |
The golden register arrays were empty so the function was effectively useless. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: drop the bios scratch reg callbacks from nbio | Alex Deucher | 3 | -31/+0 | |
They are not used any longer. We get the scratch register locations from the vbios directly now. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-13 | drm/amdgpu: convert nbio to use callbacks (v2) | Alex Deucher | 11 | -183/+209 | |
Cleans up and consolidates all of the per-asic logic. v2: squash in "drm/amdgpu: fix NULL err for sriov detect" (Chunming) Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: make function names consistent in nbio files | Alex Deucher | 2 | -16/+16 | |
All functions should have nbio_v* prefix. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: correct vce fw data and stack size | Frank Min | 1 | -1/+1 | |
this fix the VCE world switch hang issue Signed-off-by: Frank Min <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: fix MAP_QUEUES paramter | Monk Liu | 1 | -1/+1 | |
Should be 0. Signed-off-by: Monk Liu <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: no need with INT for fence polling | Monk Liu | 1 | -1/+1 | |
We are polling so no need for INT. Signed-off-by: Monk Liu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: no need to evict VRAM in device_fini | Monk Liu | 1 | -2/+1 | |
this VRAM evict is not needed and also cost 2seconds to finish because the IRQ is software side disabled before it. Signed-off-by: Monk Liu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: allow get_vm_pde to change flags as well | Christian König | 11 | -38/+54 | |
And also provide the level for which we need a PDE. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: batch PDE updates again | Christian König | 1 | -109/+94 | |
Now instead of one submission for each PDE batch them together over all PDs who need an update. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: remove keeping the addr of the VM PDs | Christian König | 2 | -10/+5 | |
No more double house keeping. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: remove last_entry_used from the VM code | Christian König | 2 | -24/+29 | |
Not needed any more. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: avoid the modulo in amdgpu_vm_get_entry | Christian König | 1 | -3/+3 | |
We can do this with a simple mask as well. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: use polling mem to set SDMA3 wptr for VF | Pixel Ding | 2 | -8/+20 | |
On Tonga VF, there're 2 sources updating wptr registers for sdma3: 1) polling mem and 2) doorbell. When doorbell and polling mem are both enabled on sdma3, there will be collision hit in occasion between those two sources when ucode and h/w are doing the updating on wptr register in parallel. Issue doesn't happen on CP GFX/Compute since CP drops all doorbell writes when VF is inactive. So enable polling mem and don't use doorbell for SDMA3. Signed-off-by: Pixel Ding <[email protected]> Reviewed-by: Monk Liu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: update one PDE at a time v2 | Christian König | 1 | -46/+34 | |
Horrible inefficient, but avoids problems when the root PD size becomes to big. v2: remove incr as well. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: stop joining PDEs | Christian König | 1 | -34/+7 | |
That doesn't hit any more most of the time anyway. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: add amdgpu_evict_vram debugfs file | Christian König | 1 | -1/+12 | |
Torture test for MM and VM support, can be used to evict all VRAM while the system is under load. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-12 | drm/amdgpu: cleanup debugfs handling a bit | Christian König | 3 | -43/+11 | |
Remove the superflous .debugfs_init callback and register all files in amdgpu_device.c in just one function. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-08 | drm/admgpu: Reduce the usage of soc15ip.h | Shaoyun Liu | 16 | -17/+0 | |
Remove the header where it's not used. Acked-by: Christian Konig <[email protected]> Signed-off-by: Shaoyun Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-08 | drm/amdgpu: Change SOC15_REG_OFFSET to use dynamic register offset | Shaoyun Liu | 8 | -18/+46 | |
Acked-by: Christian Konig <[email protected]> Signed-off-by: Shaoyun Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-08 | drm/amdgpu: Avoid use SOC15_REG_OFFSET in static const array | Shaoyun Liu | 13 | -283/+354 | |
Handle dynamic offsets correctly in static arrays. Acked-by: Christian Konig <[email protected]> Signed-off-by: Shaoyun Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-08 | drm/amdgpu: Use dynamic IP offset for register access on SOC15 | Shaoyun Liu | 2 | -95/+65 | |
Update the register access macros and functions to take into account the new dynamic IP base offsets. Acked-by: Christian Konig <[email protected]> Signed-off-by: Shaoyun Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-08 | drm/amdgpu: Dynamic initialize IP base offset | Shaoyun Liu | 5 | -1/+96 | |
The base offsets of the IP blocks may change across asics even though the relative register offsets are the same for an IP. Handle this dynamically. Acked-by: Christian Konig <[email protected]> Signed-off-by: Shaoyun Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-07 | drm/sched: move fence slab handling to module init/exit | Lucas Stach | 1 | -8/+0 | |
This is the only part of the scheduler which must not be called from different drivers. Move it to module init/exit so it is done a single time when loading the scheduler. Reviewed-by: Chunming Zhou <[email protected]> Tested-by: Dieter Nützel <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Lucas Stach <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-07 | drm: move amd_gpu_scheduler into common location | Lucas Stach | 31 | -1427/+119 | |
This moves and renames the AMDGPU scheduler to a common location in DRM in order to facilitate re-use by other drivers. This is mostly a straight forward rename with no code changes. One notable exception is the function to_drm_sched_fence(), which is no longer a inline header function to avoid the need to export the drm_sched_fence_ops_scheduled and drm_sched_fence_ops_finished structures. Reviewed-by: Chunming Zhou <[email protected]> Tested-by: Dieter Nützel <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Lucas Stach <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-07 | drm/amdgpu: add license to files where it was missing | Alex Deucher | 15 | -8/+254 | |
These files were missing it before. Acked-by: Harry Wentland <[email protected]> Acked-by: Felix Kuehling <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-07 | drm/amdgpu: add license to Makefiles | Alex Deucher | 26 | -6/+547 | |
Was missing license text. Acked-by: Harry Wentland <[email protected]> Acked-by: Felix Kuehling <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-07 | drm/amdgpu: Fix amdgpu_sync_add_later to preserve explicit flag. | Andrey Grodzovsky | 1 | -3/+6 | |
Signed-off-by: Andrey Grodzovsky <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: Use drm_fb_helper_lastclose() and _poll_changed() | Noralf Trønnes | 5 | -42/+3 | |
This driver can use drm_fb_helper_lastclose() in its .lastclose function. It can also use drm_fb_helper_output_poll_changed() as its .output_poll_changed callback. Remove the unused driver implementations. Cc: Alex Deucher <[email protected]> Cc: "Christian König" <[email protected]> Signed-off-by: Noralf Trønnes <[email protected]> Acked-by: Daniel Vetter <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/display: Use drm_fb_helper_poll_changed() | Noralf Trønnes | 1 | -1/+1 | |
This driver can use drm_fb_helper_output_poll_changed() as its .output_poll_changed callback. Cc: Alex Deucher <[email protected]> Cc: "Christian König" <[email protected]> Signed-off-by: Noralf Trønnes <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: fix amdgpu_sync_resv v2 | Christian König | 1 | -5/+2 | |
Fixes a bug introduced by AMDGPU_GEM_CREATE_EXPLICIT_SYNC. We still need to wait for pipelined moves in the shared fences list. v2: fix typo Signed-off-by: Christian König <[email protected]> Reviewed-by: Andres Rodriguez <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/amdgpu: set gtt size according to system memory size only | Roger He | 1 | -5/+3 | |
Reviewed-by: Christian König <[email protected]> Signed-off-by: Roger He <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |