<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Series is:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com><br>
<b>Sent:</b> Friday, November 1, 2019 2:05 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Lakha, Bhawanpreet <Bhawanpreet.Lakha@amd.com><br>
<b>Subject:</b> [PATCH 3/3] drm/amd/display: rename DCN1_0 kconfig to DCN</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Since dcn20 and dcn21 are under dcn1 it doesnt make sense to<br>
have it named dcn1.<br>
<br>
Change it to "dcn" to make it generic<br>
<br>
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com><br>
---<br>
drivers/gpu/drm/amd/display/Kconfig | 4 ++--<br>
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 ++++----<br>
drivers/gpu/drm/amd/display/dc/Makefile | 4 ++--<br>
.../display/dc/bios/command_table_helper2.c | 2 +-<br>
drivers/gpu/drm/amd/display/dc/calcs/Makefile | 2 +-<br>
.../gpu/drm/amd/display/dc/clk_mgr/Makefile | 2 +-<br>
.../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 2 +-<br>
drivers/gpu/drm/amd/display/dc/core/dc.c | 8 ++++----<br>
.../gpu/drm/amd/display/dc/core/dc_debug.c | 2 +-<br>
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +-<br>
.../gpu/drm/amd/display/dc/core/dc_resource.c | 12 +++++------<br>
.../gpu/drm/amd/display/dc/core/dc_stream.c | 4 ++--<br>
drivers/gpu/drm/amd/display/dc/dc.h | 2 +-<br>
.../drm/amd/display/dc/dce/dce_clock_source.c | 2 +-<br>
.../drm/amd/display/dc/dce/dce_clock_source.h | 2 +-<br>
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | 10 +++++-----<br>
.../amd/display/dc/dce/dce_stream_encoder.c | 20 +++++++++----------<br>
.../display/dc/dce110/dce110_hw_sequencer.c | 2 +-<br>
.../gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c | 2 +-<br>
.../gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h | 2 +-<br>
drivers/gpu/drm/amd/display/dc/dml/Makefile | 4 ++--<br>
drivers/gpu/drm/amd/display/dc/gpio/Makefile | 2 +-<br>
.../gpu/drm/amd/display/dc/gpio/hw_factory.c | 4 ++--<br>
.../drm/amd/display/dc/gpio/hw_translate.c | 4 ++--<br>
.../gpu/drm/amd/display/dc/inc/core_types.h | 6 +++---<br>
drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h | 2 +-<br>
drivers/gpu/drm/amd/display/dc/irq/Makefile | 2 +-<br>
.../gpu/drm/amd/display/dc/irq/irq_service.c | 2 +-<br>
drivers/gpu/drm/amd/display/dc/os_types.h | 2 +-<br>
29 files changed, 61 insertions(+), 61 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig<br>
index b5a9bfe8998c..78f40690a109 100644<br>
--- a/drivers/gpu/drm/amd/display/Kconfig<br>
+++ b/drivers/gpu/drm/amd/display/Kconfig<br>
@@ -6,13 +6,13 @@ config DRM_AMD_DC<br>
bool "AMD DC - Enable new display engine"<br>
default y<br>
select SND_HDA_COMPONENT if SND_HDA_CORE<br>
- select DRM_AMD_DC_DCN1_0 if X86 && !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS)<br>
+ select DRM_AMD_DC_DCN if X86 && !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS)<br>
help<br>
Choose this option if you want to use the new display engine<br>
support for AMDGPU. This adds required support for Vega and<br>
Raven ASICs.<br>
<br>
-config DRM_AMD_DC_DCN1_0<br>
+config DRM_AMD_DC_DCN<br>
def_bool n<br>
help<br>
Raven, Navi and Renoir family support for display engine<br>
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
index 441ad43ce9a9..72e7a1245bd8 100644<br>
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
@@ -72,7 +72,7 @@<br>
#include <drm/drm_audio_component.h><br>
#include <drm/drm_hdcp.h><br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include "ivsrcid/dcn/irqsrcs_dcn_1_0.h"<br>
<br>
#include "dcn/dcn_1_0_offset.h"<br>
@@ -1866,7 +1866,7 @@ static int dce110_register_irq_handlers(struct amdgpu_device *adev)<br>
return 0;<br>
}<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
/* Register IRQ sources and initialize IRQ callbacks */<br>
static int dcn10_register_irq_handlers(struct amdgpu_device *adev)<br>
{<br>
@@ -2455,7 +2455,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)<br>
goto fail;<br>
}<br>
break;<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case CHIP_RAVEN:<br>
case CHIP_NAVI12:<br>
case CHIP_NAVI10:<br>
@@ -2679,7 +2679,7 @@ static int dm_early_init(void *handle)<br>
adev->mode_info.num_hpd = 6;<br>
adev->mode_info.num_dig = 6;<br>
break;<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case CHIP_RAVEN:<br>
adev->mode_info.num_crtc = 4;<br>
adev->mode_info.num_hpd = 4;<br>
diff --git a/drivers/gpu/drm/amd/display/dc/Makefile b/drivers/gpu/drm/amd/display/dc/Makefile<br>
index 1feba4190284..ee9b83e5c51a 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/Makefile<br>
+++ b/drivers/gpu/drm/amd/display/dc/Makefile<br>
@@ -25,7 +25,7 @@<br>
<br>
DC_LIBS = basics bios calcs clk_mgr dce gpio irq virtual<br>
<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
DC_LIBS += dcn20<br>
DC_LIBS += dsc<br>
DC_LIBS += dcn10 dml<br>
@@ -50,7 +50,7 @@ include $(AMD_DC)<br>
DISPLAY_CORE = dc.o dc_link.o dc_resource.o dc_hw_sequencer.o dc_sink.o \<br>
dc_surface.o dc_link_hwss.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o<br>
<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
DISPLAY_CORE += dc_vm_helper.o<br>
endif<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c<br>
index 47bb802b7164..7388c987c595 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c<br>
@@ -55,7 +55,7 @@ bool dal_bios_parser_init_cmd_tbl_helper2(<br>
case DCE_VERSION_11_22:<br>
*h = dal_cmd_tbl_helper_dce112_get_table2();<br>
return true;<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case DCN_VERSION_1_0:<br>
case DCN_VERSION_1_01:<br>
*h = dal_cmd_tbl_helper_dce112_get_table2();<br>
diff --git a/drivers/gpu/drm/amd/display/dc/calcs/Makefile b/drivers/gpu/drm/amd/display/dc/calcs/Makefile<br>
index e59a7f356188..927e46075aa7 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/calcs/Makefile<br>
+++ b/drivers/gpu/drm/amd/display/dc/calcs/Makefile<br>
@@ -47,7 +47,7 @@ CFLAGS_dcn_calc_math.o := $(calcs_ccflags) -Wno-tautological-compare<br>
<br>
BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o<br>
<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
BW_CALCS += dcn_calcs.o dcn_calc_math.o dcn_calc_auto.o<br>
endif<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile b/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile<br>
index de01543f0161..3cd283195091 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile<br>
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile<br>
@@ -63,7 +63,7 @@ CLK_MGR_DCE120 = dce120_clk_mgr.o<br>
AMD_DAL_CLK_MGR_DCE120 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce120/,$(CLK_MGR_DCE120))<br>
<br>
AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE120)<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
###############################################################################<br>
# DCN10<br>
###############################################################################<br>
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c<br>
index 740d92bd4481..a7c4c1d1fc59 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c<br>
@@ -132,7 +132,7 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p<br>
dce120_clk_mgr_construct(ctx, clk_mgr);<br>
break;<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case FAMILY_RV:<br>
if (ASICREV_IS_RENOIR(asic_id.hw_internal_rev)) {<br>
rn_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg);<br>
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c<br>
index 4d1a8f706633..a940ca7d59db 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c<br>
@@ -565,7 +565,7 @@ static void destruct(struct dc *dc)<br>
kfree(dc->bw_dceip);<br>
dc->bw_dceip = NULL;<br>
<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
kfree(dc->dcn_soc);<br>
dc->dcn_soc = NULL;<br>
<br>
@@ -584,7 +584,7 @@ static bool construct(struct dc *dc,<br>
struct dc_context *dc_ctx;<br>
struct bw_calcs_dceip *dc_dceip;<br>
struct bw_calcs_vbios *dc_vbios;<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
struct dcn_soc_bounding_box *dcn_soc;<br>
struct dcn_ip_params *dcn_ip;<br>
#endif<br>
@@ -616,7 +616,7 @@ static bool construct(struct dc *dc,<br>
}<br>
<br>
dc->bw_vbios = dc_vbios;<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
dcn_soc = kzalloc(sizeof(*dcn_soc), GFP_KERNEL);<br>
if (!dcn_soc) {<br>
dm_error("%s: failed to create dcn_soc\n", __func__);<br>
@@ -1295,7 +1295,7 @@ struct dc_state *dc_create_state(struct dc *dc)<br>
* initialize and obtain IP and SOC the base DML instance from DC is<br>
* initially copied into every context<br>
*/<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
memcpy(&context->bw_ctx.dml, &dc->dml, sizeof(struct display_mode_lib));<br>
#endif<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c<br>
index b9227d5de3a3..85a52a16295a 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c<br>
@@ -347,7 +347,7 @@ void context_clock_trace(<br>
struct dc *dc,<br>
struct dc_state *context)<br>
{<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
DC_LOGGER_INIT(dc->ctx->logger);<br>
CLOCK_TRACE("Current: dispclk_khz:%d max_dppclk_khz:%d dcfclk_khz:%d\n"<br>
"dcfclk_deep_sleep_khz:%d fclk_khz:%d socclk_khz:%d\n",<br>
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c<br>
index eb6def649dec..0cc4bed0b983 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c<br>
@@ -2580,7 +2580,7 @@ bool dc_link_setup_psr(struct dc_link *link,<br>
<br>
psr_context->psr_level.u32all = 0;<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
/*skip power down the single pipe since it blocks the cstate*/<br>
if (ASICREV_IS_RAVEN(link->ctx->asic_id.hw_internal_rev))<br>
psr_context->psr_level.bits.SKIP_CRTC_DISABLE = true;<br>
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c<br>
index 162e512831b7..89b5f86cd40b 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c<br>
@@ -46,7 +46,7 @@<br>
#include "dce100/dce100_resource.h"<br>
#include "dce110/dce110_resource.h"<br>
#include "dce112/dce112_resource.h"<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include "dcn10/dcn10_resource.h"<br>
#endif<br>
#include "dcn20/dcn20_resource.h"<br>
@@ -95,7 +95,7 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id)<br>
else<br>
dc_version = DCE_VERSION_12_0;<br>
break;<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case FAMILY_RV:<br>
dc_version = DCN_VERSION_1_0;<br>
if (ASICREV_IS_RAVEN2(asic_id.hw_internal_rev))<br>
@@ -154,7 +154,7 @@ struct resource_pool *dc_create_resource_pool(struct dc *dc,<br>
init_data->num_virtual_links, dc);<br>
break;<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case DCN_VERSION_1_0:<br>
case DCN_VERSION_1_01:<br>
res_pool = dcn10_create_resource_pool(init_data, dc);<br>
@@ -1192,7 +1192,7 @@ static struct pipe_ctx *acquire_free_pipe_for_head(<br>
return pool->funcs->acquire_idle_pipe_for_layer(context, pool, head_pipe->stream);<br>
}<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
static int acquire_first_split_pipe(<br>
struct resource_context *res_ctx,<br>
const struct resource_pool *pool,<br>
@@ -1273,7 +1273,7 @@ bool dc_add_plane_to_context(<br>
<br>
free_pipe = acquire_free_pipe_for_head(context, pool, head_pipe);<br>
<br>
- #if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+ #if defined(CONFIG_DRM_AMD_DC_DCN)<br>
if (!free_pipe) {<br>
int pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream);<br>
if (pipe_idx >= 0)<br>
@@ -1947,7 +1947,7 @@ enum dc_status resource_map_pool_resources(<br>
/* acquire new resources */<br>
pipe_idx = acquire_first_free_pipe(&context->res_ctx, pool, stream);<br>
<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
if (pipe_idx < 0)<br>
pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream);<br>
#endif<br>
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c<br>
index dc05c14530b0..371d49e9b745 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c<br>
@@ -32,7 +32,7 @@<br>
#include "resource.h"<br>
#include "ipp.h"<br>
#include "timing_generator.h"<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include "dcn10/dcn10_hw_sequencer.h"<br>
#endif<br>
<br>
@@ -235,7 +235,7 @@ struct dc_stream_status *dc_stream_get_status(<br>
<br>
static void delay_cursor_until_vupdate(struct pipe_ctx *pipe_ctx, struct dc *dc)<br>
{<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
unsigned int vupdate_line;<br>
unsigned int lines_to_vupdate, us_to_vupdate, vpos, nvpos;<br>
struct dc_stream_state *stream = pipe_ctx->stream;<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h<br>
index 290ee6b1cbed..98f55521ea8a 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dc.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/dc.h<br>
@@ -488,7 +488,7 @@ struct dc {<br>
/* Inputs into BW and WM calculations. */<br>
struct bw_calcs_dceip *bw_dceip;<br>
struct bw_calcs_vbios *bw_vbios;<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
struct dcn_soc_bounding_box *dcn_soc;<br>
struct dcn_ip_params *dcn_ip;<br>
struct display_mode_lib dml;<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c<br>
index 898decadb8e6..2e992fbc0d71 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c<br>
@@ -905,7 +905,7 @@ static bool dce112_program_pix_clk(<br>
struct dce110_clk_src *clk_src = TO_DCE110_CLK_SRC(clock_source);<br>
struct bp_pixel_clock_parameters bp_pc_params = {0};<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
if (IS_FPGA_MAXIMUS_DC(clock_source->ctx->dce_environment)) {<br>
unsigned int inst = pix_clk_params->controller_id - CONTROLLER_ID_D0;<br>
unsigned dp_dto_ref_100hz = 7000000;<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h<br>
index 8d0d07db5190..51bd25079606 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h<br>
@@ -97,7 +97,7 @@<br>
CS_SF(PHYPLLA_PIXCLK_RESYNC_CNTL, PHYPLLA_DCCG_DEEP_COLOR_CNTL, mask_sh),\<br>
CS_SF(OTG0_PIXEL_RATE_CNTL, DP_DTO0_ENABLE, mask_sh)<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
<br>
#define CS_COMMON_REG_LIST_DCN1_0(index, pllid) \<br>
SRI(PIXCLK_RESYNC_CNTL, PHYPLL, pllid),\<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c<br>
index d01fb2f55535..e619e67e6b51 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c<br>
@@ -324,7 +324,7 @@ static void dce_get_psr_wait_loop(<br>
return;<br>
}<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
static void dcn10_get_dmcu_version(struct dmcu *dmcu)<br>
{<br>
struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu);<br>
@@ -794,7 +794,7 @@ static bool dcn20_unlock_phy(struct dmcu *dmcu)<br>
return true;<br>
}<br>
<br>
-#endif //(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#endif //(CONFIG_DRM_AMD_DC_DCN)<br>
<br>
static const struct dmcu_funcs dce_funcs = {<br>
.dmcu_init = dce_dmcu_init,<br>
@@ -807,7 +807,7 @@ static const struct dmcu_funcs dce_funcs = {<br>
.is_dmcu_initialized = dce_is_dmcu_initialized<br>
};<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
static const struct dmcu_funcs dcn10_funcs = {<br>
.dmcu_init = dcn10_dmcu_init,<br>
.load_iram = dcn10_dmcu_load_iram,<br>
@@ -864,7 +864,7 @@ static void dce_dmcu_construct(<br>
dmcu_dce->dmcu_mask = dmcu_mask;<br>
}<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
static void dcn21_dmcu_construct(<br>
struct dce_dmcu *dmcu_dce,<br>
struct dc_context *ctx,<br>
@@ -905,7 +905,7 @@ struct dmcu *dce_dmcu_create(<br>
return &dmcu_dce->base;<br>
}<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
struct dmcu *dcn10_dmcu_create(<br>
struct dc_context *ctx,<br>
const struct dce_dmcu_registers *regs,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c<br>
index 2baaac1e5156..451574971b96 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c<br>
@@ -137,7 +137,7 @@ static void dce110_update_generic_info_packet(<br>
AFMT_GENERIC0_UPDATE, (packet_index == 0),<br>
AFMT_GENERIC2_UPDATE, (packet_index == 2));<br>
}<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
if (REG(AFMT_VBI_PACKET_CONTROL1)) {<br>
switch (packet_index) {<br>
case 0:<br>
@@ -231,7 +231,7 @@ static void dce110_update_hdmi_info_packet(<br>
HDMI_GENERIC1_SEND, send,<br>
HDMI_GENERIC1_LINE, line);<br>
break;<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case 4:<br>
if (REG(HDMI_GENERIC_PACKET_CONTROL2))<br>
REG_UPDATE_3(HDMI_GENERIC_PACKET_CONTROL2,<br>
@@ -278,7 +278,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(<br>
bool use_vsc_sdp_for_colorimetry,<br>
uint32_t enable_sdp_splitting)<br>
{<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
uint32_t h_active_start;<br>
uint32_t v_active_start;<br>
uint32_t misc0 = 0;<br>
@@ -330,7 +330,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(<br>
if (enc110->se_mask->DP_VID_M_DOUBLE_VALUE_EN)<br>
REG_UPDATE(DP_VID_TIMING, DP_VID_M_DOUBLE_VALUE_EN, 1);<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
if (enc110->se_mask->DP_VID_N_MUL)<br>
REG_UPDATE(DP_VID_TIMING, DP_VID_N_MUL, 1);<br>
#endif<br>
@@ -341,7 +341,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(<br>
break;<br>
}<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
if (REG(DP_MSA_MISC))<br>
misc1 = REG_READ(DP_MSA_MISC);<br>
#endif<br>
@@ -375,7 +375,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(<br>
/* set dynamic range and YCbCr range */<br>
<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
switch (hw_crtc_timing.display_color_depth) {<br>
case COLOR_DEPTH_666:<br>
colorimetry_bpc = 0;<br>
@@ -455,7 +455,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(<br>
DP_DYN_RANGE, dynamic_range_rgb,<br>
DP_YCBCR_RANGE, dynamic_range_ycbcr);<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
if (REG(DP_MSA_COLORIMETRY))<br>
REG_SET(DP_MSA_COLORIMETRY, 0, DP_MSA_MISC0, misc0);<br>
<br>
@@ -490,7 +490,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(<br>
hw_crtc_timing.v_front_porch;<br>
<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
/* start at begining of left border */<br>
if (REG(DP_MSA_TIMING_PARAM2))<br>
REG_SET_2(DP_MSA_TIMING_PARAM2, 0,<br>
@@ -787,7 +787,7 @@ static void dce110_stream_encoder_update_hdmi_info_packets(<br>
dce110_update_hdmi_info_packet(enc110, 3, &info_frame->hdrsmd);<br>
}<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
if (enc110->se_mask->HDMI_DB_DISABLE) {<br>
/* for bring up, disable dp double TODO */<br>
if (REG(HDMI_DB_CONTROL))<br>
@@ -825,7 +825,7 @@ static void dce110_stream_encoder_stop_hdmi_info_packets(<br>
HDMI_GENERIC1_LINE, 0,<br>
HDMI_GENERIC1_SEND, 0);<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
/* stop generic packets 2 & 3 on HDMI */<br>
if (REG(HDMI_GENERIC_PACKET_CONTROL2))<br>
REG_SET_6(HDMI_GENERIC_PACKET_CONTROL2, 0,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c<br>
index 811896a43b67..3f5fbad587e7 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c<br>
@@ -1223,7 +1223,7 @@ static void program_scaler(const struct dc *dc,<br>
{<br>
struct tg_color color = {0};<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
/* TOFPGA */<br>
if (pipe_ctx->plane_res.xfm->funcs->transform_set_pixel_storage_depth == NULL)<br>
return;<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c<br>
index 64b31edc8cf6..b6391a5ead78 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c<br>
@@ -23,7 +23,7 @@<br>
*<br>
*/<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
<br>
#include "reg_helper.h"<br>
#include "resource.h"<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h<br>
index c175edd0bae7..d56ea7c8171e 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h<br>
@@ -24,7 +24,7 @@<br>
#ifndef __DC_DWBC_DCN10_H__<br>
#define __DC_DWBC_DCN10_H__<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
<br>
/* DCN */<br>
#define BASE_INNER(seg) \<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile<br>
index 58c9eb1b6a06..e4da4df9cd11 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dml/Makefile<br>
+++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile<br>
@@ -43,7 +43,7 @@ endif<br>
<br>
CFLAGS_display_mode_lib.o := $(dml_ccflags)<br>
<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
CFLAGS_display_mode_vba.o := $(dml_ccflags)<br>
CFLAGS_display_mode_vba_20.o := $(dml_ccflags)<br>
CFLAGS_display_rq_dlg_calc_20.o := $(dml_ccflags)<br>
@@ -62,7 +62,7 @@ CFLAGS_dml_common_defs.o := $(dml_ccflags)<br>
DML = display_mode_lib.o display_rq_dlg_helpers.o dml1_display_rq_dlg_calc.o \<br>
dml_common_defs.o<br>
<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
DML += display_mode_vba.o dcn20/display_rq_dlg_calc_20.o dcn20/display_mode_vba_20.o<br>
DML += dcn20/display_rq_dlg_calc_20v2.o dcn20/display_mode_vba_20v2.o<br>
DML += dcn21/display_rq_dlg_calc_21.o dcn21/display_mode_vba_21.o<br>
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/Makefile b/drivers/gpu/drm/amd/display/dc/gpio/Makefile<br>
index 013cfac4ff55..202baa210cc8 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/gpio/Makefile<br>
+++ b/drivers/gpu/drm/amd/display/dc/gpio/Makefile<br>
@@ -61,7 +61,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_GPIO_DCE120)<br>
###############################################################################<br>
# DCN 1x<br>
###############################################################################<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
GPIO_DCN10 = hw_translate_dcn10.o hw_factory_dcn10.o<br>
<br>
AMD_DAL_GPIO_DCN10 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn10/,$(GPIO_DCN10))<br>
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c<br>
index fb2d66729ca3..d2d36d48caaa 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c<br>
@@ -45,7 +45,7 @@<br>
#include "dce80/hw_factory_dce80.h"<br>
#include "dce110/hw_factory_dce110.h"<br>
#include "dce120/hw_factory_dce120.h"<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include "dcn10/hw_factory_dcn10.h"<br>
#endif<br>
#include "dcn20/hw_factory_dcn20.h"<br>
@@ -86,7 +86,7 @@ bool dal_hw_factory_init(<br>
case DCE_VERSION_12_1:<br>
dal_hw_factory_dce120_init(factory);<br>
return true;<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case DCN_VERSION_1_0:<br>
case DCN_VERSION_1_01:<br>
dal_hw_factory_dcn10_init(factory);<br>
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c<br>
index 55acfda9ea63..5d396657a1ee 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c<br>
@@ -43,7 +43,7 @@<br>
#include "dce80/hw_translate_dce80.h"<br>
#include "dce110/hw_translate_dce110.h"<br>
#include "dce120/hw_translate_dce120.h"<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include "dcn10/hw_translate_dcn10.h"<br>
#endif<br>
#include "dcn20/hw_translate_dcn20.h"<br>
@@ -81,7 +81,7 @@ bool dal_hw_translate_init(<br>
case DCE_VERSION_12_1:<br>
dal_hw_translate_dce120_init(translate);<br>
return true;<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
case DCN_VERSION_1_0:<br>
case DCN_VERSION_1_01:<br>
dal_hw_translate_dcn10_init(translate);<br>
diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h<br>
index c98d887cc6e2..e0aac234537f 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h<br>
@@ -33,7 +33,7 @@<br>
#include "dc_bios_types.h"<br>
#include "mem_input.h"<br>
#include "hubp.h"<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include "mpc.h"<br>
#endif<br>
#include "dwb.h"<br>
@@ -290,7 +290,7 @@ struct pipe_ctx {<br>
struct pipe_ctx *next_odm_pipe;<br>
struct pipe_ctx *prev_odm_pipe;<br>
<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
struct _vcs_dpi_display_dlg_regs_st dlg_regs;<br>
struct _vcs_dpi_display_ttu_regs_st ttu_regs;<br>
struct _vcs_dpi_display_rq_regs_st rq_regs;<br>
@@ -368,7 +368,7 @@ struct dc_state {<br>
<br>
/* Note: these are big structures, do *not* put on stack! */<br>
struct dm_pp_display_configuration pp_display_cfg;<br>
-#ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+#ifdef CONFIG_DRM_AMD_DC_DCN<br>
struct dcn_bw_internal_vars dcn_bw_vars;<br>
#endif<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h<br>
index aed67754e81b..735f41901b88 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h<br>
@@ -54,7 +54,7 @@ enum dwb_source {<br>
/* DCN1.x, DCN2.x support 2 pipes */<br>
enum dwb_pipe {<br>
dwb_pipe0 = 0,<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
dwb_pipe1,<br>
#endif<br>
dwb_pipe_max_num,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/irq/Makefile b/drivers/gpu/drm/amd/display/dc/irq/Makefile<br>
index c26300c3936d..0f682ac53bb2 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/irq/Makefile<br>
+++ b/drivers/gpu/drm/amd/display/dc/irq/Makefile<br>
@@ -60,7 +60,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_IRQ_DCE12)<br>
###############################################################################<br>
# DCN 1x<br>
###############################################################################<br>
-ifdef CONFIG_DRM_AMD_DC_DCN1_0<br>
+ifdef CONFIG_DRM_AMD_DC_DCN<br>
IRQ_DCN1 = irq_service_dcn10.o<br>
<br>
AMD_DAL_IRQ_DCN1 = $(addprefix $(AMDDALPATH)/dc/irq/dcn10/,$(IRQ_DCN1))<br>
diff --git a/drivers/gpu/drm/amd/display/dc/irq/irq_service.c b/drivers/gpu/drm/amd/display/dc/irq/irq_service.c<br>
index 0878550a8178..33053b9fe6bd 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/irq/irq_service.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/irq/irq_service.c<br>
@@ -38,7 +38,7 @@<br>
#include "dce120/irq_service_dce120.h"<br>
<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include "dcn10/irq_service_dcn10.h"<br>
#endif<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/os_types.h b/drivers/gpu/drm/amd/display/dc/os_types.h<br>
index 30ec80ac6fc8..bf53f7bb140f 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/os_types.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/os_types.h<br>
@@ -48,7 +48,7 @@<br>
<br>
#define dm_error(fmt, ...) DRM_ERROR(fmt, ##__VA_ARGS__)<br>
<br>
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN)<br>
#include <asm/fpu/api.h><br>
#endif<br>
<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></div>
</span></font></div>
</body>
</html>