how to enable Intel AES-NI support in linux kernel - linux-kernel

How to enable AES-NI support in linux kernel. While searching on internet I found that once AES-NI enabled there should be a line "CONFIG_CRYPTO_AES_NI_INTEL=m" in kernel configuration file. I tried to recompile my kernel version 2.6.35.6 but no luck. My server hardware configuration are (Supermicro 6026T, Intel® Xeon® Processor E5640) which support AES-NI.
with kind regards
lalit

Related

CXL.Cache support in Linux Kernel

I am going through the CXL support in Linux Kernel and I found that there is no function or support for cxl.cache. I'm confused if the cache part is not yet implemented in linux kernel or if the kernel should not have access to the cache commands?
(I have seen up to the latest Kernel release, 5.19)

Can we use U-Boot to boot the Linux for x86-64 system?

Is it possible to boot Linux kernel using U-Boot in x86-64 machine?
Linux can boot directly from a variety of firmware implementations including U-Boot. As for loading an OS, U-Boot supports directly booting a 32-bit or 64-bit Linux kernel as part of a FIT image. It also supports a compressed zImage.
Check the links here and here

Got Android Studio installation error

I am kinda new to Android Studio & stuff. So today, I was installing the Android Studio with the SDK Manager. All was going smooth until an error came up which says:
Unable to install Intel HAXM
Your CPU does not support required features (VT-x or SVM).
Unfortunately, your computer does not support hardware accelerated virtualization.
Here are some of your options:
Use a physical device for testing
Develop on a Windows/OSX computer with an Intel processor that
supports VT-x and NX
Develop on a Linux computer that supports VT-x or SVM
Use an Android Virtual Device based on an ARM system image (This
is 10x slower than hardware accelerated virtualization)
I've attached a pic of my system specs. Can someone please throw some light on this issue?
Thanks
It is because you had not intialize virtual technology in your device.You Need to go in BOOT Option before starting WINDOWS OS and enable VT-x from there>
The option of enabling Virtual technology is putted in different option depends on device manufacturer
Edit: Android Studio emulator won't run on Windows with an AMD processor. The error message is kind of misleading, as it suggests the problem is with your CPU. But it is within the troubleshoot message: "Windows/OSX computer with an Intel processor". Basicallly, that means it is not going to work properly in your current setup. Either try installing Linux and running Android Studio on that (which might come with its own issues), using a physical device for testing or use the slow ARM images.
You are using an AMD processor. SVM is AMD technology and VT-x is Intel technology. So you won't be able to get VT-x to run, but SVM might be possible.
As another poster had suggested, virtualization may have been disabled in the BIOS. There may be an option to enable virtualization. It does however seem to happen that virtualization is activated in the BIOS and Android-Studio does not recognize that. I have not figured out how to fix that either.
You could use the emulator with an ARM image, which will be very slow. Alternatively, you could use another emulator that is not integrated into Android-Studio.

Linux kernel 3.9 KVM for ARM processor

Linux kernel 3.9 support ARM processor for KVM. (http://kernelnewbies.org/Linux_3.9)
There should be CPU H/W support for KVM such as Intel VT or AMD-V. So, my questions are:
What kind of ARM processors can be used for KVM?
What ARM technologies enables KVM on ARM?
Best Regards.
I found this information from Linux kernel commits (http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=749cf76c5a363e1383108a914ea09530bfa0bd43).
Only supported core is Cortex-A15 for now.
And, ARM Coretex A15 provides H/W Virtualization Extension and LPAE(Large Physical Address Extension). Please see this document for more information.
I collected some related information in my blog. It's written in Korean, but you can use Google translate.

How to turn off Turbo Boost temporarily?

In our application we have many versions of the same routine optimized for different kind of processor architectures. During install we run performance tests and select the best version of routine.
Latest processors can boost their frequencies if few cores are in use, so sometimes our tests peeking wrong version of routine. Is there some way to temporarily turn off Turbo Boost?
I don't know the opcode for enabling/disabling turbo boost directly, but apparently it's possible because TMonitor - which is a Windows application - can do it at runtime.
There are MSR registers (https://en.wikipedia.org/wiki/Model-specific_register) in Intel CPUs to disable/enable per-core turbo boost. In linux, there are msr-tools package which allow root to read/write to MSR registers. There are two posts about Turbo Boost disabling/enabling in Linux:
https://askubuntu.com/questions/619875/disabling-intel-turbo-boost-in-ubuntu "Disabling Intel Turbo Boost in ubuntu", answer by Maythux from 2015
http://luisjdominguezp.tumblr.com/post/19610447111/disabling-turbo-boost-in-linux
Disabling Turbo Boost in Linux, Luis J. Dominguez P, 2012-2013; Sandy Bridge - "38th bit of the 0x1a0 register."
http://notepad2.blogspot.com/2014/11/a-script-to-turn-off-intel-cpu-turbo.html
And there is kext for OSX to do the same: Disable Turbo Boost on Core i7 Mac?
In windows OS you can add the following reg key.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\be337238-0d82-4146-a960-4f3749d470c7]
"Attributes"=dword:00000002
Then in advanced power settings you will get new option that allows you turning off turbo boost.

Resources