All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 12134/15982] drivers/gpu/drm/amd/amdgpu/mes_userqueue.c:158 mes_userq_map() warn: inconsistent indenting
@ 2026-08-18 18:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-18 18:41 UTC (permalink / raw)
  To: Prike Liang; +Cc: oe-kbuild-all, Alex Deucher, Michael Chen

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e6664f2b33db9b6811eb4cec109f06cb2b4f458d
commit: d0827dda8fa7a1b398d7cf41e4c88c314691dcbc [12134/15982] drm/amdgpu/mes: refactor the amdgpu_mes_alloc/free_proc|gang()
config: x86_64-randconfig-161-20260810 (https://download.01.org/0day-ci/archive/20260819/202608190252.8XCa0HqR-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
smatch: v0.5.0-9187-g5189e3fb

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/202608190252.8XCa0HqR-lkp@intel.com/

smatch warnings:
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c:158 mes_userq_map() warn: inconsistent indenting

vim +158 drivers/gpu/drm/amd/amdgpu/mes_userqueue.c

   113	
   114	static int mes_userq_map(struct amdgpu_usermode_queue *queue)
   115	{
   116		struct amdgpu_userq_mgr *uq_mgr = queue->userq_mgr;
   117		struct amdgpu_device *adev = uq_mgr->adev;
   118		struct amdgpu_userq_obj *ctx = &queue->fw_obj;
   119		struct amdgpu_mqd_prop *userq_props = queue->userq_prop;
   120		struct mes_add_queue_input queue_input;
   121		struct amdgpu_mes *mes = &adev->mes;
   122		int r;
   123	
   124		memset(&queue_input, 0x0, sizeof(struct mes_add_queue_input));
   125	
   126		queue_input.process_va_start = 0;
   127		queue_input.process_va_end = adev->vm_manager.max_pfn - 1;
   128	
   129		/* set process quantum to 10 ms and gang quantum to 1 ms as default */
   130		queue_input.process_quantum = 100000;
   131		queue_input.gang_quantum = 10000;
   132		queue_input.paging = false;
   133	
   134		queue_input.process_context_addr = uq_mgr->proc_ctx_obj.gpu_addr;
   135		queue_input.gang_context_addr = ctx->gpu_addr;
   136		queue_input.inprocess_gang_priority = AMDGPU_MES_PRIORITY_LEVEL_NORMAL;
   137		queue_input.gang_global_priority_level = convert_to_mes_priority(queue->priority);
   138	
   139		queue_input.process_id = queue->vm->pasid;
   140		queue_input.queue_type = queue->queue_type;
   141		queue_input.mqd_addr = queue->mqd.gpu_addr;
   142		queue_input.wptr_addr = userq_props->wptr_gpu_addr;
   143		queue_input.queue_size = userq_props->queue_size >> 2;
   144		queue_input.doorbell_offset = userq_props->doorbell_index;
   145		queue_input.page_table_base_addr = amdgpu_gmc_pd_addr(queue->vm->root.bo);
   146		queue_input.wptr_mc_addr = queue->wptr_obj.gpu_addr;
   147	
   148		if (mes->use_rs64mem) {
   149			 if (!uq_mgr->proc_ctx_allocated) {
   150				r = amdgpu_mes_alloc_proc_ctx_index(mes, &uq_mgr->proc_ctx_array_index);
   151				if (r) {
   152					DRM_ERROR("Failed to allocate userq process index err:%d\n", r);
   153					return r;
   154				}
   155				uq_mgr->proc_ctx_allocated = true;
   156			}
   157	
 > 158			r = amdgpu_mes_alloc_gang_ctx_index(mes, &queue->gang_ctx_array_index);
   159			if (r) {
   160				DRM_ERROR("Failed to allocate userq gang index err:%d\n", r);
   161				return r;
   162			}
   163			queue_input.process_context_array_index = uq_mgr->proc_ctx_array_index;
   164			queue_input.gang_context_array_index = queue->gang_ctx_array_index;
   165		}
   166		amdgpu_mes_lock(&adev->mes);
   167		r = adev->mes.funcs->add_hw_queue(&adev->mes, &queue_input);
   168		amdgpu_mes_unlock(&adev->mes);
   169		if (r) {
   170			DRM_ERROR("Failed to map queue in HW, err (%d)\n", r);
   171			return r;
   172		}
   173	
   174		DRM_DEBUG_DRIVER("Queue (doorbell:%d) mapped successfully\n", userq_props->doorbell_index);
   175		return 0;
   176	}
   177	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-18 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-18 18:41 [linux-next:master 12134/15982] drivers/gpu/drm/amd/amdgpu/mes_userqueue.c:158 mes_userq_map() warn: inconsistent indenting kernel test robot

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.