-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fby3.5: rf: Impl CXL FW update #521
Conversation
Modify the kernel config file to enable the USB feature. Signed-off-by: Scron Chang <Scron.Chang@quantatw.com>
6cc3b6d
to
fe9b1b6
Compare
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
fe9b1b6
to
6cff1fe
Compare
@Scron-Chang has updated the pull request. You must reimport the pull request before landing. |
PatchSet01: Fix bugs in CXL controller FW update
Tested: |
6cff1fe
to
a9584e1
Compare
@Scron-Chang has updated the pull request. You must reimport the pull request before landing. |
Implement CXL conttroller FW update to RF BIC. The image to update is 32MB. The RF BIC checks the standby power, P1V8_ASIC, and the direction of the SPI switch and then writes data. Tested: Write different images for 20 times, and they are all successful. Signed-off-by: Scron Chang <Scron.Chang@quantatw.com>
In the EVT stage, RF needs this patch because of the SPI buffer limitation. It will be fixed in the DVT stage, and this patch can be reverted. Tested: The SPI reading and writing both work well. uart:~$ flash update_test spi1_cs0 0 Writing 4092 bytes to spi1_cs0 (offset: 0x00000000)... Update done. RW test pass uart:~$ flash read spi1_cs0 0 100 00000000: 7a 79 78 77 76 75 74 73 72 71 70 6f 6e 6d 6c 6b |zyxwvuts rqponmlk| 00000010: 6a 69 68 67 66 65 64 63 62 61 7a 79 78 77 76 75 |jihgfedc bazyxwvu| 00000020: 74 73 72 71 70 6f 6e 6d 6c 6b 6a 69 68 67 66 65 |tsrqponm lkjihgfe| 00000030: 64 63 62 61 7a 79 78 77 76 75 74 73 72 71 70 6f |dcbazyxw vutsrqpo| 00000040: 6e 6d 6c 6b 6a 69 68 67 66 65 64 63 62 61 7a 79 |nmlkjihg fedcbazy| 00000050: 78 77 76 75 74 73 72 71 70 6f 6e 6d 6c 6b 6a 69 |xwvutsrq ponmlkji| 00000060: 68 67 66 65 64 63 62 61 7a 79 78 77 76 75 74 73 |hgfedcba zyxwvuts| 00000070: 72 71 70 6f 6e 6d 6c 6b 6a 69 68 67 66 65 64 63 |rqponmlk jihgfedc| 00000080: 62 61 7a 79 78 77 76 75 74 73 72 71 70 6f 6e 6d |bazyxwvu tsrqponm| 00000090: 6c 6b 6a 69 68 67 66 65 64 63 62 61 7a 79 78 77 |lkjihgfe dcbazyxw| 000000A0: 76 75 74 73 72 71 70 6f 6e 6d 6c 6b 6a 69 68 67 |vutsrqpo nmlkjihg| 000000B0: 66 65 64 63 62 61 7a 79 78 77 76 75 74 73 72 71 |fedcbazy xwvutsrq| 000000C0: 70 6f 6e 6d 6c 6b 6a 69 68 67 66 65 64 63 62 61 |ponmlkji hgfedcba| 000000D0: 7a 79 78 77 76 75 74 73 72 71 70 6f 6e 6d 6c 6b |zyxwvuts rqponmlk| 000000E0: 6a 69 68 67 66 65 64 63 62 61 7a 79 78 77 76 75 |jihgfedc bazyxwvu| 000000F0: 74 73 72 71 70 6f 6e 6d 6c 6b 6a 69 68 67 66 65 |tsrqponm lkjihgfe| uart:~$ Signed-off-by: Scron Chang <Scron.Chang@quantatw.com>
The run-cppcheck blocks the pull-request and shows the following error information: ``` Errors Found: common/lib/util_spi.c:279:3:%d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. ``` This patch corrects the specifier and passes the run-cppcheck. Signed-off-by: Scron Chang <Scron.Chang@quantatw.com>
a9584e1
to
8a0786d
Compare
@Scron-Chang has updated the pull request. You must reimport the pull request before landing. |
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
BMC will use this bus to transfer data to update.
The RF needs to reduce the SPI clock in the EVT stage due to hardware buffer limitations. This patch can be removed when RF gets into the DVT stage.