Alex Deucher
8dacc127fc
drm/amdgpu: fix description of vm_size module parameter (v2)
...
default is 8GB, not 4GB.
v2: fix fallback setting when the user provides an invalid input
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:57 -04:00
monk.liu
b9a7faaeb2
drm/amdgpu: remove all sh mem register modification in vm flush
...
Leave that at the values set during init. No need to update
them repeatedly.
Signed-off-by: monk.liu <monk.liu@amd.com >
Signed-off-by: David Zhang <david1.zhang@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com >
2015-06-03 21:03:56 -04:00
Marek Olšák
d8f65a2376
drm/amdgpu: rename GEM_OP_SET_INITIAL_DOMAIN -> GEM_OP_SET_PLACEMENT
...
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:55 -04:00
monk.liu
aeb0aeac2e
drm/amdgpu: fence should be added to shared slot
...
Signed-off-by: monk.liu <monk.liu@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: jammy zhou <jammy.zhou@amd.com >
2015-06-03 21:03:55 -04:00
monk.liu
cfe2c97807
drm/amdgpu: sync fence of clear_invalids (v2)
...
bo_va may un-initialized, fix it.
Signed-off-by: monk.liu <monk.liu@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com >
2015-06-03 21:03:54 -04:00
monk.liu
3d5a08c114
drm/amdgpu: max_pde_used usage should be under protect
...
Need to take the lock when accessing this.
Signed-off-by: monk.liu <monk.liu@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com >
2015-06-03 21:03:53 -04:00
monk.liu
ca95261325
drm/amdgpu: fix bug of vm_bo_map (v2)
...
call reservation_object_reserve_shared before amdgpu_bo_fence
Signed-off-by: monk.liu <monk.liu@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com >
2015-06-03 21:03:53 -04:00
Chunming Zhou
7e5a547f64
drm/amdgpu: implement the allocation range (v3)
...
Pass a ttm_placement pointer to amdgpu_bo_create_restricted
add min_offset to amdgpu_bo_pin_restricted. This makes it
easier to allocate memory with address restrictions. With
this patch we can also enable 2-ended allocation again.
v2: fix rebase conflicts
v3: memset placements before using
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Chunming Zhou <david1.zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:52 -04:00
yanyang1
5fc3aeeb9e
drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2)
...
The structure is renamed and moved to amd_shared.h to make
the component independent. This makes it easier to add
new components in the future.
v2: fix include path
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: yanyang1 <young.yang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:51 -04:00
Christian König
dcc357e637
drm/amdgpu: drop allocation flag masks
...
Not needed any more.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
2015-06-03 21:03:50 -04:00
Christian König
9269a60686
drm/amdgpu: drop AMDGPU_FENCE_SIGNALED_SEQ
...
It's causing issues with VMID handling and comparing the
fence value two times actually doesn't make handling faster.
Port of radeon commit "d6d5c5b8364bcc4d52cddc68bcb0a330d2af20f3".
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
2015-06-03 21:03:50 -04:00
Christian König
5fb1941d0c
drm/amdgpu: port fault_reserve_notify changes from radeon
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:49 -04:00
Sonny Jiang
564ea7900c
drm/amdgpu: enable uvd dpm and powergating
...
Enable UVD dpm (dynamic power management) and powergating. UVD dpm dynamically scales the UVD
clocks on demand. Powergating turns off the power to the block when it's not in use.
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:48 -04:00
Leo Liu
5bbc553a1a
drm/amdgpu: implement VCE two instances support
...
VCE 3.0 has two indentical instances in the engine, they share
the same registers name in differrent memory block distinguished
by the grbm_gfx_index, we set to master instance after init, it
will dispatch task to slave instance. These two instances will
share the same firmware, but have their own stacks and heaps.
v2: add mutex for using grbm_gfx_index
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:48 -04:00
Leo Liu
e982262214
drm/amdgpu: recalculate VCE firmware BO size
...
Firmware required BO size changes in terms of ASIC family
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:47 -04:00
Alex Deucher
15a16ff606
drm/amdgpu: remove unused TRACE_SYSTEM_STRING define
...
Port of 77cb2fea1e to
amdgpu.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:46 -04:00
Marek Olšák
fbd76d59ef
drm/amdgpu: rework tiling flags
...
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:46 -04:00
Marek Olšák
63ab1c2bee
drm/amdgpu: don't set unused tiling flags
...
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:45 -04:00
Christian König
9f7eb5367d
drm/amdgpu: actually use the VM map parameters
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:44 -04:00
Christian König
0be52de91c
drm/amdgpu: validate amdgpu_vm_bo_map parameters
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:43 -04:00
Christian König
271c812566
drm/amdgpu: enforce AMDGPU_GEM_CREATE_NO_CPU_ACCESS
...
Deny user and kernel mapping if we said we never want to do so.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:43 -04:00
Christian König
25a595e482
drm/amdgpu: fix VM_CONTEXT*_PAGE_TABLE_END_ADDR handling
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:42 -04:00
Alex Deucher
67ed009232
drm/amdgpu: retry dcpd fetch
...
Retry the dpcd fetch several times. Some eDP panels
fail several times before the fetch is successful.
bug:
https://bugs.freedesktop.org/show_bug.cgi?id=73530
Ported from radeon.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:41 -04:00
Alex Deucher
7af93b5069
drm/amdgpu: simplify DPCD debug output
...
Use %*ph rather than walking the array.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:41 -04:00
Alex Deucher
dc5f428d61
drm/amdgpu: make some DP parameters const
...
Ported from similar radeon patch.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:40 -04:00