HNHacker News
TopNewBestAskShowJobs

madushan1000

183 karma · joined July 25, 2017

submissionscomments
madushan1000··on Virtio-nvgpu: Near-native Nvidia GPU access inside a KVM guest
This is not a completely novel approach. This has been a thing in virtio-gpu for a while, it's called "DRM native context".
madushan1000··on Virtio-nvgpu: Near-native Nvidia GPU access inside a KVM guest
This has been a thing for AMD, Intel, and Qualcomm GPUs for a few years now. Search for "DRM native context". The only difference here is that you had to use mesa drivers before and now someone made it work with the Nvidia drivers.
madushan1000··on Arbitrary code execution in QubesOS via copy-to-VM error reporting backchannel
This is sort of a solved problem with virtio native context. You can just run mesa driver in the virtual machine and proxy it's ioctl calls to host kernel gpu driver.

I'm pretty sure all the major GPU drivers in mesa now supports this feature.

Wonder why QubesOS hasn't adopted this yet.

madushan1000··on A third world engineer responds to “RISC-V: They should have known better”
x86 is a horrible architecture, but most of the modern high performance processors are x86. They're only now getting around to making comparatively performant ARM chips.

Not having decently performing risc-v chips right now doesn't mean anything other than nobody spent enough time and money on accomplishing that.

madushan1000··on llama.cpp
Two days sounds like a lot, both llama.cpp and openvino only takes a few minutes to compile on any decent modern cpu.
madushan1000··on ESP32-S31: Dual-Core RISC-V SoC with Wi-Fi 6, Bluetooth 5.4, and Advanced HMI
you can run linux on riscv without an MMU. There is mainline support for Kendryte K210 chip, so it should be possible port to this chip provided you have enough PSRAM.
madushan1000··on ESP32-S31: Dual-Core RISC-V SoC with Wi-Fi 6, Bluetooth 5.4, and Advanced HMI
Interesting that they made a new chip with BLE+BR/EDR again. all the chips after the original ESP32 were BLE only. Hope this chip has good low power options so we can use it in Bluetooth audio workloads.
madushan1000··on Telnyx package compromised on PyPI
I really wish uv had some sandboxing built in.
madushan1000··on FreeCAD v1.1
What's wrong with OCCT?
madushan1000··on Show HN: Lingo – A linguistic database in Rust with nanosecond-level performance
Why not though, from what I can see from the docs, these databases supposed to be static and read only. At least when you use it on a device.
madushan1000··on RedoxFS is the default filesystem of Redox OS, inspired by ZFS
Redox Os is a microkernel operating system, completely different from monolithic kernels like Linux or BSD. I doubt it'll be easy to get existing ZFS drivers working on it at all.
madushan1000··on The state of Rust trying to catch up with Ada [video]
check here https://review.video.fosdem.org/overview
madushan1000··on VirtualBox KVM Public Release
Thank you for the info. I use AMD consumer GPUs, none of them unfortunately support SR-IOV afaik, there are some developments from google around virtio-gpu(DRM native context) I've been following, I was hoping this was something similar.
madushan1000··on VirtualBox KVM Public Release
I'm really curious about this, is it gpu para-virtualization or actual VFIO requiring built in support from the gpu hardware?
madushan1000··on AMD proposes an FPGA subsystem user-space interface for Linux
AMD gpu drivers are in the linux kernel. They support even very old hardware. And linux only drops drivers when there are no users. So amd cards stay supported for basically their entire lifetime.
madushan1000··on Maestro: A Linux-compatible kernel in Rust
It's also well known the driver is massive because there are hundreds of thousands of lines of auto-generated register access code in there. Not because it's inherently very complex.
madushan1000··on Maestro: A Linux-compatible kernel in Rust
What do you mean? most complicated parts of the gpu driver are in userland and handled by Mesa or equivalent. Kernel drivers expose a standard interface(DRM) which userspace drivers use to upload compiled gpu programs and manage gpu memory. Also, linux is not tied to gcc extensions, it can be compiled with llvm(clang) for a long time now.
madushan1000··on Unveiling secrets of the ESP32: creating an open-source MAC layer
I think bl602 shares the wifi rf/mac layer with esp32. There is a monitor mode implementation here https://github.com/stschake/bl60x-wifimon/
madushan1000··on VirGL – A virtual 3D GPU for use inside QEMU virtual machines
Virgl just sends opengl commands to the host. And it also has to copy some buffers back and forth. So it won't be as fast as vfio. But, there is a new feature called VirtGPU DRM native contexts which eliminates some of this overhead and run at near native speeds. Unfortunately it's only implemented for adreno/msm GPUs for now.I think there is work on the way for Intel and AMD GPUs.
madushan1000··on Milk-V Duo: A $9 RISC-V Computer
BTW, the chip vendor is sophgo, they have a github account with a lot of open source code for these chips here https://github.com/sophgo
madushan1000··on Milk-V Duo: A $9 RISC-V Computer
It has hardware IRQ muxing, this is the driver (https://github.com/smaeul/linux/commit/16eafe2078ebe9306d095...), we already use if for booting off sdcard/ethernet/usb etc..
madushan1000··on Ask HN: Project ideas for a Linux kernel module
The chip has complete-ish sdk here(https://github.com/bouffalolab/bouffalo_sdk) we use as "documentation". Datasheet and the reference manual are incomplete.
madushan1000··on Ask HN: Project ideas for a Linux kernel module
There is an effort to write linux drivers for peripherals in Pine Ox64 https://wiki.pine64.org/wiki/Ox64, the chip(BL808) documentation is not that great. But would be a good exercise to write some drivers.
madushan1000··on Linux Kernel Has Been Forcing Different Behavior for Processes Starting with “X”
Linux has a rule to "never break the userland". So if you maintain your own userland(libc/gui libs, etc..) even the latest kernel will run your old software.
madushan1000··on VirtualBox 7.0 Released – Full VM Encryption Support, New Direct3D Acceleration
Chromeos uses crosvm, not qemu. Qemu uses virgl to provide opengl, but I think vulkan is still in the works. You can use crosvm on Linux too,works pretty well, it uses a newer version of virgl to provide vulkan.
madushan1000··on Nvidia releases open-source GPU kernel modules
I guess nobody bothered to add vulkan support due to almost unusable performance without reclocking. Hopefully some work will get started with this news!
madushan1000··on Nvidia releases open-source GPU kernel modules
Probably all their "enterprise" feature lockouts(vgpu etc..) are in the gigantic firmware that's loaded into GSP. But things that matter to desktop users probably aren't going to be locked out this way.
madushan1000··on Nvidia releases open-source GPU kernel modules
With the kernel driver open source + redistributeble firmware I guess the graphics APIs can be provided by mesa.
madushan1000··on Can I have a smaller Prometheus
Not only that, we were able to reduce the total virtual machine ram where our monitoring was hosted by half and storage is more efficient too I think when we switched to victoriametrics.
madushan1000··on Tab Unloading in Firefox 93
Checkout toby extension, unfortunately only for chrome.
Page 1 of 3Next →