1 1.1 riastrad /* $NetBSD: amdgpu_gfx.h,v 1.3 2021/12/18 23:44:58 riastradh Exp $ */ 2 1.1 riastrad 3 1.1 riastrad /* 4 1.1 riastrad * Copyright 2014 Advanced Micro Devices, Inc. 5 1.1 riastrad * 6 1.1 riastrad * Permission is hereby granted, free of charge, to any person obtaining a 7 1.1 riastrad * copy of this software and associated documentation files (the "Software"), 8 1.1 riastrad * to deal in the Software without restriction, including without limitation 9 1.1 riastrad * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 1.1 riastrad * and/or sell copies of the Software, and to permit persons to whom the 11 1.1 riastrad * Software is furnished to do so, subject to the following conditions: 12 1.1 riastrad * 13 1.1 riastrad * The above copyright notice and this permission notice shall be included in 14 1.1 riastrad * all copies or substantial portions of the Software. 15 1.1 riastrad * 16 1.1 riastrad * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 1.1 riastrad * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 1.1 riastrad * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 1.1 riastrad * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 1.1 riastrad * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 1.1 riastrad * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 1.1 riastrad * OTHER DEALINGS IN THE SOFTWARE. 23 1.1 riastrad * 24 1.1 riastrad */ 25 1.1 riastrad 26 1.1 riastrad #ifndef __AMDGPU_GFX_H__ 27 1.1 riastrad #define __AMDGPU_GFX_H__ 28 1.1 riastrad 29 1.3 riastrad /* 30 1.3 riastrad * GFX stuff 31 1.3 riastrad */ 32 1.3 riastrad #include "clearstate_defs.h" 33 1.3 riastrad #include "amdgpu_ring.h" 34 1.3 riastrad #include "amdgpu_rlc.h" 35 1.3 riastrad 36 1.3 riastrad /* GFX current status */ 37 1.3 riastrad #define AMDGPU_GFX_NORMAL_MODE 0x00000000L 38 1.3 riastrad #define AMDGPU_GFX_SAFE_MODE 0x00000001L 39 1.3 riastrad #define AMDGPU_GFX_PG_DISABLED_MODE 0x00000002L 40 1.3 riastrad #define AMDGPU_GFX_CG_DISABLED_MODE 0x00000004L 41 1.3 riastrad #define AMDGPU_GFX_LBPW_DISABLED_MODE 0x00000008L 42 1.3 riastrad 43 1.3 riastrad #define AMDGPU_MAX_GFX_QUEUES KGD_MAX_QUEUES 44 1.3 riastrad #define AMDGPU_MAX_COMPUTE_QUEUES KGD_MAX_QUEUES 45 1.3 riastrad 46 1.3 riastrad struct amdgpu_mec { 47 1.3 riastrad struct amdgpu_bo *hpd_eop_obj; 48 1.3 riastrad u64 hpd_eop_gpu_addr; 49 1.3 riastrad struct amdgpu_bo *mec_fw_obj; 50 1.3 riastrad u64 mec_fw_gpu_addr; 51 1.3 riastrad u32 num_mec; 52 1.3 riastrad u32 num_pipe_per_mec; 53 1.3 riastrad u32 num_queue_per_pipe; 54 1.3 riastrad void *mqd_backup[AMDGPU_MAX_COMPUTE_RINGS + 1]; 55 1.3 riastrad 56 1.3 riastrad /* These are the resources for which amdgpu takes ownership */ 57 1.3 riastrad DECLARE_BITMAP(queue_bitmap, AMDGPU_MAX_COMPUTE_QUEUES); 58 1.3 riastrad }; 59 1.3 riastrad 60 1.3 riastrad enum amdgpu_unmap_queues_action { 61 1.3 riastrad PREEMPT_QUEUES = 0, 62 1.3 riastrad RESET_QUEUES, 63 1.3 riastrad DISABLE_PROCESS_QUEUES, 64 1.3 riastrad PREEMPT_QUEUES_NO_UNMAP, 65 1.3 riastrad }; 66 1.3 riastrad 67 1.3 riastrad struct kiq_pm4_funcs { 68 1.3 riastrad /* Support ASIC-specific kiq pm4 packets*/ 69 1.3 riastrad void (*kiq_set_resources)(struct amdgpu_ring *kiq_ring, 70 1.3 riastrad uint64_t queue_mask); 71 1.3 riastrad void (*kiq_map_queues)(struct amdgpu_ring *kiq_ring, 72 1.3 riastrad struct amdgpu_ring *ring); 73 1.3 riastrad void (*kiq_unmap_queues)(struct amdgpu_ring *kiq_ring, 74 1.3 riastrad struct amdgpu_ring *ring, 75 1.3 riastrad enum amdgpu_unmap_queues_action action, 76 1.3 riastrad u64 gpu_addr, u64 seq); 77 1.3 riastrad void (*kiq_query_status)(struct amdgpu_ring *kiq_ring, 78 1.3 riastrad struct amdgpu_ring *ring, 79 1.3 riastrad u64 addr, 80 1.3 riastrad u64 seq); 81 1.3 riastrad void (*kiq_invalidate_tlbs)(struct amdgpu_ring *kiq_ring, 82 1.3 riastrad uint16_t pasid, uint32_t flush_type, 83 1.3 riastrad bool all_hub); 84 1.3 riastrad /* Packet sizes */ 85 1.3 riastrad int set_resources_size; 86 1.3 riastrad int map_queues_size; 87 1.3 riastrad int unmap_queues_size; 88 1.3 riastrad int query_status_size; 89 1.3 riastrad int invalidate_tlbs_size; 90 1.3 riastrad }; 91 1.3 riastrad 92 1.3 riastrad struct amdgpu_kiq { 93 1.3 riastrad u64 eop_gpu_addr; 94 1.3 riastrad struct amdgpu_bo *eop_obj; 95 1.3 riastrad spinlock_t ring_lock; 96 1.3 riastrad struct amdgpu_ring ring; 97 1.3 riastrad struct amdgpu_irq_src irq; 98 1.3 riastrad const struct kiq_pm4_funcs *pmf; 99 1.3 riastrad uint32_t reg_val_offs; 100 1.3 riastrad }; 101 1.3 riastrad 102 1.3 riastrad /* 103 1.3 riastrad * GPU scratch registers structures, functions & helpers 104 1.3 riastrad */ 105 1.3 riastrad struct amdgpu_scratch { 106 1.3 riastrad unsigned num_reg; 107 1.3 riastrad uint32_t reg_base; 108 1.3 riastrad uint32_t free_mask; 109 1.3 riastrad }; 110 1.3 riastrad 111 1.3 riastrad /* 112 1.3 riastrad * GFX configurations 113 1.3 riastrad */ 114 1.3 riastrad #define AMDGPU_GFX_MAX_SE 4 115 1.3 riastrad #define AMDGPU_GFX_MAX_SH_PER_SE 2 116 1.3 riastrad 117 1.3 riastrad struct amdgpu_rb_config { 118 1.3 riastrad uint32_t rb_backend_disable; 119 1.3 riastrad uint32_t user_rb_backend_disable; 120 1.3 riastrad uint32_t raster_config; 121 1.3 riastrad uint32_t raster_config_1; 122 1.3 riastrad }; 123 1.3 riastrad 124 1.3 riastrad struct gb_addr_config { 125 1.3 riastrad uint16_t pipe_interleave_size; 126 1.3 riastrad uint8_t num_pipes; 127 1.3 riastrad uint8_t max_compress_frags; 128 1.3 riastrad uint8_t num_banks; 129 1.3 riastrad uint8_t num_se; 130 1.3 riastrad uint8_t num_rb_per_se; 131 1.3 riastrad }; 132 1.3 riastrad 133 1.3 riastrad struct amdgpu_gfx_config { 134 1.3 riastrad unsigned max_shader_engines; 135 1.3 riastrad unsigned max_tile_pipes; 136 1.3 riastrad unsigned max_cu_per_sh; 137 1.3 riastrad unsigned max_sh_per_se; 138 1.3 riastrad unsigned max_backends_per_se; 139 1.3 riastrad unsigned max_texture_channel_caches; 140 1.3 riastrad unsigned max_gprs; 141 1.3 riastrad unsigned max_gs_threads; 142 1.3 riastrad unsigned max_hw_contexts; 143 1.3 riastrad unsigned sc_prim_fifo_size_frontend; 144 1.3 riastrad unsigned sc_prim_fifo_size_backend; 145 1.3 riastrad unsigned sc_hiz_tile_fifo_size; 146 1.3 riastrad unsigned sc_earlyz_tile_fifo_size; 147 1.3 riastrad 148 1.3 riastrad unsigned num_tile_pipes; 149 1.3 riastrad unsigned backend_enable_mask; 150 1.3 riastrad unsigned mem_max_burst_length_bytes; 151 1.3 riastrad unsigned mem_row_size_in_kb; 152 1.3 riastrad unsigned shader_engine_tile_size; 153 1.3 riastrad unsigned num_gpus; 154 1.3 riastrad unsigned multi_gpu_tile_size; 155 1.3 riastrad unsigned mc_arb_ramcfg; 156 1.3 riastrad unsigned gb_addr_config; 157 1.3 riastrad unsigned num_rbs; 158 1.3 riastrad unsigned gs_vgt_table_depth; 159 1.3 riastrad unsigned gs_prim_buffer_depth; 160 1.3 riastrad 161 1.3 riastrad uint32_t tile_mode_array[32]; 162 1.3 riastrad uint32_t macrotile_mode_array[16]; 163 1.3 riastrad 164 1.3 riastrad struct gb_addr_config gb_addr_config_fields; 165 1.3 riastrad struct amdgpu_rb_config rb_config[AMDGPU_GFX_MAX_SE][AMDGPU_GFX_MAX_SH_PER_SE]; 166 1.3 riastrad 167 1.3 riastrad /* gfx configure feature */ 168 1.3 riastrad uint32_t double_offchip_lds_buf; 169 1.3 riastrad /* cached value of DB_DEBUG2 */ 170 1.3 riastrad uint32_t db_debug2; 171 1.3 riastrad /* gfx10 specific config */ 172 1.3 riastrad uint32_t num_sc_per_sh; 173 1.3 riastrad uint32_t num_packer_per_sc; 174 1.3 riastrad uint32_t pa_sc_tile_steering_override; 175 1.3 riastrad uint64_t tcc_disabled_mask; 176 1.3 riastrad }; 177 1.3 riastrad 178 1.3 riastrad struct amdgpu_cu_info { 179 1.3 riastrad uint32_t simd_per_cu; 180 1.3 riastrad uint32_t max_waves_per_simd; 181 1.3 riastrad uint32_t wave_front_size; 182 1.3 riastrad uint32_t max_scratch_slots_per_cu; 183 1.3 riastrad uint32_t lds_size; 184 1.3 riastrad 185 1.3 riastrad /* total active CU number */ 186 1.3 riastrad uint32_t number; 187 1.3 riastrad uint32_t ao_cu_mask; 188 1.3 riastrad uint32_t ao_cu_bitmap[4][4]; 189 1.3 riastrad uint32_t bitmap[4][4]; 190 1.3 riastrad }; 191 1.3 riastrad 192 1.3 riastrad struct amdgpu_gfx_funcs { 193 1.3 riastrad /* get the gpu clock counter */ 194 1.3 riastrad uint64_t (*get_gpu_clock_counter)(struct amdgpu_device *adev); 195 1.3 riastrad void (*select_se_sh)(struct amdgpu_device *adev, u32 se_num, 196 1.3 riastrad u32 sh_num, u32 instance); 197 1.3 riastrad void (*read_wave_data)(struct amdgpu_device *adev, uint32_t simd, 198 1.3 riastrad uint32_t wave, uint32_t *dst, int *no_fields); 199 1.3 riastrad void (*read_wave_vgprs)(struct amdgpu_device *adev, uint32_t simd, 200 1.3 riastrad uint32_t wave, uint32_t thread, uint32_t start, 201 1.3 riastrad uint32_t size, uint32_t *dst); 202 1.3 riastrad void (*read_wave_sgprs)(struct amdgpu_device *adev, uint32_t simd, 203 1.3 riastrad uint32_t wave, uint32_t start, uint32_t size, 204 1.3 riastrad uint32_t *dst); 205 1.3 riastrad void (*select_me_pipe_q)(struct amdgpu_device *adev, u32 me, u32 pipe, 206 1.3 riastrad u32 queue, u32 vmid); 207 1.3 riastrad int (*ras_error_inject)(struct amdgpu_device *adev, void *inject_if); 208 1.3 riastrad int (*query_ras_error_count) (struct amdgpu_device *adev, void *ras_error_status); 209 1.3 riastrad }; 210 1.3 riastrad 211 1.3 riastrad struct sq_work { 212 1.3 riastrad struct work_struct work; 213 1.3 riastrad unsigned ih_data; 214 1.3 riastrad }; 215 1.3 riastrad 216 1.3 riastrad struct amdgpu_pfp { 217 1.3 riastrad struct amdgpu_bo *pfp_fw_obj; 218 1.3 riastrad uint64_t pfp_fw_gpu_addr; 219 1.3 riastrad uint32_t *pfp_fw_ptr; 220 1.3 riastrad }; 221 1.3 riastrad 222 1.3 riastrad struct amdgpu_ce { 223 1.3 riastrad struct amdgpu_bo *ce_fw_obj; 224 1.3 riastrad uint64_t ce_fw_gpu_addr; 225 1.3 riastrad uint32_t *ce_fw_ptr; 226 1.3 riastrad }; 227 1.3 riastrad 228 1.3 riastrad struct amdgpu_me { 229 1.3 riastrad struct amdgpu_bo *me_fw_obj; 230 1.3 riastrad uint64_t me_fw_gpu_addr; 231 1.3 riastrad uint32_t *me_fw_ptr; 232 1.3 riastrad uint32_t num_me; 233 1.3 riastrad uint32_t num_pipe_per_me; 234 1.3 riastrad uint32_t num_queue_per_pipe; 235 1.3 riastrad void *mqd_backup[AMDGPU_MAX_GFX_RINGS]; 236 1.3 riastrad 237 1.3 riastrad /* These are the resources for which amdgpu takes ownership */ 238 1.3 riastrad DECLARE_BITMAP(queue_bitmap, AMDGPU_MAX_GFX_QUEUES); 239 1.3 riastrad }; 240 1.3 riastrad 241 1.3 riastrad struct amdgpu_gfx { 242 1.3 riastrad struct mutex gpu_clock_mutex; 243 1.3 riastrad struct amdgpu_gfx_config config; 244 1.3 riastrad struct amdgpu_rlc rlc; 245 1.3 riastrad struct amdgpu_pfp pfp; 246 1.3 riastrad struct amdgpu_ce ce; 247 1.3 riastrad struct amdgpu_me me; 248 1.3 riastrad struct amdgpu_mec mec; 249 1.3 riastrad struct amdgpu_kiq kiq; 250 1.3 riastrad struct amdgpu_scratch scratch; 251 1.3 riastrad const struct firmware *me_fw; /* ME firmware */ 252 1.3 riastrad uint32_t me_fw_version; 253 1.3 riastrad const struct firmware *pfp_fw; /* PFP firmware */ 254 1.3 riastrad uint32_t pfp_fw_version; 255 1.3 riastrad const struct firmware *ce_fw; /* CE firmware */ 256 1.3 riastrad uint32_t ce_fw_version; 257 1.3 riastrad const struct firmware *rlc_fw; /* RLC firmware */ 258 1.3 riastrad uint32_t rlc_fw_version; 259 1.3 riastrad const struct firmware *mec_fw; /* MEC firmware */ 260 1.3 riastrad uint32_t mec_fw_version; 261 1.3 riastrad const struct firmware *mec2_fw; /* MEC2 firmware */ 262 1.3 riastrad uint32_t mec2_fw_version; 263 1.3 riastrad uint32_t me_feature_version; 264 1.3 riastrad uint32_t ce_feature_version; 265 1.3 riastrad uint32_t pfp_feature_version; 266 1.3 riastrad uint32_t rlc_feature_version; 267 1.3 riastrad uint32_t rlc_srlc_fw_version; 268 1.3 riastrad uint32_t rlc_srlc_feature_version; 269 1.3 riastrad uint32_t rlc_srlg_fw_version; 270 1.3 riastrad uint32_t rlc_srlg_feature_version; 271 1.3 riastrad uint32_t rlc_srls_fw_version; 272 1.3 riastrad uint32_t rlc_srls_feature_version; 273 1.3 riastrad uint32_t mec_feature_version; 274 1.3 riastrad uint32_t mec2_feature_version; 275 1.3 riastrad bool mec_fw_write_wait; 276 1.3 riastrad bool me_fw_write_wait; 277 1.3 riastrad bool cp_fw_write_wait; 278 1.3 riastrad struct amdgpu_ring gfx_ring[AMDGPU_MAX_GFX_RINGS]; 279 1.3 riastrad struct drm_gpu_scheduler *gfx_sched[AMDGPU_MAX_GFX_RINGS]; 280 1.3 riastrad uint32_t num_gfx_sched; 281 1.3 riastrad unsigned num_gfx_rings; 282 1.3 riastrad struct amdgpu_ring compute_ring[AMDGPU_MAX_COMPUTE_RINGS]; 283 1.3 riastrad struct drm_gpu_scheduler *compute_sched[AMDGPU_MAX_COMPUTE_RINGS]; 284 1.3 riastrad uint32_t num_compute_sched; 285 1.3 riastrad unsigned num_compute_rings; 286 1.3 riastrad struct amdgpu_irq_src eop_irq; 287 1.3 riastrad struct amdgpu_irq_src priv_reg_irq; 288 1.3 riastrad struct amdgpu_irq_src priv_inst_irq; 289 1.3 riastrad struct amdgpu_irq_src cp_ecc_error_irq; 290 1.3 riastrad struct amdgpu_irq_src sq_irq; 291 1.3 riastrad struct sq_work sq_work; 292 1.3 riastrad 293 1.3 riastrad /* gfx status */ 294 1.3 riastrad uint32_t gfx_current_status; 295 1.3 riastrad /* ce ram size*/ 296 1.3 riastrad unsigned ce_ram_size; 297 1.3 riastrad struct amdgpu_cu_info cu_info; 298 1.3 riastrad const struct amdgpu_gfx_funcs *funcs; 299 1.3 riastrad 300 1.3 riastrad /* reset mask */ 301 1.3 riastrad uint32_t grbm_soft_reset; 302 1.3 riastrad uint32_t srbm_soft_reset; 303 1.3 riastrad 304 1.3 riastrad /* gfx off */ 305 1.3 riastrad bool gfx_off_state; /* true: enabled, false: disabled */ 306 1.3 riastrad struct mutex gfx_off_mutex; 307 1.3 riastrad uint32_t gfx_off_req_count; /* default 1, enable gfx off: dec 1, disable gfx off: add 1 */ 308 1.3 riastrad struct delayed_work gfx_off_delay_work; 309 1.3 riastrad 310 1.3 riastrad /* pipe reservation */ 311 1.3 riastrad struct mutex pipe_reserve_mutex; 312 1.3 riastrad DECLARE_BITMAP (pipe_reserve_bitmap, AMDGPU_MAX_COMPUTE_QUEUES); 313 1.3 riastrad 314 1.3 riastrad /*ras */ 315 1.3 riastrad struct ras_common_if *ras_if; 316 1.3 riastrad }; 317 1.3 riastrad 318 1.3 riastrad #define amdgpu_gfx_get_gpu_clock_counter(adev) (adev)->gfx.funcs->get_gpu_clock_counter((adev)) 319 1.3 riastrad #define amdgpu_gfx_select_se_sh(adev, se, sh, instance) (adev)->gfx.funcs->select_se_sh((adev), (se), (sh), (instance)) 320 1.3 riastrad #define amdgpu_gfx_select_me_pipe_q(adev, me, pipe, q, vmid) (adev)->gfx.funcs->select_me_pipe_q((adev), (me), (pipe), (q), (vmid)) 321 1.3 riastrad 322 1.3 riastrad /** 323 1.3 riastrad * amdgpu_gfx_create_bitmask - create a bitmask 324 1.3 riastrad * 325 1.3 riastrad * @bit_width: length of the mask 326 1.3 riastrad * 327 1.3 riastrad * create a variable length bit mask. 328 1.3 riastrad * Returns the bitmask. 329 1.3 riastrad */ 330 1.3 riastrad static inline u32 amdgpu_gfx_create_bitmask(u32 bit_width) 331 1.3 riastrad { 332 1.3 riastrad return (u32)((1ULL << bit_width) - 1); 333 1.3 riastrad } 334 1.3 riastrad 335 1.1 riastrad int amdgpu_gfx_scratch_get(struct amdgpu_device *adev, uint32_t *reg); 336 1.1 riastrad void amdgpu_gfx_scratch_free(struct amdgpu_device *adev, uint32_t reg); 337 1.1 riastrad 338 1.3 riastrad void amdgpu_gfx_parse_disable_cu(unsigned *mask, unsigned max_se, 339 1.3 riastrad unsigned max_sh); 340 1.3 riastrad 341 1.3 riastrad int amdgpu_gfx_kiq_init_ring(struct amdgpu_device *adev, 342 1.3 riastrad struct amdgpu_ring *ring, 343 1.3 riastrad struct amdgpu_irq_src *irq); 344 1.3 riastrad 345 1.3 riastrad void amdgpu_gfx_kiq_free_ring(struct amdgpu_ring *ring); 346 1.3 riastrad 347 1.3 riastrad void amdgpu_gfx_kiq_fini(struct amdgpu_device *adev); 348 1.3 riastrad int amdgpu_gfx_kiq_init(struct amdgpu_device *adev, 349 1.3 riastrad unsigned hpd_size); 350 1.3 riastrad 351 1.3 riastrad int amdgpu_gfx_mqd_sw_init(struct amdgpu_device *adev, 352 1.3 riastrad unsigned mqd_size); 353 1.3 riastrad void amdgpu_gfx_mqd_sw_fini(struct amdgpu_device *adev); 354 1.3 riastrad int amdgpu_gfx_disable_kcq(struct amdgpu_device *adev); 355 1.3 riastrad int amdgpu_gfx_enable_kcq(struct amdgpu_device *adev); 356 1.3 riastrad 357 1.3 riastrad void amdgpu_gfx_compute_queue_acquire(struct amdgpu_device *adev); 358 1.3 riastrad void amdgpu_gfx_graphics_queue_acquire(struct amdgpu_device *adev); 359 1.3 riastrad 360 1.3 riastrad int amdgpu_gfx_mec_queue_to_bit(struct amdgpu_device *adev, int mec, 361 1.3 riastrad int pipe, int queue); 362 1.3 riastrad void amdgpu_gfx_bit_to_mec_queue(struct amdgpu_device *adev, int bit, 363 1.3 riastrad int *mec, int *pipe, int *queue); 364 1.3 riastrad bool amdgpu_gfx_is_mec_queue_enabled(struct amdgpu_device *adev, int mec, 365 1.3 riastrad int pipe, int queue); 366 1.3 riastrad int amdgpu_gfx_me_queue_to_bit(struct amdgpu_device *adev, int me, 367 1.3 riastrad int pipe, int queue); 368 1.3 riastrad void amdgpu_gfx_bit_to_me_queue(struct amdgpu_device *adev, int bit, 369 1.3 riastrad int *me, int *pipe, int *queue); 370 1.3 riastrad bool amdgpu_gfx_is_me_queue_enabled(struct amdgpu_device *adev, int me, 371 1.3 riastrad int pipe, int queue); 372 1.3 riastrad void amdgpu_gfx_off_ctrl(struct amdgpu_device *adev, bool enable); 373 1.3 riastrad int amdgpu_gfx_ras_late_init(struct amdgpu_device *adev); 374 1.3 riastrad void amdgpu_gfx_ras_fini(struct amdgpu_device *adev); 375 1.3 riastrad int amdgpu_gfx_process_ras_data_cb(struct amdgpu_device *adev, 376 1.3 riastrad void *err_data, 377 1.3 riastrad struct amdgpu_iv_entry *entry); 378 1.3 riastrad int amdgpu_gfx_cp_ecc_error_irq(struct amdgpu_device *adev, 379 1.3 riastrad struct amdgpu_irq_src *source, 380 1.3 riastrad struct amdgpu_iv_entry *entry); 381 1.3 riastrad uint32_t amdgpu_kiq_rreg(struct amdgpu_device *adev, uint32_t reg); 382 1.3 riastrad void amdgpu_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v); 383 1.1 riastrad #endif 384