PCI pass through is the ability of a virtualized guest system to directly access PCI hardware. Pass through for dedicated GPUs has just recently been added to the Linux kernel-based virtual machine. Soon afterward, users began to find that switching on nested page tables (NPT), a technology intended to provide hardware acceleration for virtual machines, had the opposite effect on AMD platforms and slowed frame rate down to a crawl.
Annoyed by this [gnif] set out to to fix the problem. His first step was to run graphics benchmarks to isolate the source of the problem. Having identified the culprit in the GPU, [gnif] began to read up on the involved technology stack. Three days of wrapping his head around technical docs allowed [gnif] to find the single line of code that resulted in a faulty memory set up and to implement a basic fix. He then passed the work on to [Paolo Bonzini] at patchwork.kernel.org, who released a more refined patch.
The bug affecting PCI pass through had been around for ten years and had received little attention from the manufacturer. It gained prominence when graphics cards were affected. In the end it took one very dedicated user three days to fix it, and then another day to roll out a patch for Open Source operating systems. In his notes [gnif] points out how helpful AMDs documentation was. With the right to repair in debate, DRMed technical docs and standards locked behind paywalls, [gnif]’s story is a reminder of the importance of accessible quality documentation.


We have to admit that we raised a wary eyebrow as we first watched [MakerMan]’s video below. We thought it was going to be just another hoverboard hack at first, but as we watched, there were some pretty impressive fabrication skills on display. Yes, the project does start with tearing into a defunct hoverboard for parts, primarily one wheel motor and the battery pack. But after that, [MakerMan] took off on a metalworking tear. Parts of the hoverboard chassis were attached to a frame built from solid bar stock — we’ll admit never having seen curves fabricated in quite that way before. The dead 18650 in the battery pack was identified and replaced, and a controller from an e-bike was wired up. Fitted with a thumb throttle and with a bit of padding on the crossbar, it’s almost a ride-upon but not quite. It seems to move along at quite a clip, even making allowances for the time-compression on the video.




