Alex Deucher
40a8f74321
drm/amdgpu/gmc: use proper register for vram type on Fiji
...
commit b634de4f44 upstream.
The offset changed on Fiji.
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-20 15:41:56 +09:00
Alex Deucher
1e84f8b8da
drm/amdgpu/gmc: move vram type fetching into sw_init
...
commit d1518a1db3 upstream.
early_init gets called before atom asic init so on non-posted
cards, the vram type is not initialized.
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-20 15:41:56 +09:00
Alex Deucher
73b424c77c
drm/amdgpu: drop topaz support from gmc8 module
...
commit 8878d8548a upstream.
topaz is actually gmc7.
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-03-03 15:07:19 -08:00
Alex Deucher
7710d03fbb
drm/amdgpu: no need to load MC firmware on fiji
...
commit ad32152eb2 upstream.
Vbios does this for us on asic_init.
Reviewed-by: Ken Wang >Qingqing.Wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-03-03 15:07:18 -08:00
Christian König
9c97b5ab4a
drm/amdgpu: partially revert "drm/amdgpu: fix VM_CONTEXT*_PAGE_TABLE_END_ADDR" v2
...
The gtt_end is already inclusive, we don't need to subtract one here.
v2 (chk): keep the fix for the VM code, cause here it really applies.
Signed-off-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Anatoli Antonovitch <anatoli.antonovitch@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-12-04 13:06:59 -05:00
Christian König
ea89f8c9e8
drm/amdgpu: move VM manager clean into the VM code again
...
It's not a good idea to duplicate that code.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Chunming Zhou <davdi1.zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-11-18 11:40:27 -05:00
Jay Cornwall
a80b30476d
drm/amdgpu: Fix default page access routing
...
The VM default page (used when a VM translation fails) is allocated in
system memory. The VM is misconfigured to interpret the physical address
as referencing a VRAM physical page.
Route default page accesses to system memory.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Jay Cornwall <jay@jcornwall.me >
Cc: <stable@vger.kernel.org > # v4.2+
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-11-16 11:05:53 -05:00
Christian König
d52832986a
drm/amdgpu: use common fences for VMID management v2
...
v2: add missing NULL check.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-10-30 01:55:12 -04:00
Samuel Li
aade2f04f9
drm/amdgpu: add GMC support for Stoney
...
Stoney is GMC 8.x.
Signed-off-by: Samuel Li <samuel.li@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-10-21 12:19:30 -04:00
Christian König
d9c13156a6
drm/amdgpu: add option to stop on VM fault
...
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-10-14 16:16:40 -04:00
Christian König
ce0c6bcda6
drm/amdgpu: only print meaningful VM faults
...
Port of radeon commit 9b7d786b90 .
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-10-14 16:16:39 -04:00
Christian König
140b519f7a
drm/amdgpu: properly enable VM fault interrupts
...
This fixes not printing VM faults.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-09-04 16:31:16 -04:00
David Zhang
127a262853
drm/amdgpu: Add Fiji support to the GMC 8.5 IP module
...
Signed-off-by: David Zhang <david1.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-08-17 16:50:24 -04:00
Jammy Zhou
2f7d10b393
drm/amdgpu: merge amdgpu_family.h into amd_shared.h (v2)
...
Make the definitions common for all driver components
v2: fix kfd
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2015-08-17 16:50:21 -04:00
Alex Deucher
c61bf64927
drm/amdgpu: whitespace cleanup in gmc8 golden regs
...
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-10 09:13:28 -04:00
Ken Wang
81c59f5412
drm/amdgpu: add vram_type and vram_bit_width for interface query (v2)
...
Track the type of vram on the board and provide a query for it.
User mode drivers and tools want this information for determining
bandwidth information and form informational purposes.
v2: fix build when CI support is not enabled
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2015-06-03 21:04:04 -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
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
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
Alex Deucher
aaa36a976b
drm/amdgpu: Add initial VI support
...
This adds initial support for VI asics. This
includes Iceland, Tonga, and Carrizo. Our inital
focus as been Carrizo, so there are still gaps in
support for Tonga and Iceland, notably power
management.
Acked-by: Christian König <christian.koenig@amd.com >
Acked-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-06-03 21:03:17 -04:00