From: kernel test robot <lkp@intel.com>
To: Oded Gabbay <ogabbay@kernel.org>, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
SW_Drivers@habana.ai
Subject: Re: [PATCH] habanalabs: print CS type when it is stuck
Date: Thu, 19 Nov 2020 03:22:23 +0800 [thread overview]
Message-ID: <202011190359.3lGeaRzh-lkp@intel.com> (raw)
In-Reply-To: <20201118135050.19621-3-ogabbay@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 3516 bytes --]
Hi Oded,
I love your patch! Yet something to improve:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on linux/master linus/master v5.10-rc4 next-20201118]
[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/Oded-Gabbay/habanalabs-print-CS-type-when-it-is-stuck/20201118-215554
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 93c69b2d17372463ae33b79b3002c22a208945b3
config: x86_64-randconfig-a013-20201118 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/71112c9df0288d0689aa5c7fbdd396f2b099daa4
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Oded-Gabbay/habanalabs-print-CS-type-when-it-is-stuck/20201118-215554
git checkout 71112c9df0288d0689aa5c7fbdd396f2b099daa4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> drivers/misc/habanalabs/common/command_submission.c:400:7: error: use of undeclared identifier 'CS_TYPE_COLLECTIVE_WAIT'
case CS_TYPE_COLLECTIVE_WAIT:
^
1 error generated.
vim +/CS_TYPE_COLLECTIVE_WAIT +400 drivers/misc/habanalabs/common/command_submission.c
366
367 static void cs_timedout(struct work_struct *work)
368 {
369 struct hl_device *hdev;
370 int rc;
371 struct hl_cs *cs = container_of(work, struct hl_cs,
372 work_tdr.work);
373 rc = cs_get_unless_zero(cs);
374 if (!rc)
375 return;
376
377 if ((!cs->submitted) || (cs->completed)) {
378 cs_put(cs);
379 return;
380 }
381
382 /* Mark the CS is timed out so we won't try to cancel its TDR */
383 cs->timedout = true;
384
385 hdev = cs->ctx->hdev;
386
387 switch (cs->type) {
388 case CS_TYPE_SIGNAL:
389 dev_err(hdev->dev,
390 "Signal command submission %llu has not finished in time!\n",
391 cs->sequence);
392 break;
393
394 case CS_TYPE_WAIT:
395 dev_err(hdev->dev,
396 "Wait command submission %llu has not finished in time!\n",
397 cs->sequence);
398 break;
399
> 400 case CS_TYPE_COLLECTIVE_WAIT:
401 dev_err(hdev->dev,
402 "Collective Wait command submission %llu has not finished in time!\n",
403 cs->sequence);
404 break;
405
406 default:
407 dev_err(hdev->dev,
408 "Command submission %llu has not finished in time!\n",
409 cs->sequence);
410 break;
411 }
412
413 cs_put(cs);
414
415 if (hdev->reset_on_lockup)
416 hl_device_reset(hdev, false, false);
417 }
418
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45587 bytes --]
prev parent reply other threads:[~2020-11-18 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 13:50 [PATCH] habanalabs: fetch pll frequency from firmware Oded Gabbay
2020-11-18 13:50 ` [PATCH] habanalabs: mmu map wrapper for sizes larger than a page Oded Gabbay
2020-11-18 13:50 ` [PATCH] habanalabs: print CS type when it is stuck Oded Gabbay
2020-11-18 19:22 ` kernel test robot [this message]
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=202011190359.3lGeaRzh-lkp@intel.com \
--to=lkp@intel.com \
--cc=SW_Drivers@habana.ai \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ogabbay@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®