Lines Matching +full:sync +full:- +full:1

1 /* SPDX-License-Identifier: GPL-2.0 */
8 membar #Sync
12 membar #Sync
16 .size cheetah_fecc_trap_vector,.-cheetah_fecc_trap_vector
21 membar #Sync
25 membar #Sync
28 mov 1, %g1
29 .size cheetah_fecc_trap_vector_tl1,.-cheetah_fecc_trap_vector_tl1
34 membar #Sync
38 membar #Sync
42 .size cheetah_cee_trap_vector,.-cheetah_cee_trap_vector
47 membar #Sync
51 membar #Sync
54 mov 1, %g1
55 .size cheetah_cee_trap_vector_tl1,.-cheetah_cee_trap_vector_tl1
60 membar #Sync
64 membar #Sync;
68 .size cheetah_deferred_trap_vector,.-cheetah_deferred_trap_vector
73 membar #Sync;
77 membar #Sync;
80 mov 1, %g1
81 .size cheetah_deferred_trap_vector_tl1,.-cheetah_deferred_trap_vector_tl1
87 * Bit0: 0=dcache,1=icache
88 * Bit1: 0=recoverable,1=unrecoverable
93 membar #Sync
101 .size cheetah_plus_dcpe_trap_vector,.-cheetah_plus_dcpe_trap_vector
117 .size do_cheetah_plus_data_parity,.-do_cheetah_plus_data_parity
122 membar #Sync
130 .size cheetah_plus_dcpe_trap_vector_tl1,.-cheetah_plus_dcpe_trap_vector_tl1
135 membar #Sync
143 .size cheetah_plus_icpe_trap_vector,.-cheetah_plus_icpe_trap_vector
159 .size do_cheetah_plus_insn_parity,.-do_cheetah_plus_insn_parity
164 membar #Sync
172 .size cheetah_plus_icpe_trap_vector_tl1,.-cheetah_plus_icpe_trap_vector_tl1
174 /* If we take one of these traps when tl >= 1, then we
183 mov 1, %g2 ! Setup TSTATE checking loop
185 1: wrpr %g2, %tl ! Set trap level to check
190 add %g2, 1, %g2 ! Next trap level
192 ble,pt %icc, 1b ! Not yet
198 add %g1, 1, %g1
200 /* Reset D-cache parity */
201 sethi %hi(1 << 16), %g1 ! D-cache size
202 mov (1 << 5), %g2 ! D-cache line size
203 sub %g1, %g2, %g1 ! Move down 1 cacheline
204 1: srl %g1, 14, %g3 ! Compute UTAG
205 membar #Sync
207 membar #Sync
208 sub %g2, 8, %g3 ! 64-bit data word within line
209 2: membar #Sync
211 membar #Sync
212 subcc %g3, 8, %g3 ! Next 64-bit data word
216 bge,pt %icc, 1b
221 sethi %hi(1f), %g7
223 1: or %g7, %lo(1b), %g7
228 .size do_dcpe_tl1,.-do_dcpe_tl1
234 mov 1, %g2 ! Setup TSTATE checking loop
236 1: wrpr %g2, %tl ! Set trap level to check
241 add %g2, 1, %g2 ! Next trap level
243 ble,pt %icc, 1b ! Not yet
249 add %g1, 1, %g1
251 /* Flush I-cache */
252 sethi %hi(1 << 15), %g1 ! I-cache size
253 mov (1 << 5), %g2 ! I-cache line size
255 1: or %g1, (2 << 3), %g3
257 membar #Sync
259 bge,pt %icc, 1b
264 sethi %hi(1f), %g7
266 1: or %g7, %lo(1b), %g7
271 .size do_icpe_tl1,.-do_icpe_tl1
275 /* Flush D-cache, re-enable D/I caches in DCU and finally
278 sethi %hi(1 << 16), %g1 ! D-cache size
279 mov (1 << 5), %g2 ! D-cache line size
281 1: stxa %g0, [%g1] ASI_DCACHE_TAG
282 membar #Sync
284 bge,pt %icc, 1b
289 membar #Sync
291 .size dcpe_icpe_tl1_common,.-dcpe_icpe_tl1_common
293 /* Capture I/D/E-cache state into per-cpu error scoreboard.
295 * %g1: (TL>=0) ? 1 : 0
333 cmp %g7, -1
341 /* %g1 now points to D-cache logging area */
345 or %g3, 1, %g3 /* PHYS tag + valid */
356 /* A membar Sync is required before and after utag access. */
357 membar #Sync
359 membar #Sync
367 add %g3, (1 << 5), %g3
375 13: sethi %hi(1 << 14), %g7
384 /* %g1 now points to I-cache logging area */
387 sllx %g2, 1, %g2 /* IC_addr[13:6]==VA[12:5] */
388 srlx %g5, (13 - 8), %g3 /* Make PTAG */
400 add %g2, (1 << 3), %g2
402 add %g2, (1 << 3), %g2
405 add %g2, (1 << 3), %g2
417 add %g3, (1 << 3), %g3
425 23: sethi %hi(1 << 14), %g7
434 /* %g1 now points to E-cache logging area */
435 30: andn %g5, (32 - 1), %g2
457 .size __cheetah_log_error,.-__cheetah_log_error
459 /* Cheetah FECC trap handling, we get here from tl{0,1}_fecc
461 * and has disabled both the I-cache and D-cache in the DCU
462 * control register. The I-cache is disabled so that we may
463 * capture the corrupted cache line, and the D-cache is disabled
467 * %g1 is one if this trap occurred at %tl >= 1.
477 membar #Sync
483 membar #Sync
487 .size cheetah_fast_ecc,.-cheetah_fast_ecc
504 .size c_fast_ecc,.-c_fast_ecc
506 /* Our caller has disabled I-cache and performed membar Sync. */
513 membar #Sync
519 membar #Sync
523 .size cheetah_cee,.-cheetah_cee
540 .size c_cee,.-c_cee
542 /* Our caller has disabled I-cache+D-cache and performed membar Sync. */
549 membar #Sync
555 membar #Sync
559 .size cheetah_deferred_trap,.-cheetah_deferred_trap
576 .size c_deferred,.-c_deferred