tree:
https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head: dec2310256916626e4356af784822e02fb807cad
commit: 3387daae08120c05a9d6a0e37cfd792c638f0a92 [1823/1993] drm/amdgpu: support get xgmi
information for Aldebaran
config: x86_64-randconfig-m001-20210309 (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(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c:90 gfxhub_v1_1_get_xgmi_info() warn: if statement
not indented
Old smatch warnings:
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c:97 gfxhub_v1_1_get_xgmi_info() warn: if statement
not indented
vim +90 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c
86 /* PF_MAX_REGION=0 means xgmi is disabled */
87 if (max_region || adev->gmc.xgmi.connected_to_cpu) {
88 adev->gmc.xgmi.num_physical_nodes = max_region + 1;
89
90 if (adev->gmc.xgmi.num_physical_nodes >
max_num_physical_nodes)
91 return -EINVAL;
^^^^^^^^^^^^^^^
Missing tab
92
93 adev->gmc.xgmi.physical_node_id =
94 REG_GET_FIELD(xgmi_lfb_cntl, MC_VM_XGMI_LFB_CNTL,
95 PF_LFB_REGION);
96
97 if (adev->gmc.xgmi.physical_node_id > max_physical_node_id)
98 return -EINVAL;
^^^^^^^^^^^^^^^
Missing tab
99
100 adev->gmc.xgmi.node_segment_size = seg_size;
101 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org