All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v8 4/6] arm64: hyperv: Initialize hypervisor on boot
Date: Fri, 19 Feb 2021 10:40:36 +0800	[thread overview]
Message-ID: <202102191017.2CaSGMzU-lkp@intel.com> (raw)
In-Reply-To: <1613690194-102905-5-git-send-email-mikelley@microsoft.com>

[-- Attachment #1: Type: text/plain, Size: 5327 bytes --]

Hi Michael,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on tip/timers/core efi/next linus/master v5.11 next-20210218]
[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/Michael-Kelley/Enable-Linux-guests-on-Hyper-V-on-ARM64/20210219-072336
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-randconfig-r012-20210218 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/0day-ci/linux/commit/660cf2b87076569fd159d012c005e171994ea34d
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Michael-Kelley/Enable-Linux-guests-on-Hyper-V-on-ARM64/20210219-072336
        git checkout 660cf2b87076569fd159d012c005e171994ea34d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/arm64/kernel/setup.c:52:
   In file included from arch/arm64/include/asm/mshyperv.h:71:
>> include/asm-generic/mshyperv.h:71:7: error: use of undeclared identifier 'HVMSG_NONE'
                       HVMSG_NONE) != old_msg_type)
                       ^
>> include/asm-generic/mshyperv.h:88:3: error: implicit declaration of function 'hv_signal_eom' [-Werror,-Wimplicit-function-declaration]
                   hv_signal_eom();
                   ^
   2 errors generated.


vim +/HVMSG_NONE +71 include/asm-generic/mshyperv.h

765e33f5211ab6 Michael Kelley 2019-05-30  55  
765e33f5211ab6 Michael Kelley 2019-05-30  56  
765e33f5211ab6 Michael Kelley 2019-05-30  57  /* Free the message slot and signal end-of-message if required */
765e33f5211ab6 Michael Kelley 2019-05-30  58  static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type)
765e33f5211ab6 Michael Kelley 2019-05-30  59  {
765e33f5211ab6 Michael Kelley 2019-05-30  60  	/*
765e33f5211ab6 Michael Kelley 2019-05-30  61  	 * On crash we're reading some other CPU's message page and we need
765e33f5211ab6 Michael Kelley 2019-05-30  62  	 * to be careful: this other CPU may already had cleared the header
765e33f5211ab6 Michael Kelley 2019-05-30  63  	 * and the host may already had delivered some other message there.
765e33f5211ab6 Michael Kelley 2019-05-30  64  	 * In case we blindly write msg->header.message_type we're going
765e33f5211ab6 Michael Kelley 2019-05-30  65  	 * to lose it. We can still lose a message of the same type but
765e33f5211ab6 Michael Kelley 2019-05-30  66  	 * we count on the fact that there can only be one
765e33f5211ab6 Michael Kelley 2019-05-30  67  	 * CHANNELMSG_UNLOAD_RESPONSE and we don't care about other messages
765e33f5211ab6 Michael Kelley 2019-05-30  68  	 * on crash.
765e33f5211ab6 Michael Kelley 2019-05-30  69  	 */
765e33f5211ab6 Michael Kelley 2019-05-30  70  	if (cmpxchg(&msg->header.message_type, old_msg_type,
765e33f5211ab6 Michael Kelley 2019-05-30 @71  		    HVMSG_NONE) != old_msg_type)
765e33f5211ab6 Michael Kelley 2019-05-30  72  		return;
765e33f5211ab6 Michael Kelley 2019-05-30  73  
765e33f5211ab6 Michael Kelley 2019-05-30  74  	/*
765e33f5211ab6 Michael Kelley 2019-05-30  75  	 * The cmxchg() above does an implicit memory barrier to
765e33f5211ab6 Michael Kelley 2019-05-30  76  	 * ensure the write to MessageType (ie set to
765e33f5211ab6 Michael Kelley 2019-05-30  77  	 * HVMSG_NONE) happens before we read the
765e33f5211ab6 Michael Kelley 2019-05-30  78  	 * MessagePending and EOMing. Otherwise, the EOMing
765e33f5211ab6 Michael Kelley 2019-05-30  79  	 * will not deliver any more messages since there is
765e33f5211ab6 Michael Kelley 2019-05-30  80  	 * no empty slot
765e33f5211ab6 Michael Kelley 2019-05-30  81  	 */
765e33f5211ab6 Michael Kelley 2019-05-30  82  	if (msg->header.message_flags.msg_pending) {
765e33f5211ab6 Michael Kelley 2019-05-30  83  		/*
765e33f5211ab6 Michael Kelley 2019-05-30  84  		 * This will cause message queue rescan to
765e33f5211ab6 Michael Kelley 2019-05-30  85  		 * possibly deliver another msg from the
765e33f5211ab6 Michael Kelley 2019-05-30  86  		 * hypervisor
765e33f5211ab6 Michael Kelley 2019-05-30  87  		 */
765e33f5211ab6 Michael Kelley 2019-05-30 @88  		hv_signal_eom();
765e33f5211ab6 Michael Kelley 2019-05-30  89  	}
765e33f5211ab6 Michael Kelley 2019-05-30  90  }
765e33f5211ab6 Michael Kelley 2019-05-30  91  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35206 bytes --]

  reply	other threads:[~2021-02-19  2:40 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-18 23:16 [PATCH v8 0/6] Enable Linux guests on Hyper-V on ARM64 Michael Kelley
2021-02-18 23:16 ` Michael Kelley
2021-02-18 23:16 ` [PATCH v8 1/6] arm64: hyperv: Add Hyper-V hypercall and register access utilities Michael Kelley
2021-02-18 23:16   ` Michael Kelley
2021-02-22 10:20   ` Wei Liu
2021-02-22 10:20     ` Wei Liu
2021-02-24  2:37   ` Boqun Feng
2021-02-24  2:37     ` Boqun Feng
2021-03-05 20:50     ` Michael Kelley
2021-03-05 20:50       ` Michael Kelley
2021-02-18 23:16 ` [PATCH v8 2/6] arm64: hyperv: Add Hyper-V clocksource/clockevent support Michael Kelley
2021-02-18 23:16   ` Michael Kelley
2021-02-19  2:35   ` kernel test robot
2021-02-19  2:35     ` kernel test robot
2021-02-19  2:35     ` kernel test robot
2021-02-19  4:40   ` kernel test robot
2021-02-19  4:40     ` kernel test robot
2021-02-19  4:40     ` kernel test robot
2021-02-18 23:16 ` [PATCH v8 3/6] arm64: hyperv: Add kexec and panic handlers Michael Kelley
2021-02-18 23:16   ` Michael Kelley
2021-02-18 23:16 ` [PATCH v8 4/6] arm64: hyperv: Initialize hypervisor on boot Michael Kelley
2021-02-18 23:16   ` Michael Kelley
2021-02-19  2:40   ` kernel test robot [this message]
2021-02-18 23:16 ` [PATCH v8 5/6] arm64: efi: Export screen_info Michael Kelley
2021-02-18 23:16   ` Michael Kelley
2021-02-18 23:16 ` [PATCH v8 6/6] Drivers: hv: Enable Hyper-V code to be built on ARM64 Michael Kelley
2021-02-18 23:16   ` Michael Kelley
     [not found] <1614649360-5087-1-git-send-email-mikelley@microsoft.com>
     [not found] ` <1614649360-5087-5-git-send-email-mikelley@microsoft.com>
2021-03-03 20:21   ` [PATCH v8 4/6] arm64: hyperv: Initialize hypervisor on boot Sunil Muthuswamy
2021-03-03 20:21     ` Sunil Muthuswamy
2021-03-05 21:03     ` Michael Kelley
2021-03-05 21:03       ` Michael Kelley

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=202102191017.2CaSGMzU-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.