Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-12-15 | drm/amdgpu: set allow_reserved_eviction and resv when bo allocation and cs | Roger He | 2 | -2/+12 | |
enable eviction of other per VM BOs during allocation and allows reaping of deleted BOs during CS. Reviewed-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Roger He <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-14 | drm/amdgpu: add enumerate for PDB/PTB v3 | Chunming Zhou | 2 | -19/+61 | |
v2: remove SUBPTB member v3: remove last_level, use AMDGPU_VM_PTB directly instead. 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: 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 | 1 | -4/+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 | 26 | -121/+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 | 2 | -1/+25 | |
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 | 1 | -1/+21 | |
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/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]> | |||||
2017-12-06 | drm/amdgpu: Get rid of dep_sync as a seperate object. | Andrey Grodzovsky | 7 | -35/+37 | |
Instead mark fence as explicit in it's amdgpu_sync_entry. v2: Fix use after free bug and add new parameter description. 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: allow specifying vm_block_size for multi level PDs v2 | Christian König | 2 | -19/+10 | |
This patch allows specifying the vm_block_size even when multi level page directories are active. v2: fix signed/unsigned compare warning Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: move validation of the VM size into the VM code | Christian König | 7 | -24/+20 | |
This moves validation of the VM size parameter into amdgpu_vm_adjust_size(). Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: allow non pot VM size values | Christian König | 1 | -6/+0 | |
The VM size actually doesn't need to be a power of two. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: choose number of VM levels based on VM size | Christian König | 1 | -5/+11 | |
This allows us limiting the VM size for testing even of Vega10. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: unify VM size handling of Vega10 with older generation | Christian König | 6 | -47/+22 | |
One function to rule them all. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: fix amdgpu_vm_num_entries | Christian König | 1 | -7/+7 | |
The block size only affects the leave nodes, everything else is fixed. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: fix VM PD addr shift | Christian König | 1 | -5/+23 | |
The block size only affects the leave nodes, everything else is fixed. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amdgpu: correct vce4.0 fw config for SRIOV (V2) | Frank Min | 1 | -13/+25 | |
1. program vce 4.0 fw with 48 bit address 2. correct vce 4.0 fw stack and date offset Acked-by: Christian König <[email protected]> Signed-off-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup raven1 vcn header files. | Feifei Xu | 2 | -3/+3 | |
Cleanup asic_reg/raven1/VCN folder. Remove unused vcn_1_0_default.h. Signed-off-by: Feifei Xu <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup raven1 nbio header files. | Feifei Xu | 1 | -3/+3 | |
Cleanup asic_reg/raven1/NBIO folder. Signed-off-by: Feifei Xu <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup raven1 mp header files. | Feifei Xu | 1 | -1/+1 | |
Cleanup asic_reg/raven1/MP folder. Signed-off-by: Feifei Xu <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |