Messages in this thread | | | Date | Wed, 17 Jun 2020 18:51:30 +0800 | From | kernel test robot <> | Subject | drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c:113:5: warning: no previous prototype for 'pm_set_resources_vi' |
| |
Hi Timothy,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 69119673bd50b176ded34032fadd41530fb5af21 commit: 70ebe8a48216ae2fda862cae47ff0b8af5b279b9 amdgpu: Enable KFD on POWER systems date: 7 months ago 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 checkout 70ebe8a48216ae2fda862cae47ff0b8af5b279b9 # 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@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c:113:5: warning: no previous prototype for 'pm_set_resources_vi' [-Wmissing-prototypes] 113 | int pm_set_resources_vi(struct packet_manager *pm, uint32_t *buffer, | ^~~~~~~~~~~~~~~~~~~
vim +/pm_set_resources_vi +113 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 112 454150b1f9a6be drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 @113 int pm_set_resources_vi(struct packet_manager *pm, uint32_t *buffer, f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 114 struct scheduling_resources *res) f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 115 { f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 116 struct pm4_mes_set_resources *packet; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 117 f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 118 packet = (struct pm4_mes_set_resources *)buffer; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 119 memset(buffer, 0, sizeof(struct pm4_mes_set_resources)); f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 120 454150b1f9a6be drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 121 packet->header.u32All = pm_build_pm4_header(IT_SET_RESOURCES, f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 122 sizeof(struct pm4_mes_set_resources)); f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 123 f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 124 packet->bitfields2.queue_type = f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 125 queue_type__mes_set_resources__hsa_interface_queue_hiq; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 126 packet->bitfields2.vmid_mask = res->vmid_mask; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 127 packet->bitfields2.unmap_latency = KFD_UNMAP_LATENCY_MS / 100; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 128 packet->bitfields7.oac_mask = res->oac_mask; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 129 packet->bitfields8.gds_heap_base = res->gds_heap_base; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 130 packet->bitfields8.gds_heap_size = res->gds_heap_size; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 131 f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 132 packet->gws_mask_lo = lower_32_bits(res->gws_mask); f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 133 packet->gws_mask_hi = upper_32_bits(res->gws_mask); f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 134 f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 135 packet->queue_mask_lo = lower_32_bits(res->queue_mask); f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 136 packet->queue_mask_hi = upper_32_bits(res->queue_mask); f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 137 f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 138 return 0; f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 139 } f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 140
:::::: The code at line 113 was first introduced by commit :::::: 454150b1f9a6be0a69138a698471bd13424204cc drm/amdkfd: Add GFXv9 PM4 packet writer functions
:::::: TO: Felix Kuehling <Felix.Kuehling@amd.com> :::::: CC: Oded Gabbay <oded.gabbay@gmail.com>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |