Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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/amdgpu: Add support for reporting VRAM usage | Kent Russell | 4 | -2/+12 | |
Add functions to report the vram_usage from the amdgpu_device Signed-off-by: Kent Russell <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> | |||||
2017-12-08 | drm/amdkfd: Remove deprecated get_vmem_size | Harish Kasiviswanathan | 4 | -13/+0 | |
Signed-off-by: Harish Kasiviswanathan <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> | |||||
2017-12-08 | drm/amdgpu: Implement get_local_mem_info | Harish Kasiviswanathan | 4 | -0/+34 | |
Implement new kgd-kfd interface function get_local_mem_info. Signed-off-by: Harish Kasiviswanathan <[email protected]> Signed-off-by: Ben Goz <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Acked-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> | |||||
2017-12-08 | drm/amdgpu: add amdgpu interface to query cu info | Flora Cui | 7 | -0/+39 | |
Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Harish Kasiviswanathan <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[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]> | |||||
2017-12-06 | drm/amd/include:cleanup raven1 mmhub header files. | Feifei Xu | 1 | -2/+2 | |
Cleanup asic_reg/raven1/MMHUB folder.Remove unused mmhub_9_1_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 gc header files. | Feifei Xu | 1 | -1/+1 | |
Cleanup asic_reg/raven1/GC folder. Remove unused files: gc_9_1_default.h gc_9_1_sh_mask.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 sdma header files. | Feifei Xu | 2 | -2/+2 | |
Cleanup asic_reg/raven1/SDMA0 folder.Remove unused sdma0_4_1_sh_mask.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 vega10 header files. | Feifei Xu | 16 | -22/+22 | |
Remove asic_reg/vega10 folder. Signed-off-by: Feifei Xu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup vega10 osssys header files. | Feifei Xu | 1 | -2/+2 | |
Cleanup asic_reg/vega10/OSSSYS folder. Signed-off-by: Feifei Xu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup vega10 smuio header files. | Feifei Xu | 1 | -2/+2 | |
Cleanup asic_reg/vega10/SMUIO folder. Signed-off-by: Feifei Xu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup vega10 nbif header files. | Feifei Xu | 1 | -1/+1 | |
Cleanup asic_reg/vega10/NBIF folder. Signed-off-by: Feifei Xu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup vega10 nbio header files. | Feifei Xu | 3 | -6/+6 | |
Cleanup asic_reg/vega10/NBIO folder. Signed-off-by: Feifei Xu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-06 | drm/amd/include:cleanup vega10 mmhub header files. | Feifei Xu | 5 | -10/+10 | |
Cleanup asic_reg/vega10/MMHUB folder. Signed-off-by: Feifei Xu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |