Commit e167e0d
fwk: ucsi: modified the condition to avoid the wrong pointer
The commit 60f3eb1 we used the active_pd_chip_count
to avoid the PD which is no power, also do the UCSI communication.
But if the no-power PD chip is the higher priority one, the index
will be wrong and point to the wrong address cause the "Precise
data bus error".
[85.411800 Resend: P1 CCI: 0x20000008 Port4, Acknowledge ]
ec:~> E: ***** BUS FAULT *****
E: Precise data bus error
E: BFAR Address: 0xaaaaaaaa
E: r0/a1: 0x200c4791 r1/a2: 0xaaaaaaaa r2/a3: 0xaaaaaacc
E: r3/a4: 0x200c4790 r12/ip: 0x200c11a0 r14/lr: 0x100943e5
E: xpsr: 0x81000000
E: r4/v1: 0x200c1b08 r5/v2: 0x200c1f94 r6/v3: 0x00000000
E: r7/v4: 0x00000000 r8/v5: 0x00000022 r9/v6: 0x00000000
E: r10/v7: 0x00000171 r11/v8: 0x200c1f94 psp: 0x200c6718
E: EXC_RETURN: 0xfffffffd
E: Faulting instruction address (r15/pc): 0x100a4338
E: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
E: Current thread: 0x200c2388 (CYPD)
This change modifies the condition to solve this issue and ensure the
UCSI use the correct index in the higher priority PD chip is no power.
BRANCH=fwk-main
BUG=Wrong index cause the "Precise data bus error"
TEST=Set the PD0 to no-power and PD1 to ready.
Enter standby mode and then plug-in the USB storage.
Wake up the system does not happen "Precise data bus error"
TEST=Do not need to run the HLK, because if two PD chips state
are ready, the logic does not be changed.
[104.553200 Fan 0 stalled!]
[105.110000 Resend: P1 CCI: 0x20000008 Port4, Acknowledge ]
[105.114800 RESERVE Complete]
[105.115500 CCI (Host): 0x20000008 Port4, Acknowledge ]
[105.161500 PL1:28, PL2:46, PL4:80, PSYSPL2:57 updated suc
Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>
(cherry picked from commit b4171256ff0cc436bf16d59df3fe37a185285b1c)1 parent e9b421b commit e167e0d
1 file changed
Lines changed: 29 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| |||
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
303 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
304 | 312 | | |
305 | 313 | | |
306 | 314 | | |
| |||
313 | 321 | | |
314 | 322 | | |
315 | 323 | | |
316 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
317 | 329 | | |
318 | 330 | | |
319 | 331 | | |
| |||
508 | 520 | | |
509 | 521 | | |
510 | 522 | | |
511 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
512 | 527 | | |
513 | 528 | | |
514 | 529 | | |
| |||
536 | 551 | | |
537 | 552 | | |
538 | 553 | | |
539 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
540 | 558 | | |
541 | 559 | | |
542 | 560 | | |
| |||
552 | 570 | | |
553 | 571 | | |
554 | 572 | | |
555 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
556 | 577 | | |
557 | 578 | | |
558 | 579 | | |
| |||
621 | 642 | | |
622 | 643 | | |
623 | 644 | | |
624 | | - | |
| 645 | + | |
625 | 646 | | |
626 | 647 | | |
627 | 648 | | |
| |||
0 commit comments