News for hackers. Stuff that matters.
Re:Nvidia releases open-source GPU kernel modules by jjoonathan on Wednesday May 11, 2022 @04:43PM (#31345507)
That might not even be overstatement. The last few big desktop linux crash-and-burns I've run into all had display drivers as a common component.

I like back-foot, underdog NVIDIA. Ascendent AMD hasn't drawn my ire yet, let's hope power corrupts slowly.

Re:Nvidia releases open-source GPU kernel modules by lawl on Wednesday May 11, 2022 @06:07PM (#31346500)
Amd changed their windows drivers to not output video if it detects its running in a VM. Nvidia went the other way and stopped doing so.

Both can/could be bypassed with some libvirtd xml magic, but still. Nvidia seem to slowly stop being assholes, AMD started already.

Re:Nvidia releases open-source GPU kernel modules by brezelgoring on Wednesday May 11, 2022 @08:25PM (#31347744)
>Amd changed their windows drivers to not output video if it detects its running in a VM.

What? Why?

Re:Nvidia releases open-source GPU kernel modules by lawl on Wednesday May 11, 2022 @08:31PM (#31347784)
Presumably market segmentation. You're only allowed VMs that dont feel like shit (i.e. have gpu accel) if you pay for enterprise vGPU shit. Can't have someone buy two of your GPUs to give one to a VM, obviously.
Re:Nvidia releases open-source GPU kernel modules by kaladin-jasnah on Wednesday May 11, 2022 @09:46PM (#31348247)
> pay for enterprise vGPU

For AMD the driver is difficult to find and poorly documented (and only available on ESXi unlike NVIDIA vGPU support for Xen, Hyper-V, KVM, Nutanix, and ESXi, etc.). At least the guest drivers don't have licensing issues unlike with NVIDIA IIUC.

Re:Nvidia releases open-source GPU kernel modules by my123 on Thursday May 12, 2022 @12:18AM (#31349225)
And very few AMD GPUs even support it...

(and good luck finding a remotely recent AMD GIM driver)

Re:Nvidia releases open-source GPU kernel modules by snvzz on Thursday May 12, 2022 @03:40AM (#31350468)
Plus the quality of the overall experience. And I understand NVIDIA is even worse re: GPU virtualization.

The end result is that it is unusable in practice. Very difficult and restricted to few CPUs/GPUs and very specific software chain.

Otherwise, it'd be open source, universally available and trivial to use.

The good news is that I understand this support is actually good on the Intel side, and Intel has promised that they will actually release competitive GPUs soon. Should this truly be the case, it will automatically make Intel the go-to for GPU virtualization, and might help motivate NVIDIA/AMD to stop segmenting re: GPU virtualization, ending this shitty situation.

Re:Nvidia releases open-source GPU kernel modules by my123 on Thursday May 12, 2022 @05:44AM (#31351466)
> And I understand NVIDIA is even worse re: GPU virtualization.

Nope, it’s much better on the nvidia side actually. The latest AMD GPU with a publicly accessible OSS GIM driver is the AMD S7150, which was released in 2016. (https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualiza...)

And it’s locked out from most AMD SKUs today, so even if you got a modern GIM driver, you’ll need very special SKUs to enable it and use virtual GPUs.

> The good news is that I understand this support is actually good on the Intel side

Not anymore. GVT-g is gone on Ice Lake (Intel 10th generation mobile, 11th gen desktop) so that you can no longer do hardware vGPU on newer Intel parts at all.

Sad thing is that what you said used to be true.

Meanwhile NVIDIA GRID needs licensing fees but actually works, with high end GPU options being available. And has all the fancy stuff like vGPU live migration for seamless maintenance too. It doesn’t even compare.

Re:Nvidia releases open-source GPU kernel modules by ridgered4 on Thursday May 12, 2022 @11:36AM (#31355691)
Given the recent moves by Nvidia I wonder if they'd consider the holy grail of passthrough: Officially supporting (even a single) vGPU on linux so that you could use the card on the linux host and a guest.

The tech already seems possible since people have modded the enterprise drivers to do it, but that isn't official support. A few years ago I would have said there was no chance of this happening from nvidia. But I was also hopefully Intel's dedicated GPUs would support GVT-g back then!

Re:Nvidia releases open-source GPU kernel modules by kevincox on Wednesday May 11, 2022 @08:42PM (#31347862)
Because the drivers for the consumer GPUs are not licensed for datacebter use and obviously VM == datacenter
Re:Nvidia releases open-source GPU kernel modules by lokedhs on Thursday May 12, 2022 @03:32AM (#31350415)
This is a problem for QUbes OS which has a legitimate need for vgpu on a desktop operating system.

It's because of this arbitrary restriction that Qubes is not able to provide GPU acceleration, which is a huge barrier to its adoption.

Re:Nvidia releases open-source GPU kernel modules by ridgered4 on Thursday May 12, 2022 @11:32AM (#31355643)
Wow, I hadn't heard that AMD added that check. Between that and their unending reset problems that makes them a completely inferior choice for GPU passthrough. Before Nvidia stopped the passthrough blocking you could make a case that AMD was a better choice.
Re:Nvidia releases open-source GPU kernel modules by namlem on Wednesday May 11, 2022 @06:43PM (#31346899)
The cycle continues
Re:Nvidia releases open-source GPU kernel modules by mlyle on Wednesday May 11, 2022 @05:06PM (#31345769)
> I like back-foot, underdog NVIDIA. Ascendent AMD hasn't drawn my ire yet, let's hope power corrupts slowly.

That "back-foot" "underdog" nVidia has the edge in the video market still... and 3x the market cap of AMD.

Re:Nvidia releases open-source GPU kernel modules by jjoonathan on Wednesday May 11, 2022 @07:59PM (#31347572)
It's fair to extrapolate because their strategic decisions will be based on extrapolations.

NVIDIA had to overclock and hustle the current generation of cards and it's looking even worse for the next generation. Software was a moat when AMD was heavily resource constrained, but now they can afford the headcount to give chase. Between the chip shortage and crypto, there was plenty of noise on top of fundamentals, but one doesn't make strategic plans based on noise.

This is all speculative, of course. I'm sure if asked they would say it was a total coincidence. Just like AMD and Intel switching places on their stance towards overclocking. Complete coincidence that it matches the optimal strategy for their market position -- "milk it" vs "give chase." Somehow it always seems to match, though, and speculation is fun :)

Re:Nvidia releases open-source GPU kernel modules by urthor on Thursday May 12, 2022 @03:19AM (#31350308)
NVIDIA is well, well ahead of AMD.

NVIDIA's cards were faster than AMD's with the huge gap in transistor density that was the Samsung fab.

Don't get excited for the AMD graphics division up in Canada.

Re:Nvidia releases open-source GPU kernel modules by dralley on Thursday May 12, 2022 @03:57PM (#31359457)
>NVIDIA's cards were faster than AMD's with the huge gap in transistor density that was the Samsung fab.

They are roughly at par. AMD does better at lower resolutions because of their cache setup.

With the refreshed cards, AMD is slightly ahead.

Re:Nvidia releases open-source GPU kernel modules by urthor on Friday May 13, 2022 @12:40AM (#31363398)
Keep in mind that is at a particular price point.

NVIDIA's top of the range chip is ahead of AMD's, and the 3080's SKU is at a lower binning point on the bell curve than the 6950's.

Hence NVIDIA would be able to maintain a performance per watt crown at the 6950's price point if it sold its highest bins cheaper.

Given the gap in transistor density, that is an exorbitant architectural delta.

Re:Nvidia releases open-source GPU kernel modules by TomVDB on Thursday May 12, 2022 @11:44AM (#31355817)
I wish my company were in the same desperate situation as Nvidia. One where we’d be faster than the competition with similar perf/W while using a much inferior silicon process…
Re:Nvidia releases open-source GPU kernel modules by SemanticStrengh on Wednesday May 11, 2022 @05:16PM (#31345887)
APUs are eating the market of novideo, see e.g. the performance of the M1 iGPU
Re:Nvidia releases open-source GPU kernel modules by eru on Wednesday May 11, 2022 @07:39PM (#31347423)
Are APUs different from what we used to call integrated graphics cards?
Re:Nvidia releases open-source GPU kernel modules by SemanticStrengh on Wednesday May 11, 2022 @07:51PM (#31347513)
The difference is getting blurry. Apus have generally better communication/latency/shared resources with the CPU. The ultimate ideal of an APU is to have a unified memory with the CPU, which is the case in e.g the PS3/PS4 Despite progress in heterogenous computing (the neglected HSA), in SOCs, 3D ingerposers, high bandwidth buses interconnects and 3D memory such as HBM, the PC platform has yet to see a proper APU. In fact the M1 is probably the closest thing to an ideal APU on the market. But yes the more time pass, the more the term IGPU denote APU. AMD bought ATI because of the fusion vision, the idea that sharing silicon, resources and memory between the CPU and the GPU would be the future of computing.

An unrelated but very underrated is the egpu. Egpus are external to the pc unlike a dgpu. So you can buy a thin laptop, connect it via Thunderbolt to a rtx 3080 and enjoy faster gpu performance than allowed on any laptop on the market, and enjoy a thin lightweight, silent laptop the rest of the time. Disclaimer Thunderbolt is still a moderate limiting factor in reaching peak performance.

Re:Nvidia releases open-source GPU kernel modules by kllrnohj on Wednesday May 11, 2022 @08:03PM (#31347602)
> the PC platform has yet to see a proper APU

Wat. AMD literally invented the term 'APU' and has been shipping them since 2011. Fully unified CPU+GPU memory since 2014's Kavari. That's full cache coherent CPU & GPU along with the GPU using the same shared virtual pageable memory as the CPU.

The M1 didn't add anything new to the mix.

Re:Nvidia releases open-source GPU kernel modules by SemanticStrengh on Wednesday May 11, 2022 @08:18PM (#31347696)
It's a spectrum. I don't think that cache coherency was useable by developers/compilers. The two only ways I know (HMM and HSA) are niche, used by nobody. GPGPU compute would GREATLY benefit from programs that can share memory between cpu and gou without having to do needless high latency round-trips and copies. So they failed in practice. They never did a CPU addressable HBM interposer (despite having invented HBM) unlike what I believe is the M1.
Re:Nvidia releases open-source GPU kernel modules by eru on Wednesday May 11, 2022 @09:07PM (#31348009)
> An unrelated but very underrated is the egpu. Egpus are external to the pc unlike a dgpu. So you can buy a thin laptop, connect it via Thunderbolt to a rtx 3080 and enjoy faster gpu performance than allowed on any laptop on the market, and enjoy a thin lightweight, silent laptop the rest of the time. Disclaimer Thunderbolt is still a moderate limiting factor in reaching peak performance.

Not just for laptops: this sounds also a bit like what the Switch dock could have been.

(And in some sense, it reminds me of Super FX chip for the SNES.)

Re:Nvidia releases open-source GPU kernel modules by boardwaalk on Wednesday May 11, 2022 @08:04PM (#31347609)
APUs are AMD-speak for CPU and GPU on the same die (Intel has similar but doesn't call them that). Integrated graphics cards (a misnomer since there is no card -- IGP or iGPU is probably more accurate) may or may not be on the same die (instead could be on the motherboard, particularly in the chipset). That design is pretty rare/antiquated at this point though. Being on the same die means higher bandwidth, lower latency, etc.
Re:Nvidia releases open-source GPU kernel modules by mepian on Wednesday May 11, 2022 @08:13PM (#31347660)
I think Intel calls them XPUs.
Re:Nvidia releases open-source GPU kernel modules by Qwertious on Thursday May 12, 2022 @10:51AM (#31355065)
Integrated video cards were integrated onto the motherboard. APUs/iGPUs are integrated into the CPU.
Re:Nvidia releases open-source GPU kernel modules by washadjeffmad on Wednesday May 11, 2022 @09:56PM (#31348328)
Just had my first graphics stack issue since 2013 upgrading to Fedora 36 and was caught flat-footed. I've got multiple GPUs, so now I've got to figure out if it's Wayland, amdgpu, nouveau (since unblacklisting), or dkms. "Just working" has made me lazy.
Re:Nvidia releases open-source GPU kernel modules by rawoke083600 on Thursday May 12, 2022 @08:30AM (#31353048)
Was in similar boat recently, I'm not that up to day with the whole X11 vs Wayland, but dammit am I mad !

I feel like JUST as the "Linux X11 Discrete Graphics Scenario" started to become more stable and less (not none, but less) of an issue to setup and upgrade without getting black screens, the Linux-world is now turning to a "new windowing server" i.e Wayland, we starting all over again sigh

Maybe the answer to having a decent and carefree discrete graphics Linux stack is to fork (Don't you dare link to the XKCD comic about 'Standards') SteamOS.

They are at least motivated (as it's part of their core product) to make it work most of the time. And have a done boat load of good work for Linux ecosystem. Well done guys ! :)