yanyang1
735f002b14
drm/amd/amdgpu: Add smc_sk firmware in baffin & ellesmere.
...
add CGS_UCODE_ID_SMU_SK.
Signed-off-by: yanyang1 <Young.Yang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:26:19 -04:00
Eric Huang
92c6d645ee
drm/amd/powerplay: add UVD&VCE DPM and powergating support for elm/baf
...
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:26:13 -04:00
Eric Huang
eede52627b
drm/amd/powerplay: add thermal control for elm/baf
...
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:26:07 -04:00
Rex Zhu
0ff71753ef
drm/amd/powerplay: enable powerplay for baffin.
...
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:26:01 -04:00
Rex Zhu
b83c4ab9ca
drm/amd/powerplay: init hwmgr for ELM/BAF
...
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:25:56 -04:00
Rex Zhu
a23eefa2f4
drm/amd/powerplay: enable dpm for baffin.
...
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:25:50 -04:00
rezhu
c81726252e
drm/amd/powerplay: add smu support for ellesmere/baffin
...
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:25:43 -04:00
rezhu
b304ac83ee
drm/amd/powerplay: add header files for ellesmere smu manager.
...
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:25:38 -04:00
Sonny Jiang
1b4eeea5f7
drm/amdgpu: add VCE support to ELM/BAF
...
Ellesmere and Baffin are VCE 3.4
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
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 >
2016-05-04 20:25:29 -04:00
Sonny Jiang
38d7581764
drm/amdgpu: add UVD support for ELM/BAF
...
Ellesmere and Baffin are UVD 6.3
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
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 >
2016-05-04 20:25:18 -04:00
Flora Cui
68182d909b
drm/amdgpu: add GFX support for ELM/BAF
...
V2: use gfx_8_0_*.h instead of gfx_8_1_*.h
v3: agd: integrate support for gfx info table
Signed-off-by: Flora Cui <Flora.Cui@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:25:11 -04:00
Flora Cui
d7120b8f22
drm/amdgpu: add mmRLC_CGCG_CGLS_CTRL_3D & mmRLC_CGCG_RAMP_CTRL_3D
...
Signed-off-by: Flora Cui <Flora.Cui@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:25:02 -04:00
Alex Deucher
397a270eff
drm/amdgpu: add an interface to get gfx constants from atombios
...
Fetch the values from atom rather than hardcoding them in the
driver.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:24:57 -04:00
Flora Cui
2cea03de10
drm/amdgpu: add SDMA support for ELM/BAF
...
V2: seperate baffin & ellesmere settings instead of using fiji ones.
Signed-off-by: Flora Cui <Flora.Cui@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:24:50 -04:00
Flora Cui
60909285ef
drm/amdgpu: add DCE golden setting for ELM/BAF
...
Signed-off-by: Flora Cui <Flora.Cui@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:24:38 -04:00
Flora Cui
c9778572e9
drm/amdgpu: add GMC support for ELM/BAF
...
V2: add golden_settings_baffin_a11 instead of reuse golden_settings_fiji_a10
Signed-off-by: Flora Cui <Flora.Cui@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:24:27 -04:00
Alex Deucher
b18e6ad781
drm/amdgpu/dce11: add dce clock setting for ELM/BAF
...
Setup the disp clock and dp reference clock. This is
now a separate command table on elm/baf compared to
older asics.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:24:22 -04:00
Alex Deucher
22f0c5bd14
drm/amdgpu/dce11: update pll programming for ELM/BAF
...
SetPixelClock table handles pll divider calculation and
spread spectrum setup, so no need to use calculate the
dividers and call the ss enable cmd table.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:24:17 -04:00
Alex Deucher
927a81c98e
drm/amdgpu: add ELM/BAF support to dce_v11_0_pick_pll (v2)
...
New PLL scheme on ELM/BAF.
v2: squash in pll fix. Plls are part of the phys.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:24:13 -04:00
Alex Deucher
d031287a43
drm/amdgpu/atom: add support for new UNIPHYTransmitterContol cmd table
...
New uniphy transmitter setup table for elm/baf.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:24:08 -04:00
Alex Deucher
4b5844e8bf
drm/amdgpu/atom: add support for new DIGxEncoderControl cmd table
...
New digital encoder setup table for elm/baf.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:24:04 -04:00
Alex Deucher
ee681c9aa2
drm/amdgpu/atom: add support for new SetPixelClock table
...
New version of the SetPixelClock table for elm/baf. The
new table calculates the pll dividers and handles spread
spectrum calculations and setup.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:23:58 -04:00
Alex Deucher
541cd55557
drm/amdgpu/atom: add SetDCEClock helper
...
New cmd table for ELM/BAF for setting the dispclock or
dprefclock.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:23:53 -04:00
Alex Deucher
6e14e92b3d
drm/amdgpu: update atombios.h (v2)
...
update to internal version 893
v2: Pull in gfx_info changes from 898
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:23:49 -04:00
Alex Deucher
2238445925
drm/amdgpu: bump the afmt limit for CZ, ST, Polaris
...
Fixes array overflow on these chips.
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Cc: stable@vger.kernel.org
2016-05-04 20:23:43 -04:00
Alex Deucher
f195038c7e
drm/amdgpu: use defines for CRTCs and AMFT blocks
...
Prerequiste for the next patch which ups the limits.
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Cc: stable@vger.kernel.org
2016-05-04 20:23:35 -04:00
Alex Deucher
d525eb8d2e
drm/amdgpu: add ELM/BAF DCE11 configs (v2)
...
Add support for the display configuration on elm/baf.
v2: add missing Stoney case
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:23:28 -04:00
Alex Deucher
b81223001f
drm/amdgpu: add ELM/BAF asic types
...
New asic types for ellesmere and baffin.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com >
2016-05-04 20:23:22 -04:00
Alex Deucher
7edbb0d389
drm/amd: add DCE 11.2 register headers
...
Add register headers for DCE (Display and Composition Engine)
11.2.
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:23:19 -04:00
Christian König
b76af4a419
drm/amdgpu: remove sorting of CS BOs
...
Not needed any more.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:23:12 -04:00
Christian König
29b3259a3a
drm/amdgpu: group BOs by log2 of the size on the LRU v2
...
This allows us to have small BOs on the LRU before big ones.
v2: fix of by one and list corruption bug
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:23:08 -04:00
Dave Airlie
1359d6e494
drm/amdgpu: drop apply quirks for now.
...
This isn't being used so drop it.
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:23:02 -04:00
Chunming Zhou
178d7cb8d5
drm/amdgpu: fix error checking when reuse vmid on same ring
...
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:58 -04:00
Chunming Zhou
68befebee4
drm/amdgpu: only update last_flush when vmid doesn't have other new owner
...
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:55 -04:00
Chunming Zhou
66067ad73c
drm/amdgpu: double fence slot
...
we introduced vmid fence, so one hw submission could produce two fences.
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:48 -04:00
Alex Deucher
1bf912ffa6
drm/amdgpu: enable sdma clockgating on ST
...
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:45 -04:00
Alex Deucher
6f17a257d3
drm/amdgpu: enable sdma clockgating on CZ
...
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:40 -04:00
Alex Deucher
ce22362b79
drm/amdgpu/sdma: rename fiji cg functions
...
They care common for all sdma 3.0 parts
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:36 -04:00
Alex Deucher
b6711d1b88
drm/amdgpu: enable gmc clockgating for ST
...
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:34 -04:00
Alex Deucher
03c335d3d5
drm/amdgpu: enable gmc clockgating for CZ
...
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:30 -04:00
Alex Deucher
76f10b9ada
drm/amdgpu/vi: rename fiji cg functions
...
They can be used for other VI parts.
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:27 -04:00
Alex Deucher
6469490567
drm/amdgpu: enable gfx clockgating for ST (v2)
...
v2: just enable MGCG for now since CGCG causes hangs
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:24 -04:00
Alex Deucher
70eced9b2e
drm/amdgpu: enable gfx clockgating for CZ
...
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:20 -04:00
Alex Deucher
dbff57bc7b
drm/amdgpu/gfx: rework fiji cg functions so they can be shared
...
They can be shared with other asics with minor modifications.
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:17 -04:00
Alex Deucher
79e5412c58
drm/amdgpu: add a new set of rlc function pointers
...
Different asics tend to have different ways to interact
with the RLC. This just covers enter/exit of safe mode
for updating CG and PG state, but could be extended to
cover other RLC operations in the future if necessary.
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:11 -04:00
Alex Deucher
146f256fae
drm/amdgpu/gfx: adjust gfx_v8_0_send_serdes_cmd for ST
...
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:05 -04:00
Alex Deucher
79deaaf4a9
drm/amdgpu/gfx8: rename send_serdes_cmd
...
So it can be shared with CZ/ST.
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:22:02 -04:00
Alex Deucher
3fde56b8db
drm/amdgpu/gmc: add proper CG flags for fiji
...
We were already enabling these CG features, this uses
the standard interface for doing so.
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:21:59 -04:00
Alex Deucher
c90766cf4e
drm/amdgpu/common: add proper CG flags for fiji
...
We were already enabling these CG features, this uses
the standard interface for doing so.
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:21:55 -04:00
Alex Deucher
e08d53cb69
drm/amdgpu/sdma: add proper CG flags for fiji
...
We were already enabling these CG features, this uses
the standard interface for doing so.
Acked-by: Tom St Denis <tom.stdenis@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2016-05-04 20:21:52 -04:00