Skip to contentSkip to conversation

drm/amdgpu/display: fix build error casused by CONFIG_DRM_AMD_DC_DCN2_1

PATCH In review Hersen Wu 3 participants 3 messages Oct 15, 2019 – Oct 16, 2019

Subsystems (3)
lore
Share & tools
lore

Hersen Wu

author
#0 lore raw

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
index 24d65dbbd749..ef7df9ef6d7e 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Hersen Wu

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 -2
index 24d65dbbd749..ef7df9ef6d7e 100644
@@ -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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Hersen Wu

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 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 -2
index 24d65dbbd749..ef7df9ef6d7e 100644
@@ -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 +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