diff options
author | Leo (Sunpeng) Li <sunpeng.li@amd.com> | 2018-08-16 15:44:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-21 15:32:28 -0400 |
commit | dc37a9a08d5760e405ffdd94ec6bbb6efededba6 (patch) | |
tree | 914bd993b601fa2e9feb643e575a95f05d1a9474 | |
parent | 95f05a3a2e6895ecfd8b4f64b5d6c6cf0b6a3f4a (diff) |
Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86"
This reverts commit 8624c3c4dbfe24fc6740687236a2e196f5f4bfb0.
We need CONFIG_DRM_AMD_DC_DCN1_0 to guard code that is using fp math.
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
26 files changed, 64 insertions, 58 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 1e66dfd0e39c..8ab5ccbc14ac 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2274,7 +2274,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type) | |||
2274 | case CHIP_VEGA10: | 2274 | case CHIP_VEGA10: |
2275 | case CHIP_VEGA12: | 2275 | case CHIP_VEGA12: |
2276 | case CHIP_VEGA20: | 2276 | case CHIP_VEGA20: |
2277 | #ifdef CONFIG_X86 | 2277 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
2278 | case CHIP_RAVEN: | 2278 | case CHIP_RAVEN: |
2279 | #endif | 2279 | #endif |
2280 | return amdgpu_dc != 0; | 2280 | return amdgpu_dc != 0; |
diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig index 325083b0297e..4c35625eb2c7 100644 --- a/drivers/gpu/drm/amd/display/Kconfig +++ b/drivers/gpu/drm/amd/display/Kconfig | |||
@@ -9,6 +9,14 @@ config DRM_AMD_DC | |||
9 | support for AMDGPU. This adds required support for Vega and | 9 | support for AMDGPU. This adds required support for Vega and |
10 | Raven ASICs. | 10 | Raven ASICs. |
11 | 11 | ||
12 | config DRM_AMD_DC_DCN1_0 | ||
13 | bool "DCN 1.0 Raven family" | ||
14 | depends on DRM_AMD_DC && X86 | ||
15 | default y | ||
16 | help | ||
17 | Choose this option if you want to have | ||
18 | RV family for display engine | ||
19 | |||
12 | config DEBUG_KERNEL_DC | 20 | config DEBUG_KERNEL_DC |
13 | bool "Enable kgdb break in DC" | 21 | bool "Enable kgdb break in DC" |
14 | depends on DRM_AMD_DC | 22 | depends on DRM_AMD_DC |
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 34f34823bab5..800f481a6995 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |||
@@ -58,9 +58,7 @@ | |||
58 | #include <drm/drm_fb_helper.h> | 58 | #include <drm/drm_fb_helper.h> |
59 | #include <drm/drm_edid.h> | 59 | #include <drm/drm_edid.h> |
60 | 60 | ||
61 | #include "modules/inc/mod_freesync.h" | 61 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
62 | |||
63 | #ifdef CONFIG_X86 | ||
64 | #include "ivsrcid/irqsrcs_dcn_1_0.h" | 62 | #include "ivsrcid/irqsrcs_dcn_1_0.h" |
65 | 63 | ||
66 | #include "dcn/dcn_1_0_offset.h" | 64 | #include "dcn/dcn_1_0_offset.h" |
@@ -1192,7 +1190,7 @@ static int dce110_register_irq_handlers(struct amdgpu_device *adev) | |||
1192 | return 0; | 1190 | return 0; |
1193 | } | 1191 | } |
1194 | 1192 | ||
1195 | #ifdef CONFIG_X86 | 1193 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
1196 | /* Register IRQ sources and initialize IRQ callbacks */ | 1194 | /* Register IRQ sources and initialize IRQ callbacks */ |
1197 | static int dcn10_register_irq_handlers(struct amdgpu_device *adev) | 1195 | static int dcn10_register_irq_handlers(struct amdgpu_device *adev) |
1198 | { | 1196 | { |
@@ -1532,7 +1530,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev) | |||
1532 | goto fail; | 1530 | goto fail; |
1533 | } | 1531 | } |
1534 | break; | 1532 | break; |
1535 | #ifdef CONFIG_X86 | 1533 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
1536 | case CHIP_RAVEN: | 1534 | case CHIP_RAVEN: |
1537 | if (dcn10_register_irq_handlers(dm->adev)) { | 1535 | if (dcn10_register_irq_handlers(dm->adev)) { |
1538 | DRM_ERROR("DM: Failed to initialize IRQ\n"); | 1536 | DRM_ERROR("DM: Failed to initialize IRQ\n"); |
@@ -1716,7 +1714,7 @@ static int dm_early_init(void *handle) | |||
1716 | adev->mode_info.num_dig = 6; | 1714 | adev->mode_info.num_dig = 6; |
1717 | adev->mode_info.plane_type = dm_plane_type_default; | 1715 | adev->mode_info.plane_type = dm_plane_type_default; |
1718 | break; | 1716 | break; |
1719 | #ifdef CONFIG_X86 | 1717 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
1720 | case CHIP_RAVEN: | 1718 | case CHIP_RAVEN: |
1721 | adev->mode_info.num_crtc = 4; | 1719 | adev->mode_info.num_crtc = 4; |
1722 | adev->mode_info.num_hpd = 4; | 1720 | adev->mode_info.num_hpd = 4; |
diff --git a/drivers/gpu/drm/amd/display/dc/Makefile b/drivers/gpu/drm/amd/display/dc/Makefile index 532a515fda9a..aed538a4d1ba 100644 --- a/drivers/gpu/drm/amd/display/dc/Makefile +++ b/drivers/gpu/drm/amd/display/dc/Makefile | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | DC_LIBS = basics bios calcs dce gpio i2caux irq virtual | 26 | DC_LIBS = basics bios calcs dce gpio i2caux irq virtual |
27 | 27 | ||
28 | ifdef CONFIG_X86 | 28 | ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
29 | DC_LIBS += dcn10 dml | 29 | DC_LIBS += dcn10 dml |
30 | endif | 30 | endif |
31 | 31 | ||
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 index 770ff89ba7e1..bbbcef566c55 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c | |||
@@ -55,7 +55,7 @@ bool dal_bios_parser_init_cmd_tbl_helper2( | |||
55 | case DCE_VERSION_11_22: | 55 | case DCE_VERSION_11_22: |
56 | *h = dal_cmd_tbl_helper_dce112_get_table2(); | 56 | *h = dal_cmd_tbl_helper_dce112_get_table2(); |
57 | return true; | 57 | return true; |
58 | #ifdef CONFIG_X86 | 58 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
59 | case DCN_VERSION_1_0: | 59 | case DCN_VERSION_1_0: |
60 | *h = dal_cmd_tbl_helper_dce112_get_table2(); | 60 | *h = dal_cmd_tbl_helper_dce112_get_table2(); |
61 | return true; | 61 | return true; |
diff --git a/drivers/gpu/drm/amd/display/dc/calcs/Makefile b/drivers/gpu/drm/amd/display/dc/calcs/Makefile index 416500e51b8d..95f332ee3e7e 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/Makefile +++ b/drivers/gpu/drm/amd/display/dc/calcs/Makefile | |||
@@ -38,7 +38,7 @@ CFLAGS_dcn_calc_math.o := $(calcs_ccflags) -Wno-tautological-compare | |||
38 | 38 | ||
39 | BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o | 39 | BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o |
40 | 40 | ||
41 | ifdef CONFIG_X86 | 41 | ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
42 | BW_CALCS += dcn_calcs.o dcn_calc_math.o dcn_calc_auto.o | 42 | BW_CALCS += dcn_calcs.o dcn_calc_math.o dcn_calc_auto.o |
43 | endif | 43 | endif |
44 | 44 | ||
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index d7076807b637..6ae050dc3220 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c | |||
@@ -487,7 +487,7 @@ static void destruct(struct dc *dc) | |||
487 | kfree(dc->bw_dceip); | 487 | kfree(dc->bw_dceip); |
488 | dc->bw_dceip = NULL; | 488 | dc->bw_dceip = NULL; |
489 | 489 | ||
490 | #ifdef CONFIG_X86 | 490 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
491 | kfree(dc->dcn_soc); | 491 | kfree(dc->dcn_soc); |
492 | dc->dcn_soc = NULL; | 492 | dc->dcn_soc = NULL; |
493 | 493 | ||
@@ -503,7 +503,7 @@ static bool construct(struct dc *dc, | |||
503 | struct dc_context *dc_ctx; | 503 | struct dc_context *dc_ctx; |
504 | struct bw_calcs_dceip *dc_dceip; | 504 | struct bw_calcs_dceip *dc_dceip; |
505 | struct bw_calcs_vbios *dc_vbios; | 505 | struct bw_calcs_vbios *dc_vbios; |
506 | #ifdef CONFIG_X86 | 506 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
507 | struct dcn_soc_bounding_box *dcn_soc; | 507 | struct dcn_soc_bounding_box *dcn_soc; |
508 | struct dcn_ip_params *dcn_ip; | 508 | struct dcn_ip_params *dcn_ip; |
509 | #endif | 509 | #endif |
@@ -525,7 +525,7 @@ static bool construct(struct dc *dc, | |||
525 | } | 525 | } |
526 | 526 | ||
527 | dc->bw_vbios = dc_vbios; | 527 | dc->bw_vbios = dc_vbios; |
528 | #ifdef CONFIG_X86 | 528 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
529 | dcn_soc = kzalloc(sizeof(*dcn_soc), GFP_KERNEL); | 529 | dcn_soc = kzalloc(sizeof(*dcn_soc), GFP_KERNEL); |
530 | if (!dcn_soc) { | 530 | if (!dcn_soc) { |
531 | dm_error("%s: failed to create dcn_soc\n", __func__); | 531 | dm_error("%s: failed to create dcn_soc\n", __func__); |
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c index caece7c13bc6..e1ebdf7b5eaf 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c | |||
@@ -348,7 +348,7 @@ void context_clock_trace( | |||
348 | struct dc *dc, | 348 | struct dc *dc, |
349 | struct dc_state *context) | 349 | struct dc_state *context) |
350 | { | 350 | { |
351 | #ifdef CONFIG_X86 | 351 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
352 | DC_LOGGER_INIT(dc->ctx->logger); | 352 | DC_LOGGER_INIT(dc->ctx->logger); |
353 | CLOCK_TRACE("Current: dispclk_khz:%d max_dppclk_khz:%d dcfclk_khz:%d\n" | 353 | CLOCK_TRACE("Current: dispclk_khz:%d max_dppclk_khz:%d dcfclk_khz:%d\n" |
354 | "dcfclk_deep_sleep_khz:%d fclk_khz:%d socclk_khz:%d\n", | 354 | "dcfclk_deep_sleep_khz:%d fclk_khz:%d socclk_khz:%d\n", |
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index 1644f2a946b0..ea6beccfd89d 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #include "dce100/dce100_resource.h" | 41 | #include "dce100/dce100_resource.h" |
42 | #include "dce110/dce110_resource.h" | 42 | #include "dce110/dce110_resource.h" |
43 | #include "dce112/dce112_resource.h" | 43 | #include "dce112/dce112_resource.h" |
44 | #ifdef CONFIG_X86 | 44 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
45 | #include "dcn10/dcn10_resource.h" | 45 | #include "dcn10/dcn10_resource.h" |
46 | #endif | 46 | #endif |
47 | #include "dce120/dce120_resource.h" | 47 | #include "dce120/dce120_resource.h" |
@@ -85,7 +85,7 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id) | |||
85 | case FAMILY_AI: | 85 | case FAMILY_AI: |
86 | dc_version = DCE_VERSION_12_0; | 86 | dc_version = DCE_VERSION_12_0; |
87 | break; | 87 | break; |
88 | #ifdef CONFIG_X86 | 88 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
89 | case FAMILY_RV: | 89 | case FAMILY_RV: |
90 | dc_version = DCN_VERSION_1_0; | 90 | dc_version = DCN_VERSION_1_0; |
91 | break; | 91 | break; |
@@ -136,7 +136,7 @@ struct resource_pool *dc_create_resource_pool( | |||
136 | num_virtual_links, dc); | 136 | num_virtual_links, dc); |
137 | break; | 137 | break; |
138 | 138 | ||
139 | #ifdef CONFIG_X86 | 139 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
140 | case DCN_VERSION_1_0: | 140 | case DCN_VERSION_1_0: |
141 | res_pool = dcn10_create_resource_pool( | 141 | res_pool = dcn10_create_resource_pool( |
142 | num_virtual_links, dc); | 142 | num_virtual_links, dc); |
@@ -1251,7 +1251,7 @@ static struct pipe_ctx *acquire_free_pipe_for_stream( | |||
1251 | 1251 | ||
1252 | } | 1252 | } |
1253 | 1253 | ||
1254 | #ifdef CONFIG_X86 | 1254 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
1255 | static int acquire_first_split_pipe( | 1255 | static int acquire_first_split_pipe( |
1256 | struct resource_context *res_ctx, | 1256 | struct resource_context *res_ctx, |
1257 | const struct resource_pool *pool, | 1257 | const struct resource_pool *pool, |
@@ -1322,7 +1322,7 @@ bool dc_add_plane_to_context( | |||
1322 | 1322 | ||
1323 | free_pipe = acquire_free_pipe_for_stream(context, pool, stream); | 1323 | free_pipe = acquire_free_pipe_for_stream(context, pool, stream); |
1324 | 1324 | ||
1325 | #ifdef CONFIG_X86 | 1325 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
1326 | if (!free_pipe) { | 1326 | if (!free_pipe) { |
1327 | int pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream); | 1327 | int pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream); |
1328 | if (pipe_idx >= 0) | 1328 | if (pipe_idx >= 0) |
@@ -1920,7 +1920,7 @@ enum dc_status resource_map_pool_resources( | |||
1920 | /* acquire new resources */ | 1920 | /* acquire new resources */ |
1921 | pipe_idx = acquire_first_free_pipe(&context->res_ctx, pool, stream); | 1921 | pipe_idx = acquire_first_free_pipe(&context->res_ctx, pool, stream); |
1922 | 1922 | ||
1923 | #ifdef CONFIG_X86 | 1923 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
1924 | if (pipe_idx < 0) | 1924 | if (pipe_idx < 0) |
1925 | pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream); | 1925 | pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream); |
1926 | #endif | 1926 | #endif |
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index e2f033d420a0..6c9990bef267 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h | |||
@@ -294,7 +294,7 @@ struct dc { | |||
294 | /* Inputs into BW and WM calculations. */ | 294 | /* Inputs into BW and WM calculations. */ |
295 | struct bw_calcs_dceip *bw_dceip; | 295 | struct bw_calcs_dceip *bw_dceip; |
296 | struct bw_calcs_vbios *bw_vbios; | 296 | struct bw_calcs_vbios *bw_vbios; |
297 | #ifdef CONFIG_X86 | 297 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
298 | struct dcn_soc_bounding_box *dcn_soc; | 298 | struct dcn_soc_bounding_box *dcn_soc; |
299 | struct dcn_ip_params *dcn_ip; | 299 | struct dcn_ip_params *dcn_ip; |
300 | struct display_mode_lib dml; | 300 | struct display_mode_lib dml; |
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 index 439dcf3b596c..ca137757a69e 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c | |||
@@ -592,7 +592,7 @@ static uint32_t dce110_get_pix_clk_dividers( | |||
592 | case DCE_VERSION_11_2: | 592 | case DCE_VERSION_11_2: |
593 | case DCE_VERSION_11_22: | 593 | case DCE_VERSION_11_22: |
594 | case DCE_VERSION_12_0: | 594 | case DCE_VERSION_12_0: |
595 | #ifdef CONFIG_X86 | 595 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
596 | case DCN_VERSION_1_0: | 596 | case DCN_VERSION_1_0: |
597 | #endif | 597 | #endif |
598 | 598 | ||
@@ -909,7 +909,7 @@ static bool dce110_program_pix_clk( | |||
909 | struct dce110_clk_src *clk_src = TO_DCE110_CLK_SRC(clock_source); | 909 | struct dce110_clk_src *clk_src = TO_DCE110_CLK_SRC(clock_source); |
910 | struct bp_pixel_clock_parameters bp_pc_params = {0}; | 910 | struct bp_pixel_clock_parameters bp_pc_params = {0}; |
911 | 911 | ||
912 | #ifdef CONFIG_X86 | 912 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
913 | if (IS_FPGA_MAXIMUS_DC(clock_source->ctx->dce_environment)) { | 913 | if (IS_FPGA_MAXIMUS_DC(clock_source->ctx->dce_environment)) { |
914 | unsigned int inst = pix_clk_params->controller_id - CONTROLLER_ID_D0; | 914 | unsigned int inst = pix_clk_params->controller_id - CONTROLLER_ID_D0; |
915 | unsigned dp_dto_ref_kHz = 700000; | 915 | unsigned dp_dto_ref_kHz = 700000; |
@@ -982,7 +982,7 @@ static bool dce110_program_pix_clk( | |||
982 | case DCE_VERSION_11_2: | 982 | case DCE_VERSION_11_2: |
983 | case DCE_VERSION_11_22: | 983 | case DCE_VERSION_11_22: |
984 | case DCE_VERSION_12_0: | 984 | case DCE_VERSION_12_0: |
985 | #ifdef CONFIG_X86 | 985 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
986 | case DCN_VERSION_1_0: | 986 | case DCN_VERSION_1_0: |
987 | #endif | 987 | #endif |
988 | 988 | ||
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 index 801bb65707b3..c45e2f76189e 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h | |||
@@ -55,7 +55,7 @@ | |||
55 | CS_SF(PHYPLLA_PIXCLK_RESYNC_CNTL, PHYPLLA_DCCG_DEEP_COLOR_CNTL, mask_sh),\ | 55 | CS_SF(PHYPLLA_PIXCLK_RESYNC_CNTL, PHYPLLA_DCCG_DEEP_COLOR_CNTL, mask_sh),\ |
56 | CS_SF(PHYPLLA_PIXCLK_RESYNC_CNTL, PHYPLLA_PIXCLK_DOUBLE_RATE_ENABLE, mask_sh) | 56 | CS_SF(PHYPLLA_PIXCLK_RESYNC_CNTL, PHYPLLA_PIXCLK_DOUBLE_RATE_ENABLE, mask_sh) |
57 | 57 | ||
58 | #ifdef CONFIG_X86 | 58 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
59 | 59 | ||
60 | #define CS_COMMON_REG_LIST_DCN1_0(index, pllid) \ | 60 | #define CS_COMMON_REG_LIST_DCN1_0(index, pllid) \ |
61 | SRI(PIXCLK_RESYNC_CNTL, PHYPLL, pllid),\ | 61 | SRI(PIXCLK_RESYNC_CNTL, PHYPLL, pllid),\ |
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c index d425d4489518..fb1f373d08a1 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include "bios_parser_interface.h" | 30 | #include "bios_parser_interface.h" |
31 | #include "dc.h" | 31 | #include "dc.h" |
32 | #include "dmcu.h" | 32 | #include "dmcu.h" |
33 | #ifdef CONFIG_X86 | 33 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
34 | #include "dcn_calcs.h" | 34 | #include "dcn_calcs.h" |
35 | #endif | 35 | #endif |
36 | #include "core_types.h" | 36 | #include "core_types.h" |
@@ -484,7 +484,7 @@ static void dce12_update_clocks(struct dccg *dccg, | |||
484 | } | 484 | } |
485 | } | 485 | } |
486 | 486 | ||
487 | #ifdef CONFIG_X86 | 487 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
488 | static int dcn1_determine_dppclk_threshold(struct dccg *dccg, struct dc_clocks *new_clocks) | 488 | static int dcn1_determine_dppclk_threshold(struct dccg *dccg, struct dc_clocks *new_clocks) |
489 | { | 489 | { |
490 | bool request_dpp_div = new_clocks->dispclk_khz > new_clocks->dppclk_khz; | 490 | bool request_dpp_div = new_clocks->dispclk_khz > new_clocks->dppclk_khz; |
@@ -674,7 +674,7 @@ static void dce_update_clocks(struct dccg *dccg, | |||
674 | } | 674 | } |
675 | } | 675 | } |
676 | 676 | ||
677 | #ifdef CONFIG_X86 | 677 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
678 | static const struct display_clock_funcs dcn1_funcs = { | 678 | static const struct display_clock_funcs dcn1_funcs = { |
679 | .get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz, | 679 | .get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz, |
680 | .set_dispclk = dce112_set_clock, | 680 | .set_dispclk = dce112_set_clock, |
@@ -829,7 +829,7 @@ struct dccg *dce120_dccg_create(struct dc_context *ctx) | |||
829 | return &clk_dce->base; | 829 | return &clk_dce->base; |
830 | } | 830 | } |
831 | 831 | ||
832 | #ifdef CONFIG_X86 | 832 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
833 | struct dccg *dcn1_dccg_create(struct dc_context *ctx) | 833 | struct dccg *dcn1_dccg_create(struct dc_context *ctx) |
834 | { | 834 | { |
835 | struct dc_debug_options *debug = &ctx->dc->debug; | 835 | struct dc_debug_options *debug = &ctx->dc->debug; |
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.h b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.h index e5e44adc6c27..8a6b2d328467 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.h +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.h | |||
@@ -111,7 +111,7 @@ struct dccg *dce112_dccg_create( | |||
111 | 111 | ||
112 | struct dccg *dce120_dccg_create(struct dc_context *ctx); | 112 | struct dccg *dce120_dccg_create(struct dc_context *ctx); |
113 | 113 | ||
114 | #ifdef CONFIG_X86 | 114 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
115 | struct dccg *dcn1_dccg_create(struct dc_context *ctx); | 115 | struct dccg *dcn1_dccg_create(struct dc_context *ctx); |
116 | #endif | 116 | #endif |
117 | 117 | ||
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c index ca7989e4932b..dea40b322191 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | |||
@@ -316,7 +316,7 @@ static void dce_get_psr_wait_loop( | |||
316 | return; | 316 | return; |
317 | } | 317 | } |
318 | 318 | ||
319 | #ifdef CONFIG_X86 | 319 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
320 | static void dcn10_get_dmcu_state(struct dmcu *dmcu) | 320 | static void dcn10_get_dmcu_state(struct dmcu *dmcu) |
321 | { | 321 | { |
322 | struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); | 322 | struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); |
@@ -743,7 +743,7 @@ static const struct dmcu_funcs dce_funcs = { | |||
743 | .is_dmcu_initialized = dce_is_dmcu_initialized | 743 | .is_dmcu_initialized = dce_is_dmcu_initialized |
744 | }; | 744 | }; |
745 | 745 | ||
746 | #ifdef CONFIG_X86 | 746 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
747 | static const struct dmcu_funcs dcn10_funcs = { | 747 | static const struct dmcu_funcs dcn10_funcs = { |
748 | .dmcu_init = dcn10_dmcu_init, | 748 | .dmcu_init = dcn10_dmcu_init, |
749 | .load_iram = dcn10_dmcu_load_iram, | 749 | .load_iram = dcn10_dmcu_load_iram, |
@@ -795,7 +795,7 @@ struct dmcu *dce_dmcu_create( | |||
795 | return &dmcu_dce->base; | 795 | return &dmcu_dce->base; |
796 | } | 796 | } |
797 | 797 | ||
798 | #ifdef CONFIG_X86 | 798 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
799 | struct dmcu *dcn10_dmcu_create( | 799 | struct dmcu *dcn10_dmcu_create( |
800 | struct dc_context *ctx, | 800 | struct dc_context *ctx, |
801 | const struct dce_dmcu_registers *regs, | 801 | const struct dce_dmcu_registers *regs, |
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 index b139b4017820..91642e684858 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | |||
@@ -135,7 +135,7 @@ static void dce110_update_generic_info_packet( | |||
135 | AFMT_GENERIC0_UPDATE, (packet_index == 0), | 135 | AFMT_GENERIC0_UPDATE, (packet_index == 0), |
136 | AFMT_GENERIC2_UPDATE, (packet_index == 2)); | 136 | AFMT_GENERIC2_UPDATE, (packet_index == 2)); |
137 | } | 137 | } |
138 | #ifdef CONFIG_X86 | 138 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
139 | if (REG(AFMT_VBI_PACKET_CONTROL1)) { | 139 | if (REG(AFMT_VBI_PACKET_CONTROL1)) { |
140 | switch (packet_index) { | 140 | switch (packet_index) { |
141 | case 0: | 141 | case 0: |
@@ -229,7 +229,7 @@ static void dce110_update_hdmi_info_packet( | |||
229 | HDMI_GENERIC1_SEND, send, | 229 | HDMI_GENERIC1_SEND, send, |
230 | HDMI_GENERIC1_LINE, line); | 230 | HDMI_GENERIC1_LINE, line); |
231 | break; | 231 | break; |
232 | #ifdef CONFIG_X86 | 232 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
233 | case 4: | 233 | case 4: |
234 | if (REG(HDMI_GENERIC_PACKET_CONTROL2)) | 234 | if (REG(HDMI_GENERIC_PACKET_CONTROL2)) |
235 | REG_UPDATE_3(HDMI_GENERIC_PACKET_CONTROL2, | 235 | REG_UPDATE_3(HDMI_GENERIC_PACKET_CONTROL2, |
@@ -274,7 +274,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute( | |||
274 | struct dc_crtc_timing *crtc_timing, | 274 | struct dc_crtc_timing *crtc_timing, |
275 | enum dc_color_space output_color_space) | 275 | enum dc_color_space output_color_space) |
276 | { | 276 | { |
277 | #ifdef CONFIG_X86 | 277 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
278 | uint32_t h_active_start; | 278 | uint32_t h_active_start; |
279 | uint32_t v_active_start; | 279 | uint32_t v_active_start; |
280 | uint32_t misc0 = 0; | 280 | uint32_t misc0 = 0; |
@@ -317,7 +317,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute( | |||
317 | if (enc110->se_mask->DP_VID_M_DOUBLE_VALUE_EN) | 317 | if (enc110->se_mask->DP_VID_M_DOUBLE_VALUE_EN) |
318 | REG_UPDATE(DP_VID_TIMING, DP_VID_M_DOUBLE_VALUE_EN, 1); | 318 | REG_UPDATE(DP_VID_TIMING, DP_VID_M_DOUBLE_VALUE_EN, 1); |
319 | 319 | ||
320 | #ifdef CONFIG_X86 | 320 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
321 | if (enc110->se_mask->DP_VID_N_MUL) | 321 | if (enc110->se_mask->DP_VID_N_MUL) |
322 | REG_UPDATE(DP_VID_TIMING, DP_VID_N_MUL, 1); | 322 | REG_UPDATE(DP_VID_TIMING, DP_VID_N_MUL, 1); |
323 | #endif | 323 | #endif |
@@ -328,7 +328,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute( | |||
328 | break; | 328 | break; |
329 | } | 329 | } |
330 | 330 | ||
331 | #ifdef CONFIG_X86 | 331 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
332 | if (REG(DP_MSA_MISC)) | 332 | if (REG(DP_MSA_MISC)) |
333 | misc1 = REG_READ(DP_MSA_MISC); | 333 | misc1 = REG_READ(DP_MSA_MISC); |
334 | #endif | 334 | #endif |
@@ -362,7 +362,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute( | |||
362 | /* set dynamic range and YCbCr range */ | 362 | /* set dynamic range and YCbCr range */ |
363 | 363 | ||
364 | 364 | ||
365 | #ifdef CONFIG_X86 | 365 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
366 | switch (crtc_timing->display_color_depth) { | 366 | switch (crtc_timing->display_color_depth) { |
367 | case COLOR_DEPTH_666: | 367 | case COLOR_DEPTH_666: |
368 | colorimetry_bpc = 0; | 368 | colorimetry_bpc = 0; |
@@ -441,7 +441,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute( | |||
441 | DP_DYN_RANGE, dynamic_range_rgb, | 441 | DP_DYN_RANGE, dynamic_range_rgb, |
442 | DP_YCBCR_RANGE, dynamic_range_ycbcr); | 442 | DP_YCBCR_RANGE, dynamic_range_ycbcr); |
443 | 443 | ||
444 | #ifdef CONFIG_X86 | 444 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
445 | if (REG(DP_MSA_COLORIMETRY)) | 445 | if (REG(DP_MSA_COLORIMETRY)) |
446 | REG_SET(DP_MSA_COLORIMETRY, 0, DP_MSA_MISC0, misc0); | 446 | REG_SET(DP_MSA_COLORIMETRY, 0, DP_MSA_MISC0, misc0); |
447 | 447 | ||
@@ -476,7 +476,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute( | |||
476 | crtc_timing->v_front_porch; | 476 | crtc_timing->v_front_porch; |
477 | 477 | ||
478 | 478 | ||
479 | #ifdef CONFIG_X86 | 479 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
480 | /* start at begining of left border */ | 480 | /* start at begining of left border */ |
481 | if (REG(DP_MSA_TIMING_PARAM2)) | 481 | if (REG(DP_MSA_TIMING_PARAM2)) |
482 | REG_SET_2(DP_MSA_TIMING_PARAM2, 0, | 482 | REG_SET_2(DP_MSA_TIMING_PARAM2, 0, |
@@ -751,7 +751,7 @@ static void dce110_stream_encoder_update_hdmi_info_packets( | |||
751 | dce110_update_hdmi_info_packet(enc110, 3, &info_frame->hdrsmd); | 751 | dce110_update_hdmi_info_packet(enc110, 3, &info_frame->hdrsmd); |
752 | } | 752 | } |
753 | 753 | ||
754 | #ifdef CONFIG_X86 | 754 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
755 | if (enc110->se_mask->HDMI_DB_DISABLE) { | 755 | if (enc110->se_mask->HDMI_DB_DISABLE) { |
756 | /* for bring up, disable dp double TODO */ | 756 | /* for bring up, disable dp double TODO */ |
757 | if (REG(HDMI_DB_CONTROL)) | 757 | if (REG(HDMI_DB_CONTROL)) |
@@ -789,7 +789,7 @@ static void dce110_stream_encoder_stop_hdmi_info_packets( | |||
789 | HDMI_GENERIC1_LINE, 0, | 789 | HDMI_GENERIC1_LINE, 0, |
790 | HDMI_GENERIC1_SEND, 0); | 790 | HDMI_GENERIC1_SEND, 0); |
791 | 791 | ||
792 | #ifdef CONFIG_X86 | 792 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
793 | /* stop generic packets 2 & 3 on HDMI */ | 793 | /* stop generic packets 2 & 3 on HDMI */ |
794 | if (REG(HDMI_GENERIC_PACKET_CONTROL2)) | 794 | if (REG(HDMI_GENERIC_PACKET_CONTROL2)) |
795 | REG_SET_6(HDMI_GENERIC_PACKET_CONTROL2, 0, | 795 | REG_SET_6(HDMI_GENERIC_PACKET_CONTROL2, 0, |
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 index 215409eb9495..14384d9675a8 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | |||
@@ -1250,7 +1250,7 @@ static void program_scaler(const struct dc *dc, | |||
1250 | { | 1250 | { |
1251 | struct tg_color color = {0}; | 1251 | struct tg_color color = {0}; |
1252 | 1252 | ||
1253 | #ifdef CONFIG_X86 | 1253 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
1254 | /* TOFPGA */ | 1254 | /* TOFPGA */ |
1255 | if (pipe_ctx->plane_res.xfm->funcs->transform_set_pixel_storage_depth == NULL) | 1255 | if (pipe_ctx->plane_res.xfm->funcs->transform_set_pixel_storage_depth == NULL) |
1256 | return; | 1256 | return; |
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/Makefile b/drivers/gpu/drm/amd/display/dc/gpio/Makefile index b9d9930a4974..562ee189d780 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/Makefile +++ b/drivers/gpu/drm/amd/display/dc/gpio/Makefile | |||
@@ -61,7 +61,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_GPIO_DCE120) | |||
61 | ############################################################################### | 61 | ############################################################################### |
62 | # DCN 1x | 62 | # DCN 1x |
63 | ############################################################################### | 63 | ############################################################################### |
64 | ifdef CONFIG_X86 | 64 | ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
65 | GPIO_DCN10 = hw_translate_dcn10.o hw_factory_dcn10.o | 65 | GPIO_DCN10 = hw_translate_dcn10.o hw_factory_dcn10.o |
66 | 66 | ||
67 | AMD_DAL_GPIO_DCN10 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn10/,$(GPIO_DCN10)) | 67 | AMD_DAL_GPIO_DCN10 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn10/,$(GPIO_DCN10)) |
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c index 83df779984e5..0caee3523017 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "dce80/hw_factory_dce80.h" | 43 | #include "dce80/hw_factory_dce80.h" |
44 | #include "dce110/hw_factory_dce110.h" | 44 | #include "dce110/hw_factory_dce110.h" |
45 | #include "dce120/hw_factory_dce120.h" | 45 | #include "dce120/hw_factory_dce120.h" |
46 | #ifdef CONFIG_X86 | 46 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
47 | #include "dcn10/hw_factory_dcn10.h" | 47 | #include "dcn10/hw_factory_dcn10.h" |
48 | #endif | 48 | #endif |
49 | 49 | ||
@@ -81,7 +81,7 @@ bool dal_hw_factory_init( | |||
81 | case DCE_VERSION_12_0: | 81 | case DCE_VERSION_12_0: |
82 | dal_hw_factory_dce120_init(factory); | 82 | dal_hw_factory_dce120_init(factory); |
83 | return true; | 83 | return true; |
84 | #ifdef CONFIG_X86 | 84 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
85 | case DCN_VERSION_1_0: | 85 | case DCN_VERSION_1_0: |
86 | dal_hw_factory_dcn10_init(factory); | 86 | dal_hw_factory_dcn10_init(factory); |
87 | return true; | 87 | return true; |
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c index e7541310480b..55c707488541 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "dce80/hw_translate_dce80.h" | 43 | #include "dce80/hw_translate_dce80.h" |
44 | #include "dce110/hw_translate_dce110.h" | 44 | #include "dce110/hw_translate_dce110.h" |
45 | #include "dce120/hw_translate_dce120.h" | 45 | #include "dce120/hw_translate_dce120.h" |
46 | #ifdef CONFIG_X86 | 46 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
47 | #include "dcn10/hw_translate_dcn10.h" | 47 | #include "dcn10/hw_translate_dcn10.h" |
48 | #endif | 48 | #endif |
49 | 49 | ||
@@ -78,7 +78,7 @@ bool dal_hw_translate_init( | |||
78 | case DCE_VERSION_12_0: | 78 | case DCE_VERSION_12_0: |
79 | dal_hw_translate_dce120_init(translate); | 79 | dal_hw_translate_dce120_init(translate); |
80 | return true; | 80 | return true; |
81 | #ifdef CONFIG_X86 | 81 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
82 | case DCN_VERSION_1_0: | 82 | case DCN_VERSION_1_0: |
83 | dal_hw_translate_dcn10_init(translate); | 83 | dal_hw_translate_dcn10_init(translate); |
84 | return true; | 84 | return true; |
diff --git a/drivers/gpu/drm/amd/display/dc/i2caux/Makefile b/drivers/gpu/drm/amd/display/dc/i2caux/Makefile index a851d07f0190..352885cb4d07 100644 --- a/drivers/gpu/drm/amd/display/dc/i2caux/Makefile +++ b/drivers/gpu/drm/amd/display/dc/i2caux/Makefile | |||
@@ -71,7 +71,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_I2CAUX_DCE112) | |||
71 | ############################################################################### | 71 | ############################################################################### |
72 | # DCN 1.0 family | 72 | # DCN 1.0 family |
73 | ############################################################################### | 73 | ############################################################################### |
74 | ifdef CONFIG_X86 | 74 | ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
75 | I2CAUX_DCN1 = i2caux_dcn10.o | 75 | I2CAUX_DCN1 = i2caux_dcn10.o |
76 | 76 | ||
77 | AMD_DAL_I2CAUX_DCN1 = $(addprefix $(AMDDALPATH)/dc/i2caux/dcn10/,$(I2CAUX_DCN1)) | 77 | AMD_DAL_I2CAUX_DCN1 = $(addprefix $(AMDDALPATH)/dc/i2caux/dcn10/,$(I2CAUX_DCN1)) |
diff --git a/drivers/gpu/drm/amd/display/dc/i2caux/i2caux.c b/drivers/gpu/drm/amd/display/dc/i2caux/i2caux.c index f7ed355fc84f..9b0bcc6b769b 100644 --- a/drivers/gpu/drm/amd/display/dc/i2caux/i2caux.c +++ b/drivers/gpu/drm/amd/display/dc/i2caux/i2caux.c | |||
@@ -59,7 +59,7 @@ | |||
59 | 59 | ||
60 | #include "dce120/i2caux_dce120.h" | 60 | #include "dce120/i2caux_dce120.h" |
61 | 61 | ||
62 | #ifdef CONFIG_X86 | 62 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
63 | #include "dcn10/i2caux_dcn10.h" | 63 | #include "dcn10/i2caux_dcn10.h" |
64 | #endif | 64 | #endif |
65 | 65 | ||
@@ -91,7 +91,7 @@ struct i2caux *dal_i2caux_create( | |||
91 | return dal_i2caux_dce100_create(ctx); | 91 | return dal_i2caux_dce100_create(ctx); |
92 | case DCE_VERSION_12_0: | 92 | case DCE_VERSION_12_0: |
93 | return dal_i2caux_dce120_create(ctx); | 93 | return dal_i2caux_dce120_create(ctx); |
94 | #ifdef CONFIG_X86 | 94 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
95 | case DCN_VERSION_1_0: | 95 | case DCN_VERSION_1_0: |
96 | return dal_i2caux_dcn10_create(ctx); | 96 | return dal_i2caux_dcn10_create(ctx); |
97 | #endif | 97 | #endif |
diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h index d2d8b1820058..c0b9ca13393b 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h +++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "dc_bios_types.h" | 33 | #include "dc_bios_types.h" |
34 | #include "mem_input.h" | 34 | #include "mem_input.h" |
35 | #include "hubp.h" | 35 | #include "hubp.h" |
36 | #ifdef CONFIG_X86 | 36 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
37 | #include "mpc.h" | 37 | #include "mpc.h" |
38 | #endif | 38 | #endif |
39 | 39 | ||
@@ -222,7 +222,7 @@ struct pipe_ctx { | |||
222 | struct pipe_ctx *top_pipe; | 222 | struct pipe_ctx *top_pipe; |
223 | struct pipe_ctx *bottom_pipe; | 223 | struct pipe_ctx *bottom_pipe; |
224 | 224 | ||
225 | #ifdef CONFIG_X86 | 225 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
226 | struct _vcs_dpi_display_dlg_regs_st dlg_regs; | 226 | struct _vcs_dpi_display_dlg_regs_st dlg_regs; |
227 | struct _vcs_dpi_display_ttu_regs_st ttu_regs; | 227 | struct _vcs_dpi_display_ttu_regs_st ttu_regs; |
228 | struct _vcs_dpi_display_rq_regs_st rq_regs; | 228 | struct _vcs_dpi_display_rq_regs_st rq_regs; |
@@ -277,7 +277,7 @@ struct dc_state { | |||
277 | 277 | ||
278 | /* Note: these are big structures, do *not* put on stack! */ | 278 | /* Note: these are big structures, do *not* put on stack! */ |
279 | struct dm_pp_display_configuration pp_display_cfg; | 279 | struct dm_pp_display_configuration pp_display_cfg; |
280 | #ifdef CONFIG_X86 | 280 | #ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
281 | struct dcn_bw_internal_vars dcn_bw_vars; | 281 | struct dcn_bw_internal_vars dcn_bw_vars; |
282 | #endif | 282 | #endif |
283 | 283 | ||
diff --git a/drivers/gpu/drm/amd/display/dc/irq/Makefile b/drivers/gpu/drm/amd/display/dc/irq/Makefile index a76ee600ecee..498515aad4a5 100644 --- a/drivers/gpu/drm/amd/display/dc/irq/Makefile +++ b/drivers/gpu/drm/amd/display/dc/irq/Makefile | |||
@@ -60,7 +60,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_IRQ_DCE12) | |||
60 | ############################################################################### | 60 | ############################################################################### |
61 | # DCN 1x | 61 | # DCN 1x |
62 | ############################################################################### | 62 | ############################################################################### |
63 | ifdef CONFIG_X86 | 63 | ifdef CONFIG_DRM_AMD_DC_DCN1_0 |
64 | IRQ_DCN1 = irq_service_dcn10.o | 64 | IRQ_DCN1 = irq_service_dcn10.o |
65 | 65 | ||
66 | AMD_DAL_IRQ_DCN1 = $(addprefix $(AMDDALPATH)/dc/irq/dcn10/,$(IRQ_DCN1)) | 66 | AMD_DAL_IRQ_DCN1 = $(addprefix $(AMDDALPATH)/dc/irq/dcn10/,$(IRQ_DCN1)) |
diff --git a/drivers/gpu/drm/amd/display/dc/irq/irq_service.c b/drivers/gpu/drm/amd/display/dc/irq/irq_service.c index ae3fd0a235ba..604bea01fc13 100644 --- a/drivers/gpu/drm/amd/display/dc/irq/irq_service.c +++ b/drivers/gpu/drm/amd/display/dc/irq/irq_service.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "dce120/irq_service_dce120.h" | 36 | #include "dce120/irq_service_dce120.h" |
37 | 37 | ||
38 | 38 | ||
39 | #ifdef CONFIG_X86 | 39 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
40 | #include "dcn10/irq_service_dcn10.h" | 40 | #include "dcn10/irq_service_dcn10.h" |
41 | #endif | 41 | #endif |
42 | 42 | ||
diff --git a/drivers/gpu/drm/amd/display/dc/os_types.h b/drivers/gpu/drm/amd/display/dc/os_types.h index c9fce9066ad8..a407892905af 100644 --- a/drivers/gpu/drm/amd/display/dc/os_types.h +++ b/drivers/gpu/drm/amd/display/dc/os_types.h | |||
@@ -48,7 +48,7 @@ | |||
48 | 48 | ||
49 | #define dm_error(fmt, ...) DRM_ERROR(fmt, ##__VA_ARGS__) | 49 | #define dm_error(fmt, ...) DRM_ERROR(fmt, ##__VA_ARGS__) |
50 | 50 | ||
51 | #ifdef CONFIG_X86 | 51 | #if defined(CONFIG_DRM_AMD_DC_DCN1_0) |
52 | #include <asm/fpu/api.h> | 52 | #include <asm/fpu/api.h> |
53 | #endif | 53 | #endif |
54 | 54 | ||