eren-terzioglu opened a new pull request, #18429:
URL: https://github.com/apache/nuttx/pull/18429

   ## Summary
   
   <!-- This field should contain a summary of the changes. It will be 
pre-filled with the commit's message and descriptions. Adjust it accordingly -->
   
   * arch/xtensa/espressif: Fix SHA errors
   
   Fix SHA errors for esp32[-s2|-s3]
   
   * arch/risc-v/espressif: Fix SHA errors
   
   Fix SHA errors for esp32[-c3|-c6|-h2]
   
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: No
   <!-- Does it impact user's applications? How? -->
   
   Impact on build: No
   <!-- Does it impact on building NuttX? How? (please describe the required 
changes on the build system) -->
   
   Impact on hardware: Yes, SHA accelerator error fixed
   <!-- Does it impact a specific hardware supported by NuttX? -->
   
   Impact on documentation: No
   <!-- Does it impact the existing documentation? Please provide additional 
documentation to reflect that -->
   
   Impact on security: No
   <!-- Does it impact NuttX's security? -->
   
   Impact on compatibility: No
   <!-- Does it impact compatibility between previous and current versions? Is 
this a breaking change? -->
   
   ## Testing
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   
   `esp32c6-devkitc:crypto` defconfig used to test the changes
   
   ### Building
   <!-- Provide how to build the test for each SoC being tested -->
   
   Here is the command for build:
   
   ```
   make -j distclean && ./tools/configure.sh esp32c6-devkitc:crypto && make -j 
&& make download ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=921600 ESPTOOL_BINDIR=./
   ```
   
   ### Running
   <!-- Provide how to run the test for each SoC being tested -->
   
   `hmac` example used to run
   
   ### Results
   <!-- Provide tests' results and runtime logs -->
   
   
   Old logs:
   
   ```
   nsh> hmac
   syshamc md5 failed
   9294727a3638bb1c13f48ef8158bfc9d
   0000000040fe80400000000000000000
   match md5 failed
   syshamc md5 failed
   750c783e6ab0b503eaa86e310a5db738
   0000000040fe80400000000000000000
   match md5 failed
   syshamc md5 failed
   CIOCGSESSIONhmac mismatchCIOCGSESSIONhmac 
mismatchCIOCGSESSIONhm56be34521d144c88dbb8c733f0e8b3f6
   0000000040fe80400000000000000000
   match md5 failed
   syshamc md5 failed
   bfecaf4efff90a3a668f3922fec3762d
   0000000040fe80400000000000000000
   match md5 failed
   syshamc md5 failed
   09b8ae7b15adbbb243aca3491b51512b
   0000000040fe80400000000000000000
   match md5 failed
   ac mismatchCIOCGSESSIONhmac mismatchCIOCGSESSIONhmac 
mismatchhma675b0b3a1b4ddf4e124872da6c2f632bfed957e9
   a7056b45559415381ad34c6548ca60e7f5df570d
   match sha1 failed
   effcdf6ae5eb2fa2d27416d5f184df9c259a7c79
   5709ac13c24a96d981767d226d609394f054edc2
   match sha1 failed
   d730594d167e35d5956fd8003d0db3d3f46dc7bb
   2b033a95046d942d70d7539564fd1597aae15d5e
   match sha1 failed
   riscv_exception: EXCEPTION: Load access fault. MCAUSE: 00000005, EPC: 
4201a580, MTVAL: 43000001
   riscv_exception: PANIC!!! Exception = 00000005
   dump_assert_info: Current Version: NuttX  10.4.0 8fa57baf8e-dirty Feb  6 
2026 17:10:09 risc-v
   dump_assert_info: Assertion failed panic: at file: :0 task: hmac process: 
hmac 0x4201afe4
   up_dump_register: EPC: 4201a580
   up_dump_register: A0: 00000000 A1: 42ffffe1 A2: d0d00add A3: 60089098
   up_dump_register: A4: 60089080 A5: 0000001c A6: 0000001c A7: 9c9c9c9c
   up_dump_register: T0: 9c9c9c9c T1: 9c9c9c9c T2: 9c9c9c9c T3: 9c9c9c9c
   up_dump_register: T4: 9c9c9c9c T5: 9c9c9c9c T6: 9c9c9c9c
   up_dump_register: S0: 00000040 S1: 00000000 S2: 00000000 S3: 42ffffe1
   up_dump_register: S4: 00000008 S5: 00000000 S6: 420409cc S7: 00000005
   up_dump_register: S8: 42041000 S9: 42041000 S10: 0000000c S11: 42041000
   up_dump_register: SP: 4080fab0 FP: 00000040 TP: 00000000 RA: 4201a550
   dump_stackinfo: User Stack:
   dump_stackinfo:   base: 0x4080f670
   dump_stackinfo:   size: 00002000
   dump_stackinfo:     sp: 0x4080fab0
   stack_dump: 0x4080fa90: 42041000 0000000c 42041000 9c9c9c9c 9c9c9c9c 
9c9c9c9c 9c9c9c9c 00001880
   stack_dump: 0x4080fab0: 42041000 0000000c 42041000 42040c24 ffffffbd 
00fbf3bd 4080ff68 4201a164
   stack_dump: 0x4080fad0: 9c9c9c9c 9c9c9c9c 4080ff68 4201a26c 4080feb0 
4080fbe8 4080ff48 00000000
   stack_dump: 0x4080faf0: 4080feb0 4080fbe8 4080ff48 42019ea8 42030000 
4080fb30 0000006c 4080ff68
   stack_dump: 0x4080fb10: 00000000 00000000 00000000 00000000 00000000 
00000000 00000005 42037834
   stack_dump: 0x4080fb30: 00000000 4080b000 40809000 00000000 4080fba8 
00000001 00000000 42013b0c
   stack_dump: 0x4080fb50: 00000001 4080db20 00000083 4080fbe8 4080db20 
4080fe98 4080db20 00000000
   stack_dump: 0x4080fb70: 00000001 420378b8 4080fe60 00000000 00000001 
4080fd44 4080fbe8 4201451e
   stack_dump: 0x4080fb90: 4203754f 4080fd84 00000083 00000000 4080e370 
00000001 00000000 00000032
   stack_dump: 0x4080fbb0: 00000000 00000000 00000005 00000080 00000000 
00000000 00000000 4080fe98
   stack_dump: 0x4080fbd0: 00000000 00000000 00000000 00000000 00000000 
00000000 00000005 00000418
   stack_dump: 0x4080fbf0: 00000000 ffffffff 00000000 4080fec0 00000000 
00000000 00000000 00000000
   stack_dump: 0x4080fc10: 00000000 4080db20 4080db20 4200c324 40808f04 
4080db20 00000000 00000000
   stack_dump: 0x4080fc30: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   stack_dump: 0x4080fc50: 00000000 00000000 00000000 00000014 4080fd40 
00000000 4080fe60 00000000
   stack_dump: 0x4080fc70: 40808f04 00000000 4080fe80 00000000 00000000 
00000000 00000005 42037834
   stack_dump: 0x4080fc90: 00000083 420378b8 00000313 40808f04 4080fd44 
4080fe80 00000065 42014c5a
   stack_dump: 0x4080fcb0: 4080dd18 420352db 00000000 4200bd00 42037000 
420378b8 4080fd28 4080f594
   stack_dump: 0x4080fcd0: 00000003 4080fe48 00000000 42003718 00000000 
00000000 00000036 4080fdc0
   stack_dump: 0x4080fcf0: 4080fd28 00000065 00000000 42014e3e 4080e370 
4080fd28 4080fe80 4080f5c0
   stack_dump: 0x4080fd10: ffffffff 00000003 4080fd10 4201af4c 42037000 
42037000 4080fd44 40030df6
   stack_dump: 0x4080fd30: 4080fd60 fffffff4 00000088 00000010 00000004 
00000000 00000000 00000005
   stack_dump: 0x4080fd50: 00000000 00000000 00000083 42037834 00000000 
000007d0 4080f640 4080f670
   stack_dump: 0x4080fd70: 420375e8 4080f45c 4080f498 4200bd6e 4080903c 
4080f45c 408090ac 4200b362
   stack_dump: 0x4080fd90: 4080903c 4080f45c 00000000 42037000 42037000 
42037000 408090ac 42037000
   stack_dump: 0x4080fdb0: 40809040 4080905c 4080908c 4201b088 953a032b 
2d946d04 9553d770 9715fd64
   stack_dump: 0x4080fdd0: 5e5de1aa 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   stack_dump: 0x4080fdf0: 00000000 00000000 00000000 00000000 00000000 
4080f2a0 4201afe4 4200aa38
   stack_dump: 0x4080fe10: 00000000 00000000 00000001 4080f660 00000000 
00000000 00000000 4200803c
   stack_dump: 0x4080fe30: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   sched_dumpstack: backtrace| 2: 0x4201a580
   dump_tasks:    PID GROUP PRI POLICY   TYPE    NPX STATE   EVENT      SIGMASK 
         STACKBASE  STACKSIZE   COMMAND
   dump_tasks:   ----   --- --- -------- ------- --- ------- ---------- 
---------------- 0x4080b0c0      2048   irq
   dump_task:       0     0   0 FIFO     Kthread -   Ready              
0000000000000000 0x4080d340      2016   Idle_Task
   dump_task:       1     1 100 RR       Task    -   Waiting Semaphore  
0000000000000000 0x4080e798      1976   nsh_main
   dump_task:       2     2 100 RR       Task    -   Running            
0000000000000000 0x4080f670      2000   hmac
   sched_dumpstack: backtrace| 0: 0x4200d120
   sched_dumpstack: backtrace| 1: 0x4200d5d8
   sched_dumpstack: backtrace| 2: 0x4201a580
   
   ```
   
   New logs:
   ```
   nsh> hmac
   ...
   hmac sha1 success
   hmac sha1 success
   hmac sha1 success
   hmac sha1 success
   hmac sha1 success
   hmac sha256 success
   hmac sha256 success
   hmac sha256 success
   hmac sha256 success
   hmac sha256 success
   ...
   nsh> 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to