Revert "drm/amd/display: drop INLINE_IFN_KUNIT"
Subsystems (3)
Alex Deucher
maintainerPATCH 1/3 Revert "drm/amd/display: drop INLINE_IFN_KUNIT"
This reverts commit 5a98f454a61197761c4c5e8eed948dea2b9f5a69.
This series breaks the build when CONFIG_KUNIT=y and CONFIG_DRM_AMD_DC_KUNIT_TEST=n. When CONFIG_KUNIT=y,
the functions are not static, but when CONFIG_DRM_AMD_DC_KUNIT_TEST=n, they should be.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 2 +- drivers/gpu/drm/amd/display/dc/dm_helpers.h | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -274,7 +274,7 @@ static const struct amdgpu_dm_kunit_ops *amdgpu_dm_ops;* @array_of_surface_update: dc surface update pointer * */ -VISIBLE_IF_KUNIT inline +VISIBLE_IF_KUNIT INLINE_IFN_KUNIT bool update_planes_and_stream_adapter(struct dc *dc, int planes_count, struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +1 -1
@@ -173,7 +173,7 @@ void amdgpu_dm_init_color_mod(void) }EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_init_color_mod); -VISIBLE_IF_KUNIT inline +VISIBLE_IF_KUNIT INLINE_IFN_KUNITstruct fixed31_32 amdgpu_dm_fixpt_from_s3132 (__u64 x) {struct fixed31_32 val;
drivers/gpu/drm/amd/display/dc/dm_helpers.h +7 -0
@@ -194,6 +194,13 @@ void dm_helpers_mccs_vcp_set(struct dc_link *link, struct dc_sink *sink); +#if IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST ) +#define INLINE_IFN_KUNIT inline + +#else +#define INLINE_IFN_KUNIT +#endif + bool dm_helpers_submit_i2c_over_aux( struct ddc_service *ddc, uint32_t address,
Signature · 1 line
2.55.0
Alex Deucher
maintainerPATCH 2/3 Revert "drm/amd/display: replace EXPORT_IF_KUNIT with EXPORT_SYMBOL_IF_KUNIT"
This reverts commit b6b813e046e475bb3fe209d74f1df70033b5b98e.
This series breaks the build when CONFIG_KUNIT=y and CONFIG_DRM_AMD_DC_KUNIT_TEST=n. When CONFIG_KUNIT=y,
the functions are not static, but when CONFIG_DRM_AMD_DC_KUNIT_TEST=n, they should be.
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 136 ++++++++--------- .../amd/display/amdgpu_dm/amdgpu_dm_audio.c | 20 +-- .../display/amdgpu_dm/amdgpu_dm_backlight.c | 52 +++---- .../amd/display/amdgpu_dm/amdgpu_dm_color.c | 73 ++++----- .../amd/display/amdgpu_dm/amdgpu_dm_colorop.c | 12 +- .../display/amdgpu_dm/amdgpu_dm_connector.c | 140 +++++++++--------- .../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 24 +-- .../amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 46 +++--- .../amd/display/amdgpu_dm/amdgpu_dm_cursor.c | 14 +- .../amd/display/amdgpu_dm/amdgpu_dm_dmub.c | 32 ++-- .../display/amdgpu_dm/amdgpu_dm_freesync.c | 16 +- .../amd/display/amdgpu_dm/amdgpu_dm_hdcp.c | 56 +++---- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 120 +++++++-------- .../drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 94 ++++++------ .../drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c | 26 ++-- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 68 ++++----- .../amd/display/amdgpu_dm/amdgpu_dm_plane.c | 74 ++++----- .../amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 66 ++++----- .../drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 18 +-- .../amd/display/amdgpu_dm/amdgpu_dm_quirks.c | 4 +- .../amd/display/amdgpu_dm/amdgpu_dm_replay.c | 9 +- .../display/amdgpu_dm/amdgpu_dm_services.c | 16 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c | 12 +- .../amdgpu_dm/tests/amdgpu_dm_audio_test.c | 1 - .../tests/amdgpu_dm_backlight_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_color_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_colorop_test.c | 1 - .../tests/amdgpu_dm_connector_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_crc_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_crtc_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_cursor_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_dmub_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_freesync_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_hdcp_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_helpers_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_irq_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_ism_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_kunit_helpers.c | 1 - .../tests/amdgpu_dm_mst_types_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_plane_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_pp_smu_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_psr_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_quirks_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_replay_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_services_test.c | 1 - .../display/amdgpu_dm/tests/amdgpu_dm_test.c | 1 - .../amdgpu_dm/tests/amdgpu_dm_wb_test.c | 1 - drivers/gpu/drm/amd/display/dc/core/dc_sink.c | 6 +- .../gpu/drm/amd/display/dc/core/dc_stream.c | 2 +- drivers/gpu/drm/amd/display/dc/dm_helpers.h | 2 + 50 files changed, 572 insertions(+), 590 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +68 -68
@@ -186,7 +186,7 @@ VISIBLE_IF_KUNIT u32 dm_vblank_get_counter(struct amdgpu_device *adev, int crtc)return dc_stream_get_vblank_counter (acrtc->dm_irq_params.stream); } -EXPORT_SYMBOL_IF_KUNIT (dm_vblank_get_counter); +EXPORT_IF_KUNIT (dm_vblank_get_counter); VISIBLE_IF_KUNIT int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc,u32 *vbl,u32 *position)
@@ -224,14 +224,14 @@ VISIBLE_IF_KUNIT int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtcreturn 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_crtc_get_scanoutpos); +EXPORT_IF_KUNIT (dm_crtc_get_scanoutpos); VISIBLE_IF_KUNIT int dm_wait_for_idle(struct amdgpu_ip_block *ip_block) {/* XXX todo */ return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_wait_for_idle); +EXPORT_IF_KUNIT (dm_wait_for_idle);/* * DC will program planes with their z-order determined by their ordering
@@ -246,7 +246,7 @@ VISIBLE_IF_KUNIT int dm_plane_layer_index_cmp(const void *a, const void *b)/* Sort by descending dc_plane layer_index (i.e. normalized_zpos) */ return sb->surface->layer_index - sa->surface->layer_index; } -EXPORT_SYMBOL_IF_KUNIT (dm_plane_layer_index_cmp); +EXPORT_IF_KUNIT (dm_plane_layer_index_cmp);#if IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST )static const struct amdgpu_dm_kunit_ops *amdgpu_dm_ops;
@@ -295,21 +295,21 @@ bool update_planes_and_stream_adapter(struct dc *dc, stream, stream_update); } -EXPORT_SYMBOL_IF_KUNIT (update_planes_and_stream_adapter); +EXPORT_IF_KUNIT (update_planes_and_stream_adapter); VISIBLE_IF_KUNIT int dm_set_clockgating_state(struct amdgpu_ip_block *ip_block,enum amd_clockgating_state state) {return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_set_clockgating_state); +EXPORT_IF_KUNIT (dm_set_clockgating_state); VISIBLE_IF_KUNIT int dm_set_powergating_state(struct amdgpu_ip_block *ip_block,enum amd_powergating_state state) {return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_set_powergating_state); +EXPORT_IF_KUNIT (dm_set_powergating_state);/* Prototypes of private functions */ VISIBLE_IF_KUNIT int dm_early_init(struct amdgpu_ip_block *ip_block);
@@ -328,7 +328,7 @@ void amdgpu_dm_kunit_set_ops(const struct amdgpu_dm_kunit_ops *ops) { amdgpu_dm_ops = ops ? ops : &amdgpu_dm_default_ops; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_kunit_set_ops); +EXPORT_IF_KUNIT (amdgpu_dm_kunit_set_ops);#define dm_gmc_pd_addr amdgpu_dm_ops->gmc_pd_addr#define dm_atomic_helper_suspend amdgpu_dm_ops->atomic_helper_suspend
@@ -415,7 +415,7 @@ VISIBLE_IF_KUNIT void mmhub_read_system_context(struct amdgpu_device *adev, pa_config->is_hvm_enabled = adev->mode_info.gpu_vm_support; } -EXPORT_SYMBOL_IF_KUNIT (mmhub_read_system_context); +EXPORT_IF_KUNIT (mmhub_read_system_context); VISIBLE_IF_KUNIT int amdgpu_dm_init_power_module(struct amdgpu_display_manager *dm) {
@@ -482,7 +482,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_init_power_module(struct amdgpu_display_manager *return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_init_power_module); +EXPORT_IF_KUNIT (amdgpu_dm_init_power_module);static int amdgpu_dm_init (struct amdgpu_device *adev) {
@@ -877,7 +877,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_early_fini(struct amdgpu_ip_block *ip_block)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_early_fini); +EXPORT_IF_KUNIT (amdgpu_dm_early_fini);static void amdgpu_dm_fini (struct amdgpu_device *adev) {
@@ -1095,7 +1095,7 @@ VISIBLE_IF_KUNIT int load_dmcu_fw(struct amdgpu_device *adev)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (load_dmcu_fw); +EXPORT_IF_KUNIT (load_dmcu_fw); VISIBLE_IF_KUNIT int dm_sw_init(struct amdgpu_ip_block *ip_block) {
@@ -1118,7 +1118,7 @@ VISIBLE_IF_KUNIT int dm_sw_init(struct amdgpu_ip_block *ip_block)return load_dmcu_fw (adev); } -EXPORT_SYMBOL_IF_KUNIT (dm_sw_init); +EXPORT_IF_KUNIT (dm_sw_init); VISIBLE_IF_KUNIT int dm_sw_fini(struct amdgpu_ip_block *ip_block) {
@@ -1150,7 +1150,7 @@ VISIBLE_IF_KUNIT int dm_sw_fini(struct amdgpu_ip_block *ip_block)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_sw_fini); +EXPORT_IF_KUNIT (dm_sw_fini);static void amdgpu_dm_boot_time_crc_init (struct amdgpu_device *adev)
@@ -1251,7 +1251,7 @@ VISIBLE_IF_KUNIT int dm_late_init(struct amdgpu_ip_block *ip_block)return amdgpu_dm_detect_mst_link_for_all_connectors (adev_to_drm (adev)); } -EXPORT_SYMBOL_IF_KUNIT (dm_late_init); +EXPORT_IF_KUNIT (dm_late_init); VISIBLE_IF_KUNIT void resume_mst_branch_status(struct drm_dp_mst_topology_mgr *mgr) {
@@ -1303,7 +1303,7 @@ VISIBLE_IF_KUNIT void resume_mst_branch_status(struct drm_dp_mst_topology_mgr *m out_fail:mutex_unlock (&mgr->lock); } -EXPORT_SYMBOL_IF_KUNIT (resume_mst_branch_status); +EXPORT_IF_KUNIT (resume_mst_branch_status); VISIBLE_IF_KUNIT void s3_handle_mst(struct drm_device *dev, bool suspend) {
@@ -1346,7 +1346,7 @@ VISIBLE_IF_KUNIT void s3_handle_mst(struct drm_device *dev, bool suspend) }drm_connector_list_iter_end (&iter); } -EXPORT_SYMBOL_IF_KUNIT (s3_handle_mst); +EXPORT_IF_KUNIT (s3_handle_mst); VISIBLE_IF_KUNIT int dm_oem_i2c_hw_init(struct amdgpu_device *adev) {
@@ -1374,7 +1374,7 @@ VISIBLE_IF_KUNIT int dm_oem_i2c_hw_init(struct amdgpu_device *adev)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_oem_i2c_hw_init); +EXPORT_IF_KUNIT (dm_oem_i2c_hw_init);/** * dm_hw_init() - Initialize DC device
@@ -1497,7 +1497,7 @@ VISIBLE_IF_KUNIT void dm_gpureset_toggle_interrupts(struct amdgpu_device *adev, } } -EXPORT_SYMBOL_IF_KUNIT (dm_gpureset_toggle_interrupts); +EXPORT_IF_KUNIT (dm_gpureset_toggle_interrupts); DEFINE_FREE(state_release, struct dc_state *, dc_state_release(_T))
@@ -1539,7 +1539,7 @@ VISIBLE_IF_KUNIT enum dc_status amdgpu_dm_commit_zero_streams(struct dc *dc)return dc_commit_streams (dc, ¶ms); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_commit_zero_streams); +EXPORT_IF_KUNIT (amdgpu_dm_commit_zero_streams); VISIBLE_IF_KUNIT int dm_cache_state(struct amdgpu_device *adev) {
@@ -1553,7 +1553,7 @@ VISIBLE_IF_KUNIT int dm_cache_state(struct amdgpu_device *adev)return adev->dm.cached_state ?0 : r; } -EXPORT_SYMBOL_IF_KUNIT (dm_cache_state); +EXPORT_IF_KUNIT (dm_cache_state); VISIBLE_IF_KUNIT void dm_destroy_cached_state(struct amdgpu_device *adev) {
@@ -1605,7 +1605,7 @@ VISIBLE_IF_KUNIT void dm_destroy_cached_state(struct amdgpu_device *adev) dm->cached_state =NULL ; } -EXPORT_SYMBOL_IF_KUNIT (dm_destroy_cached_state); +EXPORT_IF_KUNIT (dm_destroy_cached_state);static int dm_suspend (struct amdgpu_ip_block *ip_block) {
@@ -1766,7 +1766,7 @@ void amdgpu_dm_emulated_link_detect(struct dc_link *link)drm_err (dev,"Failed to read EDID\n" ); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_emulated_link_detect); +EXPORT_IF_KUNIT (amdgpu_dm_emulated_link_detect); VISIBLE_IF_KUNIT void dm_gpureset_commit_state(struct dc_state *dc_state,struct amdgpu_display_manager *dm)
@@ -1804,7 +1804,7 @@ VISIBLE_IF_KUNIT void dm_gpureset_commit_state(struct dc_state *dc_state, bundle->surface_updates); } } -EXPORT_SYMBOL_IF_KUNIT (dm_gpureset_commit_state); +EXPORT_IF_KUNIT (dm_gpureset_commit_state);void amdgpu_dm_apply_delay_after_dpcd_poweroff (struct amdgpu_device *adev,struct dc_sink *sink)
@@ -1823,7 +1823,7 @@ void amdgpu_dm_apply_delay_after_dpcd_poweroff(struct amdgpu_device *adev, ppatch->wait_after_dpcd_poweroff_ms / 1000); } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_apply_delay_after_dpcd_poweroff); +EXPORT_IF_KUNIT (amdgpu_dm_apply_delay_after_dpcd_poweroff);/** * amdgpu_dm_dump_links_and_sinks - Debug dump of all DC links and their sinks
@@ -1885,7 +1885,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_dump_links_and_sinks(struct amdgpu_device *adev) } } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_dump_links_and_sinks); +EXPORT_IF_KUNIT (amdgpu_dm_dump_links_and_sinks);static int dm_resume (struct amdgpu_ip_block *ip_block) {
@@ -2197,7 +2197,7 @@ int dm_atomic_get_state(struct drm_atomic_commit *state,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_atomic_get_state); +EXPORT_IF_KUNIT (dm_atomic_get_state); VISIBLE_IF_KUNIT struct dm_atomic_state *dm_atomic_get_new_state (struct drm_atomic_commit *state)
@@ -2216,7 +2216,7 @@ dm_atomic_get_new_state(struct drm_atomic_commit *state)return NULL ; } -EXPORT_SYMBOL_IF_KUNIT (dm_atomic_get_new_state); +EXPORT_IF_KUNIT (dm_atomic_get_new_state); VISIBLE_IF_KUNIT struct drm_private_state *dm_atomic_duplicate_state (struct drm_private_obj *obj)
@@ -2241,7 +2241,7 @@ dm_atomic_duplicate_state(struct drm_private_obj *obj)return &new_state->base; } -EXPORT_SYMBOL_IF_KUNIT (dm_atomic_duplicate_state); +EXPORT_IF_KUNIT (dm_atomic_duplicate_state); VISIBLE_IF_KUNIT void dm_atomic_destroy_state(struct drm_private_obj *obj,struct drm_private_state *state)
@@ -2253,7 +2253,7 @@ VISIBLE_IF_KUNIT void dm_atomic_destroy_state(struct drm_private_obj *obj,kfree (dm_state); } -EXPORT_SYMBOL_IF_KUNIT (dm_atomic_destroy_state); +EXPORT_IF_KUNIT (dm_atomic_destroy_state);static struct drm_private_state *dm_atomic_create_state (struct drm_private_obj *obj)
@@ -2324,7 +2324,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_mode_config_init(struct amdgpu_device *adev)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_mode_config_init); +EXPORT_IF_KUNIT (amdgpu_dm_mode_config_init); VISIBLE_IF_KUNIT int initialize_plane(struct amdgpu_display_manager *dm, struct amdgpu_mode_info *mode_info, int plane_id,
@@ -2365,7 +2365,7 @@ VISIBLE_IF_KUNIT int initialize_plane(struct amdgpu_display_manager *dm,return ret; } -EXPORT_SYMBOL_IF_KUNIT (initialize_plane); +EXPORT_IF_KUNIT (initialize_plane);/*
@@ -2732,7 +2732,7 @@ VISIBLE_IF_KUNIT void dm_bandwidth_update(struct amdgpu_device *adev) {/* TODO: implement later */ } -EXPORT_SYMBOL_IF_KUNIT (dm_bandwidth_update); +EXPORT_IF_KUNIT (dm_bandwidth_update);static const struct amdgpu_display_funcs dm_display_funcs = { .bandwidth_update = dm_bandwidth_update,/* called unconditionally */
@@ -2932,13 +2932,13 @@ VISIBLE_IF_KUNIT int dm_early_init(struct amdgpu_ip_block *ip_block)return dm_init_microcode (adev); } -EXPORT_SYMBOL_IF_KUNIT (dm_early_init); +EXPORT_IF_KUNIT (dm_early_init); VISIBLE_IF_KUNIT bool modereset_required(struct drm_crtc_state *crtc_state) {return !crtc_state->active &&drm_atomic_crtc_needs_modeset (crtc_state); } -EXPORT_SYMBOL_IF_KUNIT (modereset_required); +EXPORT_IF_KUNIT (modereset_required); VISIBLE_IF_KUNIT int fill_plane_color_attributes(struct drm_atomic_commit *state,
@@ -2988,7 +2988,7 @@ fill_plane_color_attributes(struct drm_atomic_commit *state,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (fill_plane_color_attributes); +EXPORT_IF_KUNIT (fill_plane_color_attributes); VISIBLE_IF_KUNIT int fill_dc_plane_info_and_addr(struct amdgpu_device *adev,
@@ -3105,7 +3105,7 @@ fill_dc_plane_info_and_addr(struct amdgpu_device *adev,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (fill_dc_plane_info_and_addr); +EXPORT_IF_KUNIT (fill_dc_plane_info_and_addr); VISIBLE_IF_KUNIT int fill_dc_plane_attributes(struct amdgpu_device *adev, struct dc_plane_state *dc_plane_state,
@@ -3163,7 +3163,7 @@ VISIBLE_IF_KUNIT int fill_dc_plane_attributes(struct amdgpu_device *adev,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (fill_dc_plane_attributes); +EXPORT_IF_KUNIT (fill_dc_plane_attributes); static inline void fill_dc_dirty_rect(struct drm_plane *plane, struct rect *dirty_rect, int32_t x,
@@ -3327,7 +3327,7 @@ VISIBLE_IF_KUNIT void fill_dc_dirty_rects(struct drm_plane *plane, dm_crtc_state->base.mode.crtc_vdisplay, &flip_addrs->dirty_rect_count, true); } -EXPORT_SYMBOL_IF_KUNIT (fill_dc_dirty_rects); +EXPORT_IF_KUNIT (fill_dc_dirty_rects); VISIBLE_IF_KUNIT int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_commit *state, struct dc_state *dc_state,
@@ -3405,7 +3405,7 @@ VISIBLE_IF_KUNIT int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_commit * }return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_update_mst_vcpi_slots_for_dsc); +EXPORT_IF_KUNIT (dm_update_mst_vcpi_slots_for_dsc); VISIBLE_IF_KUNIT void manage_dm_interrupts(struct amdgpu_device *adev, struct amdgpu_crtc *acrtc,
@@ -3488,7 +3488,7 @@ VISIBLE_IF_KUNIT void manage_dm_interrupts(struct amdgpu_device *adev,drm_crtc_vblank_off (&acrtc->base); } } -EXPORT_SYMBOL_IF_KUNIT (manage_dm_interrupts); +EXPORT_IF_KUNIT (manage_dm_interrupts); VISIBLE_IF_KUNIT void dm_update_pflip_irq_state(struct amdgpu_device *adev,struct amdgpu_crtc *acrtc)
@@ -3506,7 +3506,7 @@ VISIBLE_IF_KUNIT void dm_update_pflip_irq_state(struct amdgpu_device *adev,*/ amdgpu_irq_update (adev, &adev->pageflip_irq, irq_type); } -EXPORT_SYMBOL_IF_KUNIT (dm_update_pflip_irq_state); +EXPORT_IF_KUNIT (dm_update_pflip_irq_state); VISIBLE_IF_KUNIT bool is_scaling_state_different(const struct dm_connector_state *dm_state,
@@ -3525,7 +3525,7 @@ is_scaling_state_different(const struct dm_connector_state *dm_state,return true;return false; } -EXPORT_SYMBOL_IF_KUNIT (is_scaling_state_different); +EXPORT_IF_KUNIT (is_scaling_state_different); VISIBLE_IF_KUNIT bool is_content_protection_different(struct drm_crtc_state *new_crtc_state,
@@ -3647,7 +3647,7 @@ is_content_protection_different(struct drm_crtc_state *new_crtc_state,pr_debug ("[HDCP_DM] DESIRED->ENABLED %s :false\n" , __func__);return false; } -EXPORT_SYMBOL_IF_KUNIT (is_content_protection_different); +EXPORT_IF_KUNIT (is_content_protection_different); static void remove_stream(struct amdgpu_device *adev, struct amdgpu_crtc *acrtc,
@@ -3673,7 +3673,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_commit_cursors(struct drm_atomic_commit *state)if (plane->type ==DRM_PLANE_TYPE_CURSOR )amdgpu_dm_plane_handle_cursor_update (plane, old_plane_state); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_commit_cursors); +EXPORT_IF_KUNIT (amdgpu_dm_commit_cursors);static inline uint32_t get_mem_type (struct drm_framebuffer *fb) {
@@ -3753,7 +3753,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_update_cursor(struct drm_plane *plane, update->cursor_position = &crtc_state->stream->cursor_position; } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_update_cursor); +EXPORT_IF_KUNIT (amdgpu_dm_update_cursor); VISIBLE_IF_KUNIT void amdgpu_dm_enable_self_refresh(struct amdgpu_display_manager *dm, struct amdgpu_crtc *acrtc_attach,
@@ -3794,7 +3794,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_enable_self_refresh(struct amdgpu_display_manage acrtc_attach->dm_irq_params.allow_sr_entry = false; } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_enable_self_refresh); +EXPORT_IF_KUNIT (amdgpu_dm_enable_self_refresh); VISIBLE_IF_KUNIT void dm_arm_vblank_event(struct amdgpu_crtc *acrtc, struct dm_crtc_state *acrtc_state,
@@ -3822,7 +3822,7 @@ VISIBLE_IF_KUNIT void dm_arm_vblank_event(struct amdgpu_crtc *acrtc, acrtc->base.state->event =NULL ; } } -EXPORT_SYMBOL_IF_KUNIT (dm_arm_vblank_event); +EXPORT_IF_KUNIT (dm_arm_vblank_event);/** * dm_arm_vblank_event_pre_programming - Prepare for programming
@@ -3848,7 +3848,7 @@ VISIBLE_IF_KUNIT void dm_arm_vblank_event_pre_programming(struct amdgpu_crtc *acif (pflip_update || cursor_update)drm_crtc_vblank_get (&acrtc->base); } -EXPORT_SYMBOL_IF_KUNIT (dm_arm_vblank_event_pre_programming); +EXPORT_IF_KUNIT (dm_arm_vblank_event_pre_programming); static void amdgpu_dm_commit_planes(struct drm_atomic_commit *state, struct drm_device *dev,
@@ -4422,7 +4422,7 @@ bool amdgpu_dm_crtc_complete_writeback(struct amdgpu_crtc *acrtc)return true; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_complete_writeback); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_complete_writeback); VISIBLE_IF_KUNIT void dm_clear_writeback(struct amdgpu_display_manager *dm, struct amdgpu_crtc *acrtc,
@@ -4438,7 +4438,7 @@ VISIBLE_IF_KUNIT void dm_clear_writeback(struct amdgpu_display_manager *dm,*/ amdgpu_dm_crtc_complete_writeback (acrtc); } -EXPORT_SYMBOL_IF_KUNIT (dm_clear_writeback); +EXPORT_IF_KUNIT (dm_clear_writeback);/** * amdgpu_dm_mod_power_update_streams - update mod_power stream state on modeset
@@ -4503,7 +4503,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_mod_power_update_streams(struct drm_atomic_commi } } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_mod_power_update_streams); +EXPORT_IF_KUNIT (amdgpu_dm_mod_power_update_streams);/** * amdgpu_dm_mod_power_setup_streams - setup mod_power stream state post modeset
@@ -4551,7 +4551,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_mod_power_setup_streams(struct drm_atomic_commit } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_mod_power_setup_streams); +EXPORT_IF_KUNIT (amdgpu_dm_mod_power_setup_streams);static void amdgpu_dm_commit_streams (struct drm_atomic_commit *state,struct dc_state *dc_state)
@@ -4900,7 +4900,7 @@ dm_set_writeback(struct amdgpu_display_manager *dm, cleanup:kfree (wb_info); } -EXPORT_SYMBOL_IF_KUNIT (dm_set_writeback); +EXPORT_IF_KUNIT (dm_set_writeback); VISIBLE_IF_KUNIT void amdgpu_dm_update_hdcp(struct drm_atomic_commit *state) {
@@ -5016,7 +5016,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_update_hdcp(struct drm_atomic_commit *state) } } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_update_hdcp); +EXPORT_IF_KUNIT (amdgpu_dm_update_hdcp); VISIBLE_IF_KUNIT int amdgpu_dm_atomic_setup_commit(struct drm_atomic_commit *state) {
@@ -5050,7 +5050,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_atomic_setup_commit(struct drm_atomic_commit *stareturn 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_atomic_setup_commit); +EXPORT_IF_KUNIT (amdgpu_dm_atomic_setup_commit); VISIBLE_IF_KUNIT void set_multisync_trigger_params(struct dc_stream_state *stream)
@@ -5065,7 +5065,7 @@ VISIBLE_IF_KUNIT void set_multisync_trigger_params( stream->triggered_crtc_reset.delay =TRIGGER_DELAY_NEXT_PIXEL ; } } -EXPORT_SYMBOL_IF_KUNIT (set_multisync_trigger_params); +EXPORT_IF_KUNIT (set_multisync_trigger_params); VISIBLE_IF_KUNIT void set_master_stream(struct dc_stream_state *stream_set[],int stream_count)
@@ -5089,7 +5089,7 @@ VISIBLE_IF_KUNIT void set_master_stream(struct dc_stream_state *stream_set[], stream_set[j]->triggered_crtc_reset.event_source = stream_set[master_stream]; } } -EXPORT_SYMBOL_IF_KUNIT (set_master_stream); +EXPORT_IF_KUNIT (set_master_stream); VISIBLE_IF_KUNIT void dm_enable_per_frame_crtc_master_sync(struct dc_state *context) {
@@ -5119,7 +5119,7 @@ VISIBLE_IF_KUNIT void dm_enable_per_frame_crtc_master_sync(struct dc_state *contset_multisync_trigger_params (stream); } } -EXPORT_SYMBOL_IF_KUNIT (dm_enable_per_frame_crtc_master_sync); +EXPORT_IF_KUNIT (dm_enable_per_frame_crtc_master_sync);/** * amdgpu_dm_atomic_commit_tail() - AMDgpu DM's commit tail implementation.
@@ -5482,7 +5482,7 @@ VISIBLE_IF_KUNIT int do_aquire_global_lock(struct drm_device *dev,return ret <0 ? ret :0 ; } -EXPORT_SYMBOL_IF_KUNIT (do_aquire_global_lock); +EXPORT_IF_KUNIT (do_aquire_global_lock); VISIBLE_IF_KUNIT int dm_update_crtc_state(struct amdgpu_display_manager *dm, struct drm_atomic_commit *state,
@@ -5761,7 +5761,7 @@ VISIBLE_IF_KUNIT int dm_update_crtc_state(struct amdgpu_display_manager *dm,dc_stream_release (new_stream);return ret; } -EXPORT_SYMBOL_IF_KUNIT (dm_update_crtc_state); +EXPORT_IF_KUNIT (dm_update_crtc_state); VISIBLE_IF_KUNIT bool should_reset_plane(struct drm_atomic_commit *state, struct drm_plane *plane,
@@ -5926,7 +5926,7 @@ VISIBLE_IF_KUNIT bool should_reset_plane(struct drm_atomic_commit *state,return false; } -EXPORT_SYMBOL_IF_KUNIT (should_reset_plane); +EXPORT_IF_KUNIT (should_reset_plane); VISIBLE_IF_KUNIT int dm_update_plane_state(struct dc *dc,
@@ -6113,7 +6113,7 @@ dm_update_plane_state(struct dc *dc,return ret; } -EXPORT_SYMBOL_IF_KUNIT (dm_update_plane_state); +EXPORT_IF_KUNIT (dm_update_plane_state);/* * The normalized_zpos value cannot be used by this iterator directly. It's only
@@ -6190,7 +6190,7 @@ VISIBLE_IF_KUNIT int add_affected_mst_dsc_crtcs(struct drm_atomic_commit *state,return drm_dp_mst_add_affected_dsc_crtcs (state, &aconnector->mst_root->mst_mgr); } -EXPORT_SYMBOL_IF_KUNIT (add_affected_mst_dsc_crtcs); +EXPORT_IF_KUNIT (add_affected_mst_dsc_crtcs); VISIBLE_IF_KUNIT bool amdgpu_dm_crtc_mem_type_changed(struct drm_device *dev, struct drm_atomic_commit *state,
@@ -6213,7 +6213,7 @@ VISIBLE_IF_KUNIT bool amdgpu_dm_crtc_mem_type_changed(struct drm_device *dev,return false; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_mem_type_changed); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_mem_type_changed);/** * amdgpu_dm_atomic_check() - Atomic check implementation for AMDgpu DM.
@@ -6752,7 +6752,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_atomic_check(struct drm_device *dev,return ret; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_atomic_check); +EXPORT_IF_KUNIT (amdgpu_dm_atomic_check);void amdgpu_dm_trigger_timing_sync (struct drm_device *dev) {
@@ -6772,7 +6772,7 @@ void amdgpu_dm_trigger_timing_sync(struct drm_device *dev) }mutex_unlock (&adev->dm.dc_lock); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_trigger_timing_sync); +EXPORT_IF_KUNIT (amdgpu_dm_trigger_timing_sync);void dm_write_reg_func (const struct dc_context *ctx,uint32_t address,u32 value,const char *func_name)
@@ -6817,4 +6817,4 @@ void dm_acpi_process_phy_transition_interlock( {// Not yet implemented } -EXPORT_SYMBOL_IF_KUNIT (dm_acpi_process_phy_transition_interlock); +EXPORT_IF_KUNIT (dm_acpi_process_phy_transition_interlock);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_audio.c +10 -10
@@ -97,7 +97,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_audio_component_bind(struct device *kdev,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_component_bind); +EXPORT_IF_KUNIT (amdgpu_dm_audio_component_bind); VISIBLE_IF_KUNIT void amdgpu_dm_audio_component_unbind(struct device *kdev,struct device *hda_kdev,void *data)
@@ -109,7 +109,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_audio_component_unbind(struct device *kdev, acomp->dev =NULL ; adev->dm.audio_component =NULL ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_component_unbind); +EXPORT_IF_KUNIT (amdgpu_dm_audio_component_unbind);static const struct component_ops amdgpu_dm_audio_component_bind_ops = { .bind = amdgpu_dm_audio_component_bind,
@@ -135,7 +135,7 @@ void amdgpu_dm_audio_init_pins(struct amdgpu_device *adev, int audio_count, adev->mode_info.audio.pin[i].offset =0 ; } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_init_pins); +EXPORT_IF_KUNIT (amdgpu_dm_audio_init_pins);int amdgpu_dm_audio_init (struct amdgpu_device *adev) {
@@ -161,7 +161,7 @@ int amdgpu_dm_audio_init(struct amdgpu_device *adev)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_init); +EXPORT_IF_KUNIT (amdgpu_dm_audio_init);void amdgpu_dm_audio_fini (struct amdgpu_device *adev) {
@@ -180,7 +180,7 @@ void amdgpu_dm_audio_fini(struct amdgpu_device *adev) adev->mode_info.audio.enabled = false; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_fini); +EXPORT_IF_KUNIT (amdgpu_dm_audio_fini);void amdgpu_dm_audio_eld_notify (struct amdgpu_device *adev,int pin) {
@@ -193,7 +193,7 @@ void amdgpu_dm_audio_eld_notify(struct amdgpu_device *adev, int pin) pin, -1); } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_eld_notify); +EXPORT_IF_KUNIT (amdgpu_dm_audio_eld_notify); void amdgpu_dm_fill_audio_info(struct audio_info *audio_info, const struct drm_connector *drm_connector,
@@ -239,7 +239,7 @@ void amdgpu_dm_fill_audio_info(struct audio_info *audio_info,/* TODO: For DP, video and audio latency should be calculated from DPCD caps */ } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_fill_audio_info); +EXPORT_IF_KUNIT (amdgpu_dm_fill_audio_info);void amdgpu_dm_commit_audio (struct drm_device *dev,struct drm_atomic_commit *state)
@@ -321,18 +321,18 @@ void amdgpu_dm_commit_audio(struct drm_device *dev,amdgpu_dm_audio_eld_notify (adev, inst); } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_commit_audio); +EXPORT_IF_KUNIT (amdgpu_dm_commit_audio);#if IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST )int amdgpu_dm_audio_get_param (void ) {return amdgpu_audio; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_get_param); +EXPORT_IF_KUNIT (amdgpu_dm_audio_get_param);void amdgpu_dm_audio_set_param (int val) { amdgpu_audio = val; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_audio_set_param); +EXPORT_IF_KUNIT (amdgpu_dm_audio_set_param);#endif
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_backlight.c +27 -25
195 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +37 -36
292 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c +6 -6
@@ -39,21 +39,21 @@ const u64 amdgpu_dm_supported_degam_tfs =BIT (DRM_COLOROP_1D_CURVE_PQ_125_EOTF ) |BIT (DRM_COLOROP_1D_CURVE_BT2020_INV_OETF ) |BIT (DRM_COLOROP_1D_CURVE_GAMMA22 ); -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_supported_degam_tfs); +EXPORT_IF_KUNIT (amdgpu_dm_supported_degam_tfs);const u64 amdgpu_dm_supported_shaper_tfs =BIT (DRM_COLOROP_1D_CURVE_SRGB_INV_EOTF ) |BIT (DRM_COLOROP_1D_CURVE_PQ_125_INV_EOTF ) |BIT (DRM_COLOROP_1D_CURVE_BT2020_OETF ) |BIT (DRM_COLOROP_1D_CURVE_GAMMA22_INV ); -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_supported_shaper_tfs); +EXPORT_IF_KUNIT (amdgpu_dm_supported_shaper_tfs);const u64 amdgpu_dm_supported_blnd_tfs =BIT (DRM_COLOROP_1D_CURVE_SRGB_EOTF ) |BIT (DRM_COLOROP_1D_CURVE_PQ_125_EOTF ) |BIT (DRM_COLOROP_1D_CURVE_BT2020_INV_OETF ) |BIT (DRM_COLOROP_1D_CURVE_GAMMA22 ); -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_supported_blnd_tfs); +EXPORT_IF_KUNIT (amdgpu_dm_supported_blnd_tfs);const u64 amdgpu_dm_supported_fm = BIT(DRM_COLOROP_FM_YCBCR601_FULL_RGB) |
@@ -93,7 +93,7 @@ void amdgpu_dm_colorop_kunit_set_ops(const struct amdgpu_dm_colorop_kunit_ops *o { amdgpu_dm_colorop_ops = ops ? ops : &amdgpu_dm_colorop_default_ops; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_colorop_kunit_set_ops); +EXPORT_IF_KUNIT (amdgpu_dm_colorop_kunit_set_ops);#define colorop_kzalloc_obj amdgpu_dm_colorop_ops->colorop_kzalloc_obj#define colorop_curve_1d_init amdgpu_dm_colorop_ops->curve_1d_init
@@ -289,7 +289,7 @@ amdgpu_dm_build_default_pipeline(struct drm_device *dev, struct drm_plane *planereturn ret; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_build_default_pipeline); +EXPORT_IF_KUNIT (amdgpu_dm_build_default_pipeline);int amdgpu_dm_initialize_default_pipeline (struct drm_plane *plane,struct drm_prop_enum_list *list) {
@@ -300,4 +300,4 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_prreturn amdgpu_dm_build_default_pipeline (dev, plane, hw_3d_lut, list); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_initialize_default_pipeline); +EXPORT_IF_KUNIT (amdgpu_dm_initialize_default_pipeline);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c +70 -70
555 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c +12 -12
@@ -60,7 +60,7 @@ enum amdgpu_dm_pipe_crc_source dm_parse_crc_source(const char *source)return AMDGPU_DM_PIPE_CRC_SOURCE_INVALID ; } -EXPORT_SYMBOL_IF_KUNIT (dm_parse_crc_source); +EXPORT_IF_KUNIT (dm_parse_crc_source);VISIBLE_IF_KUNIT bool dm_is_crc_source_crtc(enum amdgpu_dm_pipe_crc_source src)
@@ -68,7 +68,7 @@ bool dm_is_crc_source_crtc(enum amdgpu_dm_pipe_crc_source src)return (src ==AMDGPU_DM_PIPE_CRC_SOURCE_CRTC ) || (src ==AMDGPU_DM_PIPE_CRC_SOURCE_CRTC_DITHER ); } -EXPORT_SYMBOL_IF_KUNIT (dm_is_crc_source_crtc); +EXPORT_IF_KUNIT (dm_is_crc_source_crtc);VISIBLE_IF_KUNIT bool dm_is_crc_source_dprx(enum amdgpu_dm_pipe_crc_source src)
@@ -76,7 +76,7 @@ bool dm_is_crc_source_dprx(enum amdgpu_dm_pipe_crc_source src)return (src ==AMDGPU_DM_PIPE_CRC_SOURCE_DPRX ) || (src ==AMDGPU_DM_PIPE_CRC_SOURCE_DPRX_DITHER ); } -EXPORT_SYMBOL_IF_KUNIT (dm_is_crc_source_dprx); +EXPORT_IF_KUNIT (dm_is_crc_source_dprx);VISIBLE_IF_KUNIT bool dm_need_crc_dither(enum amdgpu_dm_pipe_crc_source src)
@@ -85,7 +85,7 @@ bool dm_need_crc_dither(enum amdgpu_dm_pipe_crc_source src) (src ==AMDGPU_DM_PIPE_CRC_SOURCE_DPRX_DITHER ) || (src ==AMDGPU_DM_PIPE_CRC_SOURCE_NONE ); } -EXPORT_SYMBOL_IF_KUNIT (dm_need_crc_dither); +EXPORT_IF_KUNIT (dm_need_crc_dither);/** * dm_need_dp_aux() - Does this source transition require the DP AUX handle?
@@ -104,7 +104,7 @@ bool dm_need_dp_aux(enum amdgpu_dm_pipe_crc_source source,return dm_is_crc_source_dprx (source) || (source ==AMDGPU_DM_PIPE_CRC_SOURCE_NONE &&dm_is_crc_source_dprx (cur_crc_src)); } -EXPORT_SYMBOL_IF_KUNIT (dm_need_dp_aux); +EXPORT_IF_KUNIT (dm_need_dp_aux);/** * dm_crc_source_should_start_dprx() - Should drm_dp_start_crc() be called?
@@ -124,7 +124,7 @@ bool dm_crc_source_should_start_dprx(enum amdgpu_dm_pipe_crc_source source,amdgpu_dm_is_valid_crc_source (source) &&dm_is_crc_source_dprx (source); } -EXPORT_SYMBOL_IF_KUNIT (dm_crc_source_should_start_dprx); +EXPORT_IF_KUNIT (dm_crc_source_should_start_dprx);/** * dm_crc_source_should_stop_dprx() - Should drm_dp_stop_crc() be called?
@@ -144,7 +144,7 @@ bool dm_crc_source_should_stop_dprx(enum amdgpu_dm_pipe_crc_source source, !amdgpu_dm_is_valid_crc_source (source) &&dm_is_crc_source_dprx (cur_crc_src); } -EXPORT_SYMBOL_IF_KUNIT (dm_crc_source_should_stop_dprx); +EXPORT_IF_KUNIT (dm_crc_source_should_stop_dprx);const char *const *amdgpu_dm_crtc_get_crc_sources (struct drm_crtc *crtc,size_t *count)
@@ -152,7 +152,7 @@ const char *const *amdgpu_dm_crtc_get_crc_sources(struct drm_crtc *crtc, *count =ARRAY_SIZE (pipe_crc_sources);return pipe_crc_sources; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_get_crc_sources); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_get_crc_sources);#ifdef CONFIG_DRM_AMD_SECURE_DISPLAY static void update_phy_id_mapping (struct amdgpu_device *adev)
@@ -565,7 +565,7 @@ amdgpu_dm_crtc_verify_crc_source(struct drm_crtc *crtc, const char *src_name, *values_cnt =3 ;return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_verify_crc_source); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_verify_crc_source); int amdgpu_dm_crtc_configure_crc_source(struct drm_crtc *crtc, struct dm_crtc_state *dm_crtc_state,
@@ -643,7 +643,7 @@ int amdgpu_dm_crtc_configure_crc_source(struct drm_crtc *crtc,return ret; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_configure_crc_source); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_configure_crc_source);int amdgpu_dm_crtc_set_crc_source (struct drm_crtc *crtc,const char *src_name) {
@@ -821,7 +821,7 @@ int amdgpu_dm_crtc_set_crc_source(struct drm_crtc *crtc, const char *src_name)return ret; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_set_crc_source); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_set_crc_source);/** * amdgpu_dm_crtc_handle_crc_irq: Report to DRM the CRC on given CRTC.
@@ -879,7 +879,7 @@ void amdgpu_dm_crtc_handle_crc_irq(struct drm_crtc *crtc) drm_crtc_accurate_vblank_count(crtc), crcs); } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_handle_crc_irq); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_handle_crc_irq);#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY )void amdgpu_dm_crtc_handle_crc_window_irq (struct drm_crtc *crtc)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +23 -23
181 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_cursor.c +7 -7
@@ -105,7 +105,7 @@ VISIBLE_IF_KUNIT int dm_check_cursor_fb(struct amdgpu_crtc *new_acrtc,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_check_cursor_fb); +EXPORT_IF_KUNIT (dm_check_cursor_fb);/* * Helper function for checking the cursor in native mode
@@ -139,7 +139,7 @@ int amdgpu_dm_check_native_cursor_state(struct drm_crtc *new_plane_crtc,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_check_native_cursor_state); +EXPORT_IF_KUNIT (amdgpu_dm_check_native_cursor_state); bool amdgpu_dm_should_update_native_cursor(struct drm_atomic_commit *state, struct drm_crtc *old_plane_crtc,
@@ -169,7 +169,7 @@ bool amdgpu_dm_should_update_native_cursor(struct drm_atomic_commit *state,return dm_new_crtc_state->cursor_mode ==DM_CURSOR_NATIVE_MODE ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_should_update_native_cursor); +EXPORT_IF_KUNIT (amdgpu_dm_should_update_native_cursor); VISIBLE_IF_KUNIT void dm_get_oriented_plane_size(struct drm_plane_state *plane_state,int *src_w,int *src_h)
@@ -188,7 +188,7 @@ VISIBLE_IF_KUNIT void dm_get_oriented_plane_size(struct drm_plane_state *plane_sbreak ; } } -EXPORT_SYMBOL_IF_KUNIT (dm_get_oriented_plane_size); +EXPORT_IF_KUNIT (dm_get_oriented_plane_size); VISIBLE_IF_KUNIT void dm_get_plane_scale(struct drm_plane_state *plane_state,
@@ -200,7 +200,7 @@ dm_get_plane_scale(struct drm_plane_state *plane_state, *out_plane_scale_w = plane_src_w ? plane_state->crtc_w *1000 / plane_src_w :0 ; *out_plane_scale_h = plane_src_h ? plane_state->crtc_h *1000 / plane_src_h :0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_get_plane_scale); +EXPORT_IF_KUNIT (dm_get_plane_scale);/** * DOC: Cursor Modes - Native vs Overlay
@@ -249,7 +249,7 @@ VISIBLE_IF_KUNIT bool dm_plane_color_pipeline_active(struct drm_atomic_commit *s }return false; } -EXPORT_SYMBOL_IF_KUNIT (dm_plane_color_pipeline_active); +EXPORT_IF_KUNIT (dm_plane_color_pipeline_active);/** * amdgpu_dm_crtc_get_cursor_mode() - Determine the required cursor mode on crtc
@@ -456,4 +456,4 @@ int amdgpu_dm_crtc_get_cursor_mode(struct amdgpu_device *adev,return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_crtc_get_cursor_mode); +EXPORT_IF_KUNIT (amdgpu_dm_crtc_get_cursor_mode);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c +16 -16
@@ -78,7 +78,7 @@ void amdgpu_dm_dmub_kunit_set_ops(const struct amdgpu_dm_dmub_kunit_ops *ops) { amdgpu_dm_dmub_ops = ops ? ops : &amdgpu_dm_dmub_default_ops; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_dmub_kunit_set_ops); +EXPORT_IF_KUNIT (amdgpu_dm_dmub_kunit_set_ops);#define dmub_bo_create_kernel amdgpu_dm_dmub_ops->bo_create_kernel#define dmub_ucode_request amdgpu_dm_dmub_ops->ucode_request
@@ -107,7 +107,7 @@ void dm_dmub_aux_setconfig_callback(struct amdgpu_device *adev,if (notify->type ==DMUB_NOTIFICATION_AUX_REPLY )complete (&adev->dm.dmub_aux_transfer_done); } -EXPORT_SYMBOL_IF_KUNIT (dm_dmub_aux_setconfig_callback); +EXPORT_IF_KUNIT (dm_dmub_aux_setconfig_callback);void dm_dmub_aux_fused_io_callback (struct amdgpu_device *adev,struct dmub_notification *notify)
@@ -131,7 +131,7 @@ void dm_dmub_aux_fused_io_callback(struct amdgpu_device *adev,memcpy (sync->reply_data, req,sizeof (*req));complete (&sync->replied); } -EXPORT_SYMBOL_IF_KUNIT (dm_dmub_aux_fused_io_callback); +EXPORT_IF_KUNIT (dm_dmub_aux_fused_io_callback);/** * dm_register_dmub_notify_callback - Sets callback for DMUB notify
@@ -158,7 +158,7 @@ bool dm_register_dmub_notify_callback(struct amdgpu_device *adev,return true; } -EXPORT_SYMBOL_IF_KUNIT (dm_register_dmub_notify_callback); +EXPORT_IF_KUNIT (dm_register_dmub_notify_callback);int dm_dmub_hw_init (struct amdgpu_device *adev) {
@@ -347,7 +347,7 @@ int dm_dmub_hw_init(struct amdgpu_device *adev)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_dmub_hw_init); +EXPORT_IF_KUNIT (dm_dmub_hw_init);void dm_dmub_hw_resume (struct amdgpu_device *adev) {
@@ -377,7 +377,7 @@ void dm_dmub_hw_resume(struct amdgpu_device *adev)drm_err (adev_to_drm (adev),"DMUB interface failed to initialize: status=%d\n" , r); } } -EXPORT_SYMBOL_IF_KUNIT (dm_dmub_hw_resume); +EXPORT_IF_KUNIT (dm_dmub_hw_resume); static enum dmub_status dm_dmub_send_vbios_gpint_command(struct amdgpu_device *adev,
@@ -469,7 +469,7 @@ VISIBLE_IF_KUNIT void *dm_dmub_get_vbios_bounding_box(struct amdgpu_device *adevreturn NULL ; } -EXPORT_SYMBOL_IF_KUNIT (dm_dmub_get_vbios_bounding_box); +EXPORT_IF_KUNIT (dm_dmub_get_vbios_bounding_box);enum dmub_ips_disable_type dm_get_default_ips_mode (struct amdgpu_device *adev)
@@ -491,7 +491,7 @@ enum dmub_ips_disable_type dm_get_default_ips_mode(return ret; } -EXPORT_SYMBOL_IF_KUNIT (dm_get_default_ips_mode); +EXPORT_IF_KUNIT (dm_get_default_ips_mode); VISIBLE_IF_KUNIT uint32_t amdgpu_dm_dmub_reg_read(void *ctx, uint32_t address) {
@@ -499,7 +499,7 @@ VISIBLE_IF_KUNIT uint32_t amdgpu_dm_dmub_reg_read(void *ctx, uint32_t address)return dm_read_reg (adev->dm.dc->ctx, address); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_dmub_reg_read); +EXPORT_IF_KUNIT (amdgpu_dm_dmub_reg_read); VISIBLE_IF_KUNIT void amdgpu_dm_dmub_reg_write(void *ctx, uint32_t address,uint32_t value)
@@ -508,7 +508,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_dmub_reg_write(void *ctx, uint32_t address,return dm_write_reg (adev->dm.dc->ctx, address, value); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_dmub_reg_write); +EXPORT_IF_KUNIT (amdgpu_dm_dmub_reg_write);int dm_dmub_sw_init (struct amdgpu_device *adev) {
@@ -721,7 +721,7 @@ int dm_dmub_sw_init(struct amdgpu_device *adev)return 0 ; } -EXPORT_SYMBOL_IF_KUNIT (dm_dmub_sw_init); +EXPORT_IF_KUNIT (dm_dmub_sw_init);int dm_init_microcode (struct amdgpu_device *adev) {
@@ -797,7 +797,7 @@ int dm_init_microcode(struct amdgpu_device *adev) "%s", fw_name_dmub);return r; } -EXPORT_SYMBOL_IF_KUNIT (dm_init_microcode); +EXPORT_IF_KUNIT (dm_init_microcode); int amdgpu_dm_process_dmub_aux_transfer_sync( struct dc_context *ctx,
@@ -867,7 +867,7 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(mutex_unlock (&adev->dm.dpia_aux_lock);return ret; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_process_dmub_aux_transfer_sync); +EXPORT_IF_KUNIT (amdgpu_dm_process_dmub_aux_transfer_sync); VISIBLE_IF_KUNIT void abort_fused_io( struct dc_context *ctx,
@@ -883,7 +883,7 @@ VISIBLE_IF_KUNIT void abort_fused_io( io->request = *request;dm_execute_dmub_cmd (ctx, &command,DM_DMUB_WAIT_TYPE_NO_WAIT ); } -EXPORT_SYMBOL_IF_KUNIT (abort_fused_io); +EXPORT_IF_KUNIT (abort_fused_io); static bool execute_fused_io( struct amdgpu_device *dev,
@@ -971,7 +971,7 @@ int amdgpu_dm_process_dmub_set_config_sync(mutex_unlock (&adev->dm.dpia_aux_lock);return ret; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_process_dmub_set_config_sync); +EXPORT_IF_KUNIT (amdgpu_dm_process_dmub_set_config_sync);bool dm_execute_dmub_cmd (const struct dc_context *ctx,union dmub_rb_cmd *cmd,enum dm_dmub_wait_type wait_type) {
@@ -980,7 +980,7 @@ bool dm_execute_dmub_cmd(const struct dc_context *ctx, union dmub_rb_cmd *cmd, eguard (spinlock_irqsave)(&adev->dm.dmub_lock);return dc_dmub_srv_cmd_run (ctx->dmub_srv, cmd, wait_type); } -EXPORT_SYMBOL_IF_KUNIT (dm_execute_dmub_cmd); +EXPORT_IF_KUNIT (dm_execute_dmub_cmd);bool dm_execute_dmub_cmd_list (const struct dc_context *ctx,unsigned int count,union dmub_rb_cmd *cmd,enum dm_dmub_wait_type wait_type) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_freesync.c +8 -8
@@ -51,7 +51,7 @@ bool amdgpu_dm_is_dc_timing_adjust_needed(struct dm_crtc_state *old_state,else return false; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_is_dc_timing_adjust_needed); +EXPORT_IF_KUNIT (amdgpu_dm_is_dc_timing_adjust_needed); bool amdgpu_dm_is_timing_unchanged_for_freesync(struct drm_crtc_state *old_crtc_state,
@@ -82,7 +82,7 @@ amdgpu_dm_is_timing_unchanged_for_freesync(struct drm_crtc_state *old_crtc_statereturn false; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_is_timing_unchanged_for_freesync); +EXPORT_IF_KUNIT (amdgpu_dm_is_timing_unchanged_for_freesync);void amdgpu_dm_set_freesync_fixed_config (struct dm_crtc_state *dm_new_crtc_state) {
@@ -98,7 +98,7 @@ void amdgpu_dm_set_freesync_fixed_config(struct dm_crtc_state *dm_new_crtc_state res =div_u64 (num, den); dm_new_crtc_state->freesync_config.fixed_refresh_in_uhz = res; } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_set_freesync_fixed_config); +EXPORT_IF_KUNIT (amdgpu_dm_set_freesync_fixed_config);void amdgpu_dm_reset_freesync_config_for_crtc (struct dm_crtc_state *new_crtc_state)
@@ -108,7 +108,7 @@ void amdgpu_dm_reset_freesync_config_for_crtc(memset (&new_crtc_state->vrr_infopacket,0 ,sizeof (new_crtc_state->vrr_infopacket)); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_reset_freesync_config_for_crtc); +EXPORT_IF_KUNIT (amdgpu_dm_reset_freesync_config_for_crtc); void amdgpu_dm_get_freesync_config_for_crtc( struct dm_crtc_state *new_crtc_state,
@@ -161,7 +161,7 @@ void amdgpu_dm_get_freesync_config_for_crtc( aconnector->min_vfreq, aconnector->max_vfreq, config.state); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_get_freesync_config_for_crtc); +EXPORT_IF_KUNIT (amdgpu_dm_get_freesync_config_for_crtc); void amdgpu_dm_update_freesync_state_on_stream( struct amdgpu_display_manager *dm,
@@ -292,7 +292,7 @@ void amdgpu_dm_update_freesync_state_on_stream(spin_unlock_irqrestore (&adev_to_drm (adev)->event_lock, flags); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_update_freesync_state_on_stream); +EXPORT_IF_KUNIT (amdgpu_dm_update_freesync_state_on_stream); void amdgpu_dm_update_stream_irq_parameters( struct amdgpu_display_manager *dm,
@@ -352,7 +352,7 @@ void amdgpu_dm_update_stream_irq_parameters( acrtc->dm_irq_params.vrr_params = vrr_params;spin_unlock_irqrestore (&adev_to_drm (adev)->event_lock, flags); } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_update_stream_irq_parameters); +EXPORT_IF_KUNIT (amdgpu_dm_update_stream_irq_parameters); void amdgpu_dm_handle_vrr_transition(struct amdgpu_display_manager *dm, struct dm_crtc_state *old_state,
@@ -406,4 +406,4 @@ void amdgpu_dm_handle_vrr_transition(struct amdgpu_display_manager *dm, } } } -EXPORT_SYMBOL_IF_KUNIT (amdgpu_dm_handle_vrr_transition); +EXPORT_IF_KUNIT (amdgpu_dm_handle_vrr_transition);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c +28 -28
222 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +60 -60
472 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +47 -47
83 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c +13 -13
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +34 -34
68 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +37 -37
74 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +33 -33
66 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_quirks.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c +5 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_backlight_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_color_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_colorop_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_connector_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_crc_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_crtc_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_cursor_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_dmub_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_freesync_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_hdcp_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_irq_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_ism_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_kunit_helpers.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_mst_types_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_plane_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_pp_smu_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_psr_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_quirks_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_replay_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_services_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_wb_test.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/dc/core/dc_sink.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/dc/dm_helpers.h +2 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.55.0
Part of the diff is not shown here. View the raw message.
Alex Deucher
maintainerPATCH 3/3 Revert "drm/amd/display: replace STATIC_IFN_KUNIT with VISIBLE_IF_KUNIT"
In reply to Alex DeucherThis reverts commit 7e9fca772695c65f97493272e2e7cd475f202965.
This series breaks the build when CONFIG_KUNIT=y and CONFIG_DRM_AMD_DC_KUNIT_TEST=n. When CONFIG_KUNIT=y,
the functions are not static, but when CONFIG_DRM_AMD_DC_KUNIT_TEST=n, they should be.
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 129 +++++++++--------- .../amd/display/amdgpu_dm/amdgpu_dm_audio.c | 6 +- .../display/amdgpu_dm/amdgpu_dm_backlight.c | 26 ++-- .../amd/display/amdgpu_dm/amdgpu_dm_color.c | 60 ++++---- .../amd/display/amdgpu_dm/amdgpu_dm_colorop.c | 2 +- .../display/amdgpu_dm/amdgpu_dm_connector.c | 84 ++++++------ .../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 14 +- .../amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 24 ++-- .../amd/display/amdgpu_dm/amdgpu_dm_cursor.c | 8 +- .../amd/display/amdgpu_dm/amdgpu_dm_dmub.c | 8 +- .../amd/display/amdgpu_dm/amdgpu_dm_hdcp.c | 49 ++++--- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 30 ++-- .../drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 56 ++++---- .../drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c | 14 +- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 52 +++---- .../amd/display/amdgpu_dm/amdgpu_dm_plane.c | 66 +++++---- .../amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 50 +++---- .../drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 4 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c | 8 +- drivers/gpu/drm/amd/display/dc/dm_helpers.h | 4 +- 20 files changed, 342 insertions(+), 352 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +64 -65
@@ -140,10 +140,9 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev);/* removes and deallocates the drm structures, created by the above function */ static void amdgpu_dm_destroy_drm_device (struct amdgpu_display_manager *dm); -VISIBLE_IF_KUNIT int amdgpu_dm_atomic_setup_commit(struct drm_atomic_commit *state); +STATIC_IFN_KUNIT int amdgpu_dm_atomic_setup_commit(struct drm_atomic_commit *state);static void amdgpu_dm_atomic_commit_tail (struct drm_atomic_commit *state); -VISIBLE_IF_KUNIT void dm_enable_per_frame_crtc_master_sync( -struct dc_state *context); +STATIC_IFN_KUNIT void dm_enable_per_frame_crtc_master_sync(struct dc_state *context);#if !IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST ) static int amdgpu_dm_atomic_check(struct drm_device *dev,
@@ -169,7 +168,7 @@ static inline void amdgpu_dm_exit_ips_for_hw_access(struct dc *dc)* @return * Counter for vertical blanks */ -VISIBLE_IF_KUNIT u32 dm_vblank_get_counter(struct amdgpu_device *adev, int crtc) +STATIC_IFN_KUNIT u32 dm_vblank_get_counter(struct amdgpu_device *adev, int crtc) {struct amdgpu_crtc *acrtc =NULL ;
@@ -188,7 +187,7 @@ VISIBLE_IF_KUNIT u32 dm_vblank_get_counter(struct amdgpu_device *adev, int crtc) }EXPORT_IF_KUNIT (dm_vblank_get_counter); -VISIBLE_IF_KUNIT int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc, +STATIC_IFN_KUNIT int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc,u32 *vbl,u32 *position) {u32 v_blank_start =0 , v_blank_end =0 , h_position =0 , v_position =0 ;
@@ -226,7 +225,7 @@ VISIBLE_IF_KUNIT int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc }EXPORT_IF_KUNIT (dm_crtc_get_scanoutpos); -VISIBLE_IF_KUNIT int dm_wait_for_idle(struct amdgpu_ip_block *ip_block) +STATIC_IFN_KUNIT int dm_wait_for_idle(struct amdgpu_ip_block *ip_block) {/* XXX todo */ return 0 ;
@@ -238,7 +237,7 @@ EXPORT_IF_KUNIT(dm_wait_for_idle);* in the dc_surface_updates array. This comparator is used to sort them * by descending zpos. */ -VISIBLE_IF_KUNIT int dm_plane_layer_index_cmp(const void *a, const void *b) +STATIC_IFN_KUNIT int dm_plane_layer_index_cmp(const void *a, const void *b) {const struct dc_surface_update *sa = (struct dc_surface_update *)a;const struct dc_surface_update *sb = (struct dc_surface_update *)b;
@@ -274,7 +273,7 @@ static const struct amdgpu_dm_kunit_ops *amdgpu_dm_ops;* @array_of_surface_update: dc surface update pointer * */ -VISIBLE_IF_KUNIT INLINE_IFN_KUNIT +STATIC_IFN_KUNIT INLINE_IFN_KUNIT bool update_planes_and_stream_adapter(struct dc *dc, int planes_count, struct dc_stream_state *stream,
@@ -297,14 +296,14 @@ bool update_planes_and_stream_adapter(struct dc *dc, }EXPORT_IF_KUNIT (update_planes_and_stream_adapter); -VISIBLE_IF_KUNIT int dm_set_clockgating_state(struct amdgpu_ip_block *ip_block, +STATIC_IFN_KUNIT int dm_set_clockgating_state(struct amdgpu_ip_block *ip_block,enum amd_clockgating_state state) {return 0 ; }EXPORT_IF_KUNIT (dm_set_clockgating_state); -VISIBLE_IF_KUNIT int dm_set_powergating_state(struct amdgpu_ip_block *ip_block, +STATIC_IFN_KUNIT int dm_set_powergating_state(struct amdgpu_ip_block *ip_block,enum amd_powergating_state state) {return 0 ;
@@ -312,7 +311,7 @@ VISIBLE_IF_KUNIT int dm_set_powergating_state(struct amdgpu_ip_block *ip_block,EXPORT_IF_KUNIT (dm_set_powergating_state);/* Prototypes of private functions */ -VISIBLE_IF_KUNIT int dm_early_init(struct amdgpu_ip_block *ip_block); +STATIC_IFN_KUNIT int dm_early_init(struct amdgpu_ip_block *ip_block);#if IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST ) static const struct amdgpu_dm_kunit_ops amdgpu_dm_default_ops = {
@@ -338,7 +337,7 @@ EXPORT_IF_KUNIT(amdgpu_dm_kunit_set_ops);#endif /* Allocate memory for FBC compressed data */ -VISIBLE_IF_KUNIT void mmhub_read_system_context(struct amdgpu_device *adev, +STATIC_IFN_KUNIT void mmhub_read_system_context(struct amdgpu_device *adev,struct dc_phy_addr_space_config *pa_config) {u64 pt_base;
@@ -417,7 +416,7 @@ VISIBLE_IF_KUNIT void mmhub_read_system_context(struct amdgpu_device *adev, }EXPORT_IF_KUNIT (mmhub_read_system_context); -VISIBLE_IF_KUNIT int amdgpu_dm_init_power_module(struct amdgpu_display_manager *dm) +STATIC_IFN_KUNIT int amdgpu_dm_init_power_module(struct amdgpu_display_manager *dm) {struct mod_power_init_params init_data[MAX_NUM_EDP ];
@@ -869,7 +868,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)return -EINVAL ; } -VISIBLE_IF_KUNIT int amdgpu_dm_early_fini(struct amdgpu_ip_block *ip_block) +STATIC_IFN_KUNIT int amdgpu_dm_early_fini(struct amdgpu_ip_block *ip_block) {struct amdgpu_device *adev = ip_block->adev;
@@ -985,7 +984,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)mutex_destroy (&adev->dm.dpia_aux_lock); } -VISIBLE_IF_KUNIT int load_dmcu_fw(struct amdgpu_device *adev) +STATIC_IFN_KUNIT int load_dmcu_fw(struct amdgpu_device *adev) {const char *fw_name_dmcu =NULL ;int r;
@@ -1097,7 +1096,7 @@ VISIBLE_IF_KUNIT int load_dmcu_fw(struct amdgpu_device *adev) }EXPORT_IF_KUNIT (load_dmcu_fw); -VISIBLE_IF_KUNIT int dm_sw_init(struct amdgpu_ip_block *ip_block) +STATIC_IFN_KUNIT int dm_sw_init(struct amdgpu_ip_block *ip_block) {struct amdgpu_device *adev = ip_block->adev;int r;
@@ -1120,7 +1119,7 @@ VISIBLE_IF_KUNIT int dm_sw_init(struct amdgpu_ip_block *ip_block) }EXPORT_IF_KUNIT (dm_sw_init); -VISIBLE_IF_KUNIT int dm_sw_fini(struct amdgpu_ip_block *ip_block) +STATIC_IFN_KUNIT int dm_sw_fini(struct amdgpu_ip_block *ip_block) {struct amdgpu_device *adev = ip_block->adev;struct dal_allocation *da;
@@ -1201,7 +1200,7 @@ static void amdgpu_dm_boot_time_crc_init(struct amdgpu_device *adev) } } -VISIBLE_IF_KUNIT int dm_late_init(struct amdgpu_ip_block *ip_block) +STATIC_IFN_KUNIT int dm_late_init(struct amdgpu_ip_block *ip_block) {struct amdgpu_device *adev = ip_block->adev;
@@ -1253,7 +1252,7 @@ VISIBLE_IF_KUNIT int dm_late_init(struct amdgpu_ip_block *ip_block) }EXPORT_IF_KUNIT (dm_late_init); -VISIBLE_IF_KUNIT void resume_mst_branch_status(struct drm_dp_mst_topology_mgr *mgr) +STATIC_IFN_KUNIT void resume_mst_branch_status(struct drm_dp_mst_topology_mgr *mgr) {u8 buf[UUID_SIZE ];guid_t guid;
@@ -1305,7 +1304,7 @@ VISIBLE_IF_KUNIT void resume_mst_branch_status(struct drm_dp_mst_topology_mgr *m }EXPORT_IF_KUNIT (resume_mst_branch_status); -VISIBLE_IF_KUNIT void s3_handle_mst(struct drm_device *dev, bool suspend) +STATIC_IFN_KUNIT void s3_handle_mst(struct drm_device *dev, bool suspend) {struct amdgpu_dm_connector *aconnector;struct drm_connector *connector;
@@ -1348,7 +1347,7 @@ VISIBLE_IF_KUNIT void s3_handle_mst(struct drm_device *dev, bool suspend) }EXPORT_IF_KUNIT (s3_handle_mst); -VISIBLE_IF_KUNIT int dm_oem_i2c_hw_init(struct amdgpu_device *adev) +STATIC_IFN_KUNIT int dm_oem_i2c_hw_init(struct amdgpu_device *adev) {struct amdgpu_display_manager *dm = &adev->dm;struct amdgpu_i2c_adapter *oem_i2c;
@@ -1445,7 +1444,7 @@ static int dm_hw_fini(struct amdgpu_ip_block *ip_block) } -VISIBLE_IF_KUNIT void dm_gpureset_toggle_interrupts(struct amdgpu_device *adev, +STATIC_IFN_KUNIT void dm_gpureset_toggle_interrupts(struct amdgpu_device *adev,struct dc_state *state,bool enable) {enum dc_irq_source irq_source;
@@ -1501,7 +1500,7 @@ EXPORT_IF_KUNIT(dm_gpureset_toggle_interrupts); DEFINE_FREE(state_release, struct dc_state *, dc_state_release(_T)) -VISIBLE_IF_KUNIT enum dc_status amdgpu_dm_commit_zero_streams(struct dc *dc) +STATIC_IFN_KUNIT enum dc_status amdgpu_dm_commit_zero_streams(struct dc *dc) { struct dc_state *context __free(state_release) = NULL;int i;
@@ -1541,7 +1540,7 @@ VISIBLE_IF_KUNIT enum dc_status amdgpu_dm_commit_zero_streams(struct dc *dc) }EXPORT_IF_KUNIT (amdgpu_dm_commit_zero_streams); -VISIBLE_IF_KUNIT int dm_cache_state(struct amdgpu_device *adev) +STATIC_IFN_KUNIT int dm_cache_state(struct amdgpu_device *adev) {int r;
@@ -1555,7 +1554,7 @@ VISIBLE_IF_KUNIT int dm_cache_state(struct amdgpu_device *adev) }EXPORT_IF_KUNIT (dm_cache_state); -VISIBLE_IF_KUNIT void dm_destroy_cached_state(struct amdgpu_device *adev) +STATIC_IFN_KUNIT void dm_destroy_cached_state(struct amdgpu_device *adev) {struct amdgpu_display_manager *dm = &adev->dm;struct drm_device *ddev =adev_to_drm (adev);
@@ -1768,7 +1767,7 @@ void amdgpu_dm_emulated_link_detect(struct dc_link *link) }EXPORT_IF_KUNIT (amdgpu_dm_emulated_link_detect); -VISIBLE_IF_KUNIT void dm_gpureset_commit_state(struct dc_state *dc_state, +STATIC_IFN_KUNIT void dm_gpureset_commit_state(struct dc_state *dc_state,struct amdgpu_display_manager *dm) {struct {
@@ -1833,7 +1832,7 @@ EXPORT_IF_KUNIT(amdgpu_dm_apply_delay_after_dpcd_poweroff);* (MST) sinks. Should be called after connector detection is complete to see * the final state of all links. */ -VISIBLE_IF_KUNIT void amdgpu_dm_dump_links_and_sinks(struct amdgpu_device *adev) +STATIC_IFN_KUNIT void amdgpu_dm_dump_links_and_sinks(struct amdgpu_device *adev) {struct dc *dc = adev->dm.dc;struct drm_device *dev =adev_to_drm (adev);
@@ -2199,7 +2198,7 @@ int dm_atomic_get_state(struct drm_atomic_commit *state, }EXPORT_IF_KUNIT (dm_atomic_get_state); -VISIBLE_IF_KUNIT struct dm_atomic_state * +STATIC_IFN_KUNIT struct dm_atomic_state *dm_atomic_get_new_state (struct drm_atomic_commit *state) {struct drm_device *dev = state->dev;
@@ -2218,7 +2217,7 @@ dm_atomic_get_new_state(struct drm_atomic_commit *state) }EXPORT_IF_KUNIT (dm_atomic_get_new_state); -VISIBLE_IF_KUNIT struct drm_private_state * +STATIC_IFN_KUNIT struct drm_private_state *dm_atomic_duplicate_state (struct drm_private_obj *obj) {struct dm_atomic_state *old_state, *new_state;
@@ -2243,7 +2242,7 @@ dm_atomic_duplicate_state(struct drm_private_obj *obj) }EXPORT_IF_KUNIT (dm_atomic_duplicate_state); -VISIBLE_IF_KUNIT void dm_atomic_destroy_state(struct drm_private_obj *obj, +STATIC_IFN_KUNIT void dm_atomic_destroy_state(struct drm_private_obj *obj,struct drm_private_state *state) {struct dm_atomic_state *dm_state =to_dm_atomic_state (state);
@@ -2284,7 +2283,7 @@ static struct drm_private_state_funcs dm_atomic_state_funcs = { .atomic_destroy_state = dm_atomic_destroy_state, }; -VISIBLE_IF_KUNIT int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) +STATIC_IFN_KUNIT int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) {int r;
@@ -2326,7 +2325,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) }EXPORT_IF_KUNIT (amdgpu_dm_mode_config_init); -VISIBLE_IF_KUNIT int initialize_plane(struct amdgpu_display_manager *dm, +STATIC_IFN_KUNIT int initialize_plane(struct amdgpu_display_manager *dm,struct amdgpu_mode_info *mode_info,int plane_id,enum drm_plane_type plane_type,const struct dc_plane_cap *plane_cap)
@@ -2728,7 +2727,7 @@ static void amdgpu_dm_destroy_drm_device(struct amdgpu_display_manager *dm)* * Calculate and program the display watermarks and line buffer allocation. */ -VISIBLE_IF_KUNIT void dm_bandwidth_update(struct amdgpu_device *adev) +STATIC_IFN_KUNIT void dm_bandwidth_update(struct amdgpu_device *adev) {/* TODO: implement later */ }
@@ -2782,7 +2781,7 @@ DEVICE_ATTR_WO(s3_debug);#endif -VISIBLE_IF_KUNIT int dm_early_init(struct amdgpu_ip_block *ip_block) +STATIC_IFN_KUNIT int dm_early_init(struct amdgpu_ip_block *ip_block) {struct amdgpu_device *adev = ip_block->adev;struct amdgpu_mode_info *mode_info = &adev->mode_info;
@@ -2934,13 +2933,13 @@ VISIBLE_IF_KUNIT int dm_early_init(struct amdgpu_ip_block *ip_block) }EXPORT_IF_KUNIT (dm_early_init); -VISIBLE_IF_KUNIT bool modereset_required(struct drm_crtc_state *crtc_state) +STATIC_IFN_KUNIT bool modereset_required(struct drm_crtc_state *crtc_state) {return !crtc_state->active &&drm_atomic_crtc_needs_modeset (crtc_state); }EXPORT_IF_KUNIT (modereset_required); -VISIBLE_IF_KUNIT int +STATIC_IFN_KUNIT int fill_plane_color_attributes(struct drm_atomic_commit *state, const struct drm_plane_state *plane_state, const enum surface_pixel_format format,
@@ -2990,7 +2989,7 @@ fill_plane_color_attributes(struct drm_atomic_commit *state, }EXPORT_IF_KUNIT (fill_plane_color_attributes); -VISIBLE_IF_KUNIT int +STATIC_IFN_KUNIT int fill_dc_plane_info_and_addr(struct amdgpu_device *adev, struct drm_atomic_commit *state, const struct drm_plane_state *plane_state,
@@ -3107,7 +3106,7 @@ fill_dc_plane_info_and_addr(struct amdgpu_device *adev, }EXPORT_IF_KUNIT (fill_dc_plane_info_and_addr); -VISIBLE_IF_KUNIT int fill_dc_plane_attributes(struct amdgpu_device *adev, +STATIC_IFN_KUNIT int fill_dc_plane_attributes(struct amdgpu_device *adev,struct dc_plane_state *dc_plane_state,struct drm_plane_state *plane_state,struct drm_crtc_state *crtc_state)
@@ -3215,7 +3214,7 @@ static inline void fill_dc_dirty_rect(struct drm_plane *plane,* implicitly provide damage clips without any client support via the plane * bounds. */ -VISIBLE_IF_KUNIT void fill_dc_dirty_rects(struct drm_plane *plane, +STATIC_IFN_KUNIT void fill_dc_dirty_rects(struct drm_plane *plane, struct drm_plane_state *old_plane_state, struct drm_plane_state *new_plane_state, struct drm_crtc_state *crtc_state,
@@ -3329,7 +3328,7 @@ VISIBLE_IF_KUNIT void fill_dc_dirty_rects(struct drm_plane *plane, }EXPORT_IF_KUNIT (fill_dc_dirty_rects); -VISIBLE_IF_KUNIT int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_commit *state, +STATIC_IFN_KUNIT int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars) {
@@ -3407,7 +3406,7 @@ VISIBLE_IF_KUNIT int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_commit * }EXPORT_IF_KUNIT (dm_update_mst_vcpi_slots_for_dsc); -VISIBLE_IF_KUNIT void manage_dm_interrupts(struct amdgpu_device *adev, +STATIC_IFN_KUNIT void manage_dm_interrupts(struct amdgpu_device *adev,struct amdgpu_crtc *acrtc,struct dm_crtc_state *acrtc_state) {/*
@@ -3490,7 +3489,7 @@ VISIBLE_IF_KUNIT void manage_dm_interrupts(struct amdgpu_device *adev, }EXPORT_IF_KUNIT (manage_dm_interrupts); -VISIBLE_IF_KUNIT void dm_update_pflip_irq_state(struct amdgpu_device *adev, +STATIC_IFN_KUNIT void dm_update_pflip_irq_state(struct amdgpu_device *adev,struct amdgpu_crtc *acrtc) { int irq_type =
@@ -3508,7 +3507,7 @@ VISIBLE_IF_KUNIT void dm_update_pflip_irq_state(struct amdgpu_device *adev, }EXPORT_IF_KUNIT (dm_update_pflip_irq_state); -VISIBLE_IF_KUNIT bool +STATIC_IFN_KUNIT boolis_scaling_state_different (const struct dm_connector_state *dm_state,const struct dm_connector_state *old_dm_state) {
@@ -3527,7 +3526,7 @@ is_scaling_state_different(const struct dm_connector_state *dm_state, }EXPORT_IF_KUNIT (is_scaling_state_different); -VISIBLE_IF_KUNIT bool +STATIC_IFN_KUNIT bool is_content_protection_different(struct drm_crtc_state *new_crtc_state, struct drm_crtc_state *old_crtc_state, struct drm_connector_state *new_conn_state,
@@ -3659,7 +3658,7 @@ static void remove_stream(struct amdgpu_device *adev, acrtc->enabled = false; } -VISIBLE_IF_KUNIT void amdgpu_dm_commit_cursors(struct drm_atomic_commit *state) +STATIC_IFN_KUNIT void amdgpu_dm_commit_cursors(struct drm_atomic_commit *state) {struct drm_plane *plane;struct drm_plane_state *old_plane_state;
@@ -3682,7 +3681,7 @@ static inline uint32_t get_mem_type(struct drm_framebuffer *fb)return abo->tbo.resource ? abo->tbo.resource->mem_type :0 ; } -VISIBLE_IF_KUNIT void amdgpu_dm_update_cursor(struct drm_plane *plane, +STATIC_IFN_KUNIT void amdgpu_dm_update_cursor(struct drm_plane *plane,struct drm_plane_state *old_plane_state,struct dc_stream_update *update) {
@@ -3755,7 +3754,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_update_cursor(struct drm_plane *plane, }EXPORT_IF_KUNIT (amdgpu_dm_update_cursor); -VISIBLE_IF_KUNIT void amdgpu_dm_enable_self_refresh(struct amdgpu_display_manager *dm, +STATIC_IFN_KUNIT void amdgpu_dm_enable_self_refresh(struct amdgpu_display_manager *dm,struct amdgpu_crtc *acrtc_attach,const struct dm_crtc_state *acrtc_state,const u64 current_ts)
@@ -3796,7 +3795,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_enable_self_refresh(struct amdgpu_display_manage }EXPORT_IF_KUNIT (amdgpu_dm_enable_self_refresh); -VISIBLE_IF_KUNIT void dm_arm_vblank_event(struct amdgpu_crtc *acrtc, +STATIC_IFN_KUNIT void dm_arm_vblank_event(struct amdgpu_crtc *acrtc,struct dm_crtc_state *acrtc_state,bool pflip_update,bool cursor_update)
@@ -3835,7 +3834,7 @@ EXPORT_IF_KUNIT(dm_arm_vblank_event);* be programmed. Do this before programming so the HW is not in any * idle-optimized state (such as PSR). */ -VISIBLE_IF_KUNIT void dm_arm_vblank_event_pre_programming(struct amdgpu_crtc *acrtc, +STATIC_IFN_KUNIT void dm_arm_vblank_event_pre_programming(struct amdgpu_crtc *acrtc,struct dm_crtc_state *acrtc_state,bool pflip_update,bool cursor_update)
@@ -4424,7 +4423,7 @@ bool amdgpu_dm_crtc_complete_writeback(struct amdgpu_crtc *acrtc) }EXPORT_IF_KUNIT (amdgpu_dm_crtc_complete_writeback); -VISIBLE_IF_KUNIT void dm_clear_writeback(struct amdgpu_display_manager *dm, +STATIC_IFN_KUNIT void dm_clear_writeback(struct amdgpu_display_manager *dm,struct amdgpu_crtc *acrtc,struct dm_crtc_state *crtc_state) {
@@ -4449,7 +4448,7 @@ EXPORT_IF_KUNIT(dm_clear_writeback);* in preparation for hardware programming. See also * amdgpu_dm_mod_power_setup_streams() for post-modeset mod_power setup. */ -VISIBLE_IF_KUNIT void amdgpu_dm_mod_power_update_streams(struct drm_atomic_commit *state, +STATIC_IFN_KUNIT void amdgpu_dm_mod_power_update_streams(struct drm_atomic_commit *state,struct amdgpu_display_manager *dm) {struct dm_crtc_state *dm_old_crtc_state, *dm_new_crtc_state;
@@ -4513,7 +4512,7 @@ EXPORT_IF_KUNIT(amdgpu_dm_mod_power_update_streams);* Notify mod_power of mode_change. This needs to be done after dc_stream * updates have been committed, and VRR parameters have been updated. */ -VISIBLE_IF_KUNIT void amdgpu_dm_mod_power_setup_streams(struct drm_atomic_commit *state, +STATIC_IFN_KUNIT void amdgpu_dm_mod_power_setup_streams(struct drm_atomic_commit *state,struct amdgpu_display_manager *dm) {struct dm_crtc_state *dm_new_crtc_state;
@@ -4779,7 +4778,7 @@ static void amdgpu_dm_commit_streams(struct drm_atomic_commit *state, } } -VISIBLE_IF_KUNIT void +STATIC_IFN_KUNIT void dm_set_writeback(struct amdgpu_display_manager *dm, struct dm_crtc_state *crtc_state, struct drm_connector *connector,
@@ -4902,7 +4901,7 @@ dm_set_writeback(struct amdgpu_display_manager *dm, }EXPORT_IF_KUNIT (dm_set_writeback); -VISIBLE_IF_KUNIT void amdgpu_dm_update_hdcp(struct drm_atomic_commit *state) +STATIC_IFN_KUNIT void amdgpu_dm_update_hdcp(struct drm_atomic_commit *state) {struct drm_connector_state *old_con_state, *new_con_state;struct drm_device *dev = state->dev;
@@ -5018,7 +5017,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_update_hdcp(struct drm_atomic_commit *state) }EXPORT_IF_KUNIT (amdgpu_dm_update_hdcp); -VISIBLE_IF_KUNIT int amdgpu_dm_atomic_setup_commit(struct drm_atomic_commit *state) +STATIC_IFN_KUNIT int amdgpu_dm_atomic_setup_commit(struct drm_atomic_commit *state) {struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state, *new_crtc_state;
@@ -5052,7 +5051,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_atomic_setup_commit(struct drm_atomic_commit *sta }EXPORT_IF_KUNIT (amdgpu_dm_atomic_setup_commit); -VISIBLE_IF_KUNIT void set_multisync_trigger_params( +STATIC_IFN_KUNIT void set_multisync_trigger_params(struct dc_stream_state *stream) {struct dc_stream_state *master =NULL ;
@@ -5067,7 +5066,7 @@ VISIBLE_IF_KUNIT void set_multisync_trigger_params( }EXPORT_IF_KUNIT (set_multisync_trigger_params); -VISIBLE_IF_KUNIT void set_master_stream(struct dc_stream_state *stream_set[], +STATIC_IFN_KUNIT void set_master_stream(struct dc_stream_state *stream_set[],int stream_count) {int j, highest_rfr =0 , master_stream =0 ;
@@ -5091,7 +5090,7 @@ VISIBLE_IF_KUNIT void set_master_stream(struct dc_stream_state *stream_set[], }EXPORT_IF_KUNIT (set_master_stream); -VISIBLE_IF_KUNIT void dm_enable_per_frame_crtc_master_sync(struct dc_state *context) +STATIC_IFN_KUNIT void dm_enable_per_frame_crtc_master_sync(struct dc_state *context) {int i =0 ;struct dc_stream_state *stream;
@@ -5436,7 +5435,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_commit *state)* Grabs all modesetting locks to serialize against any blocking commits, * Waits for completion of all non blocking commits. */ -VISIBLE_IF_KUNIT int do_aquire_global_lock(struct drm_device *dev, +STATIC_IFN_KUNIT int do_aquire_global_lock(struct drm_device *dev,struct drm_atomic_commit *state) {struct drm_crtc *crtc;
@@ -5484,7 +5483,7 @@ VISIBLE_IF_KUNIT int do_aquire_global_lock(struct drm_device *dev, }EXPORT_IF_KUNIT (do_aquire_global_lock); -VISIBLE_IF_KUNIT int dm_update_crtc_state(struct amdgpu_display_manager *dm, +STATIC_IFN_KUNIT int dm_update_crtc_state(struct amdgpu_display_manager *dm, struct drm_atomic_commit *state, struct drm_crtc *crtc, struct drm_crtc_state *old_crtc_state,
@@ -5763,7 +5762,7 @@ VISIBLE_IF_KUNIT int dm_update_crtc_state(struct amdgpu_display_manager *dm, }EXPORT_IF_KUNIT (dm_update_crtc_state); -VISIBLE_IF_KUNIT bool should_reset_plane(struct drm_atomic_commit *state, +STATIC_IFN_KUNIT bool should_reset_plane(struct drm_atomic_commit *state,struct drm_plane *plane,struct drm_plane_state *old_plane_state,struct drm_plane_state *new_plane_state)
@@ -5928,7 +5927,7 @@ VISIBLE_IF_KUNIT bool should_reset_plane(struct drm_atomic_commit *state, }EXPORT_IF_KUNIT (should_reset_plane); -VISIBLE_IF_KUNIT int +STATIC_IFN_KUNIT int dm_update_plane_state(struct dc *dc, struct drm_atomic_commit *state, struct drm_plane *plane,
@@ -6160,7 +6159,7 @@ struct __drm_planes_state *amdgpu_dm_get_next_zpos(return &state->planes[highest_i]; } -VISIBLE_IF_KUNIT int add_affected_mst_dsc_crtcs(struct drm_atomic_commit *state, +STATIC_IFN_KUNIT int add_affected_mst_dsc_crtcs(struct drm_atomic_commit *state,struct drm_crtc *crtc) {struct drm_connector *connector;
@@ -6192,7 +6191,7 @@ VISIBLE_IF_KUNIT int add_affected_mst_dsc_crtcs(struct drm_atomic_commit *state, }EXPORT_IF_KUNIT (add_affected_mst_dsc_crtcs); -VISIBLE_IF_KUNIT bool amdgpu_dm_crtc_mem_type_changed(struct drm_device *dev, +STATIC_IFN_KUNIT bool amdgpu_dm_crtc_mem_type_changed(struct drm_device *dev,struct drm_atomic_commit *state,struct drm_crtc_state *crtc_state) {
@@ -6240,7 +6239,7 @@ EXPORT_IF_KUNIT(amdgpu_dm_crtc_mem_type_changed);* * Return: -Error code if validation failed. */ -VISIBLE_IF_KUNIT int amdgpu_dm_atomic_check(struct drm_device *dev, +STATIC_IFN_KUNIT int amdgpu_dm_atomic_check(struct drm_device *dev,struct drm_atomic_commit *state) {struct amdgpu_device *adev =drm_to_adev (dev);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_audio.c +3 -3
@@ -84,7 +84,7 @@ static const struct drm_audio_component_ops amdgpu_dm_audio_component_ops = { .get_eld = amdgpu_dm_audio_component_get_eld, }; -VISIBLE_IF_KUNIT int amdgpu_dm_audio_component_bind(struct device *kdev, +STATIC_IFN_KUNIT int amdgpu_dm_audio_component_bind(struct device *kdev,struct device *hda_kdev,void *data) {struct drm_device *dev =dev_get_drvdata (kdev);
@@ -99,7 +99,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_audio_component_bind(struct device *kdev, }EXPORT_IF_KUNIT (amdgpu_dm_audio_component_bind); -VISIBLE_IF_KUNIT void amdgpu_dm_audio_component_unbind(struct device *kdev, +STATIC_IFN_KUNIT void amdgpu_dm_audio_component_unbind(struct device *kdev,struct device *hda_kdev,void *data) {struct amdgpu_device *adev =drm_to_adev (dev_get_drvdata (kdev));
@@ -116,7 +116,7 @@ static const struct component_ops amdgpu_dm_audio_component_bind_ops = { .unbind = amdgpu_dm_audio_component_unbind, }; -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT void amdgpu_dm_audio_init_pins(struct amdgpu_device *adev, int audio_count,const unsigned int *inst_array) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_backlight.c +13 -13
@@ -51,7 +51,7 @@#include "dm_helpers.h" #if defined(CONFIG_ACPI ) ||IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST ) -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT void amdgpu_dm_validate_backlight_caps(struct amdgpu_display_manager *dm, int bl_idx) {struct amdgpu_dm_backlight_caps *caps = &dm->backlight_caps[bl_idx];
@@ -96,7 +96,7 @@ void amdgpu_dm_update_backlight_caps(struct amdgpu_display_manager *dm, }EXPORT_IF_KUNIT (amdgpu_dm_update_backlight_caps); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT int get_brightness_range(const struct amdgpu_dm_backlight_caps *caps,unsigned int *min,unsigned int *max) {
@@ -190,7 +190,7 @@ static u32 convert_brightness_to_millipercent(const struct amdgpu_dm_backlight_creturn min_t (u32, luminance *1000 ,100000 ); } -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT void convert_custom_brightness(const struct amdgpu_dm_backlight_caps *caps,unsigned int min,unsigned int max,uint32_t *user_brightness)
@@ -257,7 +257,7 @@ void convert_custom_brightness(const struct amdgpu_dm_backlight_caps *caps,EXPORT_IF_KUNIT (convert_custom_brightness); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT u32 convert_brightness_from_user(const struct amdgpu_dm_backlight_caps *caps,uint32_t brightness) {
@@ -274,7 +274,7 @@ u32 convert_brightness_from_user(const struct amdgpu_dm_backlight_caps *caps,EXPORT_IF_KUNIT (convert_brightness_from_user); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT u32 convert_brightness_to_user(const struct amdgpu_dm_backlight_caps *caps,uint32_t brightness) {
@@ -291,7 +291,7 @@ u32 convert_brightness_to_user(const struct amdgpu_dm_backlight_caps *caps, }EXPORT_IF_KUNIT (convert_brightness_to_user); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT struct dc_stream_state *dm_find_stream_with_link(struct amdgpu_display_manager *dm,struct dc_link *link)
@@ -310,7 +310,7 @@ struct dc_stream_state *dm_find_stream_with_link( }EXPORT_IF_KUNIT (dm_find_stream_with_link); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT int amdgpu_dm_backlight_get_device_index(struct amdgpu_display_manager *dm,struct backlight_device *bd) {
@@ -425,7 +425,7 @@ void amdgpu_dm_backlight_set_level(struct amdgpu_display_manager *dm, }EXPORT_IF_KUNIT (amdgpu_dm_backlight_set_level); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT int amdgpu_dm_backlight_update_status(struct backlight_device *bd) {struct amdgpu_display_manager *dm =bl_get_data (bd);
@@ -437,7 +437,7 @@ int amdgpu_dm_backlight_update_status(struct backlight_device *bd) }EXPORT_IF_KUNIT (amdgpu_dm_backlight_update_status); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT u32 amdgpu_dm_backlight_get_level(struct amdgpu_display_manager *dm, int bl_idx) {int ret;
@@ -464,7 +464,7 @@ u32 amdgpu_dm_backlight_get_level(struct amdgpu_display_manager *dm, int bl_idx) }EXPORT_IF_KUNIT (amdgpu_dm_backlight_get_level); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT int amdgpu_dm_backlight_get_brightness(struct backlight_device *bd) {struct amdgpu_display_manager *dm =bl_get_data (bd);
@@ -480,7 +480,7 @@ static const struct backlight_ops amdgpu_dm_backlight_ops = { .update_status = amdgpu_dm_backlight_update_status, }; -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT void amdgpu_dm_backlight_fill_props(const struct amdgpu_dm_backlight_caps *caps, bool is_system_supplied, bool custom_curve_enabled,
@@ -693,7 +693,7 @@ EXPORT_IF_KUNIT(amdgpu_dm_setup_backlight_device);* carefully. */ -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT ssize_t panel_power_savings_show(struct device *device,struct device_attribute *attr,char *buf)
@@ -712,7 +712,7 @@ ssize_t panel_power_savings_show(struct device *device, }EXPORT_IF_KUNIT (panel_power_savings_show); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT ssize_t panel_power_savings_store(struct device *device,struct device_attribute *attr,const char *buf,size_t count)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +30 -30
240 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c +1 -1
@@ -113,7 +113,7 @@ EXPORT_IF_KUNIT(amdgpu_dm_colorop_kunit_set_ops);#endif -VISIBLE_IF_KUNIT int +STATIC_IFN_KUNIT intamdgpu_dm_build_default_pipeline (struct drm_device *dev,struct drm_plane *plane,bool hw_3d_lut,struct drm_prop_enum_list *list) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c +42 -42
329 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c +7 -7
@@ -44,7 +44,7 @@ static const char *const pipe_crc_sources[] = { "auto", }; -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT enum amdgpu_dm_pipe_crc_source dm_parse_crc_source(const char *source) {if (!source || !strcmp (source,"none" ))
@@ -62,7 +62,7 @@ enum amdgpu_dm_pipe_crc_source dm_parse_crc_source(const char *source) }EXPORT_IF_KUNIT (dm_parse_crc_source); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_is_crc_source_crtc(enum amdgpu_dm_pipe_crc_source src) { return (src == AMDGPU_DM_PIPE_CRC_SOURCE_CRTC) ||
@@ -70,7 +70,7 @@ bool dm_is_crc_source_crtc(enum amdgpu_dm_pipe_crc_source src) }EXPORT_IF_KUNIT (dm_is_crc_source_crtc); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_is_crc_source_dprx(enum amdgpu_dm_pipe_crc_source src) { return (src == AMDGPU_DM_PIPE_CRC_SOURCE_DPRX) ||
@@ -78,7 +78,7 @@ bool dm_is_crc_source_dprx(enum amdgpu_dm_pipe_crc_source src) }EXPORT_IF_KUNIT (dm_is_crc_source_dprx); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_need_crc_dither(enum amdgpu_dm_pipe_crc_source src) { return (src == AMDGPU_DM_PIPE_CRC_SOURCE_CRTC_DITHER) ||
@@ -97,7 +97,7 @@ EXPORT_IF_KUNIT(dm_need_crc_dither);* * Return: true if the DP AUX handle is needed, false otherwise. */ -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_need_dp_aux(enum amdgpu_dm_pipe_crc_source source,enum amdgpu_dm_pipe_crc_source cur_crc_src) {
@@ -116,7 +116,7 @@ EXPORT_IF_KUNIT(dm_need_dp_aux);* * Return: true if drm_dp_start_crc() should be called, false otherwise. */ -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_crc_source_should_start_dprx(enum amdgpu_dm_pipe_crc_source source,enum amdgpu_dm_pipe_crc_source cur_crc_src) {
@@ -136,7 +136,7 @@ EXPORT_IF_KUNIT(dm_crc_source_should_start_dprx);* * Return: true if drm_dp_stop_crc() should be called, false otherwise. */ -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_crc_source_should_stop_dprx(enum amdgpu_dm_pipe_crc_source source,enum amdgpu_dm_pipe_crc_source cur_crc_src) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +12 -12
@@ -170,7 +170,7 @@ bool amdgpu_dm_is_headless(struct amdgpu_device *adev) }EXPORT_IF_KUNIT (amdgpu_dm_is_headless); -VISIBLE_IF_KUNIT void amdgpu_dm_idle_worker(struct work_struct *work) +STATIC_IFN_KUNIT void amdgpu_dm_idle_worker(struct work_struct *work) {struct idle_workqueue *idle_work;
@@ -223,7 +223,7 @@ struct idle_workqueue *idle_create_workqueue(struct amdgpu_device *adev) }EXPORT_IF_KUNIT (idle_create_workqueue); -VISIBLE_IF_KUNIT void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work) +STATIC_IFN_KUNIT void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work) {struct vblank_control_work *vblank_work = container_of(work, struct vblank_control_work, work);
@@ -251,7 +251,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *wEXPORT_IF_KUNIT (amdgpu_dm_crtc_vblank_control_worker);#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY ) ||IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST ) -VISIBLE_IF_KUNIT int amdgpu_dm_crtc_set_vline0_irq(struct drm_crtc *crtc, int irq_type, +STATIC_IFN_KUNIT int amdgpu_dm_crtc_set_vline0_irq(struct drm_crtc *crtc, int irq_type,bool enable) {struct amdgpu_device *adev =drm_to_adev (crtc->dev);
@@ -424,7 +424,7 @@ void amdgpu_dm_crtc_disable_vblank(struct drm_crtc *crtc) }EXPORT_IF_KUNIT (amdgpu_dm_crtc_disable_vblank); -VISIBLE_IF_KUNIT void amdgpu_dm_crtc_destroy_state(struct drm_crtc *crtc, +STATIC_IFN_KUNIT void amdgpu_dm_crtc_destroy_state(struct drm_crtc *crtc,struct drm_crtc_state *state) {struct dm_crtc_state *cur =to_dm_crtc_state (state);
@@ -441,7 +441,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_crtc_destroy_state(struct drm_crtc *crtc, }EXPORT_IF_KUNIT (amdgpu_dm_crtc_destroy_state); -VISIBLE_IF_KUNIT struct drm_crtc_state *amdgpu_dm_crtc_duplicate_state(struct drm_crtc *crtc) +STATIC_IFN_KUNIT struct drm_crtc_state *amdgpu_dm_crtc_duplicate_state(struct drm_crtc *crtc) {struct dm_crtc_state *state, *cur;
@@ -478,7 +478,7 @@ VISIBLE_IF_KUNIT struct drm_crtc_state *amdgpu_dm_crtc_duplicate_state(struct dr }EXPORT_IF_KUNIT (amdgpu_dm_crtc_duplicate_state); -VISIBLE_IF_KUNIT void amdgpu_dm_crtc_destroy(struct drm_crtc *crtc) +STATIC_IFN_KUNIT void amdgpu_dm_crtc_destroy(struct drm_crtc *crtc) {/* * ISM workers are intentionally quiesced by amdgpu_dm_ism_disable()
@@ -491,7 +491,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_crtc_destroy(struct drm_crtc *crtc) }EXPORT_IF_KUNIT (amdgpu_dm_crtc_destroy); -VISIBLE_IF_KUNIT struct drm_crtc_state *amdgpu_dm_crtc_create_state(struct drm_crtc *crtc) +STATIC_IFN_KUNIT struct drm_crtc_state *amdgpu_dm_crtc_create_state(struct drm_crtc *crtc) {struct dm_crtc_state *state;
@@ -506,7 +506,7 @@ VISIBLE_IF_KUNIT struct drm_crtc_state *amdgpu_dm_crtc_create_state(struct drm_cEXPORT_IF_KUNIT (amdgpu_dm_crtc_create_state);#ifdef CONFIG_DEBUG_FS -VISIBLE_IF_KUNIT int amdgpu_dm_crtc_late_register(struct drm_crtc *crtc) +STATIC_IFN_KUNIT int amdgpu_dm_crtc_late_register(struct drm_crtc *crtc) {crtc_debugfs_init (crtc);
@@ -607,7 +607,7 @@ static void amdgpu_dm_crtc_helper_disable(struct drm_crtc *crtc) { } -VISIBLE_IF_KUNIT int amdgpu_dm_crtc_count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) +STATIC_IFN_KUNIT int amdgpu_dm_crtc_count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) {struct drm_atomic_commit *state = new_crtc_state->state;struct drm_plane *plane;
@@ -640,7 +640,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_crtc_count_crtc_active_planes(struct drm_crtc_sta }EXPORT_IF_KUNIT (amdgpu_dm_crtc_count_crtc_active_planes); -VISIBLE_IF_KUNIT void amdgpu_dm_crtc_update_crtc_active_planes(struct drm_crtc *crtc, +STATIC_IFN_KUNIT void amdgpu_dm_crtc_update_crtc_active_planes(struct drm_crtc *crtc,struct drm_crtc_state *new_crtc_state) { struct dm_crtc_state *dm_new_crtc_state =
@@ -656,7 +656,7 @@ VISIBLE_IF_KUNIT void amdgpu_dm_crtc_update_crtc_active_planes(struct drm_crtc * }EXPORT_IF_KUNIT (amdgpu_dm_crtc_update_crtc_active_planes); -VISIBLE_IF_KUNIT bool amdgpu_dm_crtc_helper_mode_fixup(struct drm_crtc *crtc, +STATIC_IFN_KUNIT bool amdgpu_dm_crtc_helper_mode_fixup(struct drm_crtc *crtc,const struct drm_display_mode *mode,struct drm_display_mode *adjusted_mode) {
@@ -664,7 +664,7 @@ VISIBLE_IF_KUNIT bool amdgpu_dm_crtc_helper_mode_fixup(struct drm_crtc *crtc, }EXPORT_IF_KUNIT (amdgpu_dm_crtc_helper_mode_fixup); -VISIBLE_IF_KUNIT int amdgpu_dm_crtc_helper_atomic_check(struct drm_crtc *crtc, +STATIC_IFN_KUNIT int amdgpu_dm_crtc_helper_atomic_check(struct drm_crtc *crtc,struct drm_atomic_commit *state) { struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_cursor.c +4 -4
@@ -41,7 +41,7 @@#include "amdgpu_dm_cursor.h" #include "dm_helpers.h" -VISIBLE_IF_KUNIT int dm_check_cursor_fb(struct amdgpu_crtc *new_acrtc, +STATIC_IFN_KUNIT int dm_check_cursor_fb(struct amdgpu_crtc *new_acrtc,struct drm_plane_state *new_plane_state,struct drm_framebuffer *fb) {
@@ -171,7 +171,7 @@ bool amdgpu_dm_should_update_native_cursor(struct drm_atomic_commit *state, }EXPORT_IF_KUNIT (amdgpu_dm_should_update_native_cursor); -VISIBLE_IF_KUNIT void dm_get_oriented_plane_size(struct drm_plane_state *plane_state, +STATIC_IFN_KUNIT void dm_get_oriented_plane_size(struct drm_plane_state *plane_state,int *src_w,int *src_h) {switch (plane_state->rotation &DRM_MODE_ROTATE_MASK ) {
@@ -190,7 +190,7 @@ VISIBLE_IF_KUNIT void dm_get_oriented_plane_size(struct drm_plane_state *plane_s }EXPORT_IF_KUNIT (dm_get_oriented_plane_size); -VISIBLE_IF_KUNIT void +STATIC_IFN_KUNIT voiddm_get_plane_scale (struct drm_plane_state *plane_state,int *out_plane_scale_w,int *out_plane_scale_h) {
@@ -231,7 +231,7 @@ EXPORT_IF_KUNIT(dm_get_plane_scale);* * Return: true if the pipeline modifies pixels, false otherwise. */ -VISIBLE_IF_KUNIT bool dm_plane_color_pipeline_active(struct drm_atomic_commit *state, +STATIC_IFN_KUNIT bool dm_plane_color_pipeline_active(struct drm_atomic_commit *state,struct drm_plane *plane,bool use_old) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_dmub.c +4 -4
@@ -411,7 +411,7 @@ dm_dmub_send_vbios_gpint_command(struct amdgpu_device *adev,return DMUB_STATUS_TIMEOUT ; } -VISIBLE_IF_KUNIT void *dm_dmub_get_vbios_bounding_box(struct amdgpu_device *adev) +STATIC_IFN_KUNIT void *dm_dmub_get_vbios_bounding_box(struct amdgpu_device *adev) {void *bb;long long addr;
@@ -493,7 +493,7 @@ enum dmub_ips_disable_type dm_get_default_ips_mode( }EXPORT_IF_KUNIT (dm_get_default_ips_mode); -VISIBLE_IF_KUNIT uint32_t amdgpu_dm_dmub_reg_read(void *ctx, uint32_t address) +STATIC_IFN_KUNIT uint32_t amdgpu_dm_dmub_reg_read(void *ctx, uint32_t address) {struct amdgpu_device *adev = ctx;
@@ -501,7 +501,7 @@ VISIBLE_IF_KUNIT uint32_t amdgpu_dm_dmub_reg_read(void *ctx, uint32_t address) }EXPORT_IF_KUNIT (amdgpu_dm_dmub_reg_read); -VISIBLE_IF_KUNIT void amdgpu_dm_dmub_reg_write(void *ctx, uint32_t address, +STATIC_IFN_KUNIT void amdgpu_dm_dmub_reg_write(void *ctx, uint32_t address,uint32_t value) {struct amdgpu_device *adev = ctx;
@@ -869,7 +869,7 @@ int amdgpu_dm_process_dmub_aux_transfer_sync( }EXPORT_IF_KUNIT (amdgpu_dm_process_dmub_aux_transfer_sync); -VISIBLE_IF_KUNIT void abort_fused_io( +STATIC_IFN_KUNIT void abort_fused_io(struct dc_context *ctx,const struct dmub_cmd_fused_request *request )
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c +23 -26
187 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +15 -15
@@ -89,7 +89,7 @@ union vcp_reply {unsigned char raw[11 ]; }; -VISIBLE_IF_KUNIT u32 edid_extract_panel_id(struct edid *edid) +STATIC_IFN_KUNIT u32 edid_extract_panel_id(struct edid *edid) {return (u32 )edid->mfg_id[0 ] <<24 | (u32)edid->mfg_id[1] << 16 |
@@ -97,7 +97,7 @@ VISIBLE_IF_KUNIT u32 edid_extract_panel_id(struct edid *edid) }EXPORT_IF_KUNIT (edid_extract_panel_id); -VISIBLE_IF_KUNIT void apply_edid_quirks(struct dc_link *link, struct edid *edid, +STATIC_IFN_KUNIT void apply_edid_quirks(struct dc_link *link, struct edid *edid,struct dc_edid_caps *edid_caps) {struct amdgpu_dm_connector *aconnector = link->priv;
@@ -277,7 +277,7 @@ enum dc_edid_status dm_helpers_parse_edid_caps( }EXPORT_IF_KUNIT (dm_helpers_parse_edid_caps); -VISIBLE_IF_KUNIT void +STATIC_IFN_KUNIT void fill_dc_mst_payload_table_from_drm(struct dc_link *link, bool enable, struct drm_dp_mst_atomic_payload *target_payload,
@@ -335,7 +335,7 @@ void dm_helpers_dp_update_branch_info( {}EXPORT_IF_KUNIT (dm_helpers_dp_update_branch_info); -VISIBLE_IF_KUNIT void dm_helpers_construct_old_payload( +STATIC_IFN_KUNIT void dm_helpers_construct_old_payload( struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_topology_state *mst_state, struct drm_dp_mst_atomic_payload *new_payload,
@@ -768,7 +768,7 @@ bool dm_helpers_execute_fused_io( }EXPORT_IF_KUNIT (dm_helpers_execute_fused_io); -VISIBLE_IF_KUNIT bool execute_synaptics_rc_command(struct drm_dp_aux *aux, +STATIC_IFN_KUNIT bool execute_synaptics_rc_command(struct drm_dp_aux *aux, bool is_write_cmd, unsigned char cmd, unsigned int length,
@@ -842,7 +842,7 @@ VISIBLE_IF_KUNIT bool execute_synaptics_rc_command(struct drm_dp_aux *aux, }EXPORT_IF_KUNIT (execute_synaptics_rc_command); -VISIBLE_IF_KUNIT void apply_synaptics_fifo_reset_wa(struct drm_dp_aux *aux) +STATIC_IFN_KUNIT void apply_synaptics_fifo_reset_wa(struct drm_dp_aux *aux) {unsigned char data[16 ] = {0 };
@@ -911,7 +911,7 @@ EXPORT_IF_KUNIT(apply_synaptics_fifo_reset_wa);/* MST Dock */ static const uint8_t SYNAPTICS_DEVICE_ID [] ="SYNA" ; -VISIBLE_IF_KUNIT uint8_t write_dsc_enable_synaptics_non_virtual_dpcd_mst( +STATIC_IFN_KUNIT uint8_t write_dsc_enable_synaptics_non_virtual_dpcd_mst(struct drm_dp_aux *aux,const struct dc_stream_state *stream,bool enable)
@@ -1071,7 +1071,7 @@ bool dm_helpers_is_dp_sink_present(struct dc_link *link) }EXPORT_IF_KUNIT (dm_helpers_is_dp_sink_present); -VISIBLE_IF_KUNIT int +STATIC_IFN_KUNIT intdm_helpers_probe_acpi_edid (void *data,u8 *buf,unsigned int block,size_t len) {struct drm_connector *connector = data;
@@ -1111,7 +1111,7 @@ dm_helpers_probe_acpi_edid(void *data, u8 *buf, unsigned int block, size_t len) }EXPORT_IF_KUNIT (dm_helpers_probe_acpi_edid); -VISIBLE_IF_KUNIT const struct drm_edid * +STATIC_IFN_KUNIT const struct drm_edid *dm_helpers_read_acpi_edid (struct amdgpu_dm_connector *aconnector) {struct drm_connector *connector = &aconnector->base;
@@ -1134,7 +1134,7 @@ dm_helpers_read_acpi_edid(struct amdgpu_dm_connector *aconnector) }EXPORT_IF_KUNIT (dm_helpers_read_acpi_edid); -VISIBLE_IF_KUNIT const struct drm_edid * +STATIC_IFN_KUNIT const struct drm_edid *dm_helpers_read_vbios_hardcoded_edid (struct dc_link *link,struct amdgpu_dm_connector *aconnector) {struct dc_bios *bios = link->ctx->dc_bios;
@@ -1174,7 +1174,7 @@ dm_helpers_read_vbios_hardcoded_edid(struct dc_link *link, struct amdgpu_dm_conn }EXPORT_IF_KUNIT (dm_helpers_read_vbios_hardcoded_edid); -VISIBLE_IF_KUNIT uint8_t get_max_frl_rate(uint8_t max_lanes, uint8_t max_rate_per_lane) +STATIC_IFN_KUNIT uint8_t get_max_frl_rate(uint8_t max_lanes, uint8_t max_rate_per_lane) {uint8_t max_frl_rate;
@@ -1197,7 +1197,7 @@ VISIBLE_IF_KUNIT uint8_t get_max_frl_rate(uint8_t max_lanes, uint8_t max_rate_pe }EXPORT_IF_KUNIT (get_max_frl_rate); -VISIBLE_IF_KUNIT uint8_t get_dsc_max_slices(uint8_t max_slices, int clk_per_slice) +STATIC_IFN_KUNIT uint8_t get_dsc_max_slices(uint8_t max_slices, int clk_per_slice) {uint8_t dsc_max_slices;
@@ -1675,7 +1675,7 @@ void dm_helpers_dp_mst_update_branch_bandwidth( }EXPORT_IF_KUNIT (dm_helpers_dp_mst_update_branch_bandwidth); -VISIBLE_IF_KUNIT const uint32_t dm_freesync_pcon_whitelist[] = { +STATIC_IFN_KUNIT const uint32_t dm_freesync_pcon_whitelist[] = {DP_BRANCH_DEVICE_ID_0060AD ,DP_BRANCH_DEVICE_ID_00E04C ,DP_BRANCH_DEVICE_ID_90CC24 ,
@@ -1684,13 +1684,13 @@ VISIBLE_IF_KUNIT const uint32_t dm_freesync_pcon_whitelist[] = { };EXPORT_IF_KUNIT (dm_freesync_pcon_whitelist); -VISIBLE_IF_KUNIT uint32_t dm_freesync_pcon_whitelist_count(void) +STATIC_IFN_KUNIT uint32_t dm_freesync_pcon_whitelist_count(void) {return ARRAY_SIZE (dm_freesync_pcon_whitelist); }EXPORT_IF_KUNIT (dm_freesync_pcon_whitelist_count); -VISIBLE_IF_KUNIT bool dm_is_freesync_pcon_whitelist(const uint32_t branch_dev_id) +STATIC_IFN_KUNIT bool dm_is_freesync_pcon_whitelist(const uint32_t branch_dev_id) {u32 i;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +27 -29
212 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c +7 -7
@@ -44,7 +44,7 @@* This function defines the idle state management FSM. Invalid transitions * are ignored and will not progress the FSM. */ -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_ism_next_state(enum amdgpu_dm_ism_state current_state,enum amdgpu_dm_ism_event event,enum amdgpu_dm_ism_state *next_state)
@@ -130,7 +130,7 @@ bool dm_ism_next_state(enum amdgpu_dm_ism_state current_state, }EXPORT_IF_KUNIT (dm_ism_next_state); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT uint64_t dm_ism_get_sso_delay(const struct amdgpu_dm_ism *ism,const struct dc_stream_state *stream) {
@@ -163,7 +163,7 @@ EXPORT_IF_KUNIT(dm_ism_get_sso_delay);* Calculates the delay before allowing idle optimizations based on recent * idle history and the current stream timing. */ -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT uint64_t dm_ism_get_idle_allow_delay(const struct amdgpu_dm_ism *ism,const struct dc_stream_state *stream) {
@@ -230,7 +230,7 @@ EXPORT_IF_KUNIT(dm_ism_get_idle_allow_delay);* dm_ism_insert_record - Insert a record into the circular history buffer * @ism: ISM instance */ -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT void dm_ism_insert_record(struct amdgpu_dm_ism *ism) {struct amdgpu_dm_ism_record *record;
@@ -249,7 +249,7 @@ void dm_ism_insert_record(struct amdgpu_dm_ism *ism)EXPORT_IF_KUNIT (dm_ism_insert_record); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT void dm_ism_set_last_idle_ts(struct amdgpu_dm_ism *ism) { ism->last_idle_timestamp_ns =ktime_get_ns ();
@@ -257,7 +257,7 @@ void dm_ism_set_last_idle_ts(struct amdgpu_dm_ism *ism)EXPORT_IF_KUNIT (dm_ism_set_last_idle_ts); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool dm_ism_trigger_event(struct amdgpu_dm_ism *ism,enum amdgpu_dm_ism_event event) {
@@ -332,7 +332,7 @@ static void dm_ism_commit_idle_optimization_state(struct amdgpu_dm_ism *ism, } } -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT enum amdgpu_dm_ism_event dm_ism_dispatch_next_event( enum amdgpu_dm_ism_state current_state, uint64_t delay_ns,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +26 -26
208 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +31 -35
233 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +25 -25
200 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2 -2
@@ -32,7 +32,7 @@#include "modules/power/power_helpers.h" #include "dm_helpers.h" -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT bool link_supports_psrsu(struct dc_link *link) {struct dc *dc = link->ctx->dc;
@@ -62,7 +62,7 @@ bool link_supports_psrsu(struct dc_link *link) }EXPORT_IF_KUNIT (link_supports_psrsu); -VISIBLE_IF_KUNIT +STATIC_IFN_KUNIT void amdgpu_dm_psr_fill_caps(struct dc_link *link, struct psr_caps *caps) {struct dpcd_caps *dpcd_caps = &link->dpcd_caps;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c +4 -4
@@ -87,7 +87,7 @@ EXPORT_IF_KUNIT(amdgpu_dm_wb_kunit_set_ops);#endif -VISIBLE_IF_KUNIT int amdgpu_dm_wb_encoder_atomic_check(struct drm_encoder *encoder, +STATIC_IFN_KUNIT int amdgpu_dm_wb_encoder_atomic_check(struct drm_encoder *encoder,struct drm_crtc_state *crtc_state,struct drm_connector_state *conn_state) {
@@ -124,14 +124,14 @@ VISIBLE_IF_KUNIT int amdgpu_dm_wb_encoder_atomic_check(struct drm_encoder *encodEXPORT_IF_KUNIT (amdgpu_dm_wb_encoder_atomic_check); -VISIBLE_IF_KUNIT int amdgpu_dm_wb_connector_get_modes(struct drm_connector *connector) +STATIC_IFN_KUNIT int amdgpu_dm_wb_connector_get_modes(struct drm_connector *connector) {/* Maximum resolution supported by DWB */ return drm_add_modes_noedid (connector,3840 ,2160 ); }EXPORT_IF_KUNIT (amdgpu_dm_wb_connector_get_modes); -VISIBLE_IF_KUNIT int amdgpu_dm_wb_prepare_job(struct drm_writeback_connector *wb_connector, +STATIC_IFN_KUNIT int amdgpu_dm_wb_prepare_job(struct drm_writeback_connector *wb_connector,struct drm_writeback_job *job) {struct amdgpu_framebuffer *afb;
@@ -196,7 +196,7 @@ VISIBLE_IF_KUNIT int amdgpu_dm_wb_prepare_job(struct drm_writeback_connector *wb }EXPORT_IF_KUNIT (amdgpu_dm_wb_prepare_job); -VISIBLE_IF_KUNIT void amdgpu_dm_wb_cleanup_job(struct drm_writeback_connector *connector, +STATIC_IFN_KUNIT void amdgpu_dm_wb_cleanup_job(struct drm_writeback_connector *connector,struct drm_writeback_job *job) {struct amdgpu_bo *rbo;
drivers/gpu/drm/amd/display/dc/dm_helpers.h +2 -2
@@ -30,8 +30,6 @@#ifndef __DM_HELPERS__#define __DM_HELPERS__ -#include <kunit/visibility.h> -#include "modules/inc/mod_info_packet_types.h" #include "dc_types.h" #include "dc.h"
@@ -195,10 +193,12 @@ void dm_helpers_mccs_vcp_set( struct dc_sink *sink);#if IS_ENABLED (CONFIG_DRM_AMD_DC_KUNIT_TEST ) +#define STATIC_IFN_KUNIT #define INLINE_IFN_KUNIT inline#define EXPORT_IF_KUNIT (symbol) EXPORT_SYMBOL(symbol)#else +#define STATIC_IFN_KUNIT static#define INLINE_IFN_KUNIT #define EXPORT_IF_KUNIT (symbol)#endif
Signature · 1 line
2.55.0