CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Roy Sun <[email protected]>
CC: Alex Deucher <[email protected]>
CC: Zhou pengju <[email protected]>

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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

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 <[email protected]>
:::::: CC: Alex Deucher <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to