linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Oded Gabbay <oded.gabbay@gmail.com>,
	linux-kernel@vger.kernel.org, SW_Drivers@habana.ai
Cc: kbuild-all@lists.01.org, Ofir Bitton <obitton@habana.ai>
Subject: Re: [PATCH 2/2] habanalabs: add information about PCIe controller
Date: Sun, 2 Aug 2020 03:23:16 +0800	[thread overview]
Message-ID: <202008020346.wiMTDtIf%lkp@intel.com> (raw)
In-Reply-To: <20200730131347.30261-2-oded.gabbay@gmail.com>

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

Hi Oded,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on char-misc/char-misc-testing]
[cannot apply to linux/master linus/master v5.8-rc7]
[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-Replace-dma-fence-mechanism-with-completions/20200730-211536
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 22362aa30bad6f03b5bcbbeee3cdc61950d40086
config: x86_64-randconfig-s022-20200801 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-115-g5fc204f2-dirty
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> drivers/misc/habanalabs/common/firmware_if.c:368:19: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [assigned] [usertype] index @@     got restricted __le64 [usertype] @@
>> drivers/misc/habanalabs/common/firmware_if.c:368:19: sparse:     expected restricted __le32 [assigned] [usertype] index
>> drivers/misc/habanalabs/common/firmware_if.c:368:19: sparse:     got restricted __le64 [usertype]
>> drivers/misc/habanalabs/common/firmware_if.c:379:19: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [addressable] [assigned] [usertype] index @@     got restricted __le64 [usertype] @@
>> drivers/misc/habanalabs/common/firmware_if.c:379:19: sparse:     expected restricted __le32 [addressable] [assigned] [usertype] index
   drivers/misc/habanalabs/common/firmware_if.c:379:19: sparse:     got restricted __le64 [usertype]

vim +368 drivers/misc/habanalabs/common/firmware_if.c

   356	
   357	int hl_fw_armcp_pci_counters_get(struct hl_device *hdev,
   358			struct hl_info_pci_counters *counters)
   359	{
   360		struct armcp_packet pkt = {};
   361		long result;
   362		int rc;
   363	
   364		pkt.ctl = cpu_to_le32(ARMCP_PACKET_PCIE_THROUGHPUT_GET <<
   365				ARMCP_PKT_CTL_OPCODE_SHIFT);
   366	
   367		/* Fetch PCI rx counter */
 > 368		pkt.index = cpu_to_le64(armcp_pcie_throughput_rx);
   369		rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt),
   370						HL_ARMCP_INFO_TIMEOUT_USEC, &result);
   371		if (rc) {
   372			dev_err(hdev->dev,
   373				"Failed to handle ArmCP PCI info pkt, error %d\n", rc);
   374			return rc;
   375		}
   376		counters->rx_throughput = result;
   377	
   378		/* Fetch PCI tx counter */
 > 379		pkt.index = cpu_to_le64(armcp_pcie_throughput_tx);
   380		rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt),
   381						HL_ARMCP_INFO_TIMEOUT_USEC, &result);
   382		if (rc) {
   383			dev_err(hdev->dev,
   384				"Failed to handle ArmCP PCI info pkt, error %d\n", rc);
   385			return rc;
   386		}
   387		counters->tx_throughput = result;
   388	
   389		/* Fetch PCI replay counter */
   390		pkt.ctl = cpu_to_le32(ARMCP_PACKET_PCIE_REPLAY_CNT_GET <<
   391				ARMCP_PKT_CTL_OPCODE_SHIFT);
   392	
   393		rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt),
   394				HL_ARMCP_INFO_TIMEOUT_USEC, &result);
   395		if (rc) {
   396			dev_err(hdev->dev,
   397				"Failed to handle ArmCP PCI info pkt, error %d\n", rc);
   398			return rc;
   399		}
   400		counters->replay_cnt = (u32) result;
   401	
   402		return rc;
   403	}
   404	

---
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: 35016 bytes --]

  parent reply	other threads:[~2020-08-01 19:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-30 13:13 [PATCH 1/2] habanalabs: Replace dma-fence mechanism with completions Oded Gabbay
2020-07-30 13:13 ` [PATCH 2/2] habanalabs: add information about PCIe controller Oded Gabbay
2020-07-31  0:17   ` kernel test robot
2020-07-31  9:01   ` kernel test robot
2020-08-01 19:23   ` kernel test robot [this message]
2020-07-30 19:33 ` [PATCH 1/2] habanalabs: Replace dma-fence mechanism with completions kernel test robot
2020-07-30 20:43 ` Daniel Vetter
2020-08-01 17:50 ` kernel test robot
2020-08-01 17:50 ` [RFC PATCH] habanalabs: hl_fence_release() can be static kernel test robot

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=202008020346.wiMTDtIf%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=SW_Drivers@habana.ai \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=obitton@habana.ai \
    --cc=oded.gabbay@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).