drm/amd/pp: Replace files name rv_* with smu10_*
Subsystems (2)
PATCH 1/4 drm/amd/pp: Replace files name rv_* with smu10_*
Powerplay is for the hw ip smu, for RV, smu10 is used, so use smu10 as the prefix of the files name.
--- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 1075 ------------------- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h | 322 ------ drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1076 ++++++++++++++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h | 322 ++++++ drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c | 399 -------- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h | 61 -- .../gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c | 399 ++++++++ .../gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h | 61 ++ 10 files changed, 1860 insertions(+), 1859 deletions(-) delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile +1 -1
@@ -30,7 +30,7 @@ HARDWARE_MGR = hwmgr.o processpptables.o \ smu7_hwmgr.o smu7_powertune.o smu7_thermal.o \ smu7_clockpowergating.o \ vega10_processpptables.o vega10_hwmgr.o vega10_powertune.o \ - vega10_thermal.o rv_hwmgr.o pp_psm.o\ + vega10_thermal.o smu10_hwmgr.o pp_psm.o\ pp_overdriver.o AMD_PP_HWMGR = $(addprefix $(AMD_PP_PATH)/hwmgr/,$(HARDWARE_MGR))
drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c deleted +0 -1075
1,075 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h deleted +0 -322
322 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c new file +1076 -0
1,076 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h new file +322 -0
322 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/Makefile +1 -1
@@ -25,7 +25,7 @@ SMU_MGR = smumgr.o cz_smumgr.o tonga_smumgr.o fiji_smumgr.o \ polaris10_smumgr.o iceland_smumgr.o \ - smu7_smumgr.o vega10_smumgr.o rv_smumgr.o ci_smumgr.o + smu7_smumgr.o vega10_smumgr.o smu10_smumgr.o ci_smumgr.o AMD_PP_SMUMGR = $(addprefix $(AMD_PP_PATH)/smumgr/,$(SMU_MGR))
drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c deleted +0 -399
189 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h deleted +0 -61
61 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c new file +399 -0
399 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h new file +61 -0
61 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Part of the diff is not shown here. View the raw message.
A message that is not in the archive (sent off-list or not yet received): 1520331047-10759-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
PATCH 3/4 drm/amd/pp: Replace files name cz_* with smu8_*
Powerplay is for the hw ip smu, smu8 was used on CZ/ST, so use smu8 as the prefix of the files name.
Change-Id: I758b6d32aef5b6d2c72c9f3de5811c70945f073b
--- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +- .../drm/amd/powerplay/hwmgr/cz_clockpowergating.c | 209 --- .../drm/amd/powerplay/hwmgr/cz_clockpowergating.h | 36 - drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 1886 -------------------- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.h | 322 ---- .../amd/powerplay/hwmgr/smu8_clockpowergating.c | 209 +++ .../amd/powerplay/hwmgr/smu8_clockpowergating.h | 36 + drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c | 1886 ++++++++++++++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.h | 322 ++++ drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.c | 883 --------- drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.h | 99 - drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 883 +++++++++ drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h | 99 + 14 files changed, 3438 insertions(+), 3438 deletions(-) delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_clockpowergating.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_clockpowergating.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.h delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile +2 -2
@@ -24,8 +24,8 @@ # It provides the hardware management services for the driver. HARDWARE_MGR = hwmgr.o processpptables.o \ - hardwaremanager.o cz_hwmgr.o \ - cz_clockpowergating.o pppcielanes.o\ + hardwaremanager.o smu8_hwmgr.o \ + smu8_clockpowergating.o pppcielanes.o\ process_pptables_v1_0.o ppatomctrl.o ppatomfwctrl.o \ smu7_hwmgr.o smu7_powertune.o smu7_thermal.o \ smu7_clockpowergating.o \
drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c deleted +0 -209
209 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h deleted +0 -36
@@ -1,36 +0,0 @@ -/* -* Copyright 2015 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. -* -*/ - -#ifndef _CZ_CLOCK_POWER_GATING_H_ -#define _CZ_CLOCK_POWER_GATING_H_ - -#include "cz_hwmgr.h" -#include "pp_asicblocks.h" - -extern int cz_phm_set_asic_block_gating (struct pp_hwmgr *hwmgr,enum PHM_AsicBlock block,enum PHM_ClockGateSetting gating); -extern const struct phm_master_table_header cz_phm_enable_clock_power_gatings_master; -extern void cz_dpm_powergate_vce (struct pp_hwmgr *hwmgr,bool bgate); -extern void cz_dpm_powergate_uvd (struct pp_hwmgr *hwmgr,bool bgate); -extern int cz_enable_disable_vce_dpm (struct pp_hwmgr *hwmgr,bool enable); -extern int cz_enable_disable_uvd_dpm (struct pp_hwmgr *hwmgr,bool enable); -#endif /* _CZ_CLOCK_POWER_GATING_H_ */
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c deleted +0 -1886
1,886 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.h deleted +0 -322
322 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_clockpowergating.c new file +209 -0
209 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_clockpowergating.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* Copyright 2015 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +*/ + +#ifndef _CZ_CLOCK_POWER_GATING_H_ +#define _CZ_CLOCK_POWER_GATING_H_ + +#include "smu8_hwmgr.h" +#include "pp_asicblocks.h" + +extern int cz_phm_set_asic_block_gating (struct pp_hwmgr *hwmgr,enum PHM_AsicBlock block,enum PHM_ClockGateSetting gating); +extern const struct phm_master_table_header cz_phm_enable_clock_power_gatings_master; +extern void cz_dpm_powergate_vce (struct pp_hwmgr *hwmgr,bool bgate); +extern void cz_dpm_powergate_uvd (struct pp_hwmgr *hwmgr,bool bgate); +extern int cz_enable_disable_vce_dpm (struct pp_hwmgr *hwmgr,bool enable); +extern int cz_enable_disable_uvd_dpm (struct pp_hwmgr *hwmgr,bool enable); +#endif /* _CZ_CLOCK_POWER_GATING_H_ */
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c new file +1886 -0
292 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.h new file +322 -0
322 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/Makefile +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.c deleted +0 -883
883 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.h deleted +0 -99
99 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c new file +883 -0
883 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h new file +99 -0
99 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Part of the diff is not shown here. View the raw message.
Quoted 17 lines · Rex Zhu
Powerplay is for the hw ip smu, for RV, smu10 is used, so use smu10 as the prefix of the files name.
Change-Id Icf9c8a9d4b5deccd4fbfb9ecfab443db79934c77Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 1075 ------------------- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h | 322 ------ drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1076 ++++++++++++++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h | 322 ++++++ drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c | 399 -------- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h | 61 -- .../gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c | 399 ++++++++ .../gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h | 61 ++ 10 files changed, 1860 insertions(+), 1859 deletions(-)
Quoted 8 lines
delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h
I'm ok with patches 1-3, although I think we should work on renaming the functions eventually too to match the file names. For patch 4, I think we should stick with the asic names. The smu7 variants are too confusing. I can't remember if CI was 7.0.1 or 7.0.2, etc. I'd prefer to align the file names to the smu interface headers (e.g., smu7, smu71, smu72, smu73, smu74). BTW, did you use git mv to generate these patches?
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CADnq5_MiPCNrXnm3Ro9r4wW25HLar=13BhC5hxq+yMPK-hi7gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 2 lines
For patch 4, I think we should stick with the asic names. The smu7 variants are too confusing. I can't remember if CI was 7.0.1 or 7.0.2, etc. I'd prefer to align the file names to the smu interface headers (e.g., smu7, smu71, smu72, smu73, smu74).
Rex: For patch4, I am ok with the asic names for smu7. So I will drop this patch.
Quoted 1 line
BTW, did you use git mv to generate these patches?
Rex: No, I just rename the file name and git add -A, then the git status show file rename.
Best Regards
Rex
-----Original Message-----
From: Alex Deucher [mailto:[email protected]]
Sent: Wednesday, March 07, 2018 12:42 AM
To: Zhu, Rex
Cc: amd-gfx list
Subject: Re: [PATCH 1/4] drm/amd/pp: Replace files name rv_* with smu10_*
Quoted 26 lines · Rex Zhu
Powerplay is for the hw ip smu, for RV, smu10 is used, so use smu10 as the prefix of the files name.
Change-Id Icf9c8a9d4b5deccd4fbfb9ecfab443db79934c77Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 1075 ------------------- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h | 322 ------ drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1076 ++++++++++++++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h | 322 ++++++ drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c | 399 -------- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h | 61 -- .../gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c | 399 ++++++++ .../gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h | 61 ++ 10 files changed, 1860 insertions(+), 1859 deletions(-) delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c delete mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c create mode 100644
Quoted 1 line
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h
I'm ok with patches 1-3, although I think we should work on renaming the functions eventually too to match the file names. For patch 4, I think we should stick with the asic names. The smu7 variants are too confusing. I can't remember if CI was 7.0.1 or 7.0.2, etc. I'd prefer to align the file names to the smu interface headers (e.g., smu7, smu71, smu72, smu73, smu74). BTW, did you use git mv to generate these patches?
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx