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
Alex Deucher
9e14c65c57
drm/amdgpu: take the mode_config mutex when handling hpds
...
Since we may modify display state.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:39 -04:00
Marek Olšák
d94aed5a6c
drm/amdgpu: add and implement the GPU reset status query
...
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2015-06-03 21:03:39 -04:00
Alex Deucher
1f8d962513
drm/amdgpu: add some new tonga pci ids
...
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:38 -04:00
Alex Deucher
fb4f173734
drm/amdgpu: add new bonaire pci id
...
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:37 -04:00
Jammy Zhou
86c2b79062
drm/amdgpu: rewording some left radeons
...
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:36 -04:00
Jammy Zhou
c65444fe05
drm/amdgpu: switch to amdgpu folder for firmware files v2
...
v2: keep using radeon folder for CIK
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:36 -04:00
Jammy Zhou
4b095304ea
drm/amdgpu: do necessary NULL check
...
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:35 -04:00
Jammy Zhou
02b70c8c9f
drm/amdgpu: expose the max virtual address
...
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:34 -04:00
Christian König
3cb485f340
drm/amdgpu: fix context switch
...
Properly protect the state and also handle submission failures.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
2015-06-03 21:03:34 -04:00
Christian König
d919ad49ac
drm/amdgpu: fix dereference before check
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
2015-06-03 21:03:33 -04:00
Christian König
d2edb07b10
drm/amdgpu: cleanup HDP flush handling
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
2015-06-03 21:03:32 -04:00
Christian König
66782cec7a
drm/amdgpu: always emit GDS switch
...
Otherwise a process can access the GDS data of another process.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
2015-06-03 21:03:31 -04:00
Jammy Zhou
aa2bdb2476
drm/amdgpu: add CE preamble flag v3
...
The CE preamble IB can be dropped for the same context
v2: use the flags directly
v3: remove 'CE' for potential preamble usage by other rings
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:31 -04:00
Jammy Zhou
de807f818b
drm/amdgpu: add flags for amdgpu_ib structure
...
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:30 -04:00
Jammy Zhou
72efa7ebde
drm/amdgpu: check context id for context switching (v2)
...
check the filp is not robust, and sometimes different contexts may
have same filp value.
v2: check both filp and ctx_id
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:29 -04:00
Jammy Zhou
66b3cf2ab3
drm/amdgpu: add ctx_id to the WAIT_CS IOCTL (v4)
...
It is required to support fence per context.
v2: add amdgpu_ctx_get/put
v3: improve get/put
v4: squash hlock fix
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-06-03 21:03:29 -04:00
Jack Xiao
74a5d1656e
drm/amdgpu: allow unaligned memory access (v2)
...
Set up the CP and SDMA for proper unaligned memory access.
Required for OpenCL 2.x
v2: udpate commit message
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2015-06-03 21:03:28 -04:00
Marek Olšák
0147ee0f59
drm/amdgpu: make the CTX ioctl thread-safe
...
The existing locks were protecting the list, but not the elements.
v2: rename hlock to lock
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2015-06-03 21:03:27 -04:00
Marek Olšák
f11358daa9
drm/amdgpu: remove unsafe context releasing
...
If ctx was released between put and get, then "get" would crash.
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2015-06-03 21:03:27 -04:00
Christian König
a961ea7349
drm/amdgpu: fix userptr lockup
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Monk Liu <monk.liu@amd.com >
2015-06-03 21:03:26 -04:00
monk.liu
dd08fae1e9
drm/amdgpu: fix userptr BO unpin bug (v2)
...
sg could point to array of contigiouse page*, only free page could lead
to memory leak.
v2: use iterator
Signed-off-by: monk.liu <monk.liu@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:25 -04:00
Jammy Zhou
886712881d
drm/amdgpu: remove AMDGPU_GEM_CREATE_CPU_GTT_UC
...
This flag isn't used by user mode drivers, remove it to avoid
confusion. And rename GTT_WC to GTT_USWC to make it clear.
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:24 -04:00
Sonny Jiang
46651cc5db
drm/amdgpu fix amdgpu.dpm=0 (v2)
...
Fix crash when disabling dpm.
v2: agd5f: fix coding style, cleanup commit message
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:24 -04:00