Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 6y ago · link · parent

Isn't "Xe" the name of the non-integrated, PCIe graphics cards?

comment 6y ago · link · parent

At least the new generation SoC that's in the Pi 4 FINALLY FINALLY uses a GIC instead of a Broadcrap custom interrupt controller. Now EDK2 firmware can present it as a reasonable almost-SBSA-ish ACPI system :)

But of course it's still a bit weird. For example, XHCI (due to being attached through a bad PCIe host controller) can only DMA to the lower 3GB of memory. In FreeBSD, we've never had to implement DMA limits for ACPI devices, because no real system had this kind of limitation before, and now I've had to write this: https://reviews.freebsd.org/D25219

comment 6y ago · link · parent

apparently XHCI Streams

comment 6y ago · link · parent

> The native Intel USB3 UASP solution is only supported under Windows 8. To further complicate matters, not all Z77 motherboards support USB3 UASP. A license is required to implement UASP, and not all motherboard manufacturers are prepared to pass on the extra cost of this license to the end user

Sounds very cursed. I mean, I'm not a hardware vendor, I should not care, but licensing for something that's just another form of SCSI over USB sounds ridiculous.

comment 6y ago · link · parent

The Cortex-A53 is really weak. I wouldn't want to run an office suite on that either. Oh, and the Pi 3 was VERY limited by RAM.

"most office people, students, and so on" pretty much always do browse lots of modern websites, at the same time as running an office suite, audio player, and more stuff.

The A72 is really the "minimum viable CPU core" for desktop usage. Anything with less single-core performance is absolute hell and suffering.

comment 6y ago · link · parent

> Without UASP, a drive is mounted as a Mass Storage Device using Bulk Only Transport (or BOT), a protocol that was designed for transferring files way back in the USB 'Full speed' days

Wow, holy shit, TIL.. I was always assuming that USB drives were always SCSI — they show up as 'da' (Direct Attach) on FreeBSD after all.

Looking at umass driver source:

* The driver handles 3 Wire Protocols

* - Command/Bulk/Interrupt (CBI)

* - Command/Bulk/Interrupt with Command Completion Interrupt (CBI with CCI)

* - Mass Storage Bulk-Only (BBB) (BBB refers Bulk/Bulk/Bulk for Command/Data/Status phases)

* Over these wire protocols it handles the following command protocols

* - SCSI

* - UFI (floppy command set)

* - 8070i (ATAPI)

* UFI and 8070i (ATAPI) are transformed versions of the SCSI command set.

Huh, they are pretty much always SCSI, and "bulk only" is (unsurprisingly) only a USB transport level thing that doesn't change the command set.

I guess "UASP" is some sort of marketing term for Command/Bulk/Interrupt then..?

comment 6y ago · link · parent

Well, commercial vendors usually use AMI's modified version that has a proprietary fancy setup UI and whatever other crap. But for hobbyist custom firmware (these ARM systems, Chromebooks, etc) completely raw upstream EDK2 is totally fine.

Fun fact, System76 now runs slightly modified EDK2 (as a Coreboot payload) with a custom setup UI written in Rust: https://github.com/system76/firmware-setup

comment 6y ago · link · parent

Or, like, repurpose your previous desktop into a server when upgrading the desktop.

comment 6y ago · link · parent

SolidRun MACCHIATObin has one PCIe slot. Enough for a GPU! I have this, it's pretty good. Though I have to resort to USB-Ethernet since FreeBSD doesn't support the onboard NIC (and the driver isn't the easiest to port) :D

SolidRun HoneyComb LX2K has a bigger full size slot and an M.2 slot. I don't think bifurcation works but you do have two slots, you could run a GPU and a NIC or HBA at the same time, using an M.2 to PCIe-slot adapter. And/or use extension boards with PLX switches if you need more cards?

comment 6y ago · link · parent

Maybe. The chip closest to the Ethernet port has BCM on it..

comment 6y ago · link · parent

> bumps to allow for more PCIe MEMBAR space

huh! huh! can you have enough BAR space for an AMD GPU to run?

Rockchip RK3399 is infamous for having too little for GPUs..

comment 6y ago · link · parent

You can buy mini-ITX sized ones from SolidRun. They even run open source firmware (EDK2) that exposes most things as generic ACPI hardware.. well there's still quirks and hardware bugs of course :D

comment 6y ago · link · parent

Rockchip's PCIe is kind of a joke, you can't use a GPU there because there's not enough BAR space. But yeah, you could run an NVMe drive or a big NIC, I guess.

Also, the heterogeneous 2xA72+4xA53 CPU setup is ehh.. :/ What's really cool about the RPi4 is that there's four A72 cores. And now 8GB RAM. And https://rpi4-uefi.dev.

comment 6y ago · link · parent

> In the same experiment I did to calculate the amount of build time spent in LLVM, Rust spent 11% of debug build time in the linker

Which linker?

comment 6y ago · link · parent

How?!

I can build LLVM, Rust and Firefox in less time on my R7 1700.

How is Chromium so bloated??

comment 6y ago · link · parent

Only if you sacrifice USB3

comment 6y ago · link · parent

> EMEA Offline: Czech Republic, Denmark, Emerging countries, Finland, Greece, Luxembourg, Poland, Portugal, Russia, Slovakia, Turkey, South Africa.

Mmm, love shopping in "Emerging countries", gotta get a ticket to there :D

Kinda reminds me of the "hot singles near Anonymous Proxy" banners.

comment 6y ago · link · parent

So far I have not encountered any problems with e.g. desktop Firefox (no surprise, gecko has been running on Android for ages) and various server things (mostly the BEAM.. and even some Haskell, even though before 8.8 GHC did not put proper memory barriers everywhere, and I used 8.6 back when I compiled the app).

Most libraries and applications use stuff like mutexes, btw :) it's not like people who don't care about memory models try to make lockfree things often.

comment 6y ago · link · parent

References and (raw) pointers are distinct things with very different semantics. (References are borrow checked.)

comment 6y ago · link · parent

lol, you don't want aggressive inlining everywhere.

Here's a good example. Firefox does even cross-language LTO for stuff that matters — all the DOM/CSS/etc components that are tightly bound together. But it happily allows you to dynamically link to a system libjpeg, and you won't lose any performance because the libxul<->libjpeg boundary is crossed.. about a couple times per downloaded jpeg. Heck, what would you even inline between the jpeg decoder and the browser? Absolutely nothing!

The world at large is already using static linking where it matters.. e.g. with C++, header-only libraries and anything that uses templates results in a lot of static linking. Even if you link to libboost_something.so, you probably already have most of that something inlined into your code because templates :)

comment 6y ago · link · parent

You can use a mainline kernel. (Without the GPU..)

comment 6y ago · link · parent

Fucking Nvidia, again.

It's ridiculous that the most "Linux focused" laptop maker doesn't offer AMD GPUs.

comment 6y ago · link · parent

Also, compositors don't really need much improvement in this area, everything has been done ages ago.

It's all about the toolkits, and some great work is happening in GTK, e.g.:

https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1562 https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1117

comment 6y ago · link · parent

GNOME Shell (and KDE Plasma I think) already have this gesture on Wayland. Wayfire has it too, thanks to me :)

comment 6y ago · link · parent

Qt even already has QNativeGestureEvent stuff, seems like it's only wired up on macOS for now.

Also, what really sucks about Qt is there's no kinetic scrolling in classic qt widget apps (e.g. telegram-desktop). Or there is but every app has to enable it or something??

comment 6y ago · link · parent

I have implemented that gesture in Wayfire last year :) but yeah GNOME already had it for quite some time. KDE Plasma too, I think.

comment 6y ago · link · parent

Did anyone.. "lose" them? :D

comment 6y ago · link · parent

They demoed Parallels running an x86 Debian VM

comment 6y ago · link · parent

The devkit has 16GB of RAM; no way it's not at least dual-channel memory.

comment 6y ago · link · parent

Yeah, not "state of the art" technically, but that's where the first generation Ryzens (14nm) were made, which still feels like yesterday to me, haha.

"14nm" is still good enough, especially considering Intel's "10nm" vaporware..

1
293031
97