From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A87E6C7114A for ; Sat, 14 Jun 2025 05:34:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 533B610E205; Sat, 14 Jun 2025 05:34:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="JG74ixzl"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7EFCE10E205 for ; Sat, 14 Jun 2025 05:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749879247; x=1781415247; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ECwN2P+DmCHI2fcqi9Astf9mKoRU1pySXizBXzQKH+E=; b=JG74ixzl6hu/ogc9c87G+BeANaD5f7qxOOhzFkuKmjU4r8nlEtN4trNR c2TgLLsmMYRyiZlTYrSrfbImBSO4h0S6lRJBZJBCzfymlfWLS34+8CLat IQhDOEkDvB/saGPG9oa+AxQVAPYWr4W9r3Irijf+zgAeXoshxtjGavLJZ BkLQwrLsRXzTFWSboB8ZJMWUvv+aZEAhs752idgekxMyccl+YDspkeRXt d8mJi/IaHc9Iv/F7ds0tORPzp0PxF6bfdTyEzzKzLTRr/5hlWK2Le8oFk eIyOAbI1UTVOX07VCff4YeZ80Bq81RGT0MiOKrD/gbzjmKmZV3Bd4GpWd A==; X-CSE-ConnectionGUID: AMtavAXORXid1x7k6tysAQ== X-CSE-MsgGUID: VfsD5vWlT/uY0r9PXbvGMg== X-IronPort-AV: E=McAfee;i="6800,10657,11463"; a="51208064" X-IronPort-AV: E=Sophos;i="6.16,235,1744095600"; d="scan'208";a="51208064" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2025 22:34:06 -0700 X-CSE-ConnectionGUID: NrA4j21CRhKJN6CIph2jKQ== X-CSE-MsgGUID: Frddq2bwS+28LRd0AZVx8A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,235,1744095600"; d="scan'208";a="147989970" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 13 Jun 2025 22:34:03 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uQJWj-000DKc-24; Sat, 14 Jun 2025 05:34:01 +0000 Date: Sat, 14 Jun 2025 13:33:53 +0800 From: kernel test robot To: Himal Prasad Ghimiray , intel-xe@lists.freedesktop.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, matthew.brost@intel.com, thomas.hellstrom@linux.intel.com, Himal Prasad Ghimiray Subject: Re: [PATCH v4 13/20] drm/xe/madvise: Update migration policy based on preferred location Message-ID: <202506141309.LKujADbP-lkp@intel.com> References: <20250613125558.2607665-14-himal.prasad.ghimiray@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250613125558.2607665-14-himal.prasad.ghimiray@intel.com> X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Hi Himal, kernel test robot noticed the following build errors: [auto build test ERROR on drm-xe/drm-xe-next] [also build test ERROR on next-20250613] [cannot apply to linus/master v6.16-rc1] [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/Himal-Prasad-Ghimiray/Introduce-drm_gpuvm_sm_map_ops_flags-enums-for-sm_map_ops/20250614-003138 base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next patch link: https://lore.kernel.org/r/20250613125558.2607665-14-himal.prasad.ghimiray%40intel.com patch subject: [PATCH v4 13/20] drm/xe/madvise: Update migration policy based on preferred location config: i386-randconfig-016-20250614 (https://download.01.org/0day-ci/archive/20250614/202506141309.LKujADbP-lkp@intel.com/config) compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250614/202506141309.LKujADbP-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202506141309.LKujADbP-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/xe/xe_vm_madvise.c:201:3: error: label followed by a declaration is a C23 extension [-Werror,-Wc23-extensions] 201 | s32 fd = (s32)args->preferred_mem_loc.devmem_fd; | ^ 1 error generated. vim +201 drivers/gpu/drm/xe/xe_vm_madvise.c 177 178 static int drm_xe_madvise_args_are_sane(struct xe_device *xe, const struct drm_xe_madvise *args) 179 { 180 if (XE_IOCTL_DBG(xe, !args)) 181 return -EINVAL; 182 183 if (XE_IOCTL_DBG(xe, !IS_ALIGNED(args->start, SZ_4K))) 184 return -EINVAL; 185 186 if (XE_IOCTL_DBG(xe, !IS_ALIGNED(args->range, SZ_4K))) 187 return -EINVAL; 188 189 if (XE_IOCTL_DBG(xe, args->range < SZ_4K)) 190 return -EINVAL; 191 192 switch (args->type) { 193 case DRM_XE_VMA_ATTR_ATOMIC: 194 if (XE_IOCTL_DBG(xe, args->atomic.val > DRM_XE_VMA_ATOMIC_CPU)) 195 return -EINVAL; 196 break; 197 case DRM_XE_VMA_ATTR_PAT: 198 /*TODO: Add valid pat check */ 199 break; 200 case DRM_XE_VMA_ATTR_PREFERRED_LOC: > 201 s32 fd = (s32)args->preferred_mem_loc.devmem_fd; 202 203 if (XE_IOCTL_DBG(xe, fd < DRM_XE_PREFERRED_LOC_DEFAULT_SYSTEM)) 204 return -EINVAL; 205 206 if (XE_IOCTL_DBG(xe, args->preferred_mem_loc.migration_policy > 207 DRM_XE_MIGRATE_ONLY_SYSTEM_PAGES)) 208 return -EINVAL; 209 break; 210 default: 211 if (XE_IOCTL_DBG(xe, 1)) 212 return -EINVAL; 213 } 214 215 if (XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1])) 216 return -EINVAL; 217 218 return 0; 219 } 220 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki