summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-image-redcore/files/5.4-amdgpu-dc_link-drop-some-asserts.patch
blob: f189eff5dc9c59c04b21130f882ffbd16c411e69 (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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
diff -Naur linux-5.3.5/drivers/gpu/drm/amd/display/dc/core/dc_link.c linux-5.3.5-p/drivers/gpu/drm/amd/display/dc/core/dc_link.c
--- linux-5.3.5/drivers/gpu/drm/amd/display/dc/core/dc_link.c	2019-10-07 19:01:58.000000000 +0200
+++ linux-5.3.5-p/drivers/gpu/drm/amd/display/dc/core/dc_link.c	2019-10-10 23:30:11.410468583 +0200
@@ -1721,10 +1721,6 @@
 				offset = 0x%x, reg_val= 0x%x, i2c_success = %d\n",
 				slave_address, buffer[0], buffer[1], i2c_success?1:0);
 
-			if (!i2c_success)
-				/* Write failure */
-				ASSERT(i2c_success);
-
 			/* Based on DP159 specs, APPLY_RX_TX_CHANGE bit in 0x0A
 			 * needs to be set to 1 on every 0xA-0xC write.
 			 */
@@ -1740,9 +1736,6 @@
 						dal_ddc_service_query_ddc_data(
 						pipe_ctx->stream->link->ddc,
 						slave_address, &offset, 1, &value, 1);
-					if (!i2c_success)
-						/* Write failure */
-						ASSERT(i2c_success);
 				}
 
 				buffer[0] = offset;
@@ -1753,9 +1746,6 @@
 				RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\
 					offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 					slave_address, buffer[0], buffer[1], i2c_success?1:0);
-				if (!i2c_success)
-					/* Write failure */
-					ASSERT(i2c_success);
 			}
 		}
 	}
@@ -1774,9 +1764,6 @@
 					offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 					slave_address, buffer[0], buffer[1], i2c_success?1:0);
 
-				if (!i2c_success)
-					/* Write failure */
-					ASSERT(i2c_success);
 
 				/* Based on DP159 specs, APPLY_RX_TX_CHANGE bit in 0x0A
 				 * needs to be set to 1 on every 0xA-0xC write.
@@ -1793,9 +1780,6 @@
 								dal_ddc_service_query_ddc_data(
 								pipe_ctx->stream->link->ddc,
 								slave_address, &offset, 1, &value, 1);
-						if (!i2c_success)
-							/* Write failure */
-							ASSERT(i2c_success);
 					}
 
 					buffer[0] = offset;
@@ -1806,9 +1790,6 @@
 					RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\
 						offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 						slave_address, buffer[0], buffer[1], i2c_success?1:0);
-					if (!i2c_success)
-						/* Write failure */
-						ASSERT(i2c_success);
 				}
 			}
 		}
@@ -1825,9 +1806,6 @@
 		RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\
 				offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 				slave_address, buffer[0], buffer[1], i2c_success?1:0);
-		if (!i2c_success)
-			/* Write failure */
-			ASSERT(i2c_success);
 
 		/* Write offset 0x00 to 0x23 */
 		buffer[0] = 0x00;
@@ -1837,9 +1815,6 @@
 		RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\
 			offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 			slave_address, buffer[0], buffer[1], i2c_success?1:0);
-		if (!i2c_success)
-			/* Write failure */
-			ASSERT(i2c_success);
 
 		/* Write offset 0xff to 0x00 */
 		buffer[0] = 0xff;
@@ -1849,10 +1824,6 @@
 		RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\
 			offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 			slave_address, buffer[0], buffer[1], i2c_success?1:0);
-		if (!i2c_success)
-			/* Write failure */
-			ASSERT(i2c_success);
-
 	}
 }
 
@@ -1877,9 +1848,6 @@
 	RETIMER_REDRIVER_INFO("retimer writes default setting to slave_address = 0x%x,\
 		offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 		slave_address, buffer[0], buffer[1], i2c_success?1:0);
-	if (!i2c_success)
-		/* Write failure */
-		ASSERT(i2c_success);
 
 	/* Write offset 0x0A to 0x17 */
 	buffer[0] = 0x0A;
@@ -1889,9 +1857,6 @@
 	RETIMER_REDRIVER_INFO("retimer write to slave_addr = 0x%x,\
 		offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 		slave_address, buffer[0], buffer[1], i2c_success?1:0);
-	if (!i2c_success)
-		/* Write failure */
-		ASSERT(i2c_success);
 
 	/* Write offset 0x0B to 0xDA or 0xD8 */
 	buffer[0] = 0x0B;
@@ -1901,9 +1866,6 @@
 	RETIMER_REDRIVER_INFO("retimer write to slave_addr = 0x%x,\
 		offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 		slave_address, buffer[0], buffer[1], i2c_success?1:0);
-	if (!i2c_success)
-		/* Write failure */
-		ASSERT(i2c_success);
 
 	/* Write offset 0x0A to 0x17 */
 	buffer[0] = 0x0A;
@@ -1913,9 +1875,6 @@
 	RETIMER_REDRIVER_INFO("retimer write to slave_addr = 0x%x,\
 		offset = 0x%x, reg_val= 0x%x, i2c_success = %d\n",
 		slave_address, buffer[0], buffer[1], i2c_success?1:0);
-	if (!i2c_success)
-		/* Write failure */
-		ASSERT(i2c_success);
 
 	/* Write offset 0x0C to 0x1D or 0x91 */
 	buffer[0] = 0x0C;
@@ -1925,9 +1884,6 @@
 	RETIMER_REDRIVER_INFO("retimer write to slave_addr = 0x%x,\
 		offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 		slave_address, buffer[0], buffer[1], i2c_success?1:0);
-	if (!i2c_success)
-		/* Write failure */
-		ASSERT(i2c_success);
 
 	/* Write offset 0x0A to 0x17 */
 	buffer[0] = 0x0A;
@@ -1937,9 +1893,6 @@
 	RETIMER_REDRIVER_INFO("retimer write to slave_addr = 0x%x,\
 		offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 		slave_address, buffer[0], buffer[1], i2c_success?1:0);
-	if (!i2c_success)
-		/* Write failure */
-		ASSERT(i2c_success);
 
 
 	if (is_vga_mode) {
@@ -1953,9 +1906,7 @@
 		RETIMER_REDRIVER_INFO("retimer write to slave_addr = 0x%x,\
 			offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
 			slave_address, buffer[0], buffer[1], i2c_success?1:0);
-		if (!i2c_success)
-			/* Write failure */
-			ASSERT(i2c_success);
+
 
 		/* Write offset 0x00 to 0x23 */
 		buffer[0] = 0x00;
@@ -1965,9 +1916,6 @@
 		RETIMER_REDRIVER_INFO("retimer write to slave_addr = 0x%x,\
 			offset = 0x%x, reg_val= 0x%x, i2c_success = %d\n",
 			slave_address, buffer[0], buffer[1], i2c_success?1:0);
-		if (!i2c_success)
-			/* Write failure */
-			ASSERT(i2c_success);
 
 		/* Write offset 0xff to 0x00 */
 		buffer[0] = 0xff;
@@ -1977,9 +1925,6 @@
 		RETIMER_REDRIVER_INFO("retimer write default setting to slave_addr = 0x%x,\
 			offset = 0x%x, reg_val= 0x%x, i2c_success = %d end here\n",
 			slave_address, buffer[0], buffer[1], i2c_success?1:0);
-		if (!i2c_success)
-			/* Write failure */
-			ASSERT(i2c_success);
 	}
 }
 
@@ -2008,9 +1953,6 @@
 		i2c_success = %d\n",
 		slave_address, buffer[3], buffer[4], buffer[5], buffer[6], i2c_success?1:0);
 
-	if (!i2c_success)
-		/* Write failure */
-		ASSERT(i2c_success);
 }
 
 static void enable_link_hdmi(struct pipe_ctx *pipe_ctx)