drm/amdgpu/display: fix build error casused by CONFIG_DRM_AMD_DC_DCN2_1
Subsystems (3)
PATCH 1/1 drm/amdgpu/display: fix build error casused by CONFIG_DRM_AMD_DC_DCN2_1
when CONFIG_DRM_AMD_DC_DCN2_1 is not enable in .config, there is build error. struct dpm_clocks shoud not be guarded.
--- drivers/gpu/drm/amd/display/dc/dm_pp_smu.h | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dm_pp_smu.h +0 -3
@@ -249,8 +249,6 @@ struct pp_smu_funcs_nv { };#endif -#if defined(CONFIG_DRM_AMD_DC_DCN2_1 ) -#define PP_SMU_NUM_SOCCLK_DPM_LEVELS 8#define PP_SMU_NUM_DCFCLK_DPM_LEVELS 8#define PP_SMU_NUM_FCLK_DPM_LEVELS 4
@@ -288,7 +286,6 @@ struct pp_smu_funcs_rn {enum pp_smu_status (*get_dpm_clock_table) (struct pp_smu *pp,struct dpm_clocks *clock_table); }; -#endif struct pp_smu_funcs {struct pp_smu ctx;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 23 lines · Hersen Wu
when
CONFIG_DRM_AMD_DC_DCN2_1is not enable in .config, there is build error. structdpm_clocksshoud not be guarded.Signed-off-by Hersen Wu <[email protected]>--- drivers/gpu/drm/amd/display/dc/dm_pp_smu.h | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/display/dc/dm_pp_smu.h +0
-2@@ -249,8 +249,6 @@ struct pp_smu_funcs_nv { };#endif -#if defined(CONFIG_DRM_AMD_DC_DCN2_1 ) -#define PP_SMU_NUM_SOCCLK_DPM_LEVELS 8#define PP_SMU_NUM_DCFCLK_DPM_LEVELS 8#define PP_SMU_NUM_FCLK_DPM_LEVELS 4
drivers/gpu/drm/amd/display/dc/dm_pp_smu.h struct pp_smu_funcs_rn { · line 291
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dm_pp_smu.h +0
-1@@ -288,7 +286,6 @@ struct pp_smu_funcs_rn {enum pp_smu_status (*get_dpm_clock_table) (struct pp_smu *pp,struct dpm_clocks *clock_table); }; -#endif struct pp_smu_funcs {struct pp_smu ctx;
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
BTW, would you help clarify why PP_SMU_NUM_DCFCLK_DPM_LEVELS is different from the smu12_driver_if.h define NUM_DCFCLK_DPM_LEVELS in you other patch about drm/amdgpu/powerplay: add renoir funcs to support dc.
Is there can track the macro definition update ?
Thanks,
Prike
Quoted 42 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Hersen Wu
Sent: Wednesday, October 16, 2019 12:51 AM
To: [email protected]; [email protected]
Cc: Li, Sun peng (Leo) <[email protected]>; Lakha, Bhawanpreet <[email protected]>; Wentland, Harry <[email protected]>; Wu, Hersen <[email protected]>
Subject: [PATCH] drm/amdgpu/display: fix build error casused byCONFIG_DRM_AMD_DC_DCN2_1when
CONFIG_DRM_AMD_DC_DCN2_1is not enable in .config, there is build error. structdpm_clocksshoud not be guarded.Signed-off-by Hersen Wu <[email protected]>--- drivers/gpu/drm/amd/display/dc/dm_pp_smu.h | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/display/dc/dm_pp_smu.h +0
-2@@ -249,8 +249,6 @@ struct pp_smu_funcs_nv { }; #endif -#if defined(CONFIG_DRM_AMD_DC_DCN2_1 ) -#define PP_SMU_NUM_SOCCLK_DPM_LEVELS 8 #define
PP_SMU_NUM_DCFCLK_DPM_LEVELS8
#definePP_SMU_NUM_FCLK_DPM_LEVELS4drivers/gpu/drm/amd/display/dc/dm_pp_smu.h +0
-2@@ -288,7 +286,6 @@ struct pp_smu_funcs_rn {enum pp_smu_status (*get_dpm_clock_table) (struct pp_smu *pp,struct dpm_clocks *clock_table); }; -#endif struct pp_smu_funcs {struct pp_smu ctx; --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel