aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1008-drm-amd-dal-remove-dead-code.patch
blob: 4b1db4bb8a589dc38804f0afa8875811fc06b6e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
From 7337cf1a1fc34ed24112079627d60b762f604c38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= <jglisse@redhat.com>
Date: Thu, 24 Mar 2016 14:26:18 +0100
Subject: [PATCH 1008/1110] drm/amd/dal: remove dead code.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Dead seriously ...

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/dc_types.h              |  5 --
 .../gpu/drm/amd/dal/include/link_service_types.h   | 61 ----------------------
 2 files changed, 66 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/dc_types.h b/drivers/gpu/drm/amd/dal/dc/dc_types.h
index 8bc0413..4d9b24a 100644
--- a/drivers/gpu/drm/amd/dal/dc/dc_types.h
+++ b/drivers/gpu/drm/amd/dal/dc/dc_types.h
@@ -358,11 +358,6 @@ struct dc_mode_info {
 	struct dc_mode_flags flags;
 };
 
-struct dc_mode_timing {
-	struct dc_mode_info mode_info;
-	struct dc_crtc_timing crtc_timing;
-};
-
 enum dc_power_state {
 	DC_POWER_STATE_ON = 1,
 	DC_POWER_STATE_STANDBY,
diff --git a/drivers/gpu/drm/amd/dal/include/link_service_types.h b/drivers/gpu/drm/amd/dal/include/link_service_types.h
index 5dd75a3..96e6b38 100644
--- a/drivers/gpu/drm/amd/dal/include/link_service_types.h
+++ b/drivers/gpu/drm/amd/dal/include/link_service_types.h
@@ -46,12 +46,6 @@ enum link_service_type {
 	LINK_SERVICE_TYPE_MAX
 };
 
-struct link_validation_flags {
-	uint32_t DYNAMIC_VALIDATION:1;
-	uint32_t CANDIDATE_TIMING:1;
-	uint32_t START_OF_VALIDATION:1;
-};
-
 enum dpcd_value_mask {
 	DPCD_VALUE_MASK_MAX_LANE_COUNT_LANE_COUNT = 0x1F,
 	DPCD_VALUE_MASK_MAX_LANE_COUNT_TPS3_SUPPORTED = 0x40,
@@ -173,13 +167,6 @@ struct link_service_init_data {
 	struct topology_mgr *tm;
 };
 
-/**
- * @brief LinkServiceInitOptions to set certain bits
- */
-struct LinkServiceInitOptions {
-	uint32_t APPLY_MISALIGNMENT_BUG_WORKAROUND:1;
-};
-
 /* DPCD_ADDR_TRAINING_LANEx_SET registers value */
 union dpcd_training_lane_set {
 	struct {
@@ -227,33 +214,6 @@ struct mst_rad {
 	int8_t rad_str[25];
 };
 
-/**
- * @brief this structure is used to report
- * properties associated to a sink device
- */
-struct mst_sink_info {
-	/* global unique identifier */
-	struct mst_guid guid;
-	/* relative address */
-	struct mst_rad  rad;
-	/* total bandwidth available on the DP connector */
-	uint32_t total_available_bandwidth_in_mbps;
-	/* bandwidth allocated to the sink device. */
-	uint32_t allocated_bandwidth_in_mbps;
-	/* bandwidth consumed to support for the current mode. */
-	uint32_t consumed_bandwidth_in_mbps;
-};
-
-/**
- * @brief represent device information in MST topology
- */
-struct mst_device_info {
-	/* global unique identifier*/
-	struct mst_guid guid;
-	/* relative address*/
-	struct mst_rad  rad;
-};
-
 /* DP MST stream allocation (payload bandwidth number) */
 struct dp_mst_stream_allocation {
 	uint8_t vcp_id;
@@ -270,25 +230,4 @@ struct dp_mst_stream_allocation_table {
 	struct dp_mst_stream_allocation stream_allocations[MAX_CONTROLLER_NUM];
 };
 
-struct dp_test_event_data {
-	/*size of parameters (starting from params) in bytes*/
-	uint32_t size;
-	/*parameters block*/
-	uint32_t params[1];
-};
-
-struct psr_caps {
-	/* These parameters are from PSR capabilities reported by Sink DPCD. */
-	uint8_t psr_version;
-	uint32_t psr_rfb_setup_time;
-	bool psr_exit_link_training_req;
-
-	/* These parameters are calculated in Driver, based on display timing
-	 * and Sink capabilities.
-	 * If VBLANK region is too small and Sink takes a long time to power up
-	 * Remote Frame Buffer, it may take an extra frame to enter PSR */
-	bool psr_frame_capture_indication_req;
-	uint32_t psr_sdp_transmit_line_num_deadline;
-};
-
 #endif /*__DAL_LINK_SERVICE_TYPES_H__*/
-- 
2.7.4