News for hackers. Stuff that matters.
Re:Cybercriminals who breached Nvidia issue one of the most ... by pjerem on Friday March 04, 2022 @02:35AM (#30551755)
Interesting. I’ve not used Linux as my mainly driver for years. I miss it and I want to come back but I basically don’t have any decent PC anymore so I have the freedom to get/build one.

When I used it, ironically, NVidia was the way to go on Linux and ATI/AMD was a shit show. Is AMD ok nowadays ? My needs are mostly confortable casual gaming where I don’t care having more than 60fps and I don’t play online (so this anti cheats situation doesn’t really bother me other than ideological issues).

Re:Cybercriminals who breached Nvidia issue one of the most ... by jrockway on Friday March 04, 2022 @03:14AM (#30552017)
I never had any problems with the NVidia driver either, and I can't see how it would prevent the system from booting. (I mean, it's not linked with the kernel and not set to load the module until X starts, so you can get to a single user mode console or SSH in if X breaks. Maybe people think X and booting are the same thing?)

The only complaint I had with NVidia was that a long time ago I had one of the first consumer-grade 4k displays, and it exposed itself as 2 1920x2160 displays. That all worked ... "great". X thought the monitor was two displays, and so anything that cares about the calculation of display boundaries (say, full screen video), didn't work correctly; it would just show on half the monitor. One day I found that a config parsing bug could cause the xrandr extension to be disabled while keeping everything else working, and then full screen worked. (The options to just lie to xrandr or disable it were of course broken, which is why bugs interacting with bugs was the fix. They never fixed the bugs or the bugged bugs, so shrug I guess.) It took me months of pulling out my hair to find that workaround, and having used X since before xrandr was invented it drove me crazy. In a past life, I also pulled out all my hair to get xrandr to work. It never fucking worked. And then the one time you don't want it to work, it works and can't be made not to work. Argh!!! Just send me back to 2000 please!

(Since then I've switched to Windows, and I still have that monitor. It works perfectly under Windows. You wouldn't even know that it uses the hacky Displayport MST stuff. Probably have a nice hack hard-coded right into the driver, and if it doesn't activate for some reason, you're completely screwed.)

Re:Cybercriminals who breached Nvidia issue one of the most ... by smegger001 on Friday March 04, 2022 @11:35AM (#30556973)
Your right I suspect as I have had this problem myself; it is boot-able, but it will break the Xserver in such away that it can't even change to text only terminal to fix it. So I have to go into single user mode uninstall and reinstall the graphics driver then reboot, and it magically works again. I think it is the installer breaking if there is a old copy installed already rather than a bug in the actual driver itself. This happens every 3-4 months on my Ubuntu gaming laptop.
Re:Cybercriminals who breached Nvidia issue one of the most ... by modeless on Friday March 04, 2022 @02:51AM (#30551869)
Despite my complaints, for casual gaming on a desktop you shouldn't have too many issues with Nvidia's drivers these days as long as you can use the ones packaged by your distro instead of Nvidia's installer. My troubles have mostly been associated with laptops that have both Intel and Nvidia graphics, or desktops used for ML training where the distro-packaged drivers wouldn't work for one reason or another.

I've heard AMD's drivers are OK these days but haven't tried them myself because I care about ML.

Re:Cybercriminals who breached Nvidia issue one of the most ... by ChuckNorris89 on Friday March 04, 2022 @04:27AM (#30552469)
>I've heard AMD's drivers are OK these days but haven't tried them myself because I care about ML.

They are OK but with some caveats like VP9 HW decode not being available in Linux AMD iGPU drivers for reasons, which won't be a problem if you're running an AMD desktop tower PC, but if you're gonna watch Youtube on your AMD laptop, your battery will take a hit along with possible extra fan noise, which is unacceptable for a great media content consumption experience in Linux when even no-name Android phones and tablets have VP9 HW decode in Youtube out of the box. No bueno.

This is such a mess, as VP9 & AV1 HW video decode is not an issue under linux for Intel iGPUs, but AMD seems to not give a shit to expose VP9 decode on linux for their iGPUs. Also, unlike with Intel iGPUs, under linux, radeon-top does not show GPU decode usage for easy diagnostic purposes. I assume it's because AMD bought the video codec engine IP from some third party fabless IP vendor and they don't have the permission to open source the drivers for the video engine block as part of the licensing agreement, like they do for their in house developed GPU block. But still, regardless of the reason, it sucks for the linux end-users.

And another important issue nobody seems to talk about but one should be aware of, AMD APUs (at least to 5000 series) don't have unified memory between CPU and iGPU like Intel and Apple do, so you have to configure in your laptop BIOS how much of your system RAM you want allocated to your iGPU (512MB/1GB/2GB/4GB), with the rest remaining for the CPU. This sucks big time if you're switching between productivity where you need more memory for applications, and playing video games where you need as much memory as possible for the GPU, so you need to keep rebooting and changing in the BIOS the amount of memory you allocate to your iGPU, vs on Intel chips where the whole system memory is unified and shared dynamically between the CPU and iGPU, and it boils my blood as the whole marketing gimmick of AMD's APUs was the seamless merger between CPU and GPU resources together, while in practice their (5000 series) APUs are just a Ryzen CPU with a Vega GPU glued on the same die without them actually sharing any of the resources properly. Maybe the new 6000 series with RDNA2 changed that but I couldn't find any detailed info.

Honestly, as a laptop owner with AMD APU, if you're planning to go Linux, just get one with an Intel chip instead. Much less head aches as Intel Linux drivers and apps are second to none and have a unified memory model.

The performance and efficiency of AMD APUs is still great though, especially under Windows, but the overall implementation as a whole package seems poorly thought out and rushed out the door, especially under Linux compared to Intel.

Re:Cybercriminals who breached Nvidia issue one of the most ... by vetinari on Friday March 04, 2022 @09:06AM (#30554871)
Isn't this some distro-specific problem?

VP9 should be available since Mesa 18.1 (or so) for VCN-based GPUs (i.e. Raven Ridge and newer). VP9 is not supported in hardware on UVD-based GPUs (i.e. discrete Vega).

VCN 3.0-based GPUs (i.e. RDNA2, the 6000-series APUs) also support AV1 decoding.

Re:Cybercriminals who breached Nvidia issue one of the most ... by ChuckNorris89 on Friday March 04, 2022 @09:56AM (#30555685)
>VP9 should be available since Mesa 18.1 (or so) for VCN-based GPUs (i.e. Raven Ridge and newer).

Yeah, in theory it's available, but good luck actually getting your browser to use it to HW decode YouTube videos under linux out of the box.

It usually works fine with video players like mplayer but not in browsers.

There are endless threads online about this not working. I for one, never managed to get it to work in any browser. What a mess.

Re:Cybercriminals who breached Nvidia issue one of the most ... by vetinari on Friday March 04, 2022 @10:28AM (#30556095)
> It usually works fine with video players like mplayer but not in browsers.

Chrome doesn't support VA-API, so do not bother trying.

Some distributions do have Chromium builds with VA-API support enabled, but YMMV. Chromium uses X11 only and libva requires dri2, so it doesn't work under XWayland, which supports only dri3. (=> Chromium with VA-API works only in native X11 session)

Firefox does support VA-API. There was a period of time, when it did only under Wayland, but nowadays both X11 and Wayland should work. When running under Wayland, use the native version and /not/ via XWayland, because the same thing as with Chromium applies.

Re:Cybercriminals who breached Nvidia issue one of the most ... by mrkstu on Saturday March 05, 2022 @11:03AM (#30568600)
The above is a fair summation of Linux's failure as a desktop in a single post.
Re:Cybercriminals who breached Nvidia issue one of the most ... by vetinari on Saturday March 05, 2022 @11:16AM (#30568731)
Maybe it is, but keep in mind, that Chrome is a proprietary application - the Linux community and the desktop communities have exactly zero input, what will and what will be not supported.

On the Firefox side, Redhat and Suse people did the work to support video acceleration.

Re:Cybercriminals who breached Nvidia issue one of the most ... by JonChesterfield on Friday March 04, 2022 @06:10AM (#30553167)
Minor point. That bios setting does dedicate some amount of ram to the GPU, so the rest of the system can't use it. The GPU can allocate more than that though if the program makes a slightly different allocate call to request it.

Seamlessly sharing memory between the two chips works fine with the compute toolchain (rocm), I don't know how transparent it is for games.

Re:Cybercriminals who breached Nvidia issue one of the most ... by ChuckNorris89 on Friday March 04, 2022 @06:27AM (#30553289)
>The GPU can allocate more than that though if the program makes a slightly different allocate call to request it.

Maybe in ROCM, but not in generic Windows and Linux apps and video games that I've tried. They all cap out at whatever you set in BIOS for the iGPU VRAM reservation and don't go beyond that into system RAM. If ROCM has this ability how come AMD's driver, at least in Windows, doesn't do this memory overflow thing for VRAM hungry apps like video games, as that would certainly alleviate this issue.

IMHO, still a worse implementation than the unified model of Intel. Having a large chunk of memory constantly blocked for a HW component, regardless if it's currently needed or not is just horribly inefficient, especially when you're on a mobile device and have 16GB of RAM or less to play with.

Disappointing.

Re:Cybercriminals who breached Nvidia issue one of the most ... by lnxg33k1 on Friday March 04, 2022 @05:54AM (#30553059)
I have built my desktop with top end components: ASRock X570M Pro4, ASUS ROG Radeon RX 6800, AMD Ryzen 7 5800X, WDBlack Nvme, and I have no issue at all with drivers or anything (I also use gentoo with a self-configured kernel, no genkernel). It's my daily driver for working and gaming 4k (with 3 4k monitors)

Linux has no issue with drivers and/or video cards in particular, people just need to pay some attention when buying components, saying that linux has issues with graphics because of nvidia it's a bit unfair, nouveau is not able to use acceleration because the videocard doesn't activate it if it isn't loaded by the official nvidia blob, so if linux is supposed to have issues with graphic card while vendors actively create obstacles, we will never figure the real issue and hold the right people accountable: It's nvidia that has still issues with linux

Re:Cybercriminals who breached Nvidia issue one of the most ... by NavinF on Friday March 04, 2022 @07:08AM (#30553573)
That works if you don’t care about deep learning or use any apps that need CUDA
Re:Cybercriminals who breached Nvidia issue one of the most ... by lnxg33k1 on Saturday March 05, 2022 @06:30AM (#30566535)
Yeah but why do we blame linux if it's the official nvidia drivers that sucks and when the video cards doesn't work with acceleration if you don't use that driver that sucks? What is linux supposed to do?
Re:Cybercriminals who breached Nvidia issue one of the most ... by NavinF on Saturday March 05, 2022 @06:36PM (#30573144)
I don’t care who’s to blame, but I’ll just say that the proprietary drivers work just fine on servers and I imagine they’d work fine on Desktop too if distros installed them automatically. Loads of people try Linux on a PC they already have instead of buying a new one that has upstream drivers for every component. This is yet another reason why Linux desktop will never have >2% market share.
Re:Cybercriminals who breached Nvidia issue one of the most ... by pizza234 on Friday March 04, 2022 @03:33AM (#30552136)
I've had a few Nvidia cards (from 9xx to 20xx) and one (very modern) AMD.

The AMD drivers runs fine. They're functionally inferior to the Nvidia ones (in several aspects), but I had no big problems. I don't play on Linux, though.

I think open source makes a significant the difference - with Nvidia, issues often can't be solved by software devs (e.g. Libreoffice Calc running updating the screen very slowly). I suppose that with open source drivers, devs can at least get an idea of what's going on.

However, there's one dealbreaker with Nvidia - they have such "blob of a cards", that Linux, on a default configuration (which means, ISO with Nouveau) can't run at all with many Nvidia card series. I couldn't even boot with a GT 1030 (among the others).

I actually have no idea how people can install Linux on Nvidia systems, since I had to create an adhoc iso with the binary drivers preinstalled.

Re:Cybercriminals who breached Nvidia issue one of the most ... by josefx on Friday March 04, 2022 @06:18AM (#30553225)
> that Linux, on a default configuration (which means, ISO with Nouveau)

To this day I cannot think of a good reason to ship nouveau outside of "lets make users with nvidia cards suffer". I get the idea behind the nouveau project, but pushing an experimental driver that cannot work with 99% of the hardware it latches onto and forces users to disable it if they want a basic working system is actively malicious.

Re:Cybercriminals who breached Nvidia issue one of the most ... by gryn on Friday March 04, 2022 @09:36AM (#30555350)
I don't know the last time you used nouveau drivers but this is just wrong.

is it feature complete ? no, but to go ahead and say it's not working for 99% is just lying here is the list: https://nouveau.freedesktop.org/FeatureMatrix.html

what you can say though is that it is a bad idea for GPU that are relatively recent. wont block you from booting or displaying to screen but would probably be slow.

also this is distro dependent, I remember being given the choice with no default one (mean chosen automatically) when installing Manjaro (a derivative of arch linux).

I chose the proprietary driver since they are feature complete but later switched to nouveau driver since they are not prone to breaking on every other update. that was 2 years ago, zero problems since.

Re:Cybercriminals who breached Nvidia issue one of the most ... by sterlind on Friday March 04, 2022 @01:20PM (#30558363)
for years I'd give nouveau a try and see if it could run Wayland. for years I'd get a black screen and have to repair in GRUB (or, thankfully, roll back in the boot screen on NixOS.)

since it doesn't do CUDA either, nouveau is useless to me. next Linux build I'll either use Intel or AMD, but can't economically do ML on AMD still.

Re:Cybercriminals who breached Nvidia issue one of the most ... by salawat on Friday March 04, 2022 @09:54AM (#30555647)
No, it isn't, and the malice comes entirely from circumstances foisted on the Free/Libre Open Source community by Nvidia's inherent user hostility at the behest of corporate America/the music/content delivery industry.

It isn't that hard to write a manual. It isn't that hard to respect user freedom to use tge device they purchased. It isn't that hard to just leave well enough alone.

But no.... Nvidia just couldn't.

Re:Cybercriminals who breached Nvidia issue one of the most ... by josefx on Monday March 07, 2022 @02:12PM (#30592019)
>user hostility at the behest of corporate America/the music/content delivery industry.

Meanwhile the company responsible for the biggest security issues in the last decade still provides its CPU microcode as signed binary blob and the FLOS community is fine with that because someone at the FSF drew a random line to stand on. I will accept the FLOS communities hatred of NVIDIA the moment it stops bending over backward for the company that brought us Meltdown, Spectre, RowHammer (who needs consumer grade ECC anyway), etc. .

Re:Cybercriminals who breached Nvidia issue one of the most ... by salawat on Tuesday March 08, 2022 @01:47PM (#30604116)
You won't hear a peep one from me in that regard, because I am of the same line of thinking.
Re:Cybercriminals who breached Nvidia issue one of the most ... by heavyset_go on Friday March 04, 2022 @04:09AM (#30552364)
Yes, AMD is fine. Intel works well if you get a computer with an iGPU, but the last time I looked, AMD's iGPUs were a bit more powerful. You'll want a Nvidia card for ML, unfortunately.
Re:Cybercriminals who breached Nvidia issue one of the most ... by mastax on Friday March 04, 2022 @11:39AM (#30557021)
The AMD drivers are pretty good, at least a year after the cards are released. AMD has only just started doing the Intel thing of pushing driver support for GPUs before they are released so you often need to run bleeding edge kernel/Mesa or wait a while to get good support.
Re:Cybercriminals who breached Nvidia issue one of the most ... by orwin on Friday March 04, 2022 @05:26AM (#30552857)
Amd after their island cards just works.