Content-Type: multipart/mixed; boundary="===============3849904919974869780==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/pmu: Use existing uncore helper to read gpm_timestamp Date: Thu, 27 Jan 2022 11:23:39 +0800 Message-ID: <202201271109.UuklsWk3-lkp@intel.com> In-Reply-To: <20220127001529.978596-2-umesh.nerlige.ramappa@intel.com> List-Id: --===============3849904919974869780== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Umesh, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-tip/drm-tip] [cannot apply to linus/master drm-intel/for-linux-next v5.17-rc1 next-20220= 125] [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/Umesh-Nerlige-Ramappa/drm-= i915-pmu-Fix-KMD-and-GuC-race-on-accessing-busyness/20220127-081651 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: i386-randconfig-m021-20220124 (https://download.01.org/0day-ci/arch= ive/20220127/202201271109.UuklsWk3-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/2d74f201eae0c9ec06e6dc84b= 363089c0f190058 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Umesh-Nerlige-Ramappa/drm-i915-pmu= -Fix-KMD-and-GuC-race-on-accessing-busyness/20220127-081651 git checkout 2d74f201eae0c9ec06e6dc84b363089c0f190058 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c: In function 'guc_upda= te_pm_timestamp': >> drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:1217:36: error: 'uncor= e' undeclared (first use in this function) 1217 | gpm_ts =3D intel_uncore_read64_2x32(uncore, MISC_STATUS0, MISC_= STATUS1) >> | ^~~~~~ drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:1217:36: note: each un= declared identifier is reported only once for each function it appears in drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:1210:19: warning: unus= ed variable 'gt' [-Wunused-variable] 1210 | struct intel_gt *gt =3D guc_to_gt(guc); | ^~ vim +/uncore +1217 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c 1207 = 1208 static void guc_update_pm_timestamp(struct intel_guc *guc, ktime_t *= now) 1209 { 1210 struct intel_gt *gt =3D guc_to_gt(guc); 1211 u32 gt_stamp_lo, gt_stamp_hi; 1212 u64 gpm_ts; 1213 = 1214 lockdep_assert_held(&guc->timestamp.lock); 1215 = 1216 gt_stamp_hi =3D upper_32_bits(guc->timestamp.gt_stamp); > 1217 gpm_ts =3D intel_uncore_read64_2x32(uncore, MISC_STATUS0, MISC_STAT= US1) >> 1218 guc->timestamp.shift; 1219 gt_stamp_lo =3D lower_32_bits(gpm_ts); 1220 *now =3D ktime_get(); 1221 = 1222 if (gt_stamp_lo < lower_32_bits(guc->timestamp.gt_stamp)) 1223 gt_stamp_hi++; 1224 = 1225 guc->timestamp.gt_stamp =3D ((u64)gt_stamp_hi << 32) | gt_stamp_lo; 1226 } 1227 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org --===============3849904919974869780==--