Skip to content

Commit

Permalink
Report KernelPageSize when not 4kB
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKaiser committed Oct 24, 2023
1 parent d132d14 commit b7f09af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions results/ARMv8-Crypto-Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Crawling through [sbc-bench results collection](../Results.md) comparing +70 dif
| ARM core | MHz | aes-256-cbc | score/mhz |
| :----: | ----: | :----: | :----: |
| Cortex-A35 | | | |
| [PX30](http://ix.io/4IT1) | 1235 | 268860 | 218 |
| [RK3308](http://ix.io/4sNe) | 1300 | 282030 | 217 |
| [S905Y4](http://ix.io/4bbv) | 2000 | 436550 | 218 |
| Apple Firestorm | | | |
Expand Down
10 changes: 9 additions & 1 deletion sbc-bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4236,7 +4236,11 @@ LogEnvironment() {
# kernel info
KernelVersion="$(uname -r)"
ShortKernelVersion="$(awk -F"." '{print $1"."$2}' <<<"${KernelVersion}")"
echo -e " Kernel: ${KernelVersion}/${CPUArchitecture}${VirtOrContainer}"
if [ -r /proc/self/smaps ]; then
KernelPageSize="$(awk -F" " '/KernelPageSize/ {print $2$3}' /proc/self/smaps 2>/dev/null | head -n1)"
[ "${KernelPageSize}" != "4kB" ] && PageSize=" (${KernelPageSize})" || PageSize=""
fi
echo -e " Kernel: ${KernelVersion}/${CPUArchitecture}${PageSize}${VirtOrContainer}"
# kernel config
KernelConfig="/boot/config-${KernelVersion}"
if [ -f "${KernelConfig}" ] ; then
Expand Down Expand Up @@ -7144,6 +7148,10 @@ GuessSoCbySignature() {
# Kendryte K510: Dual-core 64-bit RISC-V https://canaan.io/product/kendryte-k510
grep -q k510 <<<"${DTCompatible}" && echo "Kendryte K510"
;;
*thead,c908*thead,c908)
# Kendryte K230: Dual-core 64-bit RISC-V https://canaan.io/product/kendryte-k230
echo "Kendryte K230"
;;
*thead,c910*thead,c910|1?1?|10rv64imafdcsu10rv64imafdcsu)
# T-Head C910: Dual-core XuanTieISA (compatible with RISC-V 64GC) https://www.t-head.cn/product/c910?lang=en
grep -q c910 <<<"${DTCompatible}" && echo "T-Head C910"
Expand Down

0 comments on commit b7f09af

Please sign in to comment.