Hi Riana, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-xe/drm-xe-next] [also build test ERROR on drm/drm-next next-20260116] [cannot apply to drm-misc/drm-misc-next linus/master v6.19-rc6] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Riana-Tauro/drm-ras-Introduce-the-DRM-RAS-infrastructure-over-generic-netlink/20260119-113326 base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next patch link: https://lore.kernel.org/r/20260119040023.2821518-9-riana.tauro%40intel.com patch subject: [PATCH v4 3/4] drm/xe/xe_hw_error: Add support for GT hardware errors config: alpha-randconfig-r072-20260119 (https://download.01.org/0day-ci/archive/20260119/[email protected]/config) compiler: alpha-linux-gcc (GCC) 8.5.0 smatch version: v0.5.0-8985-g2614ff1a reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260119/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): drivers/gpu/drm/xe/xe_hw_error.c: In function 'gt_hw_error_handler': >> drivers/gpu/drm/xe/xe_hw_error.c:168:4: error: a label can only be part of a >> statement and a declaration is not a statement u32 errbit; ^~~ vim +168 drivers/gpu/drm/xe/xe_hw_error.c 134 135 static void gt_hw_error_handler(struct xe_tile *tile, const enum hardware_error hw_err, 136 u32 error_id) 137 { 138 const enum drm_xe_ras_error_severity severity = hw_err_to_severity(hw_err); 139 struct xe_device *xe = tile_to_xe(tile); 140 struct xe_drm_ras *ras = &xe->ras; 141 struct xe_drm_ras_counter *info = ras->info[severity]; 142 struct xe_mmio *mmio = &tile->mmio; 143 unsigned long err_stat = 0; 144 int i, len; 145 146 if (xe->info.platform != XE_PVC) 147 return; 148 149 if (hw_err == HARDWARE_ERROR_NONFATAL) { 150 atomic64_inc(&info[error_id].counter); 151 log_hw_error(tile, info[error_id].name, severity); 152 return; 153 } 154 155 len = (hw_err == HARDWARE_ERROR_CORRECTABLE) ? ERR_STAT_GT_COR_VECTOR_LEN 156 : ERR_STAT_GT_VECTOR_MAX; 157 158 for (i = 0; i < len; i++) { 159 u32 vector, val; 160 161 vector = xe_mmio_read32(mmio, ERR_STAT_GT_VECTOR_REG(hw_err, i)); 162 if (!vector) 163 continue; 164 165 switch (i) { 166 case ERR_STAT_GT_VECTOR0: 167 case ERR_STAT_GT_VECTOR1: > 168 u32 errbit; 169 170 val = hweight32(vector); 171 atomic64_add(val, &info[error_id].counter); 172 log_gt_err(tile, "Subslice", i, vector, severity); 173 174 /* Read Error Status Register once */ 175 if (err_stat) 176 break; 177 178 err_stat = xe_mmio_read32(mmio, ERR_STAT_GT_REG(hw_err)); 179 for_each_set_bit(errbit, &err_stat, GT_HW_ERROR_MAX_ERR_BITS) { 180 if (hw_err == HARDWARE_ERROR_CORRECTABLE && 181 (BIT(errbit) & PVC_COR_ERR_MASK)) 182 atomic64_inc(&info[error_id].counter); 183 if (hw_err == HARDWARE_ERROR_FATAL && 184 (BIT(errbit) & PVC_FAT_ERR_MASK)) 185 atomic64_inc(&info[error_id].counter); 186 } 187 if (err_stat) 188 xe_mmio_write32(mmio, ERR_STAT_GT_REG(hw_err), err_stat); 189 break; 190 case ERR_STAT_GT_VECTOR2: 191 case ERR_STAT_GT_VECTOR3: 192 val = hweight32(vector); 193 atomic64_add(val, &info[error_id].counter); 194 log_gt_err(tile, "L3 BANK", i, vector, severity); 195 break; 196 case ERR_STAT_GT_VECTOR6: 197 val = hweight32(vector); 198 atomic64_add(val, &info[error_id].counter); 199 log_gt_err(tile, "TLB", i, vector, severity); 200 break; 201 case ERR_STAT_GT_VECTOR7: 202 val = hweight32(vector); 203 atomic64_add(val, &info[error_id].counter); 204 break; 205 default: 206 log_gt_err(tile, "Undefined", i, vector, severity); 207 } 208 209 xe_mmio_write32(mmio, ERR_STAT_GT_VECTOR_REG(hw_err, i), vector); 210 } 211 } 212 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
