Chunming Zhou
2ca8a5d2eb
drm/amdgpu: add RAVEN family id definition
...
RAVEN is a new APU.
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:49 -04:00
Alex Deucher
702f9292ad
drm/amdgpu: add register headers for VCN 1.0
...
Add registers for Video Controller Next 1.0
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:48 -04:00
Alex Deucher
bfd86c1ab3
drm/amdgpu: add register headers for THM 10.0
...
Add registers for THerMal control 10.0
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:47 -04:00
Alex Deucher
ce869c637e
drm/amdgpu: add register headers for SDMA 4.1
...
Add registers for SDMA 4.1
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:46 -04:00
Alex Deucher
c4dc7b1a54
drm/amdgpu: add register headers for NBIO 7.0
...
Add registers for NBIO 7.0
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:45 -04:00
Alex Deucher
cfeb9192fe
drm/amdgpu: add register headers for MP 10.0
...
Add registers for MP 10.0
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:44 -04:00
Alex Deucher
96ded7747c
drm/amdgpu: add register headers for MMHUB 9.1
...
Add registers for the MultiMedia Hub 9.1
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:44 -04:00
Alex Deucher
7582d7e649
drm/amdgpu: add register headers for GC 9.1
...
Registers for Graphics Controller 9.1
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:43 -04:00
Alex Deucher
752ca077d5
drm/amdgpu: add register headers for DCN 1.0
...
Registers for Display Controller Next 1.0
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:40:42 -04:00
Xiaojie Yuan
4caca70668
drm/amdgpu: add DP audio support for si dce6 (v3)
...
v2: refine dce_v6_0_audio_endpt_wreg() and unify inconsistent method names
v3: fix num_pins for tahiti, pitcairn, verde and oland
Signed-off-by: Xiaojie Yuan <Xiaojie.Yuan@amd.com >
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Junwei Zhang <Jerry.Zhang@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-05-24 17:39:58 -04:00
Rex Zhu
4f93f09e5c
drm/amdgpu: add amd fan ctrl mode enums.
...
Add common fan enums that can be used for both
powerplay and dpm.
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 >
2017-05-10 13:36:14 -04:00
Christian König
2c55b16bf0
drm/amdgpu: remove unused and mostly unimplemented CGS functions v2
...
Those functions are all unused and some not even implemented.
v2: keep cgs_get_pci_resource, it is used by the ACP driver.
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 >
2017-04-28 17:33:12 -04:00
Andrey Grodzovsky
e5f586c763
drm/amdgpu: Add interrupt entries for CRTC_VERTICAL_INTERRUPT0.
...
This used by DAL ISR logic for VBLANK handling.
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com >
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:55:43 -04:00
Xiangliang Yu
cca02cd3d4
drm/amdgpu/gfx9: impl gfx9 meta data emit
...
Insert ce meta prior to cntx_cntl and de follow it.
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com >
Signed-off-by: Monk Liu <Monk.Liu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:55:01 -04:00
Eric Huang
a2dd023a77
drm/amd: add structures for display/powerplay interface
...
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Tony Cheng <tony.cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:53 -04:00
Huang Rui
0e5ca0d1ac
drm/amdgpu: add PSP driver for vega10 (v2)
...
PSP is responsible for firmware loading on SOC-15 asics.
v2: fix memory leak (Ken)
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:48 -04:00
Alex Xie
e60f8db5e4
drm/amdgpu: Add GMC 9.0 support (v2)
...
On SOC-15 parts, the GMC (Graphics Memory Controller) consists
of two hubs: GFX (graphics and compute) and MM (sdma, uvd, vce).
v2: drop sdma from Makefile, fix duplicate return statement.
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:44 -04:00
Ken Wang
d4196f011c
drm/amdgpu: add vega10 chip name
...
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:32 -04:00
Felix Kuehling
4b219123e9
drm/amd: Add MQD structs for GFX V9
...
This header defines the gfx v9 MEC structures.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com >
Reviewed-by: Shaoyun Liu <Shaoyun.Liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:29 -04:00
Alex Deucher
f6c3947893
drm/amdgpu: add the VCE 4.0 register headers
...
These are the Video Compression Engine registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:28 -04:00
Alex Deucher
7008d577d6
drm/amdgpu: add the UVD 7.0 register headers
...
These are the Unifed Video Decoder registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:28 -04:00
Alex Deucher
893f25540e
drm/amdgpu: add THM 9.0 register headers
...
These are the THerMal control registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:27 -04:00
Alex Deucher
63d311d9b4
drm/amdgpu: add SMUIO 9.0 register headers
...
These are the System Managment Unit IO registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:26 -04:00
Alex Deucher
456f97704f
drm/amdgpu: add SDMA 4.0 register headers
...
These are the System DMA register headers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:26 -04:00
Alex Deucher
5a8288c0f9
drm/amdgpu: add OSSSYS 4.0 register headers
...
These are the OS Services register headers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:25 -04:00
Alex Deucher
198b746016
drm/amdgpu: add NBIO 6.1 register headers
...
These are the Bus IO registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:24 -04:00
Alex Deucher
61e04478b2
drm/amdgpu: add NBIF 6.1 register headers
...
These are the Bus InterFace registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:23 -04:00
Alex Deucher
3ec127a075
drm/amdgpu: add MP 9.0 register headers
...
MP is the system management controller on vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:23 -04:00
Alex Deucher
68c7d13052
drm/amdgpu: add the MMHUB 1.0 register headers
...
Add the MultiMedia Hub registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:22 -04:00
Alex Deucher
bcfb47cdd7
drm/amdgpu: add the HDP 4.0 register headers
...
These are the Host Data Path registers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:21 -04:00
Alex Deucher
5585476e44
drm/amdgpu: add the GC 9.0 register headers
...
Add the Graphics Core register headers for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:21 -04:00
Alex Deucher
4adc5ab813
drm/amdgpu: Add the DCE 12.0 register headers
...
These are the register headers for the Display
and Composition Engine on vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:20 -04:00
Alex Deucher
7fee1fd93b
drm/amdgpu: Add ATHUB 1.0 register headers
...
ATHUB is part of the memory controller on soc15 asics.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:19 -04:00
Alex Deucher
733acf561e
drm/amdgpu: add vega10_enum.h
...
This adds the register bitfield enums for vega10.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:19 -04:00
Alex Deucher
1fd1cc5640
drm/amdgpu: add soc15ip.h
...
This header defines the IP layout for soc15 based SoCs.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:18 -04:00
Alex Deucher
1fadf42ed5
drm/amdgpu: add the new atomfirmware interface header
...
soc15 asics have a new vbios interface. These headers
define that interface.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:54:15 -04:00
Rex Zhu
1c622002b1
drm/amd/powerplay: add a new register define for APU in VI.
...
the ixcurrent_pg_status addr is different between APU and DGPU.
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 >
2017-03-29 23:54:06 -04:00
Alex Deucher
8285052ef1
drm/amdgpu: add new ATIF ACPI method
...
Used for fetching external GPU information.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:53:49 -04:00
Huang Rui
c773a632a9
drm/amdgpu: add DF MGCG flag
...
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:53:42 -04:00
Huang Rui
e929c98d2e
drm/amdgpu: add DRM MGCG header
...
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:53:42 -04:00
Alex Deucher
d766e6a393
drm/amdgpu: switch ih handling to two levels (v3)
...
Newer asics have a two levels of irq ids now:
client id - the IP
src id - the interrupt src within the IP
v2: integrated Christian's comments.
v3: fix rebase fail in SI and CIK
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com >
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:53:37 -04:00
Xiangliang Yu
49abb980c5
drm/amdgpu/gfx8: move CE&DE meta data structure to vi_structs.h
...
Because different HWs have different definition for CE & DE meta
data, follow mqd design to move the structures to vi_structs.h.
And change the prefix from amdgpu to vi as the structures is only
for VI family.
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:53:31 -04:00
Joe Perches
7ca85295d8
gpu: drm: amd/radeon: Convert printk(KERN_<LEVEL> to pr_<level>
...
Use a more common logging style.
Miscellanea:
o Coalesce formats and realign arguments
o Neaten a few macros now using pr_<level>
Signed-off-by: Joe Perches <joe@perches.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:53:24 -04:00
Christian König
f7c35abe93
drm/amdgpu: implement PRT for GFX6 v2
...
Enable/disable the handling globally for now and
print a warning when we enable it for the first time.
v2: write to the correct register, adjust bits to that hw generation
v3: fix compilation, add the missing register bit definitions
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:52:57 -04:00
Eric Huang
34bb2734d1
drm/amd/amdgpu: add power profile sysfs entry
...
Add the sysfs entries pp_gfx_power_profile and
pp_compute_power_profile which give user a way to set
power profile through parameters minimum sclk, minimum mclk,
activity threshold, up hysteresis and down hysteresis only
when the entry power_dpm_force_performance_level is in
default value "auto". It is read and write. Example:
echo 500 800 20 0 5 > /sys/class/drm/card0/device/pp_*_power_profile
cat /sys/class/drm/card0/device/pp_*_power_profile
500 800 20 0 5
Note: first parameter is sclk in MHz, second is mclk in MHz,
third is activity threshold in percentage, fourth is up hysteresis
in ms and fifth is down hysteresis in ms.
echo set > /sys/class/drm/card0/device/pp_*_power_profile
To set power profile state if it exists.
echo reset > /sys/class/drm/card0/device/pp_*_power_profile
To restore default state and clear previous setting.
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com >
Acked-by: Rex Zhu <Rex.Zhu@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-03-29 23:52:48 -04:00
Masahiro Yamada
550116d21a
scripts/spelling.txt: add "aligment" pattern and fix typo instances
...
Fix typos and add the following to the scripts/spelling.txt:
aligment||alignment
I did not touch the "N_BYTE_ALIGMENT" macro in
drivers/net/wireless/realtek/rtlwifi/wifi.h to avoid unpredictable
impact.
I fixed "_aligment_handler" in arch/openrisc/kernel/entry.S because
it is surrounded by #if 0 ... #endif. It is surely safe and I
confirmed "_alignment_handler" is correct.
I also fixed the "controler" I found in the same hunk in
arch/openrisc/kernel/head.S.
Link: http://lkml.kernel.org/r/1481573103-11329-8-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2017-02-27 18:43:46 -08:00
Masahiro Yamada
08a7e621ff
scripts/spelling.txt: add "swith" pattern and fix typo instances
...
Fix typos and add the following to the scripts/spelling.txt:
swith||switch
swithable||switchable
swithed||switched
swithing||switching
While we are here, fix the "update" to "updates" in the touched hunk in
drivers/net/wireless/marvell/mwifiex/wmm.c.
Link: http://lkml.kernel.org/r/1481573103-11329-2-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2017-02-27 18:43:46 -08:00
Huang Rui
5d7213b0be
drm/amd/powerplay: add kicker flag into smumgr
...
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-02-16 11:43:11 -05:00
Rex Zhu
254cd2e08d
drm/amdgpu: read hw register to check pg status.
...
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 >
2017-02-13 12:43:04 -05:00
Rex Zhu
cbd9262f80
drm/amdgpu: add current_pg_status register define for smu7.1
...
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com >
Acked-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 >
2017-02-08 17:20:22 -05:00