Am 24.01.19 um 18:56 schrieb Wentland, Harry:
>
> On 2019-01-24 12:41 p.m., Christian König wrote:
>> Am 24.01.19 um 18:06 schrieb Nicholas Kazlauskas:
>>> [Why]
>>> It's useful to know the min and max vrr range for IGT testing.
>>>
>>> [How]
>>> Expose the min and max vfreq for the connector via a
Am 25.01.19 um 08:42 schrieb Sedat Dilek:
> [ CC Nick D. ]
>
> Hi Christian,
>
> Nick has posted a fix in [2].
> Is that OK for you?
I've seen that and yeah I'm perfectly fine with it, but Harry is the one
who needs to decide.
Christian.
>
> I have also added the Link [1] in the ClangBuiltLinux
On Thu, 24 Jan 2019 at 15:01, Alex Deucher wrote:
>
> On Thu, Jan 24, 2019 at 9:00 AM Ard Biesheuvel
> wrote:
> >
> > On Thu, 24 Jan 2019 at 13:31, Koenig, Christian
> > wrote:
> > >
> > > Am 24.01.19 um 13:06 schrieb Ard Biesheuvel:
> > > > The DRM driver stack is designed to work with cache co
[ CC Nick D. ]
Hi Christian,
Nick has posted a fix in [2].
Is that OK for you?
I have also added the Link [1] in the ClangBuiltLinux issue tracker.
Regards,
- Sedat -
[1] https://github.com/ClangBuiltLinux/linux/issues/327
[2] https://lkml.org/lkml/2019/1/24/1376
On Mon, Oct 22, 2018 at 10:42
https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/merge_requests/24
Thanks in advance for taking a look!
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_
This patch adds firmware loading interface for smu.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 6 ++
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 ++
3 files changed, 15 insertions(+)
diff -
This patch add smu11 sub ip block skeleton as placeholder
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/Makefile | 2 +-
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 20
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 2 ++
drivers/gpu/drm/amd/powerplay/i
Hi all,
The series of patches are to implement a new SW SMU driver for future asics.
Background:
The powerplay driver will be retired. The final version is for vega20 with
SMU11. However, the future asic will use the new swSMU framework to implement as
well. Here is the first version of new sw sm
This patch adds placeholder of smu_initialize_pptable for smu.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
b/drivers/gpu/drm/amd/powerplay/amdgpu
This patch adds fw load checking interface for smu.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 6 ++
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 7 +++
3 files changed, 16 insertions(+)
diff
This patch adds interface to write pptable for smu.
It's to copy pptable bo in the vram to smc with SMU MSGs such as
SetDriverDramAddr and TransferTableDram2Smu.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 8 +
This patch adds interface to parse pptable for smu.
It's to parse pptable format and fill PPTable_t smc_pptable to smu_table_context
structure. And read the smc_dpm_table from vbios, then fill it into smc_pptable.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
driv
This patch add amdgpu_smu ip block skeleton as placeholder.
We plan use new smu ip block from Vega20.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 4 +
drivers/gpu/drm/amd/powerplay/Makefile | 2 +-
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 166
This patch adds interface to init smc tables for smu. It is to create smu_table
structure, and init smc tables such as TABLE_PPTABLE, TABLE_WATERMARKS,
TABLE_SMU_METRICS, and etc.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_s
This patch adds interface to get vbios bootup values for smu.
It's to get boot_values from vbios to set revision, gfxclk, and etc.
v2: add detailed info to describe this function.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 5 +
drivers/gpu/drm/amd/powerpla
This patch adds interface to populate smc pptable for smu.
It's to set initialized values (get from vbios) to dpm tables context such as
gfxclk, memclk, dcefclk, and etc. And enable the DPM feature for each type of
clks.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
--
This patch adds interface to read pptable from vbios for smu.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 19 ++-
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/
This patchs move get_index_into_master_table macro into atomfirmware header for
future use on smu.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 2 --
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h | 2 ++
2 files changed, 2 insertions
From: Kevin Wang
Add function of check firmware status funtions for smu11
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 11 +++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 13 -
2 files changed, 23 insertions(+), 1
This patch adds resume sequence placeholder for smu ip block.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 39 +-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
b/drivers/gpu/drm/a
This header will be used for smc message handling.
v2: add a license to the top of the header file (Alex)
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
.../gpu/drm/amd/powerplay/inc/smu_v11_0_ppsmc.h| 128 +
drivers/gpu/drm/amd/powerplay/smu_v11_0.c |
This patch adds interface to set min dcef deep sleep for smu.
It's to set min deep sleep dce fclk with bootup value from vbios via
SetMinDeepSleepDcefclk MSG.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 8
This patch adds smu table context.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
ind
This patch adds interface to notify memory pool location for smu.
It's to use msg SetSystemVirtualDramAddr and DramLogSetDramAddr can notify pool
location.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 8
d
From: Kevin Wang
This patch implements smu dpm context functions for smu v11.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 6
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 26 ++
drivers/gpu/drm/amd/powerplay/sm
This patch adds get atom data table helper for smu future use.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 17 +
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 4
2 files changed, 21 insertions(+)
diff --git a/dr
This patch adds interface to check fw version for smu.
It's to send msg GetDriverIfVersion to check if the return value is equal with
DRIVER_IF_VERSION of smc header.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 8
This patch adds interface to init fb allocations for smu.
It's to allocate vram bos to store smc table contents.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 13 +
1 file changed, 13 insertions(+)
diff --g
From: Likun Gao
Add function of init mircrocode for smu11.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 47 ++-
1 file changed, 46 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.
SMU resume needs three more interfaces such as write_watermarks_table,
set_last_dcef_min_deep_sleep_clk, and system_features_control.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/power
This patch adds interface to allocate memory pool for smu.
This memory pool will be used for SMC use and msg SetSystemVirtualDramAddr and
DramLogSetDramAddr can notify it changed.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_s
This patch adds interface to init power function for smu.
It's to create smu_power_context structure, and allocate smu_dpm_context and
context size to fill the smu_power_context data.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdg
Switch to new smu ip block since vega20.
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c
b/drivers/gpu/drm/amd/amdgpu/soc15.c
index dd81721..0e60496 100644
--- a/drive
This patch adds interface to check pptable function for smu.
It's to check if the format_revision in vbios is up to pptable header version,
and the structure size is not 0.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
This patch adds the pptable header for smu11.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
.../gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h | 147 +
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 1 +
2 files changed, 148 insertions(+)
create mode 100644 d
From: Kevin Wang
Each SMU IP may have a different number of SMU tables, so these tables
are allocated using dynamic memory
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 21 +
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 2
This patch updates atomfirmware header on smu11 for future use.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
Reviewed-by: Alex Deucher
---
drivers/gpu/drm/amd/include/atomfirmware.h | 44 +-
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 1 +
2 files changed, 38
From: Kevin Wang
different ASICs have different pptables, so the header will move
to asic source code to implement.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/
This patch adds interface to set tool table location for smu.
Set PMSTATUSLOG table bo address with SetToolsDramAddr MSG for tools.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 7 ++-
drivers/gpu/drm/amd/powerp
This patch updates new members for fields to meet new atomfirmware header.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomf
This patch implements the function of read_pptable_from_vbios for smu11.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
b/drive
From: Kevin Wang
Add function of smu send message for smu11
v2: fix the missing ) in define of smu_send_smc_msg_with_param
v3: Use adev usec timeout for smu as well, the origin time 10 us is not enough.
(Ray)
Signed-off-by: Huang Rui
Signed-off-by: Likun Gao
Signed-off-by: Kevin Wang
Review
From: Kevin Wang
Add function of check firmware version for smu11
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 29 +
1 file changed, 29 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
b/driv
From: Likun Gao
Add smu_v11_0_set_min_dcef_deep_sleep function for smu11.
v2: fix coding error about set_min_dcef_deep_sleep (Kevin)
Signed-off-by: Kevin Wang
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 18
From: Kevin Wang
This patch implements smu_init[fini]_power function for smu v11.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 6 +
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 9 +++
drivers/gpu/drm/amd/powerplay/inc/smu_
This patch updates pptable header for smu v11.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
.../gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h | 30 +++---
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable
From: Likun Gao
Add smu_v11_0_set_tool_table_location function for smu11.
v2: fix the missed TABLE_PMSTATUSLOG bo creation which caused AGM hung. (Ray)
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 23
From: Likun Gao
Release memory of table_context->driver_pptable and
table_context->ppt_information when smu hw fini.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 5 +
1 file changed, 5 insertions(+)
diff --git a
From: Kevin Wang
This patch implements smu_alloc[free]_memory pool function to reserve the memory
pool bo.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 55 +-
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 11 +
From: Likun Gao
Add smu_v11_0_parse_pptable function for smu11.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 20
drivers/gpu/drm/amd/p
This patch adds the vega20_ppt.c to support ATOM_Vega20_POWERPLAYTABLE format
for vega20 on smu11. It will be used to implement to asic specific pptable
helpers.
Signed-off-by: Huang Rui
Reviewed-by: Likun Gao
---
drivers/gpu/drm/amd/powerplay/Makefile | 2 +-
drivers/gpu/drm/amd/power
From: Likun Gao
Add smu_v11_0_check_pptable function for smu11.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 9 +
drivers/gpu/drm/amd/powerplay/ve
This patch implements the get_clk_info_from_vbios function for smu11.
We can do execute_vbios_cmd_table to fetch the clk value from vbios.
v2: use the proper cpu_to_le[32|16]() and le[32|16]_to_cpu() macros to handle
endianness. (Alex)
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drive
From: Kevin Wang
This patch implements the notify_memory_pool_location function to send memory
address to smc for dram logging.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 47 +++
1 file changed, 47 insertions(+)
From: Kevin Wang
This patch implements smu_init_fb_allocations/smu_fini_fb_allocations function
for smu to reserve the BOs for smc tables.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 60 +-
1 file changed, 59 in
This patch adds data structures for bootup values.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 16
1 file changed, 16 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
b/drivers/gpu/drm/amd/powe
This patch implements get_vbios_bootup_values function for smu11 to fetach
firmwareinfo member from atombios.
v2: use switch statement based on the content revision (Alex)
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 59 ++
From: Kevin Wang
Using virtual msg index is able to support all ASIC specific message values on
one smu upper layer.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 16
1 file changed, 12 insertions(+), 4 deletions(-)
diff --g
From: Likun Gao
Add smu_v11_0_populate_smc_pptable function for smu11.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 42 +++
1 file changed, 42 insertions(+)
diff --git a/drivers/gpu/drm/am
From: Likun Gao
Add smu_v11_0_write_pptable and smu_v11_0_copy_table_to_smc function for smu11.
v2: fix the build warning. (Ray)
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 60 +++
1 file
From: Likun Gao
Expose the function of smu_read_smc_arg to get argument value from SMU11.
Signed-off-by: Likun Gao
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 ++-
2 files changed, 5 insertions(+), 1 de
It needs to add append_powerplay_table function to program the smc_dpm_table for
PPTable_t.
Signed-off-by: Huang Rui
Acked-by: Alex Deucher
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 4 ++
drivers/gpu/drm
From: Kevin Wang
Add smu_init_display function to send msg to smc to init display.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Ray
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 4
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
From: Kevin Wang
Add smu_run_afll_btc function to send msg to smc to start run afll btc.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 6 ++
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/powerplay/vega20
From: Likun Gao
Change the allocate method of dpm context as dpm_table is different bewteen
vega20 and smu11.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 ++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 7 +---
drivers/gpu/drm/a
From: Likun Gao
Add function of smu_v11_0_set_thermal_fan_table to set fan table for
smu11.
Signed-off-by: Likun Gao
Acked-by: Alex Deucher
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/a
From: Likun Gao
Add vega20_populate_umd_state_clk function to set pstate_sclk and pstate_mclk.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 6 ++
drivers/gpu/drm/amd/powerpla
From: Kevin Wang
add smu_notify_display_change function to send msg to smc to notify
display is changed.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/
This patch adds get_max_sustainable_clock function for smu11.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 9 ++
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 4 +
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 8 ++
drivers/gp
From: Kevin Wang
add smu feature operation function helper to deal with smu feature
bitmap.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 37 ++
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 5
2 files ch
From: Kevin Wang
This patch implements get_current_clk_freq for smu11 future use.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +++
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 24
2 files changed, 27 ins
From: Kevin Wang
This patch is to setup a common SMU_MSGs for smu11. We can support common MSG
definitions for each asics under smu11.
v2: move smu_v11_0_ppsmc.h to xxx_ppt.c level, because it depends on specific
asic.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/
From: Kevin Wang
add interface amdgpu_get_busy_percent for smu11
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c| 7 ++-
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h| 5 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 62 +
From: Kevin Wang
This patch implements smu vega20_message_map to map the PPSMC messages from
smu11 to specific asic.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 4 +
drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 101 ++
From: Likun Gao
Add function to enable thermal alerts on thermal control for smu11.
Signed-off-by: Likun Gao
Acked-by: Alex Deucher
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/gpu/drm/amd/pow
From: Kevin Wang
each asic with different message index,
add this header to help top level smu code to send message.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 89 ++
1 file changed, 89 insertions(+)
diff --gi
From: Kevin Wang
each ip will support different smu feature,
the driver use bitmap to management this feature.
bitmap:
-allowed: sw driver to enable & disable some feature when driver init.
-suppored: the feature is supproed.
-enabled: the feature is enabled.
Signed-off-by: Kevin Wang
Reviewed
From: Likun Gao
Add smu_set_default_dpm_table function to set dpm table for smu11.
Modified the sequence to populate smc pptable, as it should be done after
related dpm feature is enabled.
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 18
From: Kevin Wang
sometime, the driver need changed table data between driver and smu.
this function can help update table data
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 30 ++
drivers/gpu/drm/amd/powerplay/inc
From: Likun Gao
Add function to print current levels for smu11.
v2: expose get_current_clk_freq for smu v11. (Kevin)
Signed-off-by: Likun Gao
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 9 ++-
drivers/gpu/drm/amd/powerplay/inc/amdgp
From: Kevin Wang
add this helper to check new sw-smu support.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +-
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 23
From: Likun Gao
Add function to start thermal control for smu11 when smu hw_init.
Signed-off-by: Likun Gao
Acked-by: Alex Deucher
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 4
drivers/gpu/drm/amd
From: Likun Gao
Add the function to get the min and max thermal value for vega20 with
smu11 architecture.
Signed-off-by: Likun Gao
Acked-by: Alex Deucher
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 1 +
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 12
From: Likun Gao
Add the function to set the correct min and max thermal value for smu11
Signed-off-by: Likun Gao
Acked-by: Alex Deucher
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 32 +++
1 file changed, 32 insertions(+)
diff --git a/dr
From: Kevin Wang
add pp_table sysfs interface for new sw-smu.
get: return pptable raw data
set: write pptable raw data to pptable, then reset smu (hw_fini -> hw_init)
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 14 -
drivers/gpu/dr
From: Likun Gao
Add smu_v11_0_get_power_limit function to get power limit vaule.
v2: update "set" to "get", it only implements "get" behavior. (Alex)
Signed-off-by: Likun Gao
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4
drivers/gpu/drm/amd/powerplay/in
From: Likun Gao
Add function to set sclk or mclk level for smu11.
Signed-off-by: Likun Gao
Reviewed-by: Evan Quan
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 8 ++-
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 +
drivers/gpu/drm/amd/powerplay/vega20_pp
This patch adds two interfaces to set_active_display_count and store_cc6_data,
they won't be used for smu11, and just be the placeholders for future asic on
display to smu interface.
Signed-off-by: Huang Rui
Reviewed-by: Evan Quan
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/a
From: Kevin Wang
add sensor interface of feature mask for debugfs.
this interface is not ip related function, so need move high level
file to implement (amdgpu_smu)
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
Reviewed-by: Evan Quan
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 21
From: Likun Gao
Add function to support gfx_clk and mem_clk upload min and max dpm level for
smu11.
Signed-off-by: Likun Gao
Reviewed-by: Evan Quan
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 72 ++
1 file changed, 72 insertions(+)
di
From: Kevin Wang
add sensor interface of SCLK and MCKL for sys interface and hwmon.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
Reviewed-by: Evan Quan
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/
From: Kevin Wang
add sensor interface of thermal temperature for debugfs and hwmon.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
Reviewed-by: Evan Quan
---
drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 26 ++
drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 1 +
drive
From: Kevin Wang
the SMU v11 doesn’t support pp_force_state so far, so we didn’t implement
it.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
b/drivers/gp
From: Kevin Wang
add function smu_get_power_num_state function for sw-smu.
it's only for sysfs interface, the power state feature is not ready for sw-smu.
Signed-off-by: Kevin Wang
Reviewed-by: Huang Rui
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 7 ++-
drivers/gpu/drm/amd/powe
This patch adds interface to get max high clocks for display and in smu v11
didn't have this implementation.
Signed-off-by: Huang Rui
Reviewed-by: Evan Quan
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 7 +++
drivers/gpu/drm/amd/powerplay/inc/amdgp
This patch adds interface to get dal power level for display and in smu v11
didn't have this implementation.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/
This patch adds inteface to get clock by type with voltage, display will use it
to get current clocks with voltage.
Signed-off-by: Huang Rui
Reviewed-by: Alex Deucher
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 20 +---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu
This patch adds interface to request display clock voltage, display will use it
to request current display clock voltage.
Signed-off-by: Huang Rui
Reviewed-by: Alex Deucher
Reviewed-by: Evan Quan
---
.../drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 17 ++---
drivers/gpu/drm/amd/powerpl
This patch adds interface to get performance level for display and in smu v11
didn't have this implementation.
Signed-off-by: Huang Rui
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 19 +++
1 file changed, 19 insertions(+)
diff --git a/drivers/gpu
This patch adds get_clock_by_type interface for display, in smu v11 didn't have
the implementation.
Signed-off-by: Huang Rui
Reviewed-by: Evan Quan
Reviewed-by: Kevin Wang
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 6 ++
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
1 - 100 of 160 matches
Mail list logo