[radeon-alex:amd-staging-dkms-4.13 3177/3830] drivers/gpu/drm/radeon/radeon_kfd.c:184:2: warning: initialization from incompatible pointer type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-dkms-4.13
head:   7bde112fab15c0a28c1d056959167cd4393bf538
commit: c30b9ce3a991b4531329cad536b3d7681acb6108 [3177/3830] amd/amdkfd: Remove write_vmid_invalidate_request() from kfd2kgd interface
config: i386-randconfig-a0-201806 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout c30b9ce3a991b4531329cad536b3d7681acb6108
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/radeon/radeon_kfd.c:184:2: error: unknown field 'write_vmid_invalidate_request' specified in initializer
     .write_vmid_invalidate_request = write_vmid_invalidate_request,
     ^
>> drivers/gpu/drm/radeon/radeon_kfd.c:184:2: warning: initialization from incompatible pointer type
   drivers/gpu/drm/radeon/radeon_kfd.c:184:2: warning: (near initialization for 'kfd2kgd.get_atc_vmid_pasid_mapping_pasid')
   In file included from include/linux/kernel.h:13:0,
                    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:1435: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/printk.h:136:18: note: in definition of macro 'no_printk'
       printk(fmt, ##__VA_ARGS__); \
                     ^
   drivers/gpu/drm/radeon/radeon_kfd.c:1435:2: note: in expansion of macro 'pr_debug'
     pr_debug("Set BO to VA %p\n", (void *) va);
     ^

vim +184 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);
edad40239 Alexey Skidanov 2015-05-19  146  static void write_vmid_invalidate_request(struct kgd_dev *kgd, uint8_t vmid);
b7f99b04c Yong Zhao       2016-04-08  147  static void set_num_of_requests(struct kgd_dev *dev, uint8_t num_of_req);
b7f99b04c Yong Zhao       2016-04-08  148  static void get_cu_info(struct kgd_dev *kgd, struct kfd_cu_info *cu_info);
b7f99b04c Yong Zhao       2016-04-08  149  static int alloc_memory_of_scratch(struct kgd_dev *kgd,
b7f99b04c Yong Zhao       2016-04-08  150  					 uint64_t va, uint32_t vmid);
b7f99b04c Yong Zhao       2016-04-08  151  static int write_config_static_mem(struct kgd_dev *kgd, bool swizzle_enable,
b7f99b04c Yong Zhao       2016-04-08  152  		uint8_t element_size, uint8_t index_stride, uint8_t mtype);
b7f99b04c Yong Zhao       2016-04-08  153  static int map_gtt_bo_to_kernel(struct kgd_dev *kgd,
b7f99b04c Yong Zhao       2016-04-08  154  			struct kgd_mem *mem, void **kptr);
b7f99b04c Yong Zhao       2016-04-08  155  static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid,
b7f99b04c Yong Zhao       2016-04-08  156  			uint32_t page_table_base);
edad40239 Alexey Skidanov 2015-05-19  157  
e28740ece Oded Gabbay     2014-07-15  158  static const struct kfd2kgd_calls kfd2kgd = {
ceae881bf Oded Gabbay     2014-10-26  159  	.init_gtt_mem_allocation = alloc_gtt_mem,
ceae881bf Oded Gabbay     2014-10-26  160  	.free_gtt_mem = free_gtt_mem,
b7f99b04c Yong Zhao       2016-04-08  161  	.get_local_mem_info = get_local_mem_info,
e28740ece Oded Gabbay     2014-07-15  162  	.get_gpu_clock_counter = get_gpu_clock_counter,
e28740ece Oded Gabbay     2014-07-15  163  	.get_max_engine_clock_in_mhz = get_max_engine_clock_in_mhz,
b7f99b04c Yong Zhao       2016-04-08  164  	.create_process_vm = create_process_vm,
b7f99b04c Yong Zhao       2016-04-08  165  	.destroy_process_vm = destroy_process_vm,
b7f99b04c Yong Zhao       2016-04-08  166  	.get_process_page_dir = get_process_page_dir,
b7f99b04c Yong Zhao       2016-04-08  167  	.open_graphic_handle = open_graphic_handle,
e28740ece Oded Gabbay     2014-07-15  168  	.program_sh_mem_settings = kgd_program_sh_mem_settings,
e28740ece Oded Gabbay     2014-07-15  169  	.set_pasid_vmid_mapping = kgd_set_pasid_vmid_mapping,
e28740ece Oded Gabbay     2014-07-15  170  	.init_pipeline = kgd_init_pipeline,
d36b94fcf Oded Gabbay     2015-03-05  171  	.init_interrupts = kgd_init_interrupts,
e28740ece Oded Gabbay     2014-07-15  172  	.hqd_load = kgd_hqd_load,
a84a9903b Ben Goz         2015-01-03  173  	.hqd_sdma_load = kgd_hqd_sdma_load,
b64b8afcc Ben Goz         2014-12-09  174  	.hqd_is_occupied = kgd_hqd_is_occupied,
a84a9903b Ben Goz         2015-01-03  175  	.hqd_sdma_is_occupied = kgd_hqd_sdma_is_occupied,
e28740ece Oded Gabbay     2014-07-15  176  	.hqd_destroy = kgd_hqd_destroy,
a84a9903b Ben Goz         2015-01-03  177  	.hqd_sdma_destroy = kgd_hqd_sdma_destroy,
a6186f4d6 Yair Shachar    2014-09-28  178  	.address_watch_disable = kgd_address_watch_disable,
a6186f4d6 Yair Shachar    2014-09-28  179  	.address_watch_execute = kgd_address_watch_execute,
a6186f4d6 Yair Shachar    2014-09-28  180  	.wave_control_execute = kgd_wave_control_execute,
a6186f4d6 Yair Shachar    2014-09-28  181  	.address_watch_get_offset = kgd_address_watch_get_offset,
edad40239 Alexey Skidanov 2015-05-19  182  	.get_atc_vmid_pasid_mapping_pasid = get_atc_vmid_pasid_mapping_pasid,
edad40239 Alexey Skidanov 2015-05-19  183  	.get_atc_vmid_pasid_mapping_valid = get_atc_vmid_pasid_mapping_valid,
edad40239 Alexey Skidanov 2015-05-19 @184  	.write_vmid_invalidate_request = write_vmid_invalidate_request,
b7f99b04c Yong Zhao       2016-04-08  185  	.alloc_memory_of_gpu = alloc_memory_of_gpu,
b7f99b04c Yong Zhao       2016-04-08  186  	.free_memory_of_gpu = free_memory_of_gpu,
b7f99b04c Yong Zhao       2016-04-08  187  	.map_memory_to_gpu = map_memory_to_gpu,
b7f99b04c Yong Zhao       2016-04-08  188  	.unmap_memory_to_gpu = unmap_memory_from_gpu,
b7f99b04c Yong Zhao       2016-04-08  189  	.get_fw_version = get_fw_version,
b7f99b04c Yong Zhao       2016-04-08  190  	.set_num_of_requests = set_num_of_requests,
b7f99b04c Yong Zhao       2016-04-08  191  	.get_cu_info = get_cu_info,
b7f99b04c Yong Zhao       2016-04-08  192  	.alloc_memory_of_scratch = alloc_memory_of_scratch,
b7f99b04c Yong Zhao       2016-04-08  193  	.write_config_static_mem = write_config_static_mem,
b7f99b04c Yong Zhao       2016-04-08  194  	.map_gtt_bo_to_kernel = map_gtt_bo_to_kernel,
b7f99b04c Yong Zhao       2016-04-08  195  	.set_vm_context_page_table_base = set_vm_context_page_table_base,
e28740ece Oded Gabbay     2014-07-15  196  };
e28740ece Oded Gabbay     2014-07-15  197  

:::::: The code at line 184 was first introduced by commit
:::::: edad40239ffcaafd7eb56e4060d472aa5af2df21 drm/radeon: Add ATC VMID<-->PASID functions to kfd->kgd

:::::: TO: Alexey Skidanov <Alexey.Skidanov@xxxxxxx>
:::::: CC: Oded Gabbay <oded.gabbay@xxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

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

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux