Alex Deucher
2976fc2622
drm/amdgpu/pm: report gpu average power via hwmon API
...
Expose power via hwmon.
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:50 -05:00
Alex Deucher
2bd376bf8f
drm/amdgpu/pm: report gpu voltages via hwmon API
...
Expose vddgfx and vddnb via hwmon.
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:49 -05:00
Alex Deucher
5ec36e2d70
drm/amdgpu/pm: handle fan properly when card is powered down
...
Return an error if the user tried to check or set the fan
parameters while the card is powered down (e.g., on a PX/HG
system for example). This makes the fan consistent with the
temperature stuff.
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:49 -05:00
Christian König
6f05c4e9d1
drm/amdgpu: move static CSA address to top of address space v2
...
Move the CSA area to the top of the VA space to avoid clashing with
HMM/ATC in the lower range on GFX9.
v2: wrong sign noticed by Roger, rebase on CSA_VADDR cleanup, handle VA
hole on GFX9 as well.
Signed-off-by: Christian König <christian.koenig@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Monk Liu <monk.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:48 -05:00
Rex Zhu
c1f2fb6b63
drm/amd/pp: Delete unnecessary function argument
...
in populate_single_graphic_level for smu7
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 >
2018-02-19 14:18:48 -05:00
Rex Zhu
c7429b3ae9
drm/amd/pp: Add struct profile_mode_setting for smu7
...
Move configurable profiling parameters to struct
profile_mode_setting and initialize current_profile_setting.
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 >
2018-02-19 14:18:47 -05:00
Rex Zhu
527d9427fa
drm/amd/pp: Delete dead code in powerplay
...
As not support per DPM level optimization,
so delete activity_target array.
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 >
2018-02-19 14:18:47 -05:00
Rex Zhu
ce91b71c9a
drm/amd/pp: Change activity_target for performance optimization on Polaris
...
And not support perDPM level optimization on Polaris, so
delete sclk activity_target array.
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 >
2018-02-19 14:18:46 -05:00
Andrey Grodzovsky
ef4bccbdbf
drm/amd/display: Remove timer handler.
...
Dead code, looks obsolete.
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 >
2018-02-19 14:18:45 -05:00
Andrey Grodzovsky
d45d97b243
drm/amd/display: Remove unsued mutex and spinlock.
...
They seem to be obsolete.
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 >
2018-02-19 14:18:45 -05:00
Harry Wentland
f3b72c7b00
drm/amd/display: Fix warning about misaligned code
...
Signed-off-by: Harry Wentland <harry.wentland@amd.com >
Reviewed-by: Charlene Liu <charlene.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:44 -05:00
John Barberiz
cf5620562f
drm/amd/display: Add temporary delay on disconnect patch
...
- Sequencing bug of not resetting delay on disconnect to default values
Signed-off-by: John Barberiz <jbarberi@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:44 -05:00
Mikita Lipski
6c1d03a4f2
drm/amd/display: Remove unnecessary register programming
...
Remove aux engine register programming,when freeing the engine
as it was a temporary workaround.
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:43 -05:00
John Barberiz
243c46c5ce
drm/amd/display: Add temporary delay on disconnect patch
...
Signed-off-by: John Barberiz <jbarberi@amd.com >
Reviewed-by: Jun Lei <Jun.Lei@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:42 -05:00
Leo (Sunpeng) Li
9557080196
drm/amd/display: Fix unused variable compilation error
...
Fix:
drivers/gpu/drm/amd/amdgpu/../dal-dev/dc/dce110/dce110_hw_sequencer.c:
In function ‘dce110_blank_stream’:
drivers/gpu/drm/amd/amdgpu/../dal-dev/dc/dce110/dce110_hw_sequencer.c:1008:31:
error: unused variable ‘params’ [-Werror=unused-variable]
struct encoder_unblank_param params = { { 0 } };
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com >
Reviewed-by: Wesley Chalmers <Wesley.Chalmers@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:42 -05:00
Charlene Liu
41b497421a
drm/amd/display: eDP sequence BL off first then DP blank.
...
Signed-off-by: Charlene Liu <charlene.liu@amd.com >
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:41 -05:00
Geling Li
cf5e4a67f4
drm/amd/display: Add debug flag for p010_mpo_support
...
Signed-off-by: Geling Li <geling.li@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:41 -05:00
Krunoslav Kovac
a771c1f289
drm/amd/display: Force full update on pixel_format_change
...
Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:40 -05:00
Tony Cheng
352ab654ea
drm/amd/display: dal 3.1.29
...
Signed-off-by: Tony Cheng <tony.cheng@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:40 -05:00
Charlene Liu
7c357e61e2
drm/amd/display: dpms off mute az audio endpoint only.
...
Signed-off-by: Charlene Liu <charlene.liu@amd.com >
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:39 -05:00
Dmytro Laktyushkin
c7d76452d2
drm/amd/display: revert to hacking bounding box for pipe split
...
Directly editing pipe config outside of formula is error prone
and results in higher clocks being used when splitting.
For this reason we reverted to using bounding box hacking
to split. Since sometimes this erroneusly results in higher dpm
being required we unhack the bounding box and recalculate to allow
dpm0 is possible.
Side effect is we will lose some stutter efficiency
in non dpm0 cases. This is not a big concern since increased stutter
efficiency saves an order of magnitude less power than lower dpm.
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:38 -05:00
Charlene Liu
701ed303b2
drm/amd/display: disable az_clock_gating for endpoint register access only
...
Signed-off-by: Charlene Liu <charlene.liu@amd.com >
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:38 -05:00
Arun Pandey
af1b00cdc6
drm/amd/display: Define dpp1_set_cursor_position in header
...
Signed-off-by: Arun Pandey <Arun.Pandey@amd.com >
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:37 -05:00
Charlene Liu
cf1835f03f
drm/amd/display: fix backlight not off at resume from S4
...
Signed-off-by: Charlene Liu <charlene.liu@amd.com >
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:37 -05:00
Yongqiang Sun
3be1406a72
drm/amd/display: Add timing generator count to resource pool.
...
Use tg count in resource pool for further reference.
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:36 -05:00
SivapiriyanKumarasamy
05133ac856
drm/amd/display: Synchronize update plane addr for freesync
...
Lock top_pipe when doing update plane addr for split pipe freesync case
Signed-off-by: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:36 -05:00
Harry Wentland
9182b4cb44
drm/amd/display: Call update_stream_signal directly from amdgpu_dm
...
There's no good place in DC to cover all place where stream signal should
be updated. update_stream_signal depends on timing which comes from DM.
Signed-off-by: Harry Wentland <harry.wentland@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:35 -05:00
Leo (Sunpeng) Li
d1bd7d61bc
drm/amd/display: Early return on crc get
...
If crc is disabled, early return when getting crc's. That way, we avoid
reading extra registers within the pflip high irq.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com >
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:34 -05:00
Yongqiang Sun
ff1374c94b
drm/amd/display: Move output_tf to stream_state/update
...
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:34 -05:00
Ken Chalmers
b339743b89
drm/amd/display: Remove unused param in DML
...
Signed-off-by: Ken Chalmers <ken.chalmers@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:33 -05:00
Duke Du
3aa0caddf6
drm/amd/display: Update the register GRPH_SWAP_CNTL if surface pixel format changed.
...
Signed-off-by: Duke Du <Duke.Du@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:33 -05:00
Harry Wentland
a27267e01f
drm/amd/display: dc: Remove unused display_mode_vba.c
...
We're currently not using this.
v2: More files and includes to remove.
Signed-off-by: Harry Wentland <harry.wentland@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:32 -05:00
Alex Deucher
f75a9a5d6c
drm/amdgpu/soc15: don't abuse IP soft reset for adapter reset
...
The IP soft reset interface is for per IP reset but it was
being abused for adapter reset on soc15 asics. Adjust the
interface to make it explicit.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:31 -05:00
Alex Deucher
e7f9ccb437
drm/amdgpu/psp: use a function pointer structure
...
This way we can make all of the IP specific functions static,
and we only need a single entry point into the PSP IP modules.
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:31 -05:00
Christian König
97745f6852
drm/amdgpu: consistently use AMDGPU_CSA_VADDR
...
Instead of repeating this multiple times.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Monk Liu <monk.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:30 -05:00
Christian König
a3e9a15a25
drm/amdgpu: apply top reserved VA space to pre Vega10 as well
...
Reserve VA space at the top for older generations as well.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Monk Liu <monk.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:30 -05:00
Christian König
18d09e63e0
drm/amdgpu: reduce reserved VA size
...
1MB should be more than enough, currently we use about 8K.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Acked-by: Monk Liu <monk.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:29 -05:00
Samuel Li
734dd01d56
drm/amdgpu: rename amdgpu_crtc_idx_to_irq_type
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:29 -05:00
Samuel Li
aa8e286a8a
drm/amdgpu: rename amdgpu_get_crtc_scanoutpos
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:28 -05:00
Samuel Li
0c16443a1b
drm/amdgpu: rename amdgpu_crtc_scaling_mode_fixup
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:27 -05:00
Samuel Li
166140fb24
drm/amdgpu: rename amdgpu_update_display_priority
...
Rename as amdgpu_display_update_priority for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:27 -05:00
Samuel Li
3dc9b1ce80
drm/amdgpu: rename amdgpu_modeset_create_props
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:26 -05:00
Samuel Li
4d4772f6ab
drm/amdgpu: rename amdgpu_user_framebuffer_create
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:26 -05:00
Samuel Li
9da3f2d934
drm/amdgpu: rename amdgpu_framebuffer_init
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:25 -05:00
Samuel Li
e0b5b5ec0b
drm/amdgpu: rename amdgpu_ddc_probe
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:24 -05:00
Samuel Li
50af9193b3
drm/amdgpu: rename amdgpu_print_display_setup
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:24 -05:00
Samuel Li
775a836425
drm/amdgpu: rename amdgpu_crtc_set_config
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:23 -05:00
Samuel Li
0cd1193236
drm/amdgpu: rename amdgpu_crtc_page_flip_target
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:23 -05:00
Samuel Li
3a05dc000a
drm/amdgpu: rename static functions in amdgpu_display.c
...
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@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 >
2018-02-19 14:18:22 -05:00
Christian König
2ee150cda7
drm/amdgpu: remove now superflous *_hdp operation
...
All HDP invalidation and most flush can now be replaced by the generic
ASIC function.
Signed-off-by: Christian König <christian.koenig@amd.com >
Acked-by: Chunming Zhou <david1.zhou@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-02-19 14:18:22 -05:00