All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jesse.Zhang" <Jesse.Zhang@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, Alex Deucher <alexander.deucher@amd.com>
Subject: [linux-next:master 4384/4731] drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c:1250 amdgpu_userq_start_sched_for_enforce_isolation() warn: inconsistent indenting
Date: Thu, 30 Oct 2025 00:59:34 +0800	[thread overview]
Message-ID: <202510300033.pwwkKnVb-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f9ba12abc5282bf992f9a9ae87ad814fd03a0270
commit: f18719ef4bb7b0e48dee92703b01e16f6c0d6318 [4384/4731] drm/amdgpu: Convert amdgpu userqueue management from IDR to XArray
config: arm64-randconfig-r073-20251029 (https://download.01.org/0day-ci/archive/20251030/202510300033.pwwkKnVb-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.3.0

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/202510300033.pwwkKnVb-lkp@intel.com/

smatch warnings:
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c:1250 amdgpu_userq_start_sched_for_enforce_isolation() warn: inconsistent indenting

vim +1250 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c

94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1230  
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1231  int amdgpu_userq_start_sched_for_enforce_isolation(struct amdgpu_device *adev,
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1232  						   u32 idx)
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1233  {
42a66677805d03 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Alex Deucher 2025-04-16  1234  	u32 ip_mask = amdgpu_userq_get_supported_ip_mask(adev);
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1235  	struct amdgpu_usermode_queue *queue;
f18719ef4bb7b0 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Jesse.Zhang  2025-10-21  1236  	struct amdgpu_userq_mgr *uqm;
f18719ef4bb7b0 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Jesse.Zhang  2025-10-21  1237  	unsigned long queue_id;
e67b95f0cd5e8d drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-12  1238  	int ret = 0, r;
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1239  
ba324ffb25999e drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-16  1240  	/* only need to stop gfx/compute */
ba324ffb25999e drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-16  1241  	if (!(ip_mask & ((1 << AMDGPU_HW_IP_GFX) | (1 << AMDGPU_HW_IP_COMPUTE))))
ba324ffb25999e drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-16  1242  		return 0;
ba324ffb25999e drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-16  1243  
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1244  	if (!adev->userq_halt_for_enforce_isolation)
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1245  		dev_warn(adev->dev, "userq scheduling already started!\n");
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1246  	adev->userq_halt_for_enforce_isolation = false;
f18719ef4bb7b0 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Jesse.Zhang  2025-10-21  1247  	xa_for_each(&adev->userq_doorbell_xa, queue_id, queue) {
f18719ef4bb7b0 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Jesse.Zhang  2025-10-21  1248  		uqm = queue->userq_mgr;
482d48533257fd drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Alex Deucher 2025-04-25  1249  		mutex_lock(&uqm->userq_mutex);
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10 @1250  			if (((queue->queue_type == AMDGPU_HW_IP_GFX) ||
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1251  			     (queue->queue_type == AMDGPU_HW_IP_COMPUTE)) &&
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1252  			    (queue->xcp_id == idx)) {
bb1d7f157e3d23 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Jesse.Zhang  2025-08-05  1253  				r = amdgpu_userq_restore_helper(uqm, queue);
e67b95f0cd5e8d drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-12  1254  				if (r)
e67b95f0cd5e8d drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-12  1255  					ret = r;
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1256  			}
482d48533257fd drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Alex Deucher 2025-04-25  1257  		mutex_unlock(&uqm->userq_mutex);
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1258  	}
f18719ef4bb7b0 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Jesse.Zhang  2025-10-21  1259  
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1260  	return ret;
94976e7e5ede65 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c Alex Deucher 2025-04-10  1261  }
2e7ceac0ea4192 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     Prike Liang  2025-09-19  1262  

:::::: The code at line 1250 was first introduced by commit
:::::: 94976e7e5ede65f9dfad669b1ea7170320f08399 drm/amdgpu/userq: add helpers to start/stop scheduling

:::::: TO: Alex Deucher <alexander.deucher@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-10-29 17:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202510300033.pwwkKnVb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Jesse.Zhang@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.