All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 2540/9113] 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...
@ 2021-08-19 18:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-19 18:30 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3294 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:   33e65b1f975cd2814fc0ea9617250fc4c1d7a553
commit: 1a4772d922d2f3a46903ca699f7e0a3fa3bb448c [2540/9113] drm/amdgpu: Change the imprecise function name
:::::: branch date: 10 hours ago
:::::: commit date: 4 weeks ago
config: i386-randconfig-m021-20210818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.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

3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  43  
21470d97c9f8bb Kevin Wang        2020-10-14  44  int gfxhub_v1_1_get_xgmi_info(struct amdgpu_device *adev)
bf0a60b78b61a7 Alex Deucher      2018-06-19  45  {
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  46  	u32 max_num_physical_nodes;
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  47  	u32 max_physical_node_id;
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  48  	u32 xgmi_lfb_cntl;
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  49  	u32 max_region;
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  50  	u64 seg_size;
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  51  
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  52  	if (adev->asic_type == CHIP_ALDEBARAN) {
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  53  		xgmi_lfb_cntl = RREG32_SOC15(GC, 0, mmMC_VM_XGMI_LFB_CNTL_ALDE);
3cbb3a9749a31a 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: 38494 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-19 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 18:30 [linux-next:master 2540/9113] 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 kernel test robot

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.