CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Hawking Zhang <[email protected]>
CC: Alex Deucher <[email protected]>
CC: "Zhou, Peng Ju" <[email protected]>
CC: Lijo Lazar <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   13776ebb9964b2ea66ffb8c824c0762eed6da784
commit: 1b2dc99e2dc6f35f55f0487e12fc9166fbd023ed drm/amdgpu: switch to 
amdgpu_sriov_rreg/wreg
date:   9 weeks ago
:::::: branch date: 7 hours ago
:::::: commit date: 9 weeks ago
config: riscv-randconfig-m031-20220327 
(https://download.01.org/0day-ci/archive/20220330/[email protected]/config)
compiler: riscv32-linux-gcc (GCC) 11.2.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:56 gfxhub_v1_1_get_xgmi_info() warn: 
should '(((((((adev->virt.caps & (1 << 2)) && adev->gfx.rlc.funcs && 
adev->gfx.rlc.rlcg_reg_access_supported)) ?amdgpu_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:530 gfxhub_v2_1_get_xgmi_info() warn: 
should '(((((((adev->virt.caps & (1 << 2)) && adev->gfx.rlc.funcs && 
adev->gfx.rlc.rlcg_reg_access_supported)) ?amdgpu_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:63 gfxhub_v1_1_get_xgmi_info() warn: 
should '(((((((adev->virt.caps & (1 << 2)) && adev->gfx.rlc.funcs && 
adev->gfx.rlc.rlcg_reg_access_supported)) ?amdgpu_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 +56 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(
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30  55                         
RREG32_SOC15(GC, 0, mmMC_VM_XGMI_LFB_SIZE_ALDE),
3cbb3a9749a31a Rajneesh Bhardwaj 2020-04-30 @56                         
MC_VM_XGMI_LFB_SIZE, PF_LFB_SIZE) << 24;

:::::: The code at line 56 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
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to