Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-04-06 | drm/amdgpu:add PSP block only load_type=PSP (v2) | Monk Liu | 1 | -1/+2 | |
SRIOV currently only can load ucode directly, and PSP block is not supported by VF temporarily. will remove this restrict and use PSP load all ucode even for SRIOV later v2: squash in check against module parameter Signed-off-by: Monk Liu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu/smu9: update to latest driver interface | Evan Quan | 1 | -4/+53 | |
Signed-off-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_gpu_init() | Tom St Denis | 1 | -3/+1 | |
Use new WREG32_FIELD15 macro Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_rlc_reset() | Tom St Denis | 1 | -6/+2 | |
Use new WREG32_FIELD15 macro Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_rlc_start() | Tom St Denis | 1 | -3/+1 | |
Use new WREG32_FIELD15 macro Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: simplify gfx_v9_0_cp_gfx_enable() | Tom St Denis | 1 | -8/+4 | |
Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_kiq_init_register() | Tom St Denis | 1 | -9/+3 | |
Use new WREG32_FIELD macro Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: Drop gfx_v9_0_print_status() | Tom St Denis | 1 | -174/+1 | |
It's not used in gfx 6/7/8 so drop it from gfx 9 as well. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_set_gfx_eop_interrupt_state() | Tom St Denis | 1 | -12/+3 | |
Use new WREG32_FIELD15 macro. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_set_priv_reg_fault_state() | Tom St Denis | 1 | -11/+3 | |
Use new WREG32_FIELD15 macro. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_set_priv_inst_fault_state() | Tom St Denis | 1 | -12/+3 | |
Use new WREG32_FIELD15 macro. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: cleanup gfx_v9_0_init_queue() | Tom St Denis | 2 | -8/+6 | |
Introduce WREG32_FIELD15 macro for SOC15 architectures. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu: Move function amdgpu_has_atpx near other similar functions | Alex Xie | 2 | -6/+2 | |
Signed-off-by: Alex Xie <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu: fix over allocating of IRQ sources | Christian König | 1 | -3/+4 | |
We need an array of pointers to IRQ sources, not an array of sources. Signed-off-by: Christian König <[email protected]> Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: Clean up psp reload_quirk() | Tom St Denis | 1 | -8/+4 | |
Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: Fix psp_v3_1 compare sram | Tom St Denis | 1 | -1/+1 | |
Had the wrong sense in the loop Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu: cleanup get_invalidate_req v2 | Christian König | 8 | -49/+27 | |
The two hubs are just instances of the same hardware, so the register bits are identical. v2: keep the function pointer Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu: fix vm size and block size for VMPT (v5) | Zhang, Jerry | 9 | -35/+52 | |
Set reasonable defaults per family. v2: set both of them in gmc v3: move vm size and block size in vm manager v4: squash in warning fix from Alex Xie v5: squash in min() warning fix Signed-off-by: Junwei Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: Fix srbm_indexing in init/inactive hqd code | Tom St Denis | 1 | -0/+5 | |
Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: Clean up gfx_v8_0_mqd_init() | Tom St Denis | 1 | -8/+4 | |
Clean up a toggle with ?:. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: de-numberify HQD_ACTIVE check. | Tom St Denis | 1 | -2/+2 | |
Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: clean up gfx_v8_0_kiq_init_register() | Tom St Denis | 1 | -9/+3 | |
Swap read/write pattern for WREG32_FIELD() Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: Clean up gfx_v8_0_inactive_hqd() | Tom St Denis | 1 | -5/+1 | |
Swap read/write pattern for WREG32_FIELD() Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amd/amdgpu: Clean up gfx_v8_0_kiq_set_interrupt_state() | Tom St Denis | 2 | -28/+15 | |
Use new WREG32_FIELD_OFFSET() to clean up code. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu/gfx8: KIQ is also disabled when MEC is disabled | Alex Deucher | 1 | -0/+1 | |
Set the ready flag to reflect this. Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu: cleanup VMHUB bit definitions v2 | Christian König | 4 | -29/+8 | |
The two hubs are just instances of the same hardware, so the register bits are identical. v2: only remove get_vm_protection_bits for now Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-06 | drm/amdgpu: handle CPU access for split VRAM buffers (v2) | Christian König | 2 | -7/+13 | |
This avoids merging them together on page fault. v2: squash in 64-bit division fix Signed-off-by: Christian König <[email protected]> Acked-by: Michel Dänzer <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: use TTM_PL_FLAG_CONTIGUOUS v2 | Christian König | 2 | -10/+18 | |
Implement AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS using TTM_PL_FLAG_CONTIGUOUS instead of a placement limit. That allows us to better handle CPU accessible placements. v2: prevent virtual BO start address from overflowing Signed-off-by: Christian König <[email protected]> Acked-by: Michel Dänzer <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: move adjust_mc_addr into amdgpu_gart_funcs | Christian König | 3 | -23/+9 | |
We should probably rename amdgpu_gart_funcs sooner or later. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: cleanup logic in amdgpu_vm_flush | Christian König | 1 | -10/+10 | |
Remove some of the extra checks where they don't hurt us. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: cleanup coding style in amdgpu_vm_flush | Christian König | 1 | -43/+45 | |
Abort early if there is nothing todo and correctly indent the "if"s. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: coding style of amdgpu_vm_is_gpu_reset | Christian König | 1 | -7/+14 | |
The name is a bit confusing and the extra "? true : false" is superflous. Additional to that remove setting the reset counter directly after checking it. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: remove VMID first tracking | Christian König | 2 | -5/+0 | |
Not used any more. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: move VM related defines into amdgpu_vm.h | Christian König | 2 | -8/+8 | |
Try to clean up amdgpu.h. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: fix VMHUB order to match the hardware | Christian König | 2 | -11/+5 | |
Match our defines with what the hw uses. Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: drop alpha support | Christian König | 1 | -25/+0 | |
We will probably never see this combination. Signed-off-by: Christian König <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/ttm: add TTM_PL_FLAG_CONTIGUOUS v2 | Christian König | 2 | -1/+4 | |
This allows drivers to specify if they need a contiguous allocation or not. v2: use space instead of tab Signed-off-by: Christian König <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/ttm: add io_mem_pfn callback | Christian König | 13 | -1/+39 | |
This allows the driver to handle io_mem mappings on their own. Signed-off-by: Christian König <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/ttm: cleanup and optimize ttm_bo_mem_compat v2 | Christian König | 1 | -20/+25 | |
No need to implement the same logic twice. Also check if the busy placements are identical to the already scanned placements before checking them. v2: improve check even more as suggested by Michel. Signed-off-by: Christian König <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu/vi: add defines for KIQ packets | Alex Deucher | 1 | -0/+82 | |
Make it clearer how these packets work. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu/soc15: Fix static checker warnings | Alex Deucher | 1 | -0/+4 | |
vega10 is the only soc15 asic at the moment so these warnings are invalid, but add a default case to silence the warnings. Fixes: 220ab9bd1ccf: "drm/amdgpu: soc15 enable (v3)" Reviewed-by: Junwei Zhang <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: Read vram width from integrated system info table | Harry Wentland | 4 | -82/+123 | |
On KB, KV, CZ we should read the vram width from integrated system table, if we can. The NOOFCHAN in MC_SHARED_CHMAP is not accurate. With this change we can enable two 4k displays on CZ again. This use case was broken sometime in January when we started looking at vram_width for bandwidth calculations instead of hardcoding this value. v2: Return 0 if integrated system info table is not available. Tested-by: Roman Li <[email protected]> Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: create a func to check vm size | Zhang, Jerry | 1 | -20/+31 | |
break it out from the check parameters function. Signed-off-by: Junwei Zhang <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: Fix a NULL deref in amdgpu_vm_add_prt_cb() | Dan Carpenter | 1 | -1/+1 | |
We accidentally dereference "cb" if the kmalloc() fails. Fixes: 451bc8eb8fe6 ("drm/amdgpu: fix PRT teardown on VM fini v3") Reviewed-by: Christian König <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amd/powerplay: fix a couple locking issues | Dan Carpenter | 1 | -2/+4 | |
We should return unlock on the error path in pp_dpm_dispatch_tasks() and there is a double lock bug in pp_dpm_set_sclk_od(). Fixes: 2a5071056e6a ("drm/amd/powerplay: add global PowerPlay mutex.") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amd/powerplay: fix pp_dpm_get_current_power_state() (v2) | Dan Carpenter | 1 | -0/+4 | |
This switch statement is missing breaks. v2: agd: break in default case as well Fixes: 2a5071056e6a ("drm/amd/powerplay: add global PowerPlay mutex.") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: various cleanups for uvd/vce. | Rex Zhu | 7 | -103/+22 | |
Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: when resume failed, return error to avoid system hang. | Rex Zhu | 1 | -2/+3 | |
Continuing if the GPU fails to resume will end in pain. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: use a 64bit interval tree for VM management v2 | Christian König | 7 | -62/+71 | |
This only makes a difference for 32-bit systems. The idea is to have a fixed virtual address space size with 4-level page tables and to minimize differences between 32 and 64-bit systems. v2: Update commit message. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-04-04 | drm/amdgpu: fix semicolon.cocci warnings | kbuild test robot | 1 | -1/+1 | |
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:133:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Acked-by: Huang Rui <[email protected]> CC: Huang Rui <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |