Commit 0256d22
committed
Fix host flash hash invalidation
The existing hash invalidation can leave slot stuck in
`HashInProgress` permanently:
```
pilot -r dublin sp exec -e 'component-active-slot host-boot-flash -s 1 -p' BRM27230037
pilot -r dublin sp exec -e 'start-host-flash-hash 0' BRM27230037
pilot -r dublin sp exec -e 'power-state A2' BRM27230037
sleep 30
pilot -r dublin sp exec -e 'power-state A0' BRM27230037
sleep 120
$ pilot -r dublin sp exec -e 'get-host-flash-hash 0' BRM27230037
Jul 28 19:22:14.066 INFO creating SP handle on interface dublin_sw0tp0, component: faux-mgs
Jul 28 19:22:14.072 INFO initial discovery complete, addr: [fe80::aa40:25ff:fe04:604%5]:11111, interface: dublin_sw0tp0, socket: control-plane-agent, component: faux-mgs
Error: Error response from SP: hf: Hash calcuation in progress
```
Switching the mux (i.e. going from Host <-> SP) should invalidate
everything and require a recalcuation. We can also end up in this
state if we write to one bank while a hash of the other bank is
in progress.
Fix this by splitting out the invalidation functions separately
and implementing them correctly. Also fix up a few other fixes
that got missed.1 parent 63b81c8 commit 0256d22
2 files changed
+56
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
326 | 336 | | |
327 | 337 | | |
328 | 338 | | |
| |||
331 | 341 | | |
332 | 342 | | |
333 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
334 | 348 | | |
| 349 | + | |
| 350 | + | |
335 | 351 | | |
336 | 352 | | |
337 | 353 | | |
| |||
385 | 401 | | |
386 | 402 | | |
387 | 403 | | |
388 | | - | |
| 404 | + | |
389 | 405 | | |
390 | 406 | | |
391 | 407 | | |
| |||
408 | 424 | | |
409 | 425 | | |
410 | 426 | | |
411 | | - | |
| 427 | + | |
412 | 428 | | |
413 | 429 | | |
414 | 430 | | |
| |||
477 | 493 | | |
478 | 494 | | |
479 | 495 | | |
480 | | - | |
| 496 | + | |
481 | 497 | | |
482 | 498 | | |
483 | 499 | | |
| |||
552 | 568 | | |
553 | 569 | | |
554 | 570 | | |
555 | | - | |
| 571 | + | |
556 | 572 | | |
557 | 573 | | |
558 | 574 | | |
| |||
588 | 604 | | |
589 | 605 | | |
590 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
591 | 617 | | |
592 | 618 | | |
593 | 619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
515 | 525 | | |
516 | 526 | | |
517 | 527 | | |
| |||
520 | 530 | | |
521 | 531 | | |
522 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
523 | 537 | | |
| 538 | + | |
| 539 | + | |
524 | 540 | | |
525 | 541 | | |
526 | 542 | | |
| |||
719 | 735 | | |
720 | 736 | | |
721 | 737 | | |
722 | | - | |
| 738 | + | |
723 | 739 | | |
724 | 740 | | |
725 | 741 | | |
| |||
754 | 770 | | |
755 | 771 | | |
756 | 772 | | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | 773 | | |
761 | 774 | | |
762 | 775 | | |
763 | 776 | | |
764 | 777 | | |
765 | 778 | | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
766 | 782 | | |
767 | 783 | | |
768 | 784 | | |
| |||
804 | 820 | | |
805 | 821 | | |
806 | 822 | | |
807 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
808 | 826 | | |
809 | 827 | | |
810 | 828 | | |
| |||
0 commit comments