Content-Type: multipart/mixed; boundary="===============3616775219361544336==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH v2 2/2] RDMA/rxe: Support RDMA Atomic Write operation Date: Thu, 13 Jan 2022 20:16:05 +0800 Message-ID: <202201132027.agYTyFRu-lkp@intel.com> In-Reply-To: <20220113030350.2492841-3-yangx.jy@fujitsu.com> List-Id: --===============3616775219361544336== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Xiao, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on v5.16] [also build test ERROR on next-20220113] [cannot apply to rdma/for-next] [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] url: https://github.com/0day-ci/linux/commits/Xiao-Yang/RDMA-rxe-Add-RDM= A-Atomic-Write-operation/20220113-110548 base: df0cc57e057f18e44dac8e6c18aba47ab53202f9 config: riscv-randconfig-r035-20220113 (https://download.01.org/0day-ci/arc= hive/20220113/202201132027.agYTyFRu-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d10219= 78b8e7e35dcc30201ca1731d64b5a602a8) 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/0day-ci/linux/commit/4294d58609cfb4c296c7937ea= fd58e044a4d81c6 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Xiao-Yang/RDMA-rxe-Add-RDMA-Atomic= -Write-operation/20220113-110548 git checkout 4294d58609cfb4c296c7937eafd58e044a4d81c6 # 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 drivers/infiniband/sw/rxe/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/infiniband/sw/rxe/rxe_resp.c:606:2: error: call to __compiletime= _assert_499 declared with 'error' attribute: Need native word sized stores/= loads for atomicity. smp_store_release(dst, *src); ^ include/asm-generic/barrier.h:162:2: note: expanded from macro 'smp_stor= e_release' compiletime_assert_atomic_type(*p); \ ^ include/linux/compiler_types.h:338:2: note: expanded from macro 'compile= time_assert_atomic_type' compiletime_assert(__native_word(t), \ ^ include/linux/compiler_types.h:335:2: note: expanded from macro 'compile= time_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COU= NTER__) ^ include/linux/compiler_types.h:323:2: note: expanded from macro '_compil= etime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:316:4: note: expanded from macro '__compi= letime_assert' prefix ## suffix(); \ ^ :165:1: note: expanded from here __compiletime_assert_499 ^ 1 error generated. vim +/error +606 drivers/infiniband/sw/rxe/rxe_resp.c 593 = 594 static enum resp_states process_atomic_write(struct rxe_qp *qp, 595 struct rxe_pkt_info *pkt) 596 { 597 struct rxe_mr *mr =3D qp->resp.mr; 598 = 599 u64 *src =3D payload_addr(pkt); 600 = 601 u64 *dst =3D iova_to_vaddr(mr, qp->resp.va + qp->resp.offset, sizeo= f(u64)); 602 if (!dst || (uintptr_t)dst & 7) 603 return RESPST_ERR_MISALIGNED_ATOMIC; 604 = 605 /* Do atomic write after all prior operations have completed */ > 606 smp_store_release(dst, *src); 607 = 608 /* decrease resp.resid to zero */ 609 qp->resp.resid -=3D sizeof(u64); 610 = 611 return RESPST_NONE; 612 } 613 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3616775219361544336==--