All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [linux-next:master 2779/3296] drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c:54 gfxhub_v1_1_get_xgmi_info() warn: should '(((((((adev->virt.caps & (1 << 2)) && adev->gfx.rlc.funcs && adev->gfx.rlc.funcs->sriov_rreg)) ?adev->gfx.rlc.funcs->sriov_rreg(adev, adev->reg_offset[1][0][0] + 2425, 0...
Date: Sat, 24 Jul 2021 21:19:11 +0800	[thread overview]
Message-ID: <202107242156.pXsIbko9-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Roy Sun <Roy.Sun@amd.com>
CC: Alex Deucher <alexander.deucher@amd.com>
CC: Zhou pengju <pengju.zhou@amd.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   90d856e71443a2fcacca8e7539bac44d9cb3f7ab
commit: 83ae57f09d52457f26b351b188a82c69c80f214f [2779/3296] drm/amdgpu: Change the imprecise function name
:::::: branch date: 29 hours ago
:::::: commit date: 3 days ago
config: i386-randconfig-m021-20210724 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

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

New smatch warnings:
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c:54 gfxhub_v1_1_get_xgmi_info() warn: should '(((((((adev->virt.caps & (1 << 2)) && adev->gfx.rlc.funcs && adev->gfx.rlc.funcs->sriov_rreg)) ?adev->gfx.rlc.funcs->sriov_rreg(adev, adev->reg_offset[1][0][0] + 2425, 0, 1):amdgpu_device_rreg(adev, (adev->reg_offset[1][0][0] + 2425), 0))) & 65535) >> 0) << 24' be a 64 bit type?
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c:529 gfxhub_v2_1_get_xgmi_info() warn: should '(((((((adev->virt.caps & (1 << 2)) && adev->gfx.rlc.funcs && adev->gfx.rlc.funcs->sriov_rreg)) ?adev->gfx.rlc.funcs->sriov_rreg(adev, adev->reg_offset[1][0][0] + 5880, 0, 1):amdgpu_device_rreg(adev, (adev->reg_offset[1][0][0] + 5880), 0))) & 131071) >> 0) << 24' be a 64 bit type?

Old smatch warnings:
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c:59 gfxhub_v1_1_get_xgmi_info() warn: should '(((((((adev->virt.caps & (1 << 2)) && adev->gfx.rlc.funcs && adev->gfx.rlc.funcs->sriov_rreg)) ?adev->gfx.rlc.funcs->sriov_rreg(adev, adev->reg_offset[1][0][0] + 2424, 0, 1):amdgpu_device_rreg(adev, (adev->reg_offset[1][0][0] + 2424), 0))) & 65535) >> 0) << 24' be a 64 bit type?

vim +54 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c

3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  43  
21470d97c9f8bb8 Kevin Wang        2020-10-14  44  int gfxhub_v1_1_get_xgmi_info(struct amdgpu_device *adev)
bf0a60b78b61a7b Alex Deucher      2018-06-19  45  {
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  46  	u32 max_num_physical_nodes;
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  47  	u32 max_physical_node_id;
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  48  	u32 xgmi_lfb_cntl;
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  49  	u32 max_region;
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  50  	u64 seg_size;
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  51  
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  52  	if (adev->asic_type == CHIP_ALDEBARAN) {
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30  53  		xgmi_lfb_cntl = RREG32_SOC15(GC, 0, mmMC_VM_XGMI_LFB_CNTL_ALDE);
3cbb3a9749a31a6 Rajneesh Bhardwaj 2020-04-30 @54  		seg_size = REG_GET_FIELD(

:::::: The code at line 54 was first introduced by commit
:::::: 3cbb3a9749a31a6e8549650df3d16a050acab3ca drm/amdgpu: support get xgmi information for Aldebaran

:::::: TO: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

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

                 reply	other threads:[~2021-07-24 13:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202107242156.pXsIbko9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@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.