Kernel build bug - KVM_AMD and CRYPTO_DEV_CPP

About a week ago, I failed to build a Kernel for my new Ryzen 2700X working machine. After some time of configuring my kernel I run into some weird problems

The problem

I wanted to have a Kernel with KVM_AMD support enabled. The build was going on fine, until some weird linker errors appeared.

(Full output [Pastebin])

Since I'm a Kernel rookie, it took me some time to realize what was going on. A google search didn't revealed a solution, other than something similar on Unix Stackexchange, that was not directly applicable for my case.

The problem persisted and is reproducible in linux-4.17.1 and linux-4.16.15, using this config file. Building linux-4.14.49 was doing fine. For any options that were not defined by the config file I chose the default suggestion.


Workaround

The problem arises, if CONFIG_CRYPTO_DEV_CCP_DD is compiled as module [=m], also if the SEV is not used. Enabling CONFIG_CRYPTO_DEV_CCP_DD to be compiled in the kernel [=y] is a workaround for the issue.

This commit already revealed the issue.

I had to Include the "Secure Processor device driver", that is found in Cryptographic API > Hardware crypto devices

Weirdly, the suggested solution from Unix Stackexchange was not solving the problem for me, neither was it causing problems. I could build the Kernel (4.17.1) with "Kernel-based Virtual Machine Support" set as module. But those are just my two cents, it might have been an issue some versions ago ...

Unluckily I cannot contribute to Unix Stackexchange yet (not enough reputation *sigh*), so I cannot improve the answer there.

Thanks to Richard!

Many thanks to Richard, who provided me with support, regarding nailing it down to a bug in the Kernel build system.

AMD releases amdgpu-pro driver 17.30

Just some time ago, I let myself go and wrote about how upset I was about the (missing) support for my new RX 470 on Linux.


Today AMD released the amdgpu-pro driver 17.30, with support for Kernel 4.10 and Xorg 1.19. So my setup is finally not useless anymore. Details are on the AMD download page.

I've just installed the driver without any problems, after a reboot it works just fine. Videos are playing and I could start Civilization Beyond Earth from Steam under Ubuntu 16.04.3 with HWE.

It's two and a half minutes to midnight

The doomsday clock is at two-and-a-half minutes to midnight. The doomsday clock is a illustration of how close we are to a man-made global catastrophe, published by " The Bulletin of the Atomic Scientists' Science and Security Board".

Last time it was at that level has been 1953, during the tests of the Hydrogen-Fusion bombs.

Source: Wikipedia

The main reasons are

  • Rise of nationalism
This already-threatening world situation was
the backdrop for a rise in strident nationalism
worldwide in 2016
  • Trump
Donald Trump, made disturbing comments about
the use and proliferation of nuclear weapons and
expressed disbelief in the overwhelming scientific
consensus on climate change.
  • Conflict USA and Russia
both countries (USA and Russia)
continued wide-ranging
modernizations of their nuclear
forces, and serious arms control
negotiations were nowhere to
be seen
  • North Korea
North Korea conducted
its fourth and fifth underground
nuclear tests and gave every
indication it would continue
to develop nuclear weapons delivery capabilities.
The full statement is available here.

I consider this bulletin as a calibration to reality and a big F**K YOU in the direction of nationalism and the disbelief in science.
Although I'm a big Fallout fan and like the concept of Vaultec Vaults, it's not that we should now go and dig a whole in case of some president having a loose finger on the Atomic Football, but it is worrisome.
And I use it as reason to motivate more people to do a HAM-radio course and buy equipment 🙂

GPX to GeoJson convert tool

I hacked a C++ tool for converting GPX files to GeoJson, because the only one I could find used Node.js. The tool is available on GitHub. Binaries are available for GNU/Linux, the tool should be compatible with MacOS and Windows (Not tested).


Runtime comparison with togeojson (Node.js)

And now with my tool


It's dirty, I wrote in in about an hour, but it does the job for my purposes and I want to share it in case someone else finds it useful.

Sapphire Nitro Radeon RX470

About a month and half ago I purchased a RX470 and I want to write my experience with the card so far. I am not happy.

Originally I wanted to have a nVidia GTX 970. But the RX470 had 8GB RAM instead of 4GB and, more interestingly, the double precision float operations should be significantly faster. I had terrible experiences with ATI Cards and Linux drivers in the past, but I thought, since they have made some progress, it should be also a problem of the past.

I was so wrong.


So, I picked up the card and build it into my computer. Display was ok, GRUB and the BIOS displays are ok but somehow my Ubuntu doesn't come up with it.

*sight*

Found out, AMD/ATI are not supporting Kernel Version larger than 4.8 - The DKMS driver doesn't build, because of an API change for linux/fence.c.

So I had to install Ubuntu 16.04 with Kernel 4.8. I had to uninstall my production system. I was really pissed.

After some some tries I managed to install the driver and was quiet happy for about a month, when a planned kernel update killed again the functionality. Of course, I forgot.'
So, again my production system was down. I though, well some time has passed, they have updated the driver for sure. Again, wrong. Even worse, AMD suggest to work with Ubuntu 16.04.02 and, quote

the recommended best practice is to install from 16.04.2 media but disable installation of updates.

Are you kidding me?!???? You are honestly recommending not installing Updates!??!?

I'm now stuck with the system and trying since two hours to get it back running and it's just a nightmare.


So, my conclusion so far: The hardware is cool and has nice specifications but the support for Linux drivers, even the mainstream versions, is still unacceptable.
I really hope they will improve their drivers for Linux.

I'm going back to nVidia.

OpenStreetMap Malaria Mapping

That's a #FaithInHumanityRestored post 🙂


In the past months, a volonteer group of the Humanitarian OpenStreetMap project have used satellite data to improve the OpenStreetMap data n different African countries. The aim was to improve the available map data to fight Malaria.

If you also like that such things happen, you might consider retweeting this tweet to spread the word.

Do good and tell about it!

Weblinks

Rotterdam: Mini World

In the coming days, some Blog posts about Rotterdam are to be expected 🙂


Rotterdam - Mini World

I start with Rotterdam Mini World.

In Mini World every minute is like an hour in real time. After 24 minutes you have lived through a whole day.

In the evening (Mini World time) the lights get dimmed and at night switched off. Now all the little mini lights in the city go on, trains and cars are driving with lights and the docks get illuminated.

Miniworld at night. All the little lights go on, the whole city is illuminated

24 minutes, 24 hours. Amaizing insights into a beautiful world. It's worth a trip there!
Address: Weena 745, Rotterdam.

Have fun! 🙂


I've uploaded more of the pictures into my Rotterdam Web album.