amd-staging-drm-next has removed radeon_kfd.c. Those changes seem to be
missing from amd-staging-dkms-4.13.

Regards,
  Felix


On 2018-02-15 04:44 PM, kbuild test robot wrote:
> tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-dkms-4.13
> head:   7bde112fab15c0a28c1d056959167cd4393bf538
> commit: ac9c689b72b5f0fdb7bfecc427d0aa4b2a5eccf5 [3810/3830] drm/amdgpu: 
> Remove unused definitions, functions and interfaces
> config: i386-randconfig-i1-201806 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
>         git checkout ac9c689b72b5f0fdb7bfecc427d0aa4b2a5eccf5
>         # save the attached .config to linux build tree
>         make ARCH=i386 
>
> All errors (new ones prefixed by >>):
>
>>> drivers/gpu/drm/radeon/radeon_kfd.c:166:3: error: 'const struct 
>>> kfd2kgd_calls' has no member named 'open_graphic_handle'
>      .open_graphic_handle = open_graphic_handle,
>       ^~~~~~~~~~~~~~~~~~~
>>> drivers/gpu/drm/radeon/radeon_kfd.c:166:25: error: initialization from 
>>> incompatible pointer type [-Werror=incompatible-pointer-types]
>      .open_graphic_handle = open_graphic_handle,
>                             ^~~~~~~~~~~~~~~~~~~
>    drivers/gpu/drm/radeon/radeon_kfd.c:166:25: note: (near initialization for 
> 'kfd2kgd.alloc_pasid')
>>> drivers/gpu/drm/radeon/radeon_kfd.c:169:3: error: 'const struct 
>>> kfd2kgd_calls' has no member named 'init_pipeline'
>      .init_pipeline = kgd_init_pipeline,
>       ^~~~~~~~~~~~~
>    drivers/gpu/drm/radeon/radeon_kfd.c:169:19: error: initialization from 
> incompatible pointer type [-Werror=incompatible-pointer-types]
>      .init_pipeline = kgd_init_pipeline,
>                       ^~~~~~~~~~~~~~~~~
>    drivers/gpu/drm/radeon/radeon_kfd.c:169:19: note: (near initialization for 
> 'kfd2kgd.init_interrupts')
>>> drivers/gpu/drm/radeon/radeon_kfd.c:188:3: error: 'const struct 
>>> kfd2kgd_calls' has no member named 'set_num_of_requests'
>      .set_num_of_requests = set_num_of_requests,
>       ^~~~~~~~~~~~~~~~~~~
>    drivers/gpu/drm/radeon/radeon_kfd.c:188:25: error: initialization from 
> incompatible pointer type [-Werror=incompatible-pointer-types]
>      .set_num_of_requests = set_num_of_requests,
>                             ^~~~~~~~~~~~~~~~~~~
>    drivers/gpu/drm/radeon/radeon_kfd.c:188:25: note: (near initialization for 
> 'kfd2kgd.alloc_memory_of_scratch')
>    In file included from include/linux/printk.h:329:0,
>                     from include/linux/kernel.h:13,
>                     from include/linux/list.h:8,
>                     from include/linux/module.h:9,
>                     from drivers/gpu/drm/radeon/radeon_kfd.c:23:
>    drivers/gpu/drm/radeon/radeon_kfd.c: In function 'alloc_memory_of_gpu':
>    drivers/gpu/drm/radeon/radeon_kfd.c:1427:32: warning: cast to pointer from 
> integer of different size [-Wint-to-pointer-cast]
>      pr_debug("Set BO to VA %p\n", (void *) va);
>                                    ^
>    include/linux/dynamic_debug.h:127:10: note: in definition of macro 
> 'dynamic_pr_debug'
>            ##__VA_ARGS__);  \
>              ^~~~~~~~~~~
>    drivers/gpu/drm/radeon/radeon_kfd.c:1427:2: note: in expansion of macro 
> 'pr_debug'
>      pr_debug("Set BO to VA %p\n", (void *) va);
>      ^~~~~~~~
>    cc1: some warnings being treated as errors
>
> vim +166 drivers/gpu/drm/radeon/radeon_kfd.c
>
> e28740ece Oded Gabbay     2014-07-15  100  
> e28740ece Oded Gabbay     2014-07-15  101  /*
> e28740ece Oded Gabbay     2014-07-15  102   * Register access functions
> e28740ece Oded Gabbay     2014-07-15  103   */
> e28740ece Oded Gabbay     2014-07-15  104  
> e28740ece Oded Gabbay     2014-07-15  105  static void 
> kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid,
> e28740ece Oded Gabbay     2014-07-15  106             uint32_t sh_mem_config, 
> uint32_t sh_mem_ape1_base,
> e28740ece Oded Gabbay     2014-07-15  107             uint32_t 
> sh_mem_ape1_limit, uint32_t sh_mem_bases);
> e28740ece Oded Gabbay     2014-07-15  108  
> e28740ece Oded Gabbay     2014-07-15  109  static int 
> kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid,
> e28740ece Oded Gabbay     2014-07-15  110                                     
> unsigned int vmid);
> e28740ece Oded Gabbay     2014-07-15  111  
> e28740ece Oded Gabbay     2014-07-15  112  static int 
> kgd_init_pipeline(struct kgd_dev *kgd, uint32_t pipe_id,
> e28740ece Oded Gabbay     2014-07-15  113                             
> uint32_t hpd_size, uint64_t hpd_gpu_addr);
> d36b94fcf Oded Gabbay     2015-03-05  114  static int 
> kgd_init_interrupts(struct kgd_dev *kgd, uint32_t pipe_id);
> e28740ece Oded Gabbay     2014-07-15  115  static int kgd_hqd_load(struct 
> kgd_dev *kgd, void *mqd, uint32_t pipe_id,
> 3d1e75101 Jay Cornwall    2016-10-24  116                     uint32_t 
> queue_id, uint32_t __user *wptr,
> 3d1e75101 Jay Cornwall    2016-10-24  117                     uint32_t 
> wptr_shift, uint32_t wptr_mask,
> 3d1e75101 Jay Cornwall    2016-10-24  118                     struct 
> mm_struct *mm);
> dbb3576ec Felix Kuehling  2016-06-30  119  static int 
> kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd,
> dbb3576ec Felix Kuehling  2016-06-30  120                          uint32_t 
> __user *wptr, struct mm_struct *mm);
> b64b8afcc Ben Goz         2014-12-09  121  static bool 
> kgd_hqd_is_occupied(struct kgd_dev *kgd, uint64_t queue_address,
> e28740ece Oded Gabbay     2014-07-15  122                             
> uint32_t pipe_id, uint32_t queue_id);
> e28740ece Oded Gabbay     2014-07-15  123  
> af98b47f0 Shaoyun Liu     2017-07-18  124  static int kgd_hqd_destroy(struct 
> kgd_dev *kgd, void *mqd, uint32_t reset_type,
> e28740ece Oded Gabbay     2014-07-15  125                             
> unsigned int timeout, uint32_t pipe_id,
> e28740ece Oded Gabbay     2014-07-15  126                             
> uint32_t queue_id);
> a84a9903b Ben Goz         2015-01-03  127  static bool 
> kgd_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd);
> a84a9903b Ben Goz         2015-01-03  128  static int 
> kgd_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd,
> a84a9903b Ben Goz         2015-01-03  129                             
> unsigned int timeout);
> a6186f4d6 Yair Shachar    2014-09-28  130  static int 
> kgd_address_watch_disable(struct kgd_dev *kgd);
> a6186f4d6 Yair Shachar    2014-09-28  131  static int 
> kgd_address_watch_execute(struct kgd_dev *kgd,
> a6186f4d6 Yair Shachar    2014-09-28  132                                     
> unsigned int watch_point_id,
> a6186f4d6 Yair Shachar    2014-09-28  133                                     
> uint32_t cntl_val,
> a6186f4d6 Yair Shachar    2014-09-28  134                                     
> uint32_t addr_hi,
> a6186f4d6 Yair Shachar    2014-09-28  135                                     
> uint32_t addr_lo);
> a6186f4d6 Yair Shachar    2014-09-28  136  static int 
> kgd_wave_control_execute(struct kgd_dev *kgd,
> a6186f4d6 Yair Shachar    2014-09-28  137                                     
> uint32_t gfx_index_val,
> a6186f4d6 Yair Shachar    2014-09-28  138                                     
> uint32_t sq_cmd);
> a6186f4d6 Yair Shachar    2014-09-28  139  static uint32_t 
> kgd_address_watch_get_offset(struct kgd_dev *kgd,
> a6186f4d6 Yair Shachar    2014-09-28  140                                     
> unsigned int watch_point_id,
> a6186f4d6 Yair Shachar    2014-09-28  141                                     
> unsigned int reg_offset);
> e28740ece Oded Gabbay     2014-07-15  142  
> edad40239 Alexey Skidanov 2015-05-19  143  static bool 
> get_atc_vmid_pasid_mapping_valid(struct kgd_dev *kgd, uint8_t vmid);
> edad40239 Alexey Skidanov 2015-05-19  144  static uint16_t 
> get_atc_vmid_pasid_mapping_pasid(struct kgd_dev *kgd,
> edad40239 Alexey Skidanov 2015-05-19  145                                     
>                 uint8_t vmid);
> b7f99b04c Yong Zhao       2016-04-08  146  static void 
> set_num_of_requests(struct kgd_dev *dev, uint8_t num_of_req);
> b7f99b04c Yong Zhao       2016-04-08  147  static void get_cu_info(struct 
> kgd_dev *kgd, struct kfd_cu_info *cu_info);
> b7f99b04c Yong Zhao       2016-04-08  148  static int 
> alloc_memory_of_scratch(struct kgd_dev *kgd,
> b7f99b04c Yong Zhao       2016-04-08  149                                     
>  uint64_t va, uint32_t vmid);
> b7f99b04c Yong Zhao       2016-04-08  150  static int 
> write_config_static_mem(struct kgd_dev *kgd, bool swizzle_enable,
> b7f99b04c Yong Zhao       2016-04-08  151             uint8_t element_size, 
> uint8_t index_stride, uint8_t mtype);
> b7f99b04c Yong Zhao       2016-04-08  152  static int 
> map_gtt_bo_to_kernel(struct kgd_dev *kgd,
> b7f99b04c Yong Zhao       2016-04-08  153                     struct kgd_mem 
> *mem, void **kptr);
> b7f99b04c Yong Zhao       2016-04-08  154  static void 
> set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid,
> b7f99b04c Yong Zhao       2016-04-08  155                     uint32_t 
> page_table_base);
> edad40239 Alexey Skidanov 2015-05-19  156  
> e28740ece Oded Gabbay     2014-07-15  157  static const struct kfd2kgd_calls 
> kfd2kgd = {
> ceae881bf Oded Gabbay     2014-10-26  158     .init_gtt_mem_allocation = 
> alloc_gtt_mem,
> ceae881bf Oded Gabbay     2014-10-26  159     .free_gtt_mem = free_gtt_mem,
> b7f99b04c Yong Zhao       2016-04-08  160     .get_local_mem_info = 
> get_local_mem_info,
> e28740ece Oded Gabbay     2014-07-15  161     .get_gpu_clock_counter = 
> get_gpu_clock_counter,
> e28740ece Oded Gabbay     2014-07-15  162     .get_max_engine_clock_in_mhz = 
> get_max_engine_clock_in_mhz,
> b7f99b04c Yong Zhao       2016-04-08  163     .create_process_vm = 
> create_process_vm,
> b7f99b04c Yong Zhao       2016-04-08  164     .destroy_process_vm = 
> destroy_process_vm,
> b7f99b04c Yong Zhao       2016-04-08  165     .get_process_page_dir = 
> get_process_page_dir,
> b7f99b04c Yong Zhao       2016-04-08 @166     .open_graphic_handle = 
> open_graphic_handle,
> e28740ece Oded Gabbay     2014-07-15  167     .program_sh_mem_settings = 
> kgd_program_sh_mem_settings,
> e28740ece Oded Gabbay     2014-07-15  168     .set_pasid_vmid_mapping = 
> kgd_set_pasid_vmid_mapping,
> e28740ece Oded Gabbay     2014-07-15 @169     .init_pipeline = 
> kgd_init_pipeline,
> d36b94fcf Oded Gabbay     2015-03-05  170     .init_interrupts = 
> kgd_init_interrupts,
> e28740ece Oded Gabbay     2014-07-15  171     .hqd_load = kgd_hqd_load,
> a84a9903b Ben Goz         2015-01-03  172     .hqd_sdma_load = 
> kgd_hqd_sdma_load,
> b64b8afcc Ben Goz         2014-12-09  173     .hqd_is_occupied = 
> kgd_hqd_is_occupied,
> a84a9903b Ben Goz         2015-01-03  174     .hqd_sdma_is_occupied = 
> kgd_hqd_sdma_is_occupied,
> e28740ece Oded Gabbay     2014-07-15  175     .hqd_destroy = kgd_hqd_destroy,
> a84a9903b Ben Goz         2015-01-03  176     .hqd_sdma_destroy = 
> kgd_hqd_sdma_destroy,
> a6186f4d6 Yair Shachar    2014-09-28  177     .address_watch_disable = 
> kgd_address_watch_disable,
> a6186f4d6 Yair Shachar    2014-09-28  178     .address_watch_execute = 
> kgd_address_watch_execute,
> a6186f4d6 Yair Shachar    2014-09-28  179     .wave_control_execute = 
> kgd_wave_control_execute,
> a6186f4d6 Yair Shachar    2014-09-28  180     .address_watch_get_offset = 
> kgd_address_watch_get_offset,
> edad40239 Alexey Skidanov 2015-05-19  181     
> .get_atc_vmid_pasid_mapping_pasid = get_atc_vmid_pasid_mapping_pasid,
> edad40239 Alexey Skidanov 2015-05-19  182     
> .get_atc_vmid_pasid_mapping_valid = get_atc_vmid_pasid_mapping_valid,
> b7f99b04c Yong Zhao       2016-04-08  183     .alloc_memory_of_gpu = 
> alloc_memory_of_gpu,
> b7f99b04c Yong Zhao       2016-04-08  184     .free_memory_of_gpu = 
> free_memory_of_gpu,
> b7f99b04c Yong Zhao       2016-04-08  185     .map_memory_to_gpu = 
> map_memory_to_gpu,
> b7f99b04c Yong Zhao       2016-04-08  186     .unmap_memory_to_gpu = 
> unmap_memory_from_gpu,
> b7f99b04c Yong Zhao       2016-04-08  187     .get_fw_version = 
> get_fw_version,
> b7f99b04c Yong Zhao       2016-04-08 @188     .set_num_of_requests = 
> set_num_of_requests,
> b7f99b04c Yong Zhao       2016-04-08  189     .get_cu_info = get_cu_info,
> b7f99b04c Yong Zhao       2016-04-08  190     .alloc_memory_of_scratch = 
> alloc_memory_of_scratch,
> b7f99b04c Yong Zhao       2016-04-08  191     .write_config_static_mem = 
> write_config_static_mem,
> b7f99b04c Yong Zhao       2016-04-08  192     .map_gtt_bo_to_kernel = 
> map_gtt_bo_to_kernel,
> b7f99b04c Yong Zhao       2016-04-08  193     .set_vm_context_page_table_base 
> = set_vm_context_page_table_base,
> e28740ece Oded Gabbay     2014-07-15  194  };
> e28740ece Oded Gabbay     2014-07-15  195  
>
> :::::: The code at line 166 was first introduced by commit
> :::::: b7f99b04c37bbf0a5690d87d460792633fa2a9fb radeon_kfd.c copied
>
> :::::: TO: Yong Zhao <yong.z...@amd.com>
> :::::: CC: Le.Ma <le...@amd.com>
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to