mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 08:15:07 -04:00
drm/amd/display: Replace amdgpu_dm_kunit_helpers.h with dm_helpers.h
Drop the amdgpu_dm_kunit_helpers.h include across the amdgpu_dm source files and use dm_helpers.h instead Assisted-by: Copilot:Claude-Opus-4.8 Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
889afb51af
commit
4d6eabd9bf
@@ -70,7 +70,6 @@
|
||||
#include "amdgpu_dm_audio.h"
|
||||
#include "amdgpu_dm_dmub.h"
|
||||
#include "amdgpu_dm_connector.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
|
||||
#include "ivsrcid/ivsrcid_vislands30.h"
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "amdgpu.h"
|
||||
#include "amdgpu_dm.h"
|
||||
#include "amdgpu_dm_audio.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "dc.h"
|
||||
|
||||
#include <linux/component.h>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
#include "amdgpu_dm_trace.h"
|
||||
#include "amd_shared.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
void amdgpu_dm_update_backlight_caps(struct amdgpu_display_manager *dm,
|
||||
int bl_idx)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "amdgpu_dm_colorop.h"
|
||||
#include "dc.h"
|
||||
#include "modules/color/color_gamma.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#include "amdgpu.h"
|
||||
#include "amdgpu_dm_colorop.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "dc.h"
|
||||
|
||||
const u64 amdgpu_dm_supported_degam_tfs =
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include "amdgpu_display.h"
|
||||
#include "amdgpu_dm.h"
|
||||
#include "amdgpu_dm_connector.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "amdgpu_dm_plane.h"
|
||||
#include "amdgpu_dm_crtc.h"
|
||||
#include "amdgpu_dm_wb.h"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "amdgpu_securedisplay.h"
|
||||
#include "amdgpu_dm_psr.h"
|
||||
#include "amdgpu_dm_replay.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
static const char *const pipe_crc_sources[] = {
|
||||
"none",
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "amdgpu_dm_plane.h"
|
||||
#include "amdgpu_dm_trace.h"
|
||||
#include "amdgpu_dm_debugfs.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "modules/inc/mod_power.h"
|
||||
|
||||
#define HPD_DETECTION_PERIOD_uS 2000000
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "amdgpu_ucode.h"
|
||||
#include "amdgpu_dm.h"
|
||||
#include "amdgpu_dm_dmub.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include <linux/component.h>
|
||||
#include <linux/firmware.h>
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "dm_helpers.h"
|
||||
#include <drm/display/drm_hdcp_helper.h>
|
||||
#include "hdcp_psp.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
|
||||
/*
|
||||
* If the SRM version being loaded is less than or equal to the
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
#include "dm_helpers.h"
|
||||
#include "ddc_service_types.h"
|
||||
#include "clk_mgr.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "amdgpu_dm_helpers.h"
|
||||
|
||||
#define MCCS_DEST_ADDR (0x6E >> 1)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "amdgpu_display.h"
|
||||
#include "amdgpu_dm.h"
|
||||
#include "amdgpu_dm_irq.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "amdgpu_dm_crtc.h"
|
||||
#include "amdgpu_dm_hdcp.h"
|
||||
#include "amdgpu_dm_mst_types.h"
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "amdgpu_dm_ism.h"
|
||||
#include "amdgpu_dm_crtc.h"
|
||||
#include "amdgpu_dm_trace.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright 2026 Advanced Micro Devices, Inc.
|
||||
*/
|
||||
|
||||
#ifndef AMDGPU_DM_KUNIT_HELPERS_H
|
||||
#define AMDGPU_DM_KUNIT_HELPERS_H
|
||||
|
||||
#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
|
||||
|
||||
#endif /* AMDGPU_DM_KUNIT_HELPERS_H */
|
||||
@@ -40,7 +40,6 @@
|
||||
|
||||
#include "dc.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
|
||||
#include "ddc_service_types.h"
|
||||
#include "dpcd_defs.h"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "amdgpu_display.h"
|
||||
#include "amdgpu_dm_trace.h"
|
||||
#include "amdgpu_dm_plane.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "amdgpu_dm_colorop.h"
|
||||
#include "gc/gc_11_0_0_offset.h"
|
||||
#include "gc/gc_11_0_0_sh_mask.h"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "amdgpu_dm_irq.h"
|
||||
#include "amdgpu_pm.h"
|
||||
#include "dm_pp_smu.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "amdgpu_dm_pp_smu.h"
|
||||
|
||||
STATIC_IFN_KUNIT void build_pm_display_cfg(
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "dc.h"
|
||||
#include "amdgpu_dm.h"
|
||||
#include "modules/power/power_helpers.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
STATIC_IFN_KUNIT
|
||||
bool link_supports_psrsu(struct dc_link *link)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "amdgpu.h"
|
||||
#include "amdgpu_dm.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
struct amdgpu_dm_quirks {
|
||||
bool aux_hpd_discon;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "modules/power/power_helpers.h"
|
||||
#include "dmub/inc/dmub_cmd.h"
|
||||
#include "dc/inc/link_service.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include "amdgpu_dm_irq.h"
|
||||
#include "amdgpu_pm.h"
|
||||
#include "amdgpu_dm_trace.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
|
||||
unsigned long long
|
||||
dm_get_elapse_time_in_ns(struct dc_context *ctx,
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "amdgpu.h"
|
||||
#include "amdgpu_dm.h"
|
||||
#include "amdgpu_dm_wb.h"
|
||||
#include "amdgpu_dm_kunit_helpers.h"
|
||||
#include "dm_helpers.h"
|
||||
#include "amdgpu_display.h"
|
||||
#include "dc.h"
|
||||
|
||||
|
||||
@@ -192,6 +192,17 @@ void dm_helpers_mccs_vcp_set(
|
||||
struct dc_link *link,
|
||||
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
|
||||
|
||||
bool dm_helpers_dp_handle_test_pattern_request(
|
||||
struct dc_context *ctx,
|
||||
const struct dc_link *link,
|
||||
|
||||
@@ -57,6 +57,16 @@
|
||||
#include "amdgpu_dm/dc_fpu.h"
|
||||
#endif /* CONFIG_DRM_AMD_DC_FP */
|
||||
|
||||
|
||||
/*
|
||||
* On Linux this is provided by <linux/kconfig.h> and evaluates Kconfig
|
||||
* options for both built-in (=y) and module (=m) cases. Windows has no
|
||||
* Kconfig, so config options are never set here and this always yields 0.
|
||||
*/
|
||||
#ifndef IS_ENABLED
|
||||
#define IS_ENABLED(option) 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
*
|
||||
* general debug capabilities
|
||||
|
||||
Reference in New Issue
Block a user