kernel comparison
#4
Hello eard5849,
(07-10-2019, 05:49 AM)beard5849 Wrote: Me, an aarch64 development system on which I can test the NEON extended instructions.
So, I want to see "neon" in /proc/cpuinfo
see  bellow the links to ARM documentation..
Its related to NEON in ARMv7-A and ARMv7-R,
But maybe same behaviour( even though that there are changes between ARMv7 and ARMv8 )..

Sections 2.1.8 and 2.1.9:
NEON

Quote:A stock kernel is the kernel released by Linux at www.kernel.org, without modification.

If you use a Linux stock kernel to run your application, there is no need to manually enable the NEON unit.
The kernel automatically enables the NEON unit when it encounters the first NEON instruction.

If the NEON unit is disabled and the application tries to execute a NEON instruction, it throws an Undefined Instruction exception.

The kernel uses this exception to enable the NEON unit and then executes the NEON instruction.

The NEON unit remains enabled until there is a context switch.
When a context switch is required, the kernel might disable the NEON unit to save time and power.


Verify:
Code:
root@rockpro64:~# zcat /proc/config.gz | grep NEON
CONFIG_KERNEL_MODE_NEON=y

(07-10-2019, 05:49 AM)beard5849 Wrote: Also since the RK3399 has six cores, 4x A53 and 2x A72, I want to see that in /proc/cpuinfo.


I see that in '/proc/cpuinfo'
Code:
root@rockpro64:~# cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 1
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 2
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 3
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 4
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 2

processor : 5
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 2

Serial : 0000000000000000

root@rockpro64:~# pwd
/root
root@rockpro64:~# git clone --branch master https://github.com/tuxd3v/tools.git && cd tools
Cloning into 'tools'...
remote: Enumerating objects: 44, done.
remote: Counting objects: 100% (44/44), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 44 (delta 10), reused 42 (delta 8), pack-reused 0
Unpacking objects: 100% (44/44), done.
root@rockpro64:~/tools# ./aarch mtune

cortex-a72.cortex-a53

It is reported correctly

Regards,
tux


Messages In This Thread
kernel comparison - by Mentaluproar - 07-01-2019, 02:29 AM
RE: kernel comparison - by mknawabi - 07-09-2019, 09:21 PM
RE: kernel comparison - by beard5849 - 07-10-2019, 05:49 AM
RE: kernel comparison - by tuxd3v - 07-29-2019, 07:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Ethernet regression on Linux Kernel 6.5.4? Deathcrow 3 889 09-22-2023, 04:27 AM
Last Post: diederik
Question How do I compile an arbitrary kernel for U-Boot? Valenoern 3 1,183 06-16-2023, 10:54 AM
Last Post: CounterPillow
  [OS] SkiffOS and Buildroot for Rockpro64 w/ 5.17 kernel paralin1 1 1,869 05-08-2022, 03:26 PM
Last Post: paralin1
  Kernel OOPs triggered by big writes to ext4 FS ajtravis 1 1,487 04-04-2022, 05:29 PM
Last Post: ajtravis
  Manjaro ARM - Built-in ethernet was broken with kernel 5.14.1-1 (over now) Dendrocalamus64 2 2,332 09-11-2021, 08:58 PM
Last Post: t4_4t
  compiling a new kernel for overclocking on arch Mentaluproar 2 2,823 07-15-2021, 10:16 AM
Last Post: Mentaluproar
  Other boot options than Sdcard for linux 5.x kernel? MisterA 2 3,063 07-14-2021, 02:37 PM
Last Post: TRS-80
  ayufan kernel update unbootable TheHunter 2 3,221 03-12-2021, 05:17 PM
Last Post: LMM
  Kernel oops after big-ish writes gaeb 1 2,386 02-11-2021, 03:55 PM
Last Post: gaeb
  Kernel Update from 4.4 (Ayufan) on Ubuntu 20.04 db579 3 5,428 10-22-2020, 01:12 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)