tree:
https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: e90c92dc6b09574f7fe2e7e5774a3af30e36c632
commit: fd9d8dc1638adf32164cd193773415154f71fa5f [269/428] drm/amdgpu: Clean up mmhub
functions for aldebaran
config: x86_64-randconfig-a014-20210308 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
cd9a69289c7825d54450cb6829fef2c8e0f1963a)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add agd5f
https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout fd9d8dc1638adf32164cd193773415154f71fa5f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 function 'mmhub_v1_7_setup_vm_pt_regs'
[-Wmissing-prototypes]
void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device
*adev, uint32_t vmid,
^
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
^
static
1 warning generated.
vim +/mmhub_v1_7_setup_vm_pt_regs +56 drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
f37945d50ff519 Le Ma 2020-09-05 55
f37945d50ff519 Le Ma 2020-09-05 @56 void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device
*adev, uint32_t vmid,
f37945d50ff519 Le Ma 2020-09-05 57 uint64_t page_table_base)
f37945d50ff519 Le Ma 2020-09-05 58 {
f37945d50ff519 Le Ma 2020-09-05 59 /* two registers distance between regVM_CONTEXT0_*
to regVM_CONTEXT1_* */
f37945d50ff519 Le Ma 2020-09-05 60 int offset =
regVM_CONTEXT1_PAGE_TABLE_BASE_ADDR_LO32
f37945d50ff519 Le Ma 2020-09-05 61 - regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32;
f37945d50ff519 Le Ma 2020-09-05 62
f37945d50ff519 Le Ma 2020-09-05 63 WREG32_SOC15_OFFSET(MMHUB, 0,
regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32,
f37945d50ff519 Le Ma 2020-09-05 64 offset * vmid, lower_32_bits(page_table_base));
f37945d50ff519 Le Ma 2020-09-05 65
f37945d50ff519 Le Ma 2020-09-05 66 WREG32_SOC15_OFFSET(MMHUB, 0,
regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32,
f37945d50ff519 Le Ma 2020-09-05 67 offset * vmid, upper_32_bits(page_table_base));
f37945d50ff519 Le Ma 2020-09-05 68 }
f37945d50ff519 Le Ma 2020-09-05 69
:::::: The code at line 56 was first introduced by commit
:::::: f37945d50ff5194449ae1a8f53e862c2bcf43464 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