mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Timothy Pearson <tpearson@raptorengineering.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Alex Deucher <alexander.deucher@amd.com>
Subject: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c:113:5: warning: no previous prototype for 'pm_set_resources_vi'
Date: Wed, 17 Jun 2020 18:51:30 +0800	[thread overview]
Message-ID: <202006171823.fTn8SkiO%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5404 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 63685 bytes --]

             reply	other threads:[~2020-06-17 10:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17 10:51 kernel test robot [this message]
2020-08-03 12:01 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202006171823.fTn8SkiO%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tpearson@raptorengineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®