News for hackers. Stuff that matters.
Re:Are We Wayland Yet? by izacus on Monday November 25, 2019 @06:40AM (#21627212)
The thing is - nVidia uses shared source for all of their drivers. This is why you always have the newest GPU feature support and performance on their Linux driver - it's the same codebase as it is for Windows and was for macOS.

Linux community on other hand wants nVidia to restructure their driver just to fit Linux model and essentially lose the source parity or publish the source completely. It's not an invalid request, because nVidias APIs don't really fit into Linux kernel design and userspace APIs. It's also not very likely to happen, especially due to poisonous behaviour of kernel maintainers towards nVidia, unwilligness to compromise and nVidias refusal to add more resources to refactor the driver.

Re:Are We Wayland Yet? by brmgb on Monday November 25, 2019 @08:45PM (#21634955)
> It's also not very likely to happen, especially due to poisonous behaviour of kernel maintainers towards nVidia, unwilligness to compromise

Please, there is nothing to compromise about.

Nvidia doesn't want to work with the kernel community. They don't want to document how their driver works. They don't want people to look at how their driver works. They don't even want people to develop alternative drivers for their cards.

Nvidia earned 100% of the bad blood existing between them and the kernel community. They are even worse to work with than Qualcomm. Should give you an idea of how bad they are.

Re:Are We Wayland Yet? by BiteCode_dev on Monday November 25, 2019 @06:52AM (#21627275)
Do you think Windows or MacOS make compromise on the way they code their kernel to accomodate nVidia ?

No, it's just a matter of economics.

Re:Are We Wayland Yet? by fwxwi on Monday November 25, 2019 @07:15AM (#21627411)
Yes, Windows has a stable driver API you can build upon.

Linux does not, because they want all drivers to be inlined (included in the kernel) and open source. nVidia does not want to release their trade secrets, so they don't want to open source their drivers.

(No idea about macOS)

Re:Are We Wayland Yet? by vertex-four on Monday November 25, 2019 @07:22AM (#21627456)
Of course, AMD managed, so there’s no technical reason that nVidia cannot.
Re:Are We Wayland Yet? by izacus on Monday November 25, 2019 @07:41AM (#21627595)
Except that AMD doesn't have feature parity with Windows driver on open source version and has all the Nvidia driver headaches on closed source version.

I'm not sure what AMD really managed here.

Re:Are We Wayland Yet? by nemetroid on Monday November 25, 2019 @08:22AM (#21627848)
AMD's open source driver is fully usable for normal usage (including gaming), and in general more performant than the closed source version.

https://www.phoronix.com/scan.php?page=article&item=rx590-li...

Re:Are We Wayland Yet? by jhasse on Monday November 25, 2019 @08:50AM (#21628069)
Still behind the proprietary Windows driver or Nvidia's proprietary Linux driver.
Re:Are We Wayland Yet? by MayeulC on Monday November 25, 2019 @09:45AM (#21628496)
They are not behind their windows driver on OpenGL. And neither for Vulkan, I think. AMDVLK scores a few wins here and there, but RADV is generally more stable, performant, and compatible. Plus being open-source, it is easily extended, like valve is doing with their AC0 experiment [1].

Last I heard, people were installing Linux to use the AMD OpenGL drivers to play emulators (it might have been Cemu, actually ran trough wine).

[1]: XDC2019 slide deck https://xdc2019.x.org/event/5/contributions/334/attachments/...

Re:Are We Wayland Yet? by pepemon on Monday November 25, 2019 @09:21AM (#21628311)
Can you share some source of your statement?
Re:Are We Wayland Yet? by vertex-four on Monday November 25, 2019 @07:56AM (#21627695)
It doesn’t have “all” the headaches on the closed source version, afaik - it still implements the standard APIs and thus works with systems that were designed to work with every other driver from AMD to Mali, unlike the nVidia proprietary driver.
Re:Are We Wayland Yet? by fwxwi on Monday November 25, 2019 @07:42AM (#21627609)
Because it is NOT the same driver. AMD, just like nVidia, want to keep their own secret sauce secret, because that's where the money is.
Re:Are We Wayland Yet? by pmoriarty on Monday November 25, 2019 @01:37PM (#21631261)
Is so much of their profit bound up in their software?

I thought these were hardware companies.

Re:Are We Wayland Yet? by fwxwi on Monday November 25, 2019 @07:27AM (#21627480)
I didn't say there's a technical reason, I said they want to keep their source code secret, which to me is a reasonable argument.
Re:Are We Wayland Yet? by pepemon on Monday November 25, 2019 @07:34AM (#21627542)
Well then sway maintainer's reason to explicitly deny support for proprietate nvidia driver is a reasonable argument too.
Re:Are We Wayland Yet? by fwxwi on Monday November 25, 2019 @07:41AM (#21627599)
Definitely, it's his software and he can do whatever he wants, and I'm not criticising him, I'm criticising Linux for not offering a stable driver API. As far as I know they don't even want to allow shims like the one Android Treble introduced. It is not a technical decision, it's a political one.
Re:Are We Wayland Yet? by sheepdestroyer on Monday November 25, 2019 @08:13AM (#21627797)
There is a technical rationale that should be read to understand kernel dev's PoV : https://github.com/torvalds/linux/blob/master/Documentation/...
Re:Are We Wayland Yet? by vertex-four on Monday November 25, 2019 @07:53AM (#21627679)
Refusing to open source their drivers is not a technical decision, it’s a political one.
Re:Are We Wayland Yet? by akvadrako on Monday November 25, 2019 @09:09AM (#21628196)
Linux has a fairly stable driver API, it just doesn't have an ABI.
Re:Are We Wayland Yet? by rjsw on Monday November 25, 2019 @09:18AM (#21628284)
The GPU API doesn't seem particularly stable to me.
Re:Are We Wayland Yet? by ovi256 on Monday November 25, 2019 @07:24AM (#21627463)
MacOS user: what's a driver ?

Seriously though, one of the pleasurable things about using macOS is that you don't have to worry about hardware compatibility. Because there is none, outside the small list of parts officially supported by Apple itself. There are some NVidia cards on that list, yes.

Re:Are We Wayland Yet? by ac29 on Tuesday November 26, 2019 @12:40AM (#21635881)
> The thing is - nVidia uses shared source for all of their drivers. This is why you always have the newest GPU feature support and performance on their Linux driver - it's the same codebase as it is for Windows and was for macOS.

Sure this is almost true, but not quite - there is obviously Linux specific code to support X11 and VDPAU that isnt in the Windows driver, for example. Of course, NVIDIA can decide to not support open drivers, or not support Wayland in their closed drivers, and as a consumer I can choose not to buy their products.

Re:Are We Wayland Yet? by aidenn0 on Monday November 25, 2019 @11:22AM (#21629622)
You can have an open source driver without mainlining it. This was what the whole discussion between the Linux devs and AMD was over the AMD HAL. If you want to maintain it yourself, you can do it however you want.

Linux has modules, and had very good support for out of tree modules.

Re:Are We Wayland Yet? by eleitl on Monday November 25, 2019 @07:13AM (#21627401)
It's easier to switch to Radeon, and ROCm instead of CUDA.
Re:Are We Wayland Yet? by microcolonel on Monday November 25, 2019 @09:00AM (#21628145)
> The thing is - nVidia uses shared source for all of their drivers. This is why you always have the newest GPU feature support and performance on their Linux driver - it's the same codebase as it is for Windows and was for macOS.

The same is true of AMD, they share most of their display configuration code (in the kernel) and userspace code between a set of drivers on Windows, Linux, and macOS; they just also publish documentation and redistributable firmware, and maintain a second very-high-quality driver in Mesa, and due to the availability of documentation and that Mesa GL driver, there is a second Vulkan driver (RADV) which is also excellent.