[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008032033.sYxEcRgW%lkp@intel.com>
Date: Mon, 3 Aug 2020 20:01:37 +0800
From: kernel test robot <lkp@...el.com>
To: Yong Zhao <Yong.Zhao@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Alex Deucher <alexander.deucher@....com>,
Felix Kuehling <Felix.Kuehling@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c:113:5:
warning: no previous prototype for 'pm_set_resources_vi'
Hi Yong,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bcf876870b95592b52519ed4aafcf9d95999bc9c
commit: 594d0c90a48e9e661564d3584cda0a7c363e1611 drm/amdkfd: Rename kfd_kernel_queue_*.c to kfd_packet_manager_*.c
date: 9 months ago
config: x86_64-randconfig-r015-20200803 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 594d0c90a48e9e661564d3584cda0a7c363e1611
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new 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
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 112
454150b1f9a6be0 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,
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 114 struct scheduling_resources *res)
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 115 {
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 116 struct pm4_mes_set_resources *packet;
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 117
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 118 packet = (struct pm4_mes_set_resources *)buffer;
f6e27ff19d9db90 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));
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 120
454150b1f9a6be0 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,
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 122 sizeof(struct pm4_mes_set_resources));
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 123
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 124 packet->bitfields2.queue_type =
f6e27ff19d9db90 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;
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 126 packet->bitfields2.vmid_mask = res->vmid_mask;
f6e27ff19d9db90 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;
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 128 packet->bitfields7.oac_mask = res->oac_mask;
f6e27ff19d9db90 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;
f6e27ff19d9db90 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;
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 131
f6e27ff19d9db90 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);
f6e27ff19d9db90 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);
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 134
f6e27ff19d9db90 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);
f6e27ff19d9db90 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);
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 137
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 138 return 0;
f6e27ff19d9db90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 139 }
f6e27ff19d9db90 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@....com>
:::::: CC: Oded Gabbay <oded.gabbay@...il.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (36719 bytes)
Powered by blists - more mailing lists