From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB4242CA8 for ; Sat, 18 Dec 2021 08:39:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639816782; x=1671352782; h=date:from:to:cc:subject:message-id:mime-version; bh=ce9r5xRfIpg0H8wAymbdPyFTcv3jbC/zXUDnc7LeVjM=; b=n1mSwpUdD2a9NPOFAbkuKUYFwmCkDigELgXLHDKvd9apvtaGFarK3Avz UwrAJWTvqx5RfIf67srZmjfeDdwaEFR6aFnsNFNfuIHOoTBvZ0KSj7Z5t 7SS/Bn+jjpKMjOdgwPjMCafvFyeQ639JxKFRhPzRMC+Fevhn1nt7dit2+ gZNLGkaURyMoJfTTd0F7Kdyi3idJ0FzzmVuV18z5FOLJSNXNsbmFDIxWh bwuam/uA9o1EpRXhsjZ1XasQ2X6dcBnzCmnJFc47hMwFO+WFwTpK9wdEk 4j46iEIx6G3lRx32bWRXbsTt5GoluOgPiAW8KCy5qrcM987pq6Dhb7eXz w==; X-IronPort-AV: E=McAfee;i="6200,9189,10201"; a="239714020" X-IronPort-AV: E=Sophos;i="5.88,216,1635231600"; d="scan'208";a="239714020" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2021 00:39:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,216,1635231600"; d="scan'208";a="683663433" Received: from lkp-server02.sh.intel.com (HELO 9f38c0981d9f) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 18 Dec 2021 00:39:39 -0800 Received: from kbuild by 9f38c0981d9f with local (Exim 4.92) (envelope-from ) id 1myVFj-0005nk-29; Sat, 18 Dec 2021 08:39:39 +0000 Date: Sat, 18 Dec 2021 16:38:57 +0800 From: kernel test robot To: Gary Guo Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [nbdd0121:riscv 1/4] arch/riscv/kernel/head.S:232:6: error: unknown operand Message-ID: <202112181654.Fct7RFbP-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://github.com/nbdd0121/linux riscv head: 696be59be32488c7c2417cd633008c2162f89fa8 commit: 4481ee1b02354fde9960268a3fd8d638124aba1a [1/4] riscv: enable TIME CSR in U mode config: riscv-randconfig-r011-20211216 (https://download.01.org/0day-ci/archive/20211218/202112181654.Fct7RFbP-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9043c3d65b11b442226015acfbf8167684586cfa) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/nbdd0121/linux/commit/4481ee1b02354fde9960268a3fd8d638124aba1a git remote add nbdd0121 https://github.com/nbdd0121/linux git fetch --no-tags nbdd0121 riscv git checkout 4481ee1b02354fde9960268a3fd8d638124aba1a # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/riscv/kernel/head.S:232:6: error: unknown operand csrw, CSR_MCOUNTEREN, 2 ^ vim +232 arch/riscv/kernel/head.S 203 204 ENTRY(_start_kernel) 205 /* Mask all interrupts */ 206 csrw CSR_IE, zero 207 csrw CSR_IP, zero 208 209 #ifdef CONFIG_RISCV_M_MODE 210 /* flush the instruction cache */ 211 fence.i 212 213 /* Reset all registers except ra, a0, a1 */ 214 call reset_regs 215 216 /* 217 * Setup a PMP to permit access to all of memory. Some machines may 218 * not implement PMPs, so we set up a quick trap handler to just skip 219 * touching the PMPs on any trap. 220 */ 221 la a0, pmp_done 222 csrw CSR_TVEC, a0 223 224 li a0, -1 225 csrw CSR_PMPADDR0, a0 226 li a0, (PMP_A_NAPOT | PMP_R | PMP_W | PMP_X) 227 csrw CSR_PMPCFG0, a0 228 .align 2 229 pmp_done: 230 231 /* Allow user-mode to access time CSR */ > 232 csrw, CSR_MCOUNTEREN, 2 233 234 /* 235 * The hartid in a0 is expected later on, and we have no firmware 236 * to hand it to us. 237 */ 238 csrr a0, CSR_MHARTID 239 #endif /* CONFIG_RISCV_M_MODE */ 240 241 /* Allow user-mode to access time CSR */ 242 csrw CSR_SCOUNTEREN, 2 243 244 /* Load the global pointer */ 245 .option push 246 .option norelax 247 la gp, __global_pointer$ 248 .option pop 249 250 /* 251 * Disable FPU to detect illegal usage of 252 * floating point in kernel space 253 */ 254 li t0, SR_FS 255 csrc CSR_STATUS, t0 256 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5363591940170994542==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [nbdd0121:riscv 1/4] arch/riscv/kernel/head.S:232:6: error: unknown operand Date: Sat, 18 Dec 2021 16:38:57 +0800 Message-ID: <202112181654.Fct7RFbP-lkp@intel.com> List-Id: --===============5363591940170994542== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/nbdd0121/linux riscv head: 696be59be32488c7c2417cd633008c2162f89fa8 commit: 4481ee1b02354fde9960268a3fd8d638124aba1a [1/4] riscv: enable TIME C= SR in U mode config: riscv-randconfig-r011-20211216 (https://download.01.org/0day-ci/arc= hive/20211218/202112181654.Fct7RFbP-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9043c3= d65b11b442226015acfbf8167684586cfa) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/nbdd0121/linux/commit/4481ee1b02354fde9960268a= 3fd8d638124aba1a git remote add nbdd0121 https://github.com/nbdd0121/linux git fetch --no-tags nbdd0121 riscv git checkout 4481ee1b02354fde9960268a3fd8d638124aba1a # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Driscv SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/riscv/kernel/head.S:232:6: error: unknown operand csrw, CSR_MCOUNTEREN, 2 ^ vim +232 arch/riscv/kernel/head.S 203 = 204 ENTRY(_start_kernel) 205 /* Mask all interrupts */ 206 csrw CSR_IE, zero 207 csrw CSR_IP, zero 208 = 209 #ifdef CONFIG_RISCV_M_MODE 210 /* flush the instruction cache */ 211 fence.i 212 = 213 /* Reset all registers except ra, a0, a1 */ 214 call reset_regs 215 = 216 /* 217 * Setup a PMP to permit access to all of memory. Some machines may 218 * not implement PMPs, so we set up a quick trap handler to just sk= ip 219 * touching the PMPs on any trap. 220 */ 221 la a0, pmp_done 222 csrw CSR_TVEC, a0 223 = 224 li a0, -1 225 csrw CSR_PMPADDR0, a0 226 li a0, (PMP_A_NAPOT | PMP_R | PMP_W | PMP_X) 227 csrw CSR_PMPCFG0, a0 228 .align 2 229 pmp_done: 230 = 231 /* Allow user-mode to access time CSR */ > 232 csrw, CSR_MCOUNTEREN, 2 233 = 234 /* 235 * The hartid in a0 is expected later on, and we have no firmware 236 * to hand it to us. 237 */ 238 csrr a0, CSR_MHARTID 239 #endif /* CONFIG_RISCV_M_MODE */ 240 = 241 /* Allow user-mode to access time CSR */ 242 csrw CSR_SCOUNTEREN, 2 243 = 244 /* Load the global pointer */ 245 .option push 246 .option norelax 247 la gp, __global_pointer$ 248 .option pop 249 = 250 /* 251 * Disable FPU to detect illegal usage of 252 * floating point in kernel space 253 */ 254 li t0, SR_FS 255 csrc CSR_STATUS, t0 256 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5363591940170994542==--