Windows 10 1803 Upgrade fails with 0xc1900101? Veracrypt installed?

If the 1803 update of Windows 10 fails repeatedly with the error code 0xc1900101 and if you are using full system encryption with Veracrypt 1.22 or older, you should upgrade to the latest beta release or the latest stable release if 1.23 or later is available.  Excerpt from the changelog of 1.23 Beta 2:

Changes between 1.22 and 1.23-BETA2 (5 July 2018) :
  - Windows:
     * Add compatibility of system encryption with Windows 10 upgrade using ReflectDrivers mechanism.

If this error occurs, after the update restart you will end up in some kind of recovery menu. If you select "continue with the current windows version", the computer will reboot and the previous non-updated windows will be started. In  the event log (eventvwr)  under Windows Logs/System there should be at least one error with WindowsUpdateClient as source with the event ID 20 and code 0xc1900101 in the text.

The discussion in this thread (German) was not helpful as no logs in this %windir%\Panther directory existed. 

Rubrik: 

GEZ/Beitragsservice mit DSGVO nerven

Interessanterweise hat die GEZ aka "Beitragsservice" anscheinend schon mit Auskunftsersuchen nach der DSGVO gerechnet und dafür ein Webformular zur Abfrage erstellt: https://www.rundfunkbeitrag.de/der_rundfunkbeitrag/beitragsservice/datenschutz/datenauskunft/index_ger.html Netterweise wird nicht nur eine Downloadmöglichkeit angeboten, sondern man kann sich die Daten schön bequem per Brief zusenden lassen, das erhält dann auch den Job des Briefträgers.

Rubrik: 

Lenovo Thinkpad E485 Review (english)

 
The Lenovo Thinkpad Edge E485 is the AMD counterpart to the Thinkpad Edge 480. The Edge models E585 and E580 are variants with a 15.4" display and numeric keypad. It was released two weeks ago, but so far there has now been much press coverage or reviews 
 
Let's start with the outer appearance. The E485 has a black plastic shell with aluminum on the outside of the display lid which gives it a high-value feeling. Unfortunately when typing or resting the hand on the right side there is rattling coming fromt the right side (Youtube Clip 1, Clip 2). As I planned to upgrade the E485 with more RAM and a 2nd SSD, I had also a look from where the rattling comes. How to fix this is described below. Although the bottom case uses screws, it also is clipped to the top side. During my first try to remove the bottom case I broke a few clips and now it has a small gap in one corner :(.
For more information on opening the notebook I can recommend the official maintenance manual (https://download.lenovo.com/pccbbs/mobiles_pdf/tp-e480-e485-r480-hmm-en.pdf and this Youtube video (https://www.youtube.com/watch?v=IDkoD0iF-Xs
 
The battery is not replacable without removing the bottom cover, but at least it is replaceable and not glued in. I hope Lenovo will offer spare batteries. Other components like NVME, SSD/HDD, RAM & WiFi-module are replacable, so adding a 2nd SODIMM and SSD was easy. Oddly there was a folded ESD bag glued with duct tape beneath the drive dummy in the 2.5" slot. 
 
The preinstalled Windows 10 Pro was pleasantly free of 3rd party bloat ware. A few Lenovo applications are installed, but sofar I have not found use for them. The other useless preinstalled crap like MS Office demo, Candy Crush App downloader and so are part of Windows 10. Unfortunately for Linux you need some boot parameter as a work around.
 
The display showed has a hot pixel in the first days, but it vanished after some time (it's back :( ). Especially in b/w Linux terminals a constant bright pixel is very annoying. I hope it's gone forever. The display itself is a anti-glare IPS panel. 
 
A constant pain for me is the keyboard, with the 2012 generation Lenovo dropped the old keyboard layout with the separate navigation block. At least Lenovo does not move them into an additional column on the right side, obscuring enter, right shift, backspace and so on. The noisy touchpad of the 2014 was improved and does not click so loud anymore. The separate buttons for the trackpoint are back, but not the buttons on the bottom of the touchpad, so there's stil no haptic feedback if you are in the right zone for a left or right click. There is a nice 4 your old rant on Youtube: https://www.youtube.com/watch?v=doEZMNXz1JY. The Thinkpad 25 might have become a interesting alternative, but Lenovo botched that https://www.youtube.com/watch?v=UxQGhqF60zE
 
During use the notebook gets a little bit warm, but not hot. This might be the reason the CPU/GPU combo is set to 15 Watt TDP, theoretically the R5 2500U could be configured to 25 Watt. Due to the limited cooling in a notebook the turbo frequencies cannot keep for long and not on all cores. With load on all cores 1-2 cores can go up to 3-3.6GHz, but the others fall below the 2.0 Ghz base frequency. So I doubt that the larger R7 2700U can make better use of its additional 200 MHz base clock and turbo clock. It's listed on the Lenovo homepage, but currently not  available in the configurator.
 
I am quite happy with the performance. Despite running Veracrypt, antivirus and a lot of background process it never feels sluggish. It is surely not meant as a gaming machine, but for graphically lighter games it should be sufficient. The Ryzen CPU has a dual channel memory controller and adding a second SODIMM helps at least in 3DMark. In Time Spy a second memory module yielded a 30% higher score. Additionally the Steam achievements "What's the Rush?" (<5FPS in Time Spy) and "OC Madness" ("Only experts should try to push their CPU more than 50% over stock"; 2 GHz base clock/3.6 Ghz turbo). Sure other applications will benefit from more memory and bandwidth. Other vendors only have only one memory module and no slot for a second. 
 
I did a comparison test with the Dell Notebook in september and the E485 showed a nice performance increase in 3DMark.
 
3DMark Benchmarks
Benchmark Single Channel Dual Channel Dual Channel 2018-09-07 E480 w/o discrete GPU E480 + Radeon 550
Sky Diver 5932 7085 (+20%) 7727 (+9%) 346(?) - 4587(?)

4424(?) - 12896(?)

Time Spy 585 761 (+30%) 762 300 - 433 913 - 997
Fire Strike   1956 2212 (+13%)    

(Note: The E480 values are taken from the 3DMark Database)

Unigine Heaven Benchmark
Resolution FPS Score Min FPS Max FPS
720p 1st run 40.6 1023 8.3 77.4
720p 2nd run 40.2 1012 16.9 79.5
1080p 1st run 19.9 502 6.6 37.0
1080p 2nd run 18.9 476 13.0 34.5

7-Zip benchmark CPU-Z Benchmark

 
Regarding battery life I cannot say much, but interestingly Lenovo gives only 9.37h (was 9h earlier) runtime on battery for the E485, but the E480 with the same battery is supposed to run 13h. The longest estimate I got was around 6-7 hours with very light web browsing and work and 25% brightness. With 45Wh battery capacity and 9 hours runtime the device must not consume more than 5 Watt. I only achieved this in Windows with 0% screen brightness and everything closed except BatteryMon. Not very useful.. but to be fair I must admit I added a second RAM module and an old Samsung SSD, which was not configured in Windows. Other people also complain about battery time.
 
Another bit letdown is the audio quality. I do not expect much from integrated laptop speakers, but the audio quality on headphones was surprisingly bad. At first I thought the stream was the problem with too low bitrate or something like this, so I went on debugging my audio server, I even ripped the CD again, but in end it was the DAC in the notebook. I tried a couple of settings and profiles, but at least for music it was just awful. 
 
The keyboard issue, where fast typing caused certain key combinations to get registered in a different, was solved after some weeks with a BIOS update. Funny story, I opened a support ticket for this issue in the hope of getting this BIOS update early, I got a reply quite fast, but did not read it as I had no time and was out of town. The next day fedex rang at my door and wanted to pickup the notebook, to my surpise. That was quite fast, but Lenovo or Fedex really should ask for when the customer is at home for the pickup. 
 
During boot, you can press enter to interrupt boot and then go to the BIOS or Boot Manager. The funny thing is that this stopped worked at some point. F2 and F12 were still working and the enter key worked in UEFI setup and in the boot loaders, but the enter key did not stop the boot anymore. At that point you see the red Lenovo log and the message "Press Enter to interrupt boot". 
 
On the plus side, one the of the updates also gave a nice performance boost. (I will update the tables above later). Updated.
 
And one comment on the pricing, for RAM and NVMe it is cheaper to downgrade the standard option and buy the a larger device yourself than buying the option. In the end you pay less and have additionally the preinstalled module you can keep or sell. As for the 2.5" drive slot you can only buy HDDs, so if you want a second SSD, you have to install one on your owns  The possible configuration options are quite limited in comparison to the Intel based E480.  In Germany you can upgrade from 8GB RAM to 16GB for currently ~127€, if you do the upgrade yourself, you can buy one 8GB module with the same spec for 60€, but then you won't the Lenovo warranty. For the NVMe, you can save 70€ by downgrading the NVMe from 256GB to 128GB and buy a faster NVMe for the same price, or a for additional 30€ a NVMe twice as large. For the 2.5" you can choose between 2 HDDs or youi can install a SSD yourself. Funnily when buying from Lenovo you will get the 45Watt PSU, but for 1,19€ more (1€+VAT) you can upgrade to 65Watt PSU. 
 
Unspecified components built in: 
 
NVME

Samsung NVMe MZVLW256HEHP-000L7

RAM

Hyundai Hynix DDR4 2400 8GB HMA81GS6AFR8NUH CL-17-17-17-39 (Single Rank)

WLAN

Qualcomm Atheros QCA9377 Wireless Network Adapter

LAN

Realtek PCIe GBE Family Controller (RTL8111/8168/8411)

SD Adapter

BayHubTech Integrated MMC/SD controller (O2 Micro Inc., PCI)

Bluetooth Atheros USB based

Rattling

Real annoying is the metallic rattling on the right side. When I type or lay my hand on rest it rattles. This is really annoying and makes the notebook sound shoody. After a couple of tries it narrowed down to something that looks like a slot bracket with padding to keep the NVMe down. This bracked is clamped down on the short sides and fixed with a screw on one long side. Beneath the bracket is metal ventilation grille and beneath that are ventilation slits of the bottom case. I tried to clamp it tighter down with a piece of duct tape, but it did not work. I planned to to try double sided tape, but instead I removed the bracket under the assumption that the NVMe is sufficiently fixed in place. The rattle went away. My guess is that the E480 has the same issw No idea was wrong with my device as Lenovo was not able to reproduce this. 

I put the duct there, it did not help I put the duct there, it did not helpNoisy bracket

 

So, i think this is the last update. I sold the notebook and everything I have to say is written here. 

Rubrik: 

Lenovo Thinkpad E485 Review (deutsch)

 
Das Lenovo Thinkpad Edge E485 ist das AMD Ryzen Pendant zum Thinkpad Edge E480. Die Edge Modell E585 und E580 sind die gleichen Modelle mit 15,4" Display und Ziffernblock. Obwohl jetzt schon fast 2 Wochen alt gibt es kaum Nachrichten und Tests. 
 
Fangen wir mit den Äusserlichkeiten an. Das E485 hat ein schwarzes Gehäuse mit Aluminium Deckel was recht hochwertig wirkt, das restliche Gehäuse ist auch sehr stabil. Leider klapperte bei auf der rechten Seiten beim Tippen etwas, was diesen bislang guten Eindruck zunichte macht (Youtube Video 1, Video 2) . Da ich eh selber das Notebook noch um eine 2. SSD und 8GB RAM nachrüsten wollte, habe ich das Gehäuse geöffnet und mich mal auf die Suche gemacht. Wie man das behebt steht weiter unten. Leider ist das Gehäuse nicht nur geschraubt, sondern auch geclipt. Bei meinem 1. Versuch habe ich direkt mal ein paar Clips abgebrochen, so dass das Gehäuse an einer Ecke nicht mehr richtig schliesst. Zum Öffnen des Gehäuses kann ich neben dem Maintenance-Handbuch (https://download.lenovo.com/pccbbs/mobiles_pdf/tp-e480-e485-r480-hmm-en.pdf auch dieses Youtube Video empfehlen: https://www.youtube.com/watch?v=IDkoD0iF-Xs
 
Zwar ist der Akku nicht ohne öffnen des Gehäuses auswechselbar, aber immerhin ist der nicht veklebt Auch andere Komponenten wie NVMEe, SSD/HDD, RAM & WLAN Modul sind austauschbar. Etwas merkwürdig war dass eine gefaltete ESD-Tüte unter den HDD Dummy geklebt war. SSD und RAM Einbau war demnach einfach. Ich hoffe dass Lenovo den Akku auch als Ersatzteil anbieten wird. 
 
Das vorinstallierte Windows 10 Pro war erfreulich frei von 3rd-Party Bloatware, von Lenovo waren nur ein paar Tools installiert, der Rest war Teil von Windows (Office Demo, Candy Crush App downloader, etc). Linux läuft leider nur mit Workarounds (https://evilazrael.de/content/getting-linux-boot-lenovo-thinkpad-e485e585)
 
Das Display hatte am Anfang einen Hotpixel, also einen dauerleuchtenden Pixel, was vor allem in den schwarzweissen Linux Konsolen äusserst störend ist. mittlerweile ist der verschwunden. Hoffentlich dauerhaft. Das Display ist ein mattes IPS Display, recht angenehm zum Arbeiten. 
 
Dauerproblem für mich ist immer noch die Tastatur, seit mit der 2012er Generation der abgesetzte Navigationsblock weggefallen ist. Immerhin positioniert Lenovo diese Taste nicht in eine weitere Spalte rechts neben den normalen Tasten. Das nervtötende Klack-Klack Touchpad der 2014 Generation ist zum Glück rausgeflogen, das neue ist nicht mehr ganz so laut und es gibt auch wieder Hardwaretasten für den Trackpoint,  leider aber nicht für das Touchpad. Damit fehlt immer noch das haptische Feedback im richten Bereich für die rechte Maustaste zu sein. Bei Youtube gibt's nen schönen Rant dazu (https://www.youtube.com/watch?v=doEZMNXz1JY. Das Thinkpad 25 hätte ein guter Ersatz werden können, aber auch das hat Lenovo in den Sand gesetzt (https://www.youtube.com/watch?v=UxQGhqF60zE.
 
Im Betrieb wird das Notebook schon recht warm, verbennen tut man sich aber nicht.  Deswegen ist die TDP von CPU/GPU vermutlich auch auf 15 Watt reduziert, theoretisch könnte der R5 2500U bis 25W eingestellt werden. Problem ist halt wie gesagt vermutlich die Kühlung, und deswegen wird die CPU die Turbo Frequenzen auch nicht lange halten können. Daher bringt der angebotene R7 2700U mit seinen 200 MHz Basistakt vermutlich nicht viel mehr Leistung und bei Lenovo lässt der sich gerade nichtmals reinkonfigurieren. 
 
Die Leistung soweit ist ganz okay. Habe trotz Veracrypt, Virenscanner und zig Hintergrundprozessen nicht das Gefühl dass irgendwas träge wäre. Eine Spielemaschine ist das Ding sicherlich nicht, zum spielen grafischer nicht so anspruchsvoller Spiele sollte es tun. Der Ryzen hat einen Dual Channel RAM Controller und ein zweites DIMM Modul hilft zumindestens in 3DMark, bei Time Spy gab's 30% mehr Punkte und die Steam Achievments "What's the Rush?" (<5FPS in Time Spy) und "OC Madness" ("Only experts should try to push their CPU more than 50% over stock"; 2 GHz Basis-Takt/3,6 GHz Turbo). Sicherlich profitieren auch andere Anwendungen von mehr Speicher und theoretisch mehr Bandbreite. Ein Punkt für Lenovo dass hier nicht wie andere Hersteller nur ein Modul ohne Erweiterungsmöglichkeit verbauen. 
 
Im September habe ich einen Vergleichstest mit einem Dell Latitude 14 5495 durchgeführt und überraschenderweise hatte das E485 ein paar Prozent zugelegt. 
Benchmark Single Channel Dual Channel Dual Channel 07.09.2018 E480 w/o discrete GPU E480 + Radeon 550
Sky Diver 5932 7085 (+20%) 7727 (+9%) 346(?) - 4587(?)

4424(?) - 12896(?)

Time Spy 585 761 (+30%) 762 300 - 433 913 - 997
Fire Strike   1956 2212 (+13%)    

(Hinwies: Die E480 Werte sind aus der 3DMark Datenbank)

Unigine Heaven Benchmark
Resolution FPS Score Min FPS Max FPS
720p 1st run 40.6 1023 8.3 77.4
720p 2nd run 40.2 1012 16.9 79.5
1080p 1st run 19.9 502 6.6 37.0
1080p 2nd run 18.9 476 13.0 34.5

 

7-Zip Benchmark Results CPU-Z Benchmark

 
Zur Akkulaufzeit kann ich nicht viel sagen. Auffällig ist nur dass Lenovo bei gleicher Akkukapazität beim E485 nur 9,37h (war früher 9h) Laufzeit angibt, während das E480 13h lang laufen soll. Die beste Laufzeit die ich erreichte waren 6-7 Stunden mit sehr wenig Surfen, bisschen arbeiten und 25% Helligkeit. Bei einer 45Wh Batterie und einer Laufzeit von 9h kann man ausrechnen dass das Gerät nicht mehr als 5 Watt verbrauchen darf. Das habe ich in Windows hinbekommen.. mit Bildschirmhelligkeit auf 0%, alle Programme ausser BatteryMon geschlossen und ja nicht das Touchpad anschauen, weil sonst da ja ein paar CPU Zyklen verbraucht werden könnten. Nicht sehr nützlich, aber um fair zu sein muss ich dazu sagen, dass ich einen zweiten Speicherriegel und eine alte Samsung 830 SSD eingebaut habe, wobei die SSD nicht im Windows eingebunden war und im Powersaving Modus sein sollte. Andere beschweren sich auch über die Laufzeit. Praktisch ist dagegen dass man eine USB-C Powerbank nutzen kann, für ~45Euro kriegt man von Dodocool eine mit 72Wh (~60% mehr als der interne Akku) und 45Watt Spitzenleistung.
 
Ein anderes Problem war die Tonqualität. Ich erwarte nicht viel von eingebauten Lautsprechern, aber die Tonqualität am Kopfhörerausgang war erschreckend schlecht. Zuerst dachte ich es mein Musikserver hätte die Bitrate zu niedrig eingestellt und hab den erstmal gedebuggt, dann die CD erneut und verlustfrei neu gerippt, aber es wurde nicht besser, es liegt am DAC im Notebook. Ich hab auch verschiedene Einstellung und Profile in den Audioeinstellungen ausprobiert, aber es wurde nicht besser. 
 
Dann war da noch das Tastaturproblem, nach einem UEFI Update wuredn bestimmte Tastenkombinationen in der falschen Reihenfolge erfasst wenn man schnell genug tippte. "Der" wurde dann beispielsweise reproduzierbar zu "Dre". Ich dachte ich wäre zu blöd zum tippen bis mich jemand auf das Problem hinwies. Einige Wochen (~6-8) wurde das Problem mit einem weiteren UEFI Update behoben. Lustige Geschichte, ich hatte ein Support Ticket aufgemacht, in der Hoffnung das Firmware Update früher zu kriegen. Da kam auch schnell eine Antwort, ich hatte sie nur nicht gelesen, weil ich an dem Tag auswärts tätig und zu beschäftigt war. Am nächsten Tag hat dann Fedex geklingelt und wollte das Notebook mitnehmen, und ich wusste gar nicht was der von mir wolte. Der Zusteller ist dann ohne abgezogen. Das war überraschend schnell, trotzdem sollten Lenovo und Fedex vielleicht erstmal einen Termin vereinbaren anstatt einfach eine Abholung zu veranlassen. 
 
Während dem Booten wird ein Lenovo Splash Screen angezeigt mit dem Hinweis das man Enter drücken soll um den normalen Bootvorgang abzubrechen. Irgendwann ging das nicht mehr. F2 und F12 (F8?) für Bios und Bootmenü gingen noch, nur Enter tat's nicht mehr. 
 
Positiv war, wie gesagt, dass später nach einigen Updates ein paar Prozent mehr Leistung in 3DMark messbar waren. 
 
 
Noch ein Kommentar zur Lenovo Preispolitik. Bei Speicher und NVMe ist es billiger, einen Downgrade auf eine kleinere Größe zu machen und dann selber aufzurüsten als ein Upgrade zu konfigurieren. Neben dem günstigeren Preis hat man dann noch die gedowngradete Komponenten die man noch woanders verwenden kann. Zudem lässt sich als zweites Laufwerk nur eine HDD konfigurieren, keine SSD. Im Vergleich zum E480 ist die Auswahl an Optionen stark reduziert, das meiste wird gar nicht angeboten, bei 16GB RAM und 256GB NVMe ist Schluss. Aktuell kann man von 8GB  auf 16GB RAM upgraden für 127€. Macht man das Upgrade selber zahlt man für ein Modul mit den gleichen Specs 60€. Bei der NVMe kann man 70€ sparen und von 256GB auf 128GB downgraden und eine schnellere NVME zum gleichen Preis kaufen  und hat noch die 128GB NVMe über oder für 30€ mehr eine doppelt so große und hat immer noch die 128GB über. Natürlich hat man in beiden Fällen nicht die Lenovo Garantie für de Austauschkomponenten. Und für den 2,5" Slot bietet Lenovo nur HDDs an, eine SSD müsste man eh selber einbauen. Und es gibt bei Lenovo standardmässig nur das 45Watt Netzteil, das 65Watt Netzteil kostet gigantische 1,19€ Aufpreis.
 
Bei mir verbaute Komponenten die so nicht so detailliert in der Beschreibung stehen:
NVME

Samsung NVMe MZVLW256HEHP-000L7

RAM

Hyundai Hynix DDR4 2400 8GB HMA81GS6AFR8NUH CL-17-17-17-39 (Single Rank)

WLAN

Qualcomm Atheros QCA9377 Wireless Network Adapter

LAN

Realtek PCIe GBE Family Controller (RTL8111/8168/8411)

SD Adapter

BayHubTech Integrated MMC/SD controller (O2 Micro Inc., PCI)

Bluetooth Atheros USB based

Das Klappern

Richtig nervig ist ein Klappern auf der rechten Seite des Notebooks, wenn man dort tippt oder die Hand auf das Gerät legt. Das war richtig nervig und und das E485 "klang" billig. Hat mich ein paar Versuche gekostet das herauszufinden. Auf der rechten Seite ist eine Stück Metall das wie eine Slotblende aussieht und über der NVMe hängt und diese wohl nach unten drückt. Diese Slotblende ist auf einer der langen Seite angeschraubt, an den schmalen Enden aber nur so eingeklemmt. Da drunter ist dann ein Blechgitter, und das liegt auf den Lüftungsschlitzen der Plastikschale auf. Hatte ein Stück Klebeband draufgeklebt um es besser anzupressen, hat aber nicht geholfen. Wollte dann mit doppelseitigen Klebeband es dann auf's Gitter kleben, hab stattdessen aber die Blende ganz rausgenommen. Seitdem ist das Klappern weg. Vermutlich hat das E480 das gleiche Problem.Lenovo konnte das Problem nicht nachstellen, war wohl einfach ein Montagsgerät
 
 

Bottom Case NVMe Bracket with Duct TapeNVMe Bracket with Duct Tape (by me)

Rubrik: 

Getting Linux to boot on Lenovo Thinkpad E485/E585

Lenovo finally fixed this after 1 year! Install the UEFI update and remove the entries.
 
Please complain in the Lenovo forums about this issue: https://forums.lenovo.com/t5/ThinkPad-11e-Windows-13-E-and/ThinkPad-E485...
 
It took me a long time to get any Linux Distribution to work. This was a lot of trial and error. My results are:
  • Trying to boot 32bit Linux resulted in immediate reboots. No output before that happened.
  • Most Linux 64bit distributions can be booted by adding noapic (not noacpi!)  intremap=off ivrs_ioapic[32]=00:14.0 ivrs_ioapic[33]=00:00.1 to the kernel boot parameters
  • Recent Ubuntu (and most likely also Debian) based distributions need also the boot parameter spec_store_bypass_disable=prctl spec_store_bypass_disable=seccomp. Maybe other distributions/kernel from 2018 will need this, too. Seems that with Ubuntu 18.04 kernel 4.15.0-33 this is no longer needed. So try this omiting this parameter, and check that all devices you need are initalized (-> dmesg), then try seccomp, which disables the mitigations for less code and if still devices are missing, try prctl. 
 
With these parameters everything I tested works, the only drawback is that the fan(s?) run at full speedan  CPU fan works perfectly, if cold enough it will stop.
Without the noapic the system will crash before giving any output in debug mode. Without the spec_store_bypass_disable there will be a null pointer derefence in the USB driver/subsystem, with the stacktrace looking like
  • null pointer dereference in _raw_spin_lock
  • speculative_store_bypass
  • ssb_prctrl_set
  • arch_seccomp_spec_mitigate
  • do_seccomp
  • SyS_seccomp
  • do_syscall_64
  • entry_SYSCALL_64_after_hwframe
Sometimes the crash was triggered in switch_to_xtra or xhci_pci_suspend.
 

Update

After more testing it narrowed down to amd_iommu=off and then to intremap=off 

The final error is "timer doesn't work through interrupt-remapped IO-APIC".

 

crash stack trace

 

2nd Update

When booting Ubuntu, there is now a stack trace during GPU initialization:

[    1.973028] fbcon: amdgpudrmfb (fb0) is primary device
[    1.992315] [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 100 tries - tgn10_lock line:566
[    1.992384] WARNING: CPU: 7 PID: 199 at /build/linux-uT8zSN/linux-4.15.0/drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:190 generic_reg_wait+0xe8/0x120 [amdgpu]
[    1.992384] Modules linked in: amdkfd amd_iommu_v2 amdgpu(+) crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc chash i2c_algo_bit aesni_intel ttm aes_x86_64 drm_kms_helper crypto_simd glue_helper syscopyarea cryptd psmouse sysfillrect sysimgblt ahci fb_sys_fops i2c_piix4 libahci drm sdhci_pci r8169 nvme sdhci mii nvme_core wmi video i2c_scmi
[    1.992409] CPU: 7 PID: 199 Comm: systemd-udevd Not tainted 4.15.0-23-generic #25-Ubuntu
[    1.992410] Hardware name: LENOVO 20KU000NGE/20KU000NGE, BIOS R0UET45W (1.25 ) 06/22/2018
[    1.992459] RIP: 0010:generic_reg_wait+0xe8/0x120 [amdgpu]
[    1.992460] RSP: 0018:ffffa857c29bf198 EFLAGS: 00010297
[    1.992462] RAX: 0000000000000001 RBX: 0000000000000065 RCX: 0000000000000001
[    1.992463] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000246
[    1.992463] RBP: ffffa857c29bf1d8 R08: 0000000000000000 R09: 000000000000005e
[    1.992464] R10: 0000000000000002 R11: 0000000000000396 R12: 0000000000000001
[    1.992465] R13: ffff9aadbc798280 R14: 0000000000000100 R15: 0000000000000001
[    1.992466] FS:  00007f85d38bc680(0000) GS:ffff9aadbebc0000(0000) knlGS:0000000000000000
[    1.992467] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.992468] CR2: 00005644b2ea6cf8 CR3: 0000000430046000 CR4: 00000000003406e0
[    1.992469] Call Trace:
[    1.992524]  tgn10_lock+0xa2/0xb0 [amdgpu]
[    1.992574]  program_all_pipe_in_tree+0x804/0x8b0 [amdgpu]
[    1.992621]  ? amdgpu_cgs_write_register+0x14/0x20 [amdgpu]
[    1.992668]  ? generic_reg_update_ex+0xe6/0x150 [amdgpu]
[    1.992714]  ? amdgpu_cgs_read_register+0x14/0x20 [amdgpu]
[    1.992763]  dcn10_apply_ctx_for_surface+0x498/0x4f0 [amdgpu]
[    1.992811]  dc_commit_state+0x2aa/0x500 [amdgpu]
[    1.992862]  amdgpu_dm_atomic_commit_tail+0x2cd/0xa50 [amdgpu]
[    1.992899]  ? amdgpu_bo_pin_restricted+0x1b5/0x2a0 [amdgpu]
[    1.992948]  ? dm_plane_helper_prepare_fb+0x181/0x240 [amdgpu]
[    1.992957]  commit_tail+0x42/0x70 [drm_kms_helper]
[    1.992963]  drm_atomic_helper_commit+0x10c/0x120 [drm_kms_helper]
[    1.993010]  amdgpu_dm_atomic_commit+0x87/0xa0 [amdgpu]
[    1.993026]  drm_atomic_commit+0x51/0x60 [drm]
[    1.993031]  restore_fbdev_mode_atomic+0x178/0x1e0 [drm_kms_helper]
[    1.993037]  restore_fbdev_mode+0x32/0x140 [drm_kms_helper]
[    1.993043]  ? _cond_resched+0x19/0x40
[    1.993048]  drm_fb_helper_restore_fbdev_mode_unlocked.part.32+0x28/0x80 [drm_kms_helper]
[    1.993053]  drm_fb_helper_set_par+0x43/0x70 [drm_kms_helper]
[    1.993058]  fbcon_init+0x493/0x670
[    1.993062]  visual_init+0xdc/0x140
[    1.993065]  do_bind_con_driver+0x207/0x420
[    1.993067]  do_take_over_console+0x82/0x1a0
[    1.993070]  do_fbcon_takeover+0x5c/0xb0
[    1.993072]  fbcon_event_notify+0x58d/0x780
[    1.993077]  notifier_call_chain+0x4c/0x70
[    1.993078]  blocking_notifier_call_chain+0x43/0x60
[    1.993081]  fb_notifier_call_chain+0x1b/0x20
[    1.993082]  register_framebuffer+0x24d/0x360
[    1.993088]  __drm_fb_helper_initial_config_and_unlock+0x1fc/0x400 [drm_kms_helper]
[    1.993093]  drm_fb_helper_initial_config+0x35/0x40 [drm_kms_helper]
[    1.993130]  amdgpu_fbdev_init+0xcd/0x100 [amdgpu]
[    1.993166]  amdgpu_device_init+0xe6c/0x1620 [amdgpu]
[    1.993202]  amdgpu_driver_load_kms+0x8b/0x2e0 [amdgpu]
[    1.993210]  drm_dev_register+0x149/0x1d0 [drm]
[    1.993245]  amdgpu_pci_probe+0x113/0x150 [amdgpu]
[    1.993250]  local_pci_probe+0x47/0xa0
[    1.993253]  pci_device_probe+0x145/0x1b0
[    1.993257]  driver_probe_device+0x31e/0x490
[    1.993258]  __driver_attach+0xa7/0xf0
[    1.993260]  ? driver_probe_device+0x490/0x490
[    1.993262]  bus_for_each_dev+0x70/0xc0
[    1.993264]  driver_attach+0x1e/0x20
[    1.993265]  bus_add_driver+0x1c7/0x270
[    1.993266]  ? 0xffffffffc0671000
[    1.993268]  driver_register+0x60/0xe0
[    1.993269]  ? 0xffffffffc0671000
[    1.993270]  __pci_register_driver+0x5a/0x60
[    1.993310]  amdgpu_init+0x96/0xa9 [amdgpu]
[    1.993314]  do_one_initcall+0x52/0x19f
[    1.993318]  ? __vunmap+0x81/0xb0
[    1.993320]  ? _cond_resched+0x19/0x40
[    1.993323]  ? kmem_cache_alloc_trace+0xa6/0x1b0
[    1.993326]  ? do_init_module+0x27/0x209
[    1.993328]  do_init_module+0x5f/0x209
[    1.993330]  load_module+0x191e/0x1f10
[    1.993334]  ? ima_post_read_file+0x96/0xa0
[    1.993336]  SYSC_finit_module+0xfc/0x120
[    1.993337]  ? SYSC_finit_module+0xfc/0x120
[    1.993340]  SyS_finit_module+0xe/0x10
[    1.993341]  do_syscall_64+0x73/0x130
[    1.993344]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[    1.993345] RIP: 0033:0x7f85d33c6839
[    1.993346] RSP: 002b:00007fff88d70fc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    1.993347] RAX: ffffffffffffffda RBX: 00005644b2e8bfc0 RCX: 00007f85d33c6839
[    1.993348] RDX: 0000000000000000 RSI: 00007f85d30a50e5 RDI: 0000000000000014
[    1.993348] RBP: 00007f85d30a50e5 R08: 0000000000000000 R09: 00007fff88d710e0
[    1.993349] R10: 0000000000000014 R11: 0000000000000246 R12: 0000000000000000
[    1.993350] R13: 00005644b2e8aef0 R14: 0000000000020000 R15: 00005644b2e8bfc0
[    1.993351] Code: 31 f6 44 8b 45 10 44 89 e1 48 c7 c7 a1 87 60 c0 89 45 d4 52 48 c7 c2 e8 0d 60 c0 e8 83 ad c9 ff 41 83 7d 20 01 58 8b 45 d4 74 02 <0f> 0b 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 c7 45 c4 23 
[    1.993375] ---[ end trace 7e3e1ff95baa3ffb ]---

That's funny, a colleague had the same issue with systemd-udevd today on ouf our servers. With a completely different driver .

3rd Update (2018-07-29)

Ok, this is really a firmware bug, the ACPI IVRS table lacks at least one entry. Adding ivrs_ioapic[32]=00:14.0 instead of intremap=off is sufficient to make the system boot until Lenovo releases an UEFI update with a working IVRS table. At least UEFI 1.27 (2018-07-24) needs this override. And spec_store_bypass_disable=prctl is still needed for Ubuntu & co. 

The clue is the line "[Firmware Bug]: AMD-Vi: IOAPIC[32] not in IVRS table". I decompiled the ACPI tables, started to read the AMD documentation, but in the end I just guessed the 32 from the error message and 00:14.0 from the lspci output and the Stack Overflow/Ubuntu forum entries.  Interesting stuff, but too much to read in my little time. 

What was helpful is the Linux boot parameter amd_iommu_dump=1 which will dump information from the IVRS table:

[    0.851042] AMD-Vi: Using IVHD type 0x11
[    0.851401] AMD-Vi: device: 00:00.2 cap: 0040 seg: 0 flags: b0 info 0000
[    0.851401] AMD-Vi:        mmio-addr: 00000000feb80000
[    0.851430] AMD-Vi:   DEV_SELECT_RANGE_START  devid: 00:01.0 flags: 00
[    0.851431] AMD-Vi:   DEV_RANGE_END           devid: ff:1f.6
[    0.851870] AMD-Vi:   DEV_ALIAS_RANGE                 devid: ff:00.0 flags: 00 devid_to: 00:14.4
[    0.851871] AMD-Vi:   DEV_RANGE_END           devid: ff:1f.7
[    0.851875] AMD-Vi:   DEV_SPECIAL(HPET[0])           devid: 00:14.0
[    0.851876] AMD-Vi:   DEV_SPECIAL(IOAPIC[33])                devid: 00:14.0
[    0.851877] AMD-Vi:   DEV_SPECIAL(IOAPIC[34])                devid: 00:00.1
[    1.171028] AMD-Vi: IOMMU performance counters supported
 

Resolving devid 00:14.0 was easy via lspci:

 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)

but for 00:00.1 I have not found the device. If anybody knows how to list all device ids and their associate devices/drivers/etc, please mail me. 
 

4th Update (2018-09-01)

At least with Ubuntu kernel 4.15.0-33 spec_store_bypass_disable is no longer needed. At least for my e485. My assumption is that this was a kernel bug in the earlier kernels  with Spectre/Meltdown fixes.. Anyway, if you cannot boot or not all devices initialize, try the option seccomp and if that does not help try prctl. The option seccomp disables less spectre mitigations than prctl: 

https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/SpectreAndMeltdown/Mi...

5th Update (2018-09-07) 

Just installed BIOS/UEFI 1.32 which fixes the keyboard issue. But Linux still needs the IVRS Table overrride. 

I am currently testing the Dell Latitude 5495, which boots Linux out of the box, but has also a few warnings/errors in the kernel log. I checked their IVRS Table: 

[    0.000000] AMD-Vi: Using IVHD type 0x11
[    0.000000] AMD-Vi: device: 00:00.2 cap: 0040 seg: 0 flags: b0 info 0000
[    0.000000] AMD-Vi:        mmio-addr: 00000000fd900000
[    0.000000] AMD-Vi:   DEV_SELECT_RANGE_START devid: 00:01.0 flags: 00
[    0.000000] AMD-Vi:   DEV_RANGE_END devid: ff:1f.6
[    0.000000] AMD-Vi:   DEV_ALIAS_RANGE devid: ff:00.0 flags: 00 devid_to: 00:14.4
[    0.000000] AMD-Vi:   DEV_RANGE_END devid: ff:1f.7
[    0.000000] AMD-Vi:   DEV_SPECIAL(HPET[0]) devid: 00:14.0
[    0.000000] AMD-Vi:   DEV_SPECIAL(IOAPIC[32]) devid: 00:14.0
[    0.000000] AMD-Vi:   DEV_SPECIAL(IOAPIC[33]) devid: 00:00.1
[    0.000000] [Firmware Bug]: AMD-Vi: IOAPIC[4] not in IVRS table
[    0.000000] [Firmware Bug]: AMD-Vi: No southbridge IOAPIC found
[    0.000000] AMD-Vi: Disabling interrupt remapping
 

Compare the indexes with the Lenovo IVRS table. My uneducated guess is that these entries should be the same for all mainboards with (Mobile?) Ryzen processors as I assume (guess!! correct me if wrong) that these are CPU internal devices. Maybe the Lenovo IVRS entries are just off by one.

6th Update (2018-09-10)

Pilatomic in the comments pointed out that adding ivrs_ioapic[33]=00:00.1 solves a couple of issues, in his case issues with the SD Card reader. For me this works flawless for all my microSDHC cards, the only write errors I got were caused by ejecting the cards without unmounting them ;-)  Unfortunately I have found no way to remove entry 34 via kernel parameters, the parser will only accept well-formed parameters.So you will have wait for Lenovo to fix this ACPI table. I think by now they should know how to fix this and it's not a big change. But perhaps they do not care for Linux. 

Second Last Update (2018-09-10)

The story ends here for me. I just discarded all data on the SSDs, reimaged the NVMe with the factory image, cleaned up screen, keyboard, touchpad and case. And hopefully I will find a buyer for this fine notebook 

Why not the last update? I hope somebody will notify me when Lenovo releases a new UEFI version which fixes the IVRS ACPI table and Linux distributions will work out of the box. Then there will be a last update....

Another Update (2019-01-11)

According to this comment the IVRS overrides may not be needed anymore. And there are additional settings which should be set.

 

 

 

Xubuntu X11 does not start after update

After upgrading my Xubuntu 16.04 installation after a couple of weeks without updates, X11 was not able to start anymore. Only a black screen with a blinking cursor was shown. Ctrl-Alt-F1 to console worked but killed "X11". Easy solution: Remove oibaf drivers!

apt install ppa-purge
ppa-purge ppa:oibaf/graphics-drivers

Funny Keywords you may encounter during your voyage:

  • lightdm fails, check service lightdm status, look into /var/log/syslog
  • gpu-manager, either run from console via service gpu-manager
  • console-kit-daemon: GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
  • update-alternatives: error: no alternatives for x86_64-linux-gnu-gfxcore_conf
  • /etc/modprobe.d is not a file (that is noise)
  • gpu-manager Error: can't open /lib/modules/<your kernel version>/updates/dkms

Ulefone Armor 2

Lieber mehr Geld bei Amazon für das Gerät ausgeben und dafür Gewährleistung nach deutschem Recht haben.

+ Massig RAM, Speicherplatz und CPU Power
+ Robustes stabiles Gehäuse
+ NFC funktionierte gut
+ Angeblicher großer Akku
+ Viele Sensoren, gutes GPS

? Die USB Abdeckung ist kaum zu öffnen, spröde Fingernägel haben da keine Chance.

- Wackelkontakt Kopfhöreranschluss. Wenn kein Kopfhörer angeschlossen dann flackert oft das Kopfhörersymbol in der Statusleiste, keine Tonausgabe möglich. Umgekehrt wird ein angeschlossener Kopfhörer nicht immer erkannt. Kann meinem Gerät liegen und muss kein Serienfehler sein...
- Akku hält nicht lange, hat hohe "Selbstentladung". Laut PCMark Battery Test bei automatischer Helligkeit in einem dunklen Zimmer hält das Handy 10h lang. Hört sich gut an. Manchmal entlädt sich das Handy mit 3-4% pro Stunde. Laut Android wäre das Display der Stromfresser. Leider war laut Verbrauchsanzeige dieses während der fallenden Kurve nicht an. Geht man per USB auf die Shell dann sieht man 2 Systemprozesse, die 50-60% CPU fressen. Vermutlich eher der Stromfresser
- Die Hardwaretasten an den Seiten sind zu exponiert. Trägt man das Handy in der Hosentasche sind häufige Neustarts an der Tagesordnung. Da hilft auch die Displaysperre nichts.
- Der Support ist per E-Mail nicht zu erreichen und wenn doch dann reagiert der nicht. Das Support-Forum ist auch mal down, voller Spam und eine Registrierung mangels Invite Code nicht möglich. Dieses Modell wird auch nicht im Support-Bereich gelistet.

- Laut Info ist der Stand der Sicherheitsupdates: 5. September 2017.

Linux Steam Games with XFS inode64 Issues

The steam versions of the following games may not run from an XFS filesystem with the inode64 option:

  • Borderlands 2
  • Divinity: Original Sin Extended Edition(?)
  • Europa Universalis IV
  • Sid Meier's Civilization: Beyond Earth
  • Sid Meier's Civilization V
  • Space Hulk
  • Space Hulk Ascension
  • Starcom
  • Stellaris
  • SteamWorld Heist

Possible workarounds are either moving the games to a steam library on a different filesystem like ext4, which is the default for many distributions, or to disable the inode64 mount option for XFS (which is a very bad idea!).

AMD RyZen & Windows 7 works

I managed to upgrade my existing 6 years Windows 7 installation to Ryzen. Hardware is ASUS Prime X370-Pro with a Ryzen 1800X. Just for a few tipps for people which do not like Windows 10 and want to live 2 more years with win7.

- Deinstall old AMD software beforehand. Windows kept on crashing during any normal startup. After a lot of safe mode boots it turned out to be the aoddriver service which belongs to the old AMD Overdrive. Looks like this software does not like Ryzen. I also removed the AMD DualCore optimizer.
- Having a PS/2 keyboard and mouse is also helpful as you will most like lose all USB controllers until you can install the drivers. Installing the drivers before the upgrade did not work. Having a PCIe USB controller with installed drivers may also be a working workaround
- Having a SATA DVD drives may also be handy: https://forums.anandtech.com/threads/ryzen-strictly-technical.2500572/pa...
- Have copied all drivers that come with the new mainboard can be also helpful when you are able to boot into system.
- When using TrueCrypt, removing the full system encryption makes any repair attempt easier as you can access your data.
- Create an disk image of your OS disk, just in case you get stuck and want to revert to your old hardware.

- The latest bios version 0504 seems to be not very stable. Sometimes the system won't boot or will hang and sometime it takes several seconds to get to the splash screen. Sometimes everything is fine.
- The first day I spent getting anything to work. Linux would hang during startup, windows would hang very early, even the installation DVD could not boot. Even memtest86 just resetted the machine. Turned out that one of the two DDR4 modules was bad. This is my first DDR4 hardware so I had nothing to crosstest.
- I undid the truecrypt encryption in a second PC went I was stuck. This put me probably in some UEFI/Legacy problem rooted in the history of the system. Win7 was installed in UEFI mode, then converted to Legacy Boot for Truecrypt. Now with truecrypt removed I get one or two messages from the Win7 bootloader. Stop code 225. Fortunately it lets me continue.

Rubrik: 

Account-Wirrwarr bei der Post

Ich versuche gerade online ein Einschreiben zu frankieren. Ich weiss gar nicht wieviele Accounts man dafür anlegen muss. eFiliale, Internetmarke, Portokasse, Postpay, Paket.de, EPost und bestimmt noch zig mehr. Wieviele Dienste mit eigener Datenbank hat die Pest eigentlich? 

Rubrik: 

Pages