public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Riana Tauro <riana.tauro@intel.com>,
	intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: oe-kbuild-all@lists.linux.dev,
	aravind.iddamsetty@linux.intel.com, anshuman.gupta@intel.com,
	rodrigo.vivi@intel.com, joonas.lahtinen@linux.intel.com,
	simona.vetter@ffwll.ch, airlied@gmail.com, pratik.bari@intel.com,
	joshua.santosh.ranjan@intel.com, ashwin.kumar.kulkarni@intel.com,
	shubham.kumar@intel.com, ravi.kishore.koppuravuri@intel.com,
	raag.jadav@intel.com, Riana Tauro <riana.tauro@intel.com>,
	Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Subject: Re: [PATCH v4 3/4] drm/xe/xe_hw_error: Add support for GT hardware errors
Date: Mon, 19 Jan 2026 17:06:06 +0800	[thread overview]
Message-ID: <202601191630.EAGtgUQy-lkp@intel.com> (raw)
In-Reply-To: <20260119040023.2821518-9-riana.tauro@intel.com>

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/202601191630.EAGtgUQy-lkp@intel.com/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/202601191630.EAGtgUQy-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601191630.EAGtgUQy-lkp@intel.com/

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

  reply	other threads:[~2026-01-19  9:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-19  4:00 [PATCH v4 0/4] Introduce DRM_RAS using generic netlink for RAS Riana Tauro
2026-01-19  3:36 ` ✗ CI.checkpatch: warning for Introduce DRM_RAS using generic netlink for RAS (rev4) Patchwork
2026-01-19  3:37 ` ✓ CI.KUnit: success " Patchwork
2026-01-19  3:52 ` ✗ CI.checksparse: warning " Patchwork
2026-01-19  4:00 ` [PATCH v4 1/4] drm/ras: Introduce the DRM RAS infrastructure over generic netlink Riana Tauro
2026-01-22 21:51   ` Zack McKevitt
2026-02-02  6:20     ` Riana Tauro
2026-01-19  4:00 ` [PATCH v4 2/4] drm/xe/xe_drm_ras: Add support for drm ras Riana Tauro
2026-01-20 17:01   ` Raag Jadav
2026-01-28  6:51     ` Riana Tauro
2026-01-28  7:15       ` Raag Jadav
2026-01-28  7:34         ` Riana Tauro
2026-01-19  4:00 ` [PATCH v4 3/4] drm/xe/xe_hw_error: Add support for GT hardware errors Riana Tauro
2026-01-19  9:06   ` kernel test robot [this message]
2026-01-21  7:09   ` Raag Jadav
2026-01-27  8:29     ` Riana Tauro
2026-01-27 10:12       ` Raag Jadav
2026-01-19  4:00 ` [PATCH v4 4/4] drm/xe/xe_hw_error: Add support for PVC SOC errors Riana Tauro
2026-01-23 10:33   ` Raag Jadav
2026-01-27  9:43     ` Riana Tauro
2026-01-19  4:11 ` ✗ Xe.CI.BAT: failure for Introduce DRM_RAS using generic netlink for RAS (rev4) Patchwork
2026-01-19  5:33 ` ✗ Xe.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202601191630.EAGtgUQy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@gmail.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@linux.intel.com \
    --cc=ashwin.kumar.kulkarni@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=joshua.santosh.ranjan@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pratik.bari@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=ravi.kishore.koppuravuri@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=shubham.kumar@intel.com \
    --cc=simona.vetter@ffwll.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox