Hi Vinay, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-tip/drm-tip] [cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm/drm-next v5.13 next-20210709] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Vinay-Belgaumkar/Enable-GuC-based-power-management-features/20210710-092520 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/ce93ba218ad070e0b1ae6f9823820fb4d2e14a8b git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Vinay-Belgaumkar/Enable-GuC-based-power-management-features/20210710-092520 git checkout ce93ba218ad070e0b1ae6f9823820fb4d2e14a8b # save the attached .config to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c:258: warning: expecting prototype for intel_guc_slpc_max_freq_set(). Prototype was for intel_guc_slpc_set_max_freq() instead >> drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c:292: warning: expecting prototype for intel_guc_slpc_min_freq_set(). Prototype was for intel_guc_slpc_set_min_freq() instead vim +258 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c 246 247 /** 248 * intel_guc_slpc_max_freq_set() - Set max frequency limit for SLPC. 249 * @slpc: pointer to intel_guc_slpc. 250 * @val: encoded frequency 251 * 252 * This function will invoke GuC SLPC action to update the max frequency 253 * limit for slice and unslice. 254 * 255 * Return: 0 on success, non-zero error code on failure. 256 */ 257 int intel_guc_slpc_set_max_freq(struct intel_guc_slpc *slpc, u32 val) > 258 { 259 int ret; 260 struct drm_i915_private *i915 = slpc_to_i915(slpc); 261 intel_wakeref_t wakeref; 262 263 wakeref = intel_runtime_pm_get(&i915->runtime_pm); 264 265 ret = slpc_set_param(slpc, 266 SLPC_PARAM_GLOBAL_MAX_GT_UNSLICE_FREQ_MHZ, 267 val); 268 269 if (ret) { 270 drm_err(&i915->drm, 271 "Set max frequency unslice returned %d", ret); 272 ret = -EIO; 273 goto done; 274 } 275 276 done: 277 intel_runtime_pm_put(&i915->runtime_pm, wakeref); 278 return ret; 279 } 280 281 /** 282 * intel_guc_slpc_min_freq_set() - Set min frequency limit for SLPC. 283 * @slpc: pointer to intel_guc_slpc. 284 * @val: encoded frequency 285 * 286 * This function will invoke GuC SLPC action to update the min frequency 287 * limit. 288 * 289 * Return: 0 on success, non-zero error code on failure. 290 */ 291 int intel_guc_slpc_set_min_freq(struct intel_guc_slpc *slpc, u32 val) > 292 { 293 int ret; 294 struct intel_guc *guc = slpc_to_guc(slpc); 295 struct drm_i915_private *i915 = guc_to_gt(guc)->i915; 296 intel_wakeref_t wakeref; 297 298 wakeref = intel_runtime_pm_get(&i915->runtime_pm); 299 300 ret = slpc_set_param(slpc, 301 SLPC_PARAM_GLOBAL_MIN_GT_UNSLICE_FREQ_MHZ, 302 val); 303 if (ret) { 304 drm_err(&i915->drm, 305 "Set min frequency for unslice returned %d", ret); 306 ret = -EIO; 307 goto done; 308 } 309 310 done: 311 intel_runtime_pm_put(&i915->runtime_pm, wakeref); 312 return ret; 313 } 314 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip