News for hackers. Stuff that matters.
Re:Linux kernel maintainer says no to AMDGPU patch by ageofwant on Thursday December 08, 2016 @11:04PM (#13136580)
This is why the Linux kernel runs and will continue to run the world.

The No men is all that stands between us and the Yes men.

Praise and salutations to the No men, God bless you.

Re:Linux kernel maintainer says no to AMDGPU patch by tw04 on Thursday December 08, 2016 @11:08PM (#13136597)
That's an interesting take... this is why Linux gaming sucks. I get the pragmatism but we also need to be realistic that they aren't going to maintain a completely separate driver for Linux when the Linux gaming market share is barely a rounding error.
Re:Linux kernel maintainer says no to AMDGPU patch by mVChr on Friday December 09, 2016 @12:04AM (#13136797)
And not being able to play A-grade games is barely a rounding error in the pros and cons of why most people use Linux, especially in the workplace.
Re:Linux kernel maintainer says no to AMDGPU patch by OskarS on Friday December 09, 2016 @03:45AM (#13137522)
For workplace, sure. But the only reason I don't run exclusively on Mac or Linux is gaming. I've spent a lot of money and time in that ecosystem for that single reason.

There's a lot of people that care about gaming, even if you don't.

Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Friday December 09, 2016 @05:04AM (#13137814)
This will hardly change, back on my hard GNU/Linux days I came to realise that the gamer/demoscene culture and UNIX culture are totally opposed to each other.

The gaming and demoscene cultures don't care 1 second how much their tools cost, the openess of hardware and software tooling, rather the achieved results and getting their stuff on the hands of users, regardless how.

The GNU/Linux culture is all about the ideology of having stuff for free, replicating a desktop experience as if CDE was the epitome of UX, fulled with xterms.

Of course I am generalising and might get tons of counter examples, just noting my personal experience regarding friends and co-workers.

Re:Linux kernel maintainer says no to AMDGPU patch by coldpie on Friday December 09, 2016 @08:46AM (#13138688)
> The GNU/Linux culture is all about the ideology of having stuff for free

Uh, no. It's about having the freedom to fix, improve, or otherwise modify the software you use. Being free-as-in-beer happens to be a requirement for that, but it isn't the goal. Think about it this way: free software developers get paid to do work, instead of getting paid for having done work like proprietary software developers. You pay me to implement feature X, which is then released to the world for further improvement in the future.

Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Friday December 09, 2016 @11:17AM (#13139584)
Why should I bother to pay you, if others do the work for free to build portfolio for job interviews?
Re:Linux kernel maintainer says no to AMDGPU patch by 0x6c6f6c on Friday December 09, 2016 @11:43AM (#13139782)
To get whichever offers the best experience? Seems like a pointless question, functionality is a large deciding factor.

When they're equivalent products there's really not much to pay for though. That should push the costly product to improve more or else lose sales.

Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Friday December 09, 2016 @02:33PM (#13141151)
Hence why most business rather get themselves busy with Mac, Windows and app stores in what concerns desktop and mobile software.
Re:Linux kernel maintainer says no to AMDGPU patch by coldpie on Friday December 09, 2016 @11:37AM (#13139723)
Well, do you want the work done or not?
Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Friday December 09, 2016 @02:32PM (#13141147)
The point I was trying to make was why the culture of free-as-beer doesn't lead to successful commercial desktop software on GNU/Linux.
Re:Linux kernel maintainer says no to AMDGPU patch by coldpie on Friday December 09, 2016 @02:46PM (#13141248)
The point I'm trying to make is no one wants commercial desktop software on Linux. We want software we can fix and improve without requiring anyone's permission.
Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Saturday December 10, 2016 @04:53AM (#13144924)
Which is precisely the point that drove me back to Windows, Mac and mobile platforms.

No point trying to play D. Quixote attempting business on the desktop with such mentality.

Re:Linux kernel maintainer says no to AMDGPU patch by palunon on Friday December 09, 2016 @06:01AM (#13138004)
>the ideology of having stuff for free,

Yeah, no. Having free stuff (as in speech), yeah. Having stuff for free ? That's not the UNIX culture...

Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Friday December 09, 2016 @08:33AM (#13138622)
That is why there are so many successful commercial applications being sold on GNU/Linux.
Re:Linux kernel maintainer says no to AMDGPU patch by wolfgke on Friday December 09, 2016 @08:52AM (#13138720)
If the desktop APIs break all the time and there are lots of incompatibilities between distributions, it is really hard to sell commercial applications on GNU/Linux.
Re:Linux kernel maintainer says no to AMDGPU patch by xorxornop on Friday December 09, 2016 @01:02AM (#13136997)
And it is also why it will continue to be marginalised, and have generally shit, inconsistent UI.
Re:Linux kernel maintainer says no to AMDGPU patch by foepys on Friday December 09, 2016 @01:17AM (#13137044)
I feel that any KDE distribution has a more consistent UI than the monstrosity that is windows 10 with their Metro/Ribbon/Windows 7 UIs.
Re:Linux kernel maintainer says no to AMDGPU patch by andromeduck on Friday December 09, 2016 @01:35AM (#13137107)
consistently bloated, yeah
Re:Linux kernel maintainer says no to AMDGPU patch by scythe on Friday December 09, 2016 @03:17AM (#13137433)
Lol KDE has many flaws but bloat isn't one of them, I get the feeling sometimes that the presence of several ultra-ultra-light "desktop environments" on Linux causes people to think the major ones are "bloated" when in fact they're much smaller than the DEs on Windows/OS X. FWIW "slow under certain circumstances" does not necessarily imply bloat b/c a single badly implemented feature can cause slowness but that's not the same as bloat; try enabling compositing in some old versions of Xfce (basically right after it was added, maybe Xfce 4.2?) and you'll see what I mean real quick.
Re:Linux kernel maintainer says no to AMDGPU patch by krylon on Friday December 09, 2016 @07:15AM (#13138289)
It is a matter of taste, of course, but compared to Windows 8 and Windows 10, common Linux/Unix desktop environments like MATE or Xfce are very pleasant to use.
Re:Linux kernel maintainer says no to AMDGPU patch by scythe on Friday December 09, 2016 @03:13AM (#13137426)
Reliable wifi and streaming video appeal to a significantly larger market than GPU-heavy video games. Having a good, easy-to-use image editor (competes with paint.NET and old versions of photoshop) and music player (competes with foobar2k et al/the surprisingly good performance of iTunes on os x) doesn't hurt.

("Do users do X often?" isn't the question; "do they get annoyed when they can't?" is the question, and hardcore gamers tend to have one computer for gaming and oftentimes other computers for other stuff; if they were even using Linux on those it'd be a paradigm shift)

Re:Linux kernel maintainer says no to AMDGPU patch by lisivka on Thursday December 08, 2016 @11:47PM (#13136742)
Android is Linux.
Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Friday December 09, 2016 @12:02AM (#13136791)
No. Android is a Java based OS that happens to use Linux as a kernel.

The majority of APIs are not exposed to NDK users, only to OEMs.

Google could release lets say Android 8 with another POSIX compliant kernel and the only apps that would notice are the ones using non official APIs.

Re:Linux kernel maintainer says no to AMDGPU patch by lisivka on Friday December 09, 2016 @09:25PM (#13143644)
Some Linux distros are already using non-linux kernels, e.g. GNU Debian/kFreeBSD, so Debian Linux is not Linux then.

Currently, Android is released using Linux kernel, ELF executable format, POSIX API's, and so on. There is no Android/kFreeBSD, nor Android/NT.

Android games can be launched on Linux using android libraries (not all, but some works pretty well, see: http://www.shashlik.io/showcases/ ).

Linux tools can be launched on Android systems (including X based tools, if X server is running).

For most of practical purposes, Android is Linux.

Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Monday December 12, 2016 @06:41AM (#13157365)
Nice try playing word games.

Debian user space isn't the same thing as a kernel.

Android kernel doesn't expose the same syscalls as a standard Linux.

I am really keen in having Google replacing Linux with Magenta, then we can carry on this discussion about what Android is supposed to be.

Re:Linux kernel maintainer says no to AMDGPU patch by lisivka on Thursday December 15, 2016 @12:15PM (#13186192)
Currently, Android can be ran at vanilla kernel: http://forum.xda-developers.com/nexus-7-2013/general/android...
Re:Linux kernel maintainer says no to AMDGPU patch by izacus on Friday December 09, 2016 @04:25AM (#13137659)
A forked version of it because Google didn't want to deal with "No." from the Linux maintainers when they were massacring the kernel into mobile ready form.
Re:Linux kernel maintainer says no to AMDGPU patch by lisivka on Friday December 09, 2016 @09:26PM (#13143651)
My distro uses patched version of Linux kernel too. Only very few brave souls are using vanilla kernel. So what?
Re:Linux kernel maintainer says no to AMDGPU patch by kasabali on Saturday December 10, 2016 @12:45PM (#13146802)
The point is that distro patches are trivial compared to Android patches. Your distro will continue to work fine with a vanilla kernel unless it's using an esoteric configuration, and even with esoteric configurations it's relatively easy to include necessary patches to vanilla kernel.

Compiling and using a vanilla kernel instead of the distro one is straightforward and easy job for people with basic knowledge of source building. It's not a job for "very few brave souls". The reason many people use distro kernels is because they're good enough.

OTOH any consumer Android device requires millions of loc patching to a several years old version of Linux kernel just to boot.

Re:Linux kernel maintainer says no to AMDGPU patch by lisivka on Saturday December 10, 2016 @11:47PM (#13149636)
AFAIK, vanilla kernel improved a lot in terms of functionality, so Android can work on vanilla kernel if code will be adapted to use these new APIs instead of Android homegrown APIs. Anyway, it's open source, so anybody can use Android patches without restriction. I see no problem here. Kernel version 4.4 is fresh enough for me: https://android.googlesource.com/kernel/common/+/android-4.4... .

BTW. I'm not sure if my distro (Fedora) will work with vanilla kernel without Redhat patches. There was times when it wasn't. I compiled kernel myself with my own patches and configuration in between 2001-2008.

Re:Linux kernel maintainer says no to AMDGPU patch by kasabali on Sunday December 11, 2016 @02:27PM (#13152663)
> AFAIK, vanilla kernel improved a lot in terms of functionality, so Android can work on vanilla kernel if code will be adapted to use these new APIs instead of Android homegrown APIs. Anyway, it's open source, so anybody can use Android patches without restriction. I see no problem here. Kernel version 4.4 is fresh enough for me: https://android.googlesource.com/kernel/common/+/android-4.4.... .

What I'm trying to tell is it being possible doesn't mean it is practically possible.

Android specific API or subsystems are one part of it, then there is device specific patches. Kernel and patches being open source makes it possible to switch to a new kernel version but I've almost never seen that exercised. Few years ago the stats were that a typical consumer phone contains millions of line of patches on top of the selected upstream kernel version. It is not feasible to rebase a typical device to use a newer kernel version, and it really shows: I've seen only few phones that got a newer kernel version than it originally shipped with, switching from an ancient kernel version to only slightly newer but ancient kernel version.

> BTW. I'm not sure if my distro (Fedora) will work with vanilla kernel without Redhat patches. There was times when it wasn't. I compiled kernel myself with my own patches and configuration in between 2001-2008.

I'm pretty sure it'll. Linus himself uses Fedora and he likes his kernel pure vanilla :)

Re:Linux kernel maintainer says no to AMDGPU patch by lisivka on Thursday December 15, 2016 @12:14PM (#13186178)
Currently, Android can be run on vanilla kernel: http://forum.xda-developers.com/nexus-7-2013/general/android...
Re:Linux kernel maintainer says no to AMDGPU patch by rodgerd on Friday December 09, 2016 @03:36AM (#13137494)
At this point any Android device you buy is a fork of Linux.

And, frankly, if Google decided to swap out Linux for, say, DragonflyBSD, almost no-one would notice or care.

Re:Linux kernel maintainer says no to AMDGPU patch by scriptdevil on Friday December 09, 2016 @03:52AM (#13137547)
Isn't this true for desktop GNU/Linux too? I mean, last I checked, Debian kFreeBSD would be similar enough to Debian GNU/Linux as long as you don't drop to the console - the equivalent of which would be adb shell.
Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Friday December 09, 2016 @05:11AM (#13137841)
No, because you get full access to the OS APIs, so any application is exposed to the implementation specific behaviours of POSIX and OS specific syscalls and paths.

Where in Android, you just get Java and a tiny bit of C and C++.

Check the NDK documentation, Google provides a list of the set of APIs any NDK application is allowed to use.

Since many used to ignore that list, starting with Android 7, any app that uses unauthorised native libraries will get killed.

Re:Linux kernel maintainer says no to AMDGPU patch by lisivka on Friday December 09, 2016 @09:29PM (#13143659)
It's called tivoization: https://en.wikipedia.org/wiki/Tivoization .

Fork Android OSP and fix that. I'm sure that CyanogenMod will allow me to use native libraries as much as I want.

Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Saturday December 10, 2016 @05:08AM (#13144958)
I am ok with it, as it means less C code exposed to the world.
Re:Linux kernel maintainer says no to AMDGPU patch by kasabali on Saturday December 10, 2016 @12:56PM (#13146863)
I'm not sure of numbers but AFAIR both kfreebsd and khurd have 80% of packages in the archive and even getting to this level requires Linux compatibility hacks like procfs support
Re:Linux kernel maintainer says no to AMDGPU patch by hayd on Friday December 09, 2016 @01:30AM (#13137093)
I think you mean GNU/Android.
Re:Linux kernel maintainer says no to AMDGPU patch by williadc on Thursday December 08, 2016 @11:19PM (#13136643)
> I get the pragmatism but we also need to be realistic

I think what you mean is "I get the idealism but you also need to be realistic." It's not pragmatic to stand your guns and ask a multi-million dollar company to change the code they submit to your open-source project.

Re:Linux kernel maintainer says no to AMDGPU patch by broodbucket on Thursday December 08, 2016 @11:37PM (#13136710)
It's not pragmatic to allow a specific vendor to dump 100k LOC in your project that you have to maintain indefinitely so their developers have an easier time writing for both Windows and Linux.

In my opinion the existing AMDGPU code isn't exactly spectacular as it is. They barely have comments or commit messages and there's a ton of duplication. Linux has issues with keeping driver contributions up to snuff as it is, without enormous vendor-specific HALs everywhere.

Re:Linux kernel maintainer says no to AMDGPU patch by izacus on Friday December 09, 2016 @04:32AM (#13137696)
There's also nothing pragmatic in one-sidedly denying contributions without understanding the case that rewriting a whole business stack for a minor player makes no sense.

What I see here is (sadly, again) two groups of developers unwilling to meet halfway and understanding each others problems. Expecting AMD to support a completely separate driver just for Linux is unrealistic. Expecting a 100kLOC code dump do be accepted is unrealistic as well. I don't see anyone talking about how to get over this hurdle on lkml, I just see the single least constructive word: "No."

Meanwhile, 3D support in Linux will remain a crappy tire fire which works well only if you use a completely proprietary nVidia driver.

Re:Linux kernel maintainer says no to AMDGPU patch by tremon on Friday December 09, 2016 @07:33AM (#13138369)
I've only got one true power as a maintainer, and that is to say No. The other option is I personally sit down and rewrite all the code in an acceptable manner, and merge that instead. But I've discovered I probably don't scale to that level, so again it leaves me with just the one actual power.

-Dave Airlie, in TFA.

Re:Linux kernel maintainer says no to AMDGPU patch by Neliquat on Friday December 09, 2016 @09:59AM (#13139058)
This position is so self-defeating, I really don't know where to start.

1. There is absolutely value in rejecting bad, or even good but unmaintainable code from your codebase. How is this even an argument?

2. The 'devs' don't just all meet and then decide to blow each other off anyway, AMD is simply in a position with Steam where they want it to "just work" for most games at the lowest investment cost possible. They took a gamble and lost.

3. A updated proprietary driver is not ideal, but works better than making the OS worse. Again, not sure you can really disagree.

Re:Linux kernel maintainer says no to AMDGPU patch by hashhar on Saturday December 10, 2016 @05:19AM (#13144983)
I feel like the LKML is the most hypocritical place I've ever seen. One one hand, we want that more people GNU/Linux which depends on the quality and performance and number of application programs that work on Linux, while on the other we seem to encourage developers to make closed source binary blobs because we keep on showing them that we aren't willing to accept code.

It is a lose-lose situation for a developer. If I write open source software, people will demand more and more from me. If I say, "screw this, I'm just gonna release a blob." they will ridicule me while ignoring the fact that I am releasing the blob only because they pushed me to. /rant

Re:Linux kernel maintainer says no to AMDGPU patch by sangnoir on Friday December 09, 2016 @03:53AM (#13137555)
> It's not pragmatic to stand your guns and ask a multi-million dollar company to change the code they submit to your open-source project.

The maintainer explains the pragmatism explicitly:

> AMD can't threaten not to support new GPUs in upstream kernels without merging this, that is totally something you can do, and here's the thing Linux will survive, we'll piss off a bunch of people, but the Linux kernel will just keep on rolling forward, maybe at some point someone will get pissed about lacking upstream support for your HW and go write support and submit it, maybe they won't. The kernel is bigger than any of us and has standards about what is acceptable

Rejecting half-assed patches is pretty pragmatic, no matter who the author is. Maintaining standards is pragmatic because 'your open-source project' is the one that will be maintaining (refactoring/rewriting) the code in the future, not the muliti-million dollar company.

Re:Linux kernel maintainer says no to AMDGPU patch by sjellis on Friday December 09, 2016 @04:08AM (#13137601)
> I think what you mean is "I get the idealism but you also need to be realistic." It's not pragmatic to stand your guns and ask a multi-million dollar company to change the code they submit to your open-source project.

That has basically been Linus' Torvalds job for the last 20 years. People want to contribute to the Linux kernel to get support for the thing that they are interested in, but often the code that they are offering should not be accepted as-is, because it will make Linux as a whole that bit worse. See DBus for an example where clever people strongly put forward useful functionality, and got push-back. The end result was that they went back to the drawing board, and designed something better.

AIUI, the reason that the AMD and nVidia proprietary graphics drivers are a terrifying mass of hacks on top of hacks is trying to say yes to everything. Years later, the vendors can only move forward by setting fire to the whole lot.

Re:Linux kernel maintainer says no to AMDGPU patch by omegaworks on Thursday December 08, 2016 @11:30PM (#13136689)
Thing is, Linux was never intended to run the latest greatest desktop gaming hardware. It was intended to be an open architecture where people contribute from all around the world to make something larger then themselves.

All of these people pretty much contribute their free time to it.

If they can't make basic architectural decisions that improve the worst kinds of work (driver authorship and maintenance is awful drudgery) how can you expect them to feel any kind of ownership over their fate?

You're asking unpaid people to do the work people get paid for. Even worse, when this work just gets dumped on those unpaid people by people who are paid quite well.

Re:Linux kernel maintainer says no to AMDGPU patch by egil on Friday December 09, 2016 @03:31AM (#13137480)
Most work on Linux is paid[0]. However, asking paid people to do work that does not align with their employers interest nor the project maintainers, is on par with what you're asking.

[0] 4.5 Development statistics https://lwn.net/Articles/679289/. Just google lwn Development statistics for more.

Re:Linux kernel maintainer says no to AMDGPU patch by mixedCase on Friday December 09, 2016 @06:41PM (#13142878)
>However, asking paid people to do work that does not align with their employers interest nor the project maintainers, is on par with what you're asking.

Oh but it is in their employers' interest. It's the price of admission for mainline. And if they want in on mainline, wether simply to harvest PR or to net a contract that demands a mainlined kernel; they have to pay it. Just another case of the well-known "cost of doing business".

In the case of AMD I believe they want to reap the benefits of mainline (that is, not having to support the breakage that comes with being out of tree) and to be able to compete better with Nvidia; since AMD is unlikely to ever develop an OpenGL implementation as good as theirs but Nvidia cannot or is unlikely to be able to open source their driver.

Re:Linux kernel maintainer says no to AMDGPU patch by tracker1 on Friday December 09, 2016 @03:36AM (#13137491)
It might be different if AMD, Nvidia and Intel all agreed on a longer term HAL, but that isn't the case... and 100kloc is pretty huge for a single vendor.
Re:Linux kernel maintainer says no to AMDGPU patch by ssutch3 on Thursday December 08, 2016 @11:29PM (#13136684)
Haha yeah, because the Linux Kernel is just another open source project.
Re:Linux kernel maintainer says no to AMDGPU patch by pjmlp on Thursday December 08, 2016 @11:14PM (#13136619)
Other than the desktop.

And before anyone mentions Android and ChromeOS, Google can replace the kernel and only OEMs writing drivers, most of them closed, would notice.

Re:Linux kernel maintainer says no to AMDGPU patch by pavanky on Friday December 09, 2016 @01:16AM (#13137042)
Sure it is the OS problem that Linux doesn't dominate the desktop.

Nothing to do with Windows and OSX being bundled with the hardware /s

Re:Linux kernel maintainer says no to AMDGPU patch by EpicEng on Friday December 09, 2016 @01:53AM (#13137164)
GPU drivers that work half as well as the competition don't help.
Re:Linux kernel maintainer says no to AMDGPU patch by icebraining on Friday December 09, 2016 @02:35AM (#13137312)
They do, if that's what it takes to keep the qualities that make Linux different. If it turns itself into a shitty Windows clone, then one might as well use the original.
Re:Linux kernel maintainer says no to AMDGPU patch by EpicEng on Friday December 09, 2016 @10:55AM (#13139408)
No, on the desktop, they absolutely do not. It may please a tiny subset of people who understand what the kernel is and read patch notes, but no one else.
Re:Linux kernel maintainer says no to AMDGPU patch by yoasif_ on Friday December 09, 2016 @11:53AM (#13139864)
It works fine for members of my family and extended family that have Ubuntu installs on Intel GPUs. Light gaming and more importantly, hardware accelerated YouTube works just fine.

I'd be willing to bet that most people really only want windows to appear quickly, scrolling in web pages to work well, and to watch videos online.

Lots of casual gaming has moved to mobile, and never left the consoles. Hardcore gaming -- not most people.

Re:Linux kernel maintainer says no to AMDGPU patch by hashhar on Saturday December 10, 2016 @05:23AM (#13144996)
I used to think like you too. But spending around 3 to 4 hours a month (that's being very modest) trying to fix video tearing, hibernation issues, wifi issues etc. after every kernel release is a pain that I won't endure for long.
Re:Linux kernel maintainer says no to AMDGPU patch by icebraining on Saturday December 10, 2016 @08:25AM (#13145540)
Wow, you got really unlucky. I'm on Debian Unstable yet I spend less than that per year. Are you sure you just didn't happen to hit upon a particularly badly supported hardware configuration?

In any case, why are you updating the kernel version every month?

Re:Linux kernel maintainer says no to AMDGPU patch by hashhar on Saturday December 10, 2016 @08:55AM (#13145642)
Well, I use the mainline since I would like to start contributing sometime later. Also, I have a custom bootloader set up that managed to integrate nicely with Secure Boot, VMWare modules have to be recompiled with almost every kernel update since it breaks the Virtual device monitor and I had to write a script to automate that patching process.

Video tearing has been a constant problem if you use any type of compositer like Compton or the one that comes with XFCE or GNOME. I tried it on various systems and the tearing is there. A lot of people don't seem to mind though. For some reason, the Ubuntu maintainers don't think my hardware (or rather all laptops) should have the capability to hibernate to disk so they disable the /sys/disk (Im not sure I got the correct filename) which enables suspend to disk (this is one of the reasons why I need to use mainline anyway). PulseAudio doesn't play nice with DACs, ALSA is a pain to set up.

I really like Linux (so much that I keep 'ricing' my system) but these are the kinds of things that I'd rather not spend my time on.

Re:Linux kernel maintainer says no to AMDGPU patch by pavanky on Friday December 09, 2016 @12:27PM (#13140100)
That sounds like someone who has no idea what they are talking about. The open source drivers are a bit buggy. The binary drivers work just fine on Linux. Their performance in games is lower compared to Windows, but that is the case on OSX too.