Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: add df callback functions structure

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Hawking Zhang and committed by
Alex Deucher
634c96e3 3ef1381d

+12 -1
+12 -1
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 1368 1368 void (*detect_hw_virt)(struct amdgpu_device *adev); 1369 1369 }; 1370 1370 1371 - 1371 + struct amdgpu_df_funcs { 1372 + void (*init)(struct amdgpu_device *adev); 1373 + void (*enable_broadcast_mode)(struct amdgpu_device *adev, 1374 + bool enable); 1375 + u32 (*get_fb_channel_number)(struct amdgpu_device *adev); 1376 + u32 (*get_hbm_channel_number)(struct amdgpu_device *adev); 1377 + void (*update_medium_grain_clock_gating)(struct amdgpu_device *adev, 1378 + bool enable); 1379 + void (*get_clockgating_state)(struct amdgpu_device *adev, 1380 + u32 *flags); 1381 + }; 1372 1382 /* Define the HW IP blocks will be used in driver , add more if necessary */ 1373 1383 enum amd_hw_ip_block_type { 1374 1384 GC_HWIP = 1, ··· 1598 1588 uint32_t *reg_offset[MAX_HWIP][HWIP_MAX_INSTANCE]; 1599 1589 1600 1590 const struct amdgpu_nbio_funcs *nbio_funcs; 1591 + const struct amdgpu_df_funcs *df_funcs; 1601 1592 1602 1593 /* delayed work_func for deferring clockgating during resume */ 1603 1594 struct delayed_work late_init_work;