tree:
https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head: dec2310256916626e4356af784822e02fb807cad
commit: f6c26889a8c072249ea310c6287fa6d82d958baf [1836/1993] drm/amdgpu: Clean up mmhub
functions for aldebaran
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add agd5f
https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f amd-staging-drm-next
git checkout f6c26889a8c072249ea310c6287fa6d82d958baf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:6: warning: no
previous prototype for 'mmhub_v1_7_setup_vm_pt_regs' [-Wmissing-prototypes]
56 | void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/mmhub_v1_7_setup_vm_pt_regs +56 drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
de4ff39913de1188 Le Ma 2020-09-05 55
de4ff39913de1188 Le Ma 2020-09-05 @56 void mmhub_v1_7_setup_vm_pt_regs(struct
amdgpu_device *adev, uint32_t vmid,
de4ff39913de1188 Le Ma 2020-09-05 57 uint64_t page_table_base)
de4ff39913de1188 Le Ma 2020-09-05 58 {
de4ff39913de1188 Le Ma 2020-09-05 59 /* two registers distance between regVM_CONTEXT0_*
to regVM_CONTEXT1_* */
de4ff39913de1188 Le Ma 2020-09-05 60 int offset =
regVM_CONTEXT1_PAGE_TABLE_BASE_ADDR_LO32
de4ff39913de1188 Le Ma 2020-09-05 61 - regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32;
de4ff39913de1188 Le Ma 2020-09-05 62
de4ff39913de1188 Le Ma 2020-09-05 63 WREG32_SOC15_OFFSET(MMHUB, 0,
regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32,
de4ff39913de1188 Le Ma 2020-09-05 64 offset * vmid, lower_32_bits(page_table_base));
de4ff39913de1188 Le Ma 2020-09-05 65
de4ff39913de1188 Le Ma 2020-09-05 66 WREG32_SOC15_OFFSET(MMHUB, 0,
regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32,
de4ff39913de1188 Le Ma 2020-09-05 67 offset * vmid, upper_32_bits(page_table_base));
de4ff39913de1188 Le Ma 2020-09-05 68 }
de4ff39913de1188 Le Ma 2020-09-05 69
:::::: The code at line 56 was first introduced by commit
:::::: de4ff39913de118860061548876f4e2fcfb6c3e2 drm/amdgpu: add mmhub support for
aldebaran (v3)
:::::: TO: Le Ma <le.ma(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org