[radeon-alex:amd-20.45 1587/2427] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:882:6: warning: no previous prototype for 'kgd_gfx_v10_set_address_watch'
kernel test robot
lkp at intel.com
Tue Dec 15 05:50:02 UTC 2020
tree: git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: abdc393ab8265df9db5d9d64eb33ed1c33e9d95c [1587/2427] drm/amdkfd: Add gfx10 address watch support
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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 radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout abdc393ab8265df9db5d9d64eb33ed1c33e9d95c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:763:6: warning: no previous prototype for 'kgd_gfx_v10_enable_debug_trap' [-Wmissing-prototypes]
763 | void kgd_gfx_v10_enable_debug_trap(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:792:6: warning: no previous prototype for 'kgd_gfx_v10_disable_debug_trap' [-Wmissing-prototypes]
792 | void kgd_gfx_v10_disable_debug_trap(struct kgd_dev *kgd)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:803:5: warning: no previous prototype for 'kgd_gfx_v10_set_wave_launch_trap_override' [-Wmissing-prototypes]
803 | int kgd_gfx_v10_set_wave_launch_trap_override(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:852:6: warning: no previous prototype for 'kgd_gfx_v10_set_wave_launch_mode' [-Wmissing-prototypes]
852 | void kgd_gfx_v10_set_wave_launch_mode(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:882:6: warning: no previous prototype for 'kgd_gfx_v10_set_address_watch' [-Wmissing-prototypes]
882 | void kgd_gfx_v10_set_address_watch(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:942:6: warning: no previous prototype for 'kgd_gfx_v10_clear_address_watch' [-Wmissing-prototypes]
942 | void kgd_gfx_v10_clear_address_watch(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:967:6: warning: no previous prototype for 'kgd_gfx_v10_get_iq_wait_times' [-Wmissing-prototypes]
967 | void kgd_gfx_v10_get_iq_wait_times(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:976:6: warning: no previous prototype for 'kgd_gfx_v10_build_grace_period_packet_info' [-Wmissing-prototypes]
976 | void kgd_gfx_v10_build_grace_period_packet_info(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:64,
from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
from drivers/gpu/drm/amd/backport/backport.h:18,
from <command-line>:
drivers/gpu/drm/amd/display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/kgd_gfx_v10_set_address_watch +882 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c
881
> 882 void kgd_gfx_v10_set_address_watch(struct kgd_dev *kgd,
883 uint64_t watch_address,
884 uint32_t watch_address_mask,
885 uint32_t watch_id,
886 uint32_t watch_mode,
887 uint32_t debug_vmid)
888 {
889 struct amdgpu_device *adev = get_amdgpu_device(kgd);
890 uint32_t watch_address_high;
891 uint32_t watch_address_low;
892 uint32_t watch_address_cntl;
893
894 watch_address_cntl = 0;
895
896 watch_address_low = lower_32_bits(watch_address);
897 watch_address_high = upper_32_bits(watch_address) & 0xffff;
898
899 watch_address_cntl = REG_SET_FIELD(watch_address_cntl,
900 TCP_WATCH0_CNTL,
901 VMID,
902 debug_vmid);
903 watch_address_cntl = REG_SET_FIELD(watch_address_cntl,
904 TCP_WATCH0_CNTL,
905 MODE,
906 watch_mode);
907 watch_address_cntl = REG_SET_FIELD(watch_address_cntl,
908 TCP_WATCH0_CNTL,
909 MASK,
910 watch_address_mask >> 6);
911
912 /* Turning off this watch point until we set all the registers */
913 watch_address_cntl = REG_SET_FIELD(watch_address_cntl,
914 TCP_WATCH0_CNTL,
915 VALID,
916 0);
917
918 WREG32((SOC15_REG_OFFSET(GC, 0, mmTCP_WATCH0_CNTL) +
919 (watch_id * TCP_WATCH_STRIDE)),
920 watch_address_cntl);
921
922 WREG32((SOC15_REG_OFFSET(GC, 0, mmTCP_WATCH0_ADDR_H) +
923 (watch_id * TCP_WATCH_STRIDE)),
924 watch_address_high);
925
926 WREG32((SOC15_REG_OFFSET(GC, 0, mmTCP_WATCH0_ADDR_L) +
927 (watch_id * TCP_WATCH_STRIDE)),
928 watch_address_low);
929
930 /* Enable the watch point */
931 watch_address_cntl = REG_SET_FIELD(watch_address_cntl,
932 TCP_WATCH0_CNTL,
933 VALID,
934 1);
935
936 WREG32((SOC15_REG_OFFSET(GC, 0, mmTCP_WATCH0_CNTL) +
937 (watch_id * TCP_WATCH_STRIDE)),
938 watch_address_cntl);
939
940 }
941
> 942 void kgd_gfx_v10_clear_address_watch(struct kgd_dev *kgd,
943 uint32_t watch_id)
944 {
945 struct amdgpu_device *adev = get_amdgpu_device(kgd);
946
947 uint32_t watch_address_cntl;
948
949 watch_address_cntl = 0;
950
951 WREG32((SOC15_REG_OFFSET(GC, 0, mmTCP_WATCH0_CNTL) +
952 (watch_id * TCP_WATCH_STRIDE)),
953 watch_address_cntl);
954 }
955
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 65816 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201215/c27d2e2b/attachment-0001.gz>
More information about the dri-devel
mailing list