3 ms·
This is prototypical of the standard Linux experience, but I'd like to remark on just how much less common this sort of thing is. Modern Linux and modern Linu
by bryanlarsen 4y ago
This is prototypical of the standard Linux experience, but I'd like to remark on just how much less common this sort of thing is. Modern Linux and modern Linux distributions have a much larger "just work" factor and it's getting better every year in my experience. Slowly and asymptotically, but it is improvement.
This was driven home recently by my experience switching to NixOS. NixOS is brilliant in many ways, but boy are there papercuts everywhere. It's all soluble but it is annoying. 25 years ago this sort of fiddling was fun, but now it's just tedious.
- ho_schi 4y agoAs user I would just return the device back and purchase a reliable USB based device. As a Mac-user would do? I guess a Windows-User would just rate [1/5] stars and don't even research. We should keep in mind: Linux users care a lot and do research. Most other will just say "nope" and leave it a issue for the manufacturer or keep turning it off and on again. What I don't know is if the initial situation is to blame upon Linux, Intel (Thunderbolt), device manufacturer or all of them. We have valuable post a the top explaining PCIe-Pause on MacOS and that Linux tries to apply a similar mitigation? Apple: Because Thunderbolt allows the addition and removal of arbitrary numbers of peripherals connected in arbitrary topologies, the task of dividing up the PCI tree’s address space can be challenging. Sometimes, particularly when large numbers of devices are attached, it is possible to exhaust portions of that address space. When this happens, a new device cannot be enabled without moving existing devices. To solve this problem, OS X v10.9 supports PCIe Pause—a special power management state in which all driver and device operations are temporarily suspended. Whenever address space exhaustion occurs, OS X may ask drivers to pause operations. After the drivers are paused, OS X changes the address space layout of the paused devices to make room for new devices, and then tells the drivers to resume normal operation Oh. If your driver does not explicitly declare support for pausing, your driver will never receive pause requests. As a result, devices may fail to appear when the user plugs in additional devices, particularly on hardware with multiple Thunderbolt ports. For this reason, you are strongly encouraged to support this functionality as soon as possible. Ouch. On Linux this shouldn't be an big issue because the kernel provides them. From the mentioned Linux patches: Currently PCI hotplug works on top of resources which are usually reserved: by BIOS, bootloader, firmware, or by the kernel (pci=hpmemsize=XM). These resources are gaps in the address space where BARs of new devices may fit, and extra bus number per port, so bridges can be hot-added. This series aim the BARs problem: it shows the kernel how to redistribute them on the run, so the hotplug becomes predictable and cross-platform. Fits into what Apple describes. The patch for Linux would be helpful. And I've the feeling that the approach Intel has chosen to add TB upon PCIE isn't bulletproof?
- oneplane 4y agoI don't think that really fits together. PCIe (and PCI) hotplug has existed for a while and topology changes aren't new either. ExpressCard for example has done this, as has PCMCIA. Older RDMA buses did this too, as do backplane-based industrial PCs of which there are a really large amount. I suspect that end-user smoothness based on 'the user is not required to know everything' that makes the likes of Apple implement bus pausing for dynamic topology assignment and BAR adjustment is not available in Linux land because there simply isn't a big enough overlap of people to make this a hot topic. You need: 1. A person who understands how this works 2. A person who understands what they want to use it for 3. A person who understands what person 1 has to do so person 2 can use it Usually you get 1 or 2, sometimes both, but almost never 3 except at places like Canonical, RedHat, SuSE etc. because it's too much of an analyst role and not enough of a "I need it for myself and I can build it" role. Similar but different problems exist in other software areas like when person "3" is split in "business", "end-user" and "licensing" with competing interests. That's where you get the NT kernel which gets split into arbitrary partitions where based on an integer configuration it may or may not want to address your RAM. Same goes for the old "aperture size" for GPU memory transfers, and later on the BAR resize support. It was never 'hard' to implement, it's just that IBV's didn't bother and mainboard manufacturers didn't care. Yet it was always available and even Tianocore EDK2, Apple's own EFI and (for some reason) BIOS and UEFI from Quanta and Supermicro all did support it just fine. Same goes for KMS and non-blink GPU switchovers where AMD, NVDA and Intel used to constantly sell it as 'impossible' and we all just accepted that. Yet KMS, the MobileFramebuffer (and the old AppleTV Gen 1) and even VesaFB showed that it's totally possible and it's just everyone using the same joke sample implementation from the vendor that's causing it. Another example would be VESA where DisplayPort topology changes on the control channel side do similar things to PCIe bus pausing. The display controllers and bus drivers should pause on hot plug to let the host decide on the new topology, but implementing that costs time and effort, and you need to have some in-depth knowledge on both the hardware and software side, so lots of companies don't bother. Result: some host+display combinations only work after restarting either end to force it to re-discover the current topology. This even happens in 1:1 topology scenarios where a simple GPU driver update might restart the host bus and the display ignores it and simply stops receiving data until the watchdog timer restarts the embedded processor causing the screen to blink. I'd just dumb low-quality choices and corner-cutting that causes this.
- makz 4y agoBeen hearing “modern Linux is much better” since the 00s
- asoneth 4y agoIn my experience this is true and Linux has come a long way. But given how far it has yet to go it may continue to be true for the next couple decades as well.
- bryanlarsen 4y agoWhen you're comparing against Linux from 1995, it's not a high bar to hurdle.
- 1970-01-01 4y agoI too am 100% burnt from a quarter of a century of random "Linux evenings". I've concluded that GNU Linux will always be a great CLI server OS, however those past 25 years has soured me into calling the Linux Desktop a toy. I'm 100% done investing my time solving issues just like this one. The biggest lesson I've learned is to simply not trust it to be a daily driver.
- bryanlarsen 4y agoBut what do you replace it with? Windows also has "Windows Evenings" that I can't pull on my 30 years of experience to fix, and MacOS forces you to do things their way. And I'm a grumpy old man who likes things my way.
- mikem170 4y agoI too like things my way, and got sick of having to fiddle to keep things working... I settled on openbsd. I've got two thinkpad laptops (which are well supported), and a vps. I've tried to avoid apps and customizations that are more likely to break/change over time. Browsers maybe have been the toughest to sort out. I use links for my usual reading, tor-browser for random surfing, seamonkey for sites I log into, and chrome for the couple sites I need to use that don't work in seamonkey. All minimally configured, and all proxied through my vps and use a hosts file blocklist, except for tor. I had an awesome tweaked version of firefox, but upgrades were more hassle than I wanted to deal with. I use the fvwm window manager included with the base openbsd installation, which can be customized using a single text file. I have productivity software like audacity, claws-mail, gnumeric, krita, and linphone. I've also fiddled with things like shotcut, matrix (over pidgen!), some astrophtography software, and godot. I'm not worried about the latest and greatest games - been there, done that. It's worked out well. The system gets out of my way and lets me focus on what I'm doing. I've shell scripted my os and app/user/website configurations (except claws-mail, those configs are backed up), so I know everything I setup is reproducible, and all my tweaks are documented. I still get to fiddle, I just prioritize stability over time, as opposed to worry about the bleeding edge. Prior to this I've used chrome os, debian, freebsd, redhat, and slack over the years. Gave up on windows a long time ago. Chromebooks are low-maintenance, if you don't mind google in your business. Never owned a mac, but don't think a profit-driven os would work for me anymore. My phone is a refurbed pixel 3a running graphene os. ftw! ;-)