hardkernel / linux

Linux kernel source tree
Other
427 stars 408 forks source link

[Odroid C2][3.16.85] CNTKCTL_EL1 part left uninitialized leaving userspace high precision timing on CNTVCT_EL0 unavailable #423

Open grooverdan opened 2 years ago

grooverdan commented 2 years ago

From https://github.com/MariaDB/mariadb-docker/issues/338 and for @jmburges, @stoinov and others.

The result of this lack of initialization to 1 is a SIGILL on workloads like MariaDB as they attempt to obtain timing information.

The above issue has a working kernel module (bottom of issue) to set the cpu registers.

If you could make @geoffreyblake 's module available or rework the initialization in for each CPU into the core code that would be most appreciated.