News for hackers. Stuff that matters.
Re:Chromium blacklists Nouveau by nolok on Saturday January 05, 2019 @05:50PM (#18834817)
For anyone interested, the link really should be the full bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=876523

The current link says it as if Chrome was not being fair, but reading their reasoning it makes total sense. Key quote from said bug report:

> We thought about blacklisting nouveau driver long time ago, and decided to let more adventurous users to play around. Now that Ubuntu ships with nouveau on default, maybe it's time to blacklist it in Chrome.

> We received quite some bug reports on other rendering issues with Nouveau, and this bug is just one of them. So we will disable all GPU acceleration by default. If someone wants to bypass that, there are two options: 1) install proprietary NVidia drivers (see #24) 2) run Chrome with --ignore-gpu-blacklist, but be aware you are taking a risk here

> Unfortunately we don't have the resources to test every variation of every GPU/driver combination on linux, let alone investigate & fix bugs in drivers. We want a stable & secure browser first, a GPU-accelerated one second, only if possible.

> The default driver on Ubuntu LTS has severe issues, asking non-technical users to update their driver is just not acceptable as a prerequisite to use Chrome.

> If someone is interested in well-scoping the brokenness (version range and/or devices affected), we're happy to take a patch to the blacklist.

So the driver fails in some (common enough) cases, they let it run anyway but now it's default on ubuntu so a lot of non tech users are/will be affected, so they block it but you can still bypass the block if you want. And if newer version fix it and someone can help them figure out which versions work for what, they are willing to limit the blocking.

Re:Chromium blacklists Nouveau by apatters on Saturday January 05, 2019 @11:01PM (#18836492)
This is actually a reasonable position in my opinion, but there are two problems (neither of them is Google or Chromium's fault):

1) Nouveau is buggy and problematic (related more to performance and a lack of support for many features)

2) The Nvidia drivers are buggy and problematic (related more to setup and compatibility with the rest of the system)

Both of these problems can be traced back to the same root cause, which is simply that Nvidia refuses to do a good job of supporting Linux in any way. They could give Nouveau some funding and information about their hardware, but they don't do that. They could develop proper Linux drivers, but they don't do that either. Every way you look at it Nvidia is at the root of the problem.

The solution on the consumer side is to not buy Nvidia products, and to encourage other people to not buy Nvidia products. The solution on the producer side is to contribute to Nouveau (easier said than done unfortunately, your average web dev can't just jump in and reverse engineer graphics drivers on a weekend).

Re:Chromium blacklists Nouveau by BurningCycles on Saturday January 05, 2019 @11:16PM (#18836537)
>which is simply that Nvidia refuses to do a good job of supporting Linux in any way.

I really dislike the way Nvidia makes it difficult for projects like Nouveau to reverse engineer an open driver, however I don't understand what you mean by poor support for their Linux driver, it's probably the one thing I can't fault them for as it is performing very well and stable.

I'm with you on not buying NVidia products though, that is the best way to send a message.

Re:Chromium blacklists Nouveau by apatters on Sunday January 06, 2019 @12:47AM (#18836783)
YMMV I suppose. Some people seem to have good experiences with their driver but mine have been terrible. I've used Ubuntu as my daily driver for 7 years now and Nvidia's driver has been the #1 source of crashes and configuration problems (half of the time I can't even get 3d accel working with it turned on, spend hours trying different versions that are reported on some forum to have fixed some problem but they don't, can't figure out why things aren't working, upon upgrading from 16.04 to 18.04 it borked the whole system and I had to switch to Nouveau, this list of Nvidia driver pain goes on forever, this is across multiple installs of Ubuntu).

All my experience has been on laptops and there are lots of reports of Optimus related problems on Linux so there's that. I gave up on the hope of having Optimus actually work years ago. I would like to just be able to enable the latest version of Nvidia's driver and see my laptop start using the discrete gpu. That would be a big step forward from the past 7 years.

FWIW there's Linus' famous Nvidia F-bomb :) "Nvidia has been the single worst company we ever dealt with" https://www.youtube.com/watch?v=IVpOyKCNZYw

Re:Chromium blacklists Nouveau by rincebrain on Sunday January 06, 2019 @05:50AM (#18837692)
FWIW it's quite possible that's not Linux-specific, a bunch of people have problems with NVIDIA driver crashes on, say, Windows too.

There's a reason Microsoft shimmed the ability for the display driver to crash and restart without taking out the rest of Windows...

Re:Chromium blacklists Nouveau by Doxin on Monday January 07, 2019 @07:44AM (#18844706)
You should give the SGFXI[1] script a try. it's a bit of a hassle to use video drivers from outside the apt-repos but that script basically always manages to set up a working driver for me.

[1] https://smxi.org/docs/sgfxi-manual.htm

Re:Chromium blacklists Nouveau by radarsat1 on Sunday January 06, 2019 @10:01AM (#18838621)
One other factor: On 18.04, I have found it nearly impossible to use the NVidia driver. After installing, whatever I do, nouveau takes over. This was not the case on previous Ubuntu versions. Even putting nouveau on the blacklist does not solve the problem -- somehow even if I put it on modprobe's blacklist, also in the kernel arguments, it somehow manages to start up. No idea how or why. I solved it before, eventually, I can't quite remember, but since re-installing my operating system I haven't figured it out again. I think I eventually had to actually move/delete the nouveau ko files, which is a very destructive way to deal with a problem and interferes with apt, and even then they got re-built and re-installed by dkms and took over the display again! I did find a permanent solution which escapes me at the moment.

Anyways, it would be good if NVidia and Ubuntu got together and at least made it easier to make use of the official driver.

Re:Chromium blacklists Nouveau by antpls on Sunday January 06, 2019 @08:16AM (#18838150)
> 2) The Nvidia drivers are buggy and problematic (related more to setup and compatibility with the rest of the system)

Aren't scientific farm servers running on Linux kernel with Nvidia cards ? It would not be used if it was that buggy, so I think that claim needs precision

Re:Chromium blacklists Nouveau by frabbit on Sunday January 06, 2019 @09:28AM (#18838467)
Is that science? A bunch of computing units running secret code?!

Reproducibility in computational science is recognized as a huge problem: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3383002/

A lab or institution claiming a publishable result based on discounted hardware from the manufacturer running code that does who knows what for their TensorFlow/whatever calculations is engaged in something other than science. I wouldn't go quite so far as to say that they're just engaged in advertising demonstrations, but it's coming close.

Re:Chromium blacklists Nouveau by dekhn on Sunday January 06, 2019 @11:01AM (#18838932)
let's step back from the brink. Plenty of good science is done on proprietary foundations. It would be unrealistic to do otherwise. Reproducibility doesn't necessarily mean every component of the system is completely open and inspectable.
Re:Chromium blacklists Nouveau by frabbit on Sunday January 06, 2019 @02:43PM (#18840135)

   Reproducibility doesn't necessarily mean every component of the system is completely open and inspectable.
If it's not "open and inspectable" then it cannot be reproduced by another group/researcher. It's just unsupported claims building on a wonky methodology.

I wonder what percentage of "Machine Learning" results are based on such shaky foundations and when they'll receive the same amount of skepticism and scorn we see heaped(deservedly) on the field of psychology.

Re:Chromium blacklists Nouveau by MaulingMonkey on Sunday January 06, 2019 @04:31PM (#18840838)
> If it's not "open and inspectable" then it cannot be reproduced by another group/researcher.

That doesn't follow. They can (attempt to) reproduce with the same hardware, firmware, and drivers. They can reproduce with similar hardware from another vendor (AMD). If you're using OpenCL, you can reproduce on CPUs, albeit much slower and probably only for partial results. Maybe you want to break out some pen and paper to verify a few calculations of the CPU for even more partial results because you don't trust Intel's firmware blobs, even though you've presumably cross checked against AMD hardware, but you've gotten quite silly at that point.

Maybe some of these changes won't give you bitwise identical results - but then again, neither does most science. You check if the broad results and patterns are statistically similar. Maybe they are, and the results survive a large variety of similar but different test setups. Maybe they don't, and you discover an uncontrolled variable, like the exact chemical composition of the surface of your glass beakers being contaminated by impurities, or your AI being sensitive to the exact floating point rounding behavior of your GPU.

If anything, you want to see if your results survive variations in the uncontrolled variables, to make sure you've properly determined what factors are controlling the results.

Re:Chromium blacklists Nouveau by frabbit on Sunday January 06, 2019 @06:29PM (#18841449)
What you say is correct, but partial.

If you cannot reproduce then you do not know whether it is due to the equipment/materiel varying or not and you have severely reduced options for investigating that.

If you look at the problems with even reproducing and testing the bugs that the specific situation under discussion exposes it is illustrative of the difficulties involved with working with a non-modifiable, unexaminable platform.

In your example, the researchers would be forbidden by IP laws from examining and testing the surface of the beakers for contaminants and publishing a description which allowed other researchers to make similar modifications.

It's the most sub-optimal situation in which to obtain something which starts to approximate reality. Not impossible, just difficult, and likely to lead to shenanigans.

Re:Chromium blacklists Nouveau by bastawhiz on Sunday January 06, 2019 @08:44AM (#18838259)
The cards are not the issue. Drivers can be problematic with certain workloads (like rendering UIs) and not others (like loading and running non-graphics programs). It's also a lot easier to debug and deploy a fix to a farm of identical servers with identical drivers than it is to be compatible across a huge breadth of configurations.
Re:Chromium blacklists Nouveau by lultimouomo on Saturday January 05, 2019 @06:49PM (#18835202)
>> Unfortunately we don't have the resources to test every variation of every GPU/driver combination on linux

So Google doesn't have the resources to test the default driver on the most widespread linux distribution for one of the two most widespread GPU producers in the market.

Re:Chromium blacklists Nouveau by ender7 on Saturday January 05, 2019 @07:38PM (#18835466)
No, in fact one of the bug comments refutes this sarcasm:

> The default driver on the distribution we support is broken.

They do test the default driver on the distributions they support. The tests show that the driver is unacceptably unstable. It may work better on other distros/versions, but they don't have time to test those. They're happy for others to help out in testing these unsupported combinations, however:

> Again, if someone wants to spend the time to test thoroughly to narrow down the blacklist, we will accept patches.

Re:Chromium blacklists Nouveau by ajross on Saturday January 05, 2019 @07:34PM (#18835443)
Not for a free product, no. It's not our place to decide for Google what they want to do. If we want our open source software to work we should make it work. You can rebuild chromium to change the blacklist, or just use the command line to tell it to ignore the blacklist. It's not like Google doesn't provide options.

And in any case the reason nouveau sucks (and yes, folks, nouveau sucks) isn't Google's fault to begin with.

You seriously want to complain about Google's lack of support for an open source driver that barely exists because of NVIDIA's lack of support?

Re:Chromium blacklists Nouveau by steve19 on Saturday January 05, 2019 @07:52PM (#18835544)
It's free in the sense you don't pay for it with money, but considering how much Google pays apple to use Google as the default search engine, I would say the Google Browser is a big money maker.
Re:Chromium blacklists Nouveau by ajross on Saturday January 05, 2019 @08:06PM (#18835592)
No, Chromium is free in the GNU sense, which is what I meant. You don't whine at open source providers to support features you want, it's bad form. Go fix it yourself, or use hardware that doesn't require this kind of hacky reverse engineering.
Re:Chromium blacklists Nouveau by loeg on Saturday January 05, 2019 @08:28PM (#18835705)
It's fairly uncommon for open source software to blacklist components that (attempt to) implement a compatible interface. Usually selecting an appropriate hardware driver is left in the hands of the distribution or administrator.
Re:Chromium blacklists Nouveau by xyzzyz on Saturday January 05, 2019 @08:31PM (#18835720)
Yes, and the distributor or administrator is free to rebuild the browser or just set the flag to disable blacklisting. It’s only default behavior that changed.
Re:Chromium blacklists Nouveau by loeg on Saturday January 05, 2019 @08:55PM (#18835853)
Chrome has the special sauce — distributors and administrators cannot rebuild it, only Chromium.
Re:Chromium blacklists Nouveau by magicalist on Saturday January 05, 2019 @11:15PM (#18836534)
Flip the flag then.

It's crazy to suggest they should give web access (not just webgl, but CSS styling) to a buggy GPU driver by default without an opt in by the user.

Re:Chromium blacklists Nouveau by smueller1234 on Sunday January 06, 2019 @06:48AM (#18837854)
Is that different than the branding/trademark issue that Firefox also had for years?

(Not bring cynical, I genuinely don't know.)

Re:Chromium blacklists Nouveau by loeg on Monday January 07, 2019 @01:42AM (#18843278)
Yes, it's different. You can build trademark Firefox so long as you do not modify it at all. You cannot build Chrome from the chromium sources — there are components which are not present in the open source repository. It's not just the trademark, unlike Firefox vs Iceweasel.
Re:Chromium blacklists Nouveau by smueller1234 on Tuesday January 08, 2019 @02:54AM (#18854023)
Thanks for the explanation!

From reading more about it, it seems these are all benign (in the sense of Chromium couldn't ship h264 because it's licensed but Chrome can).

Re:Chromium blacklists Nouveau by mehrdadn on Saturday January 05, 2019 @09:32PM (#18836092)
> You don't whine at open source providers to support features you want, it's bad form. Go fix it yourself

This just about sums up the problem with open source. The response is always "if you don't like it, fix it yourself". Because everybody is a developer with copious free time to learn how to fix the problem in their favorite product. It's not like cloning and building Chromium takes hours. Or like you would lose anything by using Chromium instead of Chrome.

Re:Chromium blacklists Nouveau by AnthonyMouse on Sunday January 06, 2019 @02:16AM (#18837055)
> Because everybody is a developer with copious free time to learn how to fix the problem in their favorite product.

But that's the point. The response always works because it's proportional to the problem. For problems that are legitimately small and you could fix yourself, or pay someone to do it for an amount of money that a normal person could feasibly pay, it's a valid way to solve the problem.

And for problems bigger than that, it invites the user to consider what they're really asking for and who they're asking for it. Actually fixing nVidia's dumpster fire would be a huge ordeal for anyone other than nVidia. Asking a third party to do it without documentation... let's just say there is a reason nouveau is in the state that it's in, and it's not a general lack of interest in fixing it.

So in that case "go fix it yourself" means "if you think it's so easy then let's see you do it."

Re:Chromium blacklists Nouveau by meditate on Saturday January 05, 2019 @09:50PM (#18836201)
I don't see what the issue here is. If you don't have the time to do it then get someone else to do it. If they won't do it for free then you pay them. The unfortunate part is that if you regularly buy brand new Nvidia cards then the cost of the proprietary driver is built into the price of the card, so it sucks that you would have to pay twice for drivers. But this clearly is a result of Nvidia's decision, they are thes one who are forcing you to take personal responsibility for getting your own libre drivers working, not the developers working on said libre (and gratis) drivers.
Re:Chromium blacklists Nouveau by mehrdadn on Sunday January 06, 2019 @01:52AM (#18836985)
Sorry for the confusion, I see mentioning Chromium by name made my comment a bit misleading. I was responding to the parent comment (not to the original post) and using Chromium as an example of how it's unrealistic to ask users to fix things themselves when using OSS. I was not trying to comment on Google's decision on this particular issue here (though I have mild thoughts on that too).
Re:Chromium blacklists Nouveau by ndnxhs on Saturday January 05, 2019 @09:43PM (#18836168)
The proprietary version is "if you don't like it, learn to like it."
Re:Chromium blacklists Nouveau by chris_wot on Saturday January 05, 2019 @09:48PM (#18836195)
Which is the same as the open source version?
Re:Chromium blacklists Nouveau by ndnxhs on Saturday January 05, 2019 @10:58PM (#18836481)
No, with open source you have the choice to do or pay someone for the work. With closed source you get what the devs give you.
Re:Chromium blacklists Nouveau by sbuk on Sunday January 06, 2019 @05:45AM (#18837682)
That’s still Hobson’s choice.
Re:Chromium blacklists Nouveau by ajross on Saturday January 05, 2019 @11:46PM (#18836634)
> Because everybody is a developer with copious free time to learn how to fix the problem in their favorite product

It takes copious free time to learn how to run chromium with an --ignore-gpu-blacklist argument? What kind of strawman are you trying here?

Look. The open source NVIDIA driver is terrible, and Google doesn't want it messing up the experience of the people using its product. Who are you to demand that Google fix someone else's terrible driver (which is terrible through no fault of Google's -- NVIDIA would prefer it not exist at all)?

If you really cared about this at all, you'd be upset with NVIDIA. But you're not. You apparently don't even like open source software, which presumably means you're using the binary drivers and unaffected, right?

Re:Chromium blacklists Nouveau by lultimouomo on Sunday January 06, 2019 @04:08AM (#18837392)
I'm not complaining about the decision, I'm just saying the rationale given is ridiculous.

The driver is hopeless? Fine.

You don't want to spend money on people that will most probably install an ad blocker? Go ahead.

You don't have the resources? Come on.

Re:Chromium blacklists Nouveau by zapzupnz on Saturday January 05, 2019 @06:53PM (#18835230)
I mean, just because it's one of two GPU producers, that doesn't mean the nvidia product line is simple. There are desktop chips, there are notebook chips, there are multiple versions of the same card made by different manufacturers who add their own little touches, there are different chipsets, there are different configurations, there are different X11 setups, there are different desktop environments which may enforce different settings, etc.

It's not as simple as "one of the two most widespread GPU producers in the market".

Re:Chromium blacklists Nouveau by TylerE on Saturday January 05, 2019 @08:38PM (#18835766)
and it's not one of two, it's one of three. Intel has huge market share, also, especially in things like notebooks.
Re:Chromium blacklists Nouveau by shhehebehdh on Saturday January 05, 2019 @06:59PM (#18835255)
Obviously it’s not that Google doesn’t have the resources. They have enough resources to fund whole new OSes. Of course they could fund testing.

Chrome team, on the other hand, does not have the resources. Which is to say that this is not the thing they believe is most important to work on at the margin, and given the amount of engineers Google will fund for the project.

Re:Chromium blacklists Nouveau by geofft on Saturday January 05, 2019 @07:34PM (#18835440)
Which, to be clear, seems entirely justifiable because software rendering exists.

If Nvidia wants their cards to work well on an all-free-software stack, they can provide a free software driver. If users care about making an unofficial driver work, they can do the work or fund the work. Chrome is just trying to get web pages on the screen and it doesn't seem like it's worth the boil-the-ocean level of effort of taking responsibility for implementing a reverse-engineered graphics driver when they can just get web pages on the screen using software rendering.

Re:Chromium blacklists Nouveau by Aeolun on Sunday January 06, 2019 @04:32AM (#18837447)
As far as I understood they could get pages on the screen even with the nouveau driver.
Re:Chromium blacklists Nouveau by chrismeller on Sunday January 06, 2019 @05:31AM (#18837641)
That's the part that I don't understand. The bug report says on Linux the same rendering is used for the UI as well as the page content... but only the UI was ever having a problem?

Something doesn't add up to me there, and no one that I saw ever addressed that in more detail.

Re:Chromium blacklists Nouveau by Dylan16807 on Saturday January 05, 2019 @07:29PM (#18835418)
If the chrome team doesn't have the resources for testing the most common Linux configurations, it's not a good sign. Linux market share is low but it's a useful signifier.
Re:Chromium blacklists Nouveau by shhehebehdh on Sunday January 06, 2019 @01:19AM (#18836886)
They have the resources to test that configuration. They just don’t have the resources to fix the driver bugs the tests found.
Re:Chromium blacklists Nouveau by a11595 on Saturday January 05, 2019 @08:22PM (#18835673)
you're the only one saying the don't. they are saying the most common linux configuration causes issues so blacklist the buggy driver in it

they are also saying their that driver may work fine on some less common linux configurations, and the chrome team does not have the resources to test those.

you are literally saying they are saying the opposite of what they said, then blaming them for it.

Re:Chromium blacklists Nouveau by Dylan16807 on Saturday January 05, 2019 @10:53PM (#18836462)
They were using "not enough resources" to support the idea of blacklisting. If they meant it as you say, that means they're blanketly blacklisting the most common config despite having the resources to test it, which is even worse.
Re:Chromium blacklists Nouveau by a11595 on Sunday January 06, 2019 @12:22AM (#18836710)
I'm not sure what is unclear to you here. They do support the idea of blacklisting for every possible unpopular config, despite it possibly working. This is not only common sense, it is what every company does. When you write your software, do you test it on every possible distribution users could use, or just the popular ones?

The common distribution was blacklisted not because it was not tested, but because it clearly has issues observed and reported by the users.

Re:Chromium blacklists Nouveau by Dylan16807 on Sunday January 06, 2019 @01:26AM (#18836907)
...no, "every company" does not blacklist unpopular configs.
Re:Chromium blacklists Nouveau by a11595 on Monday January 07, 2019 @12:52AM (#18843086)
If your software doesn't work in a popular config they don't blacklist it in all the untested less popular configs? You are clear they are blacklisting the GPU driver, not blacklisting a linux install - right?

If a driver does not work in popular configs, and needs to be blacklisted in those configs, your solution is to still whitelist it in other configs and have the browser likely not work.

yes, "every company" does exactly what google did. you are being purposely dense, trying to catch a "technically correct" chance of not admitting the stupidity of your question. The problem is, you are not even technically correct - just purposely dense.

Re:Chromium blacklists Nouveau by magicalist on Saturday January 05, 2019 @11:18PM (#18836543)
Huh? It appears they did test it, and for that matter (according to the linked post) so did the Nouveau devs who also found it failed the easily accessible test suite.
Re:Chromium blacklists Nouveau by Dylan16807 on Saturday January 05, 2019 @11:26PM (#18836567)
We agree Nouveau is completely blacklisted right? That's the main problem here.

And the test suite failed on a minor issue where the cause was uncertain, which gets in the way of checking for the bigger definitely-the-driver problem.

Re:Chromium blacklists Nouveau by magicalist on Sunday January 06, 2019 @02:25AM (#18837082)
If you can hang the GPU with regular webgl content, that's not a minor issue.
Re:Chromium blacklists Nouveau by vfq on Sunday January 06, 2019 @06:10AM (#18837732)
That's the reason I have webgl disabled even though I'm on Windows with a supported driver. It opens a gaping security/DoS hole without any benefit (do you ever see webgl used in any website?)
Re:Chromium blacklists Nouveau by blihp on Saturday January 05, 2019 @07:50PM (#18835530)
Unfortunately, 'the most widespread Linux distribution' is rounding error in the overall scheme of things from a desktop standpoint so it's actually pretty good that they support it as well as they do. Adding Nouveau to the mix is rounding error on the rounding error. So from Google's standpoint, sure they don't have the resources to test it relative to the number of impacted users. Looking at it another way: it's not like Apple or Microsoft will (ever) provide better support so they can get away with it.

I solved the Chrome/Chromium on Linux problem long ago by switching to Firefox. I'll still fire up Chromium for Google sites and a handful of other sites, but for the most part Firefox has been getting it done for me.

Re:Chromium blacklists Nouveau by mda on Sunday January 06, 2019 @07:54AM (#18838092)
They don't have the resources to "fix" it, they tested it and decided it was not stable enough. What they did was right. Firefox entirely disables GPU acceleration, so I am not sure what your argument is.
Re:Chromium blacklists Nouveau by Mikeb85 on Saturday January 05, 2019 @09:40PM (#18836137)
No, they don't want to waste time trying to make a broken driver work.

It's an Ubuntu/Nvidia problem, not a Google problem. AMD and Intel open source drivers work just fine.

Re:Chromium blacklists Nouveau by frabbit on Saturday January 05, 2019 @10:09PM (#18836301)
Exactly. Nvidia have been relentlessly hostile to Free Software for ever. No one who wants an easy life or a stable, upgradeable operating system would buy an Nvidia card.
Re:Chromium blacklists Nouveau by bubblethink on Saturday January 05, 2019 @07:08PM (#18835298)
> most widespread linux distribution for one of the two most widespread GPU producers in the market

That's still less than a percent of the market I think. Maybe shave off another order of magnitude. So the economic argument is not the one to make. However, it sucks nonetheless.

Re:Chromium blacklists Nouveau by zanny on Saturday January 05, 2019 @07:23PM (#18835390)
Its still probably hundreds of thousands of users. I hate arguments about "but Linux is only a fraction of the market!" because the total OS / browser usage market is in the billions of people. Even small fractions of that pie could found their own countries and be of reasonable size for a nation.
Re:Chromium blacklists Nouveau by bubblethink on Saturday January 05, 2019 @08:43PM (#18835788)
>found their own countries and be of reasonable size for a nation.

Honestly, you could fill up the number of people using nouveau with chromium in a stadium more likely. From the small pie of linux users, you drill down to nvidia, and then further down to nouveau. All laptop users, even with nvidia cards, will only use the intel gpu unless they explicitly enable the discrete mode and not install the nvidia drivers. Desktop users obviously only buy nvidia if they want to use the binary driver. What do you think remains of the pie ? I haven't met a single person in real life who uses this stack. I love nouveau. That doesn't change the numbers though.

Re:Chromium blacklists Nouveau by Aeolun on Sunday January 06, 2019 @04:38AM (#18837465)
Then of those people, there is a fraction that uses the Nvidea cards that are impacted, and an even smaller number of uses will run into issues.

To save those users from themselves, Google now disabled GPU accelleration for all Ubuntu users.

Seems like a bit silly to me.

Re:Chromium blacklists Nouveau by bobthepanda on Saturday January 05, 2019 @07:34PM (#18835447)
If the market share were compelling enough, couldn’t some other maintainer step up and do this work? OSS doesn’t necessarily mean support for everything under the sun at all costs; Chromium may be open source but that doesn’t mean they have carte blanche from Google to test every possible combination of distro and GPU.
Re:Chromium blacklists Nouveau by zanny on Saturday January 05, 2019 @09:36PM (#18836111)
This kind of problem specifically doesn't map to "user finds problem, puts money where mouth is on bug bounty to fix it" because actually figuring out your Blink based browser isn't hardware accelerated is at least a nontrivial task most won't even realize until they go "oh wow whys it so much faster on Windows?" and then not even know where to start looking to find out why.
Re:Chromium blacklists Nouveau by lstodd on Saturday January 05, 2019 @08:12PM (#18835618)
Why should those would-be maintaners help Google? There's always Firefox to fix.
Re:Chromium blacklists Nouveau by murderfs on Saturday January 05, 2019 @08:33PM (#18835735)
Firefox disables GPU acceleration on Linux entirely, largely for the same reasons.
Re:Chromium blacklists Nouveau by makomk on Sunday January 06, 2019 @07:24AM (#18837987)
I'm pretty sure Mozilla just don't care about Linux these days. It's been getting steadily worse, and 64.0 is almost unusable for me due to a bug that has nothing to do with graphics which hangs the whole thing for minutes at a time.
Re:Chromium blacklists Nouveau by bubblethink on Saturday January 05, 2019 @05:54PM (#18834845)
>Now that Ubuntu ships with nouveau on default, maybe it's time to blacklist it in Chrome.

I don't get this. All linux distros under the sun ship with nouveau, and always have. It is a kernel driver afterall. What else are they going to ship ?

Re:Chromium blacklists Nouveau by haneefmubarak on Saturday January 05, 2019 @06:03PM (#18834903)
I think their point is that by default, even with the "use recommended drivers" option enabled, Ubuntu uses the nouveau driver by default instead of installing and using the NVIDIA driver.
Re:Chromium blacklists Nouveau by mempko on Saturday January 05, 2019 @09:46PM (#18836183)
the nvidia driver is proprietary. If nvidia opens the source, maybe they would ship with that instead.
Re:Chromium blacklists Nouveau by haneefmubarak on Sunday January 06, 2019 @02:39AM (#18837130)
Well, installing recommended drivers on Ubuntu installs the Intel or AMD microcode, which is definitely proprietary, so I don't think that's a particularly reasonable argument.

The NVIDIA driver is the driver that yields the best performance and experience; AFAICT the only reason it's not shipped by default is because the kernel is then considered "impure" or something (because source isn't available to debug issues in the NVIDIA driver), hence bugs can't be filed upstream for any issues in the kernel if the NVIDIA driver is installed.

However, none of this is really the concern of the Chrome team. Their responsibility is to give the user the best experience, which they have defined as security, stability, and performance in that order. Since the nouveau driver is causing stability bugs, it's perfectly reasonable for them to fallback to software rendering and take the performance hit in order to preserve stability.

Re:Chromium blacklists Nouveau by xzvnjp on Sunday January 06, 2019 @09:16AM (#18838399)
> the kernel is then considered "impure" or something

The term is "tainted".

Re:Chromium blacklists Nouveau by monocasa on Saturday January 05, 2019 @06:10PM (#18834958)
> What else are they going to ship ?

Including Nvidia's binary driver by default. Obvs Debian, gNewSense, and GUIX can't do that, but since when have corps cared about them?

Like, don't get me wrong, I'm a FOSS or GTFO kind of guy, running Debian and Replicant, but shipping proprietary drivers by default is what chrome is hinting at obviously.

Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @06:37PM (#18835136)
You can't, for the same reason you can't ship ZFS.

The combining of proprietary and GPL code has to be made by the user and the result is un-distributable. That's why distributions cannot ship it.

What they can do is to make the above step easy (which Ubuntu does).

Re:Chromium blacklists Nouveau by monocasa on Saturday January 05, 2019 @09:18PM (#18836002)
It's way more complicated than that.

AFAIU, Nvidia's legal argument is that their driver can't be 'derived from' the Linux kernel even though it's linked into the kernel since it's older than their Linux port and only is linked against their GPLed (and if push comes to shove, dual licensed GPL and proprietary) kernel abstraction layer. Judges don't care about linkers and the GPL doesn't actually say anything about linking.

Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @11:03PM (#18836497)
This is not the derivation argument (that would be forcing GPL on Nvidia, which they want to counter, of course).

This is about GPL infrigment; you can combine GPL licensed code with differently licensed code, but only in your privacy, without distributing the result to others. Once you would distribute the result, you would be breaking GPL, thus having no right to distribute.

Re:Chromium blacklists Nouveau by monocasa on Saturday January 05, 2019 @11:24PM (#18836552)
The GPLv2 literally defines itself in relation to trees of derived works:

> The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language.

The argument that I've is that even when linked together, the Nvidia binary driver isn't a 'derivative under copyright law' because it doesn't have Linux specific entry points, and is older than their Linux port, and therefore isn't part of "The 'Program'" as listed in the GPL.

Re:Chromium blacklists Nouveau by vetinari on Sunday January 06, 2019 @05:58AM (#18837708)
GPL defines itself by four essential freedoms.

Your argument is, why some piece of software should (or should not) be relicensed to GPL.

My argument is, that since that piece of software is currently not GPL licensed; avoids the relicensing topics and explores how to solve the current situation wrt distribution of the combined work. Use by the end-user is non-issue, due to freedom 0.

Re:Chromium blacklists Nouveau by monocasa on Monday January 07, 2019 @11:33AM (#18846621)
Their argument is that even if linked and distributed, there is no GPL violation for the reasons above.
Re:Chromium blacklists Nouveau by threeseed on Saturday January 05, 2019 @07:35PM (#18835451)
I thought you could just have the drivers be downloaded and installed during installation i.e. never technically shipped with the OS.
Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @11:04PM (#18836502)
That's somewhat similar to what Ubuntu does, with the additional drivers applet.
Re:Chromium blacklists Nouveau by ec109685 on Saturday January 05, 2019 @07:40PM (#18835472)
This isn’t correct. WiFi router ships with GPL Linux and proprietary router software. The company / foundation creating the distribution just needs to have a license for the proprietary bits.
Re:Chromium blacklists Nouveau by bubblethink on Saturday January 05, 2019 @08:29PM (#18835712)
No, that's not entirely true either. Depending on where the proprietary bits are, it's the other side that is the problem. It is a violation of the GPL. So the usual workaround is to shift the responsibility to the user so that incompliant stuff is done by the user by the way of a script that runs on the user's behalf.
Re:Chromium blacklists Nouveau by Renevith on Saturday January 05, 2019 @09:32PM (#18836091)
It's not incompliant when the user does it, as long as the user doesn't copy and distribute the results.
Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @11:06PM (#18836505)
If the wifi routers are shipping with binary kernel modules, then yes, it they are breaking GPL. This problem is actually common with embedded devices.
Re:Chromium blacklists Nouveau by ryacko on Saturday January 05, 2019 @11:11PM (#18836521)
I never understood why NanoBSD didn't take off after the Software Freedom Conservancy lawsuits.
Re:Chromium blacklists Nouveau by JoshTriplett on Saturday January 05, 2019 @11:51PM (#18836644)
First, if you're talking about the lawsuits over wireless routers, that wasn't Conservancy, that was the Software Freedom Law Center (SFLC) working with the FSF. (And some feel those lawsuits were poorly timed, preempting active negotiations in progress and being largely responsible for Cisco ceasing large Linux-based projects in progress.)

And second, to answer your question, partly because Linux is sufficiently good and has wide enough hardware support that it's still easier to use Linux legally under the GPL than to use another operating system, and partly because if you're going to use another operating system with narrower hardware support you might as well use a tinier embedded one and ship cheaper hardware (which is what Linksys/Cisco did with the WRT54G, shipping VxWorks and less RAM, and then selling the more-Linux-capable WRT54GL as a higher-end product).

Re:Chromium blacklists Nouveau by bubblethink on Saturday January 05, 2019 @06:17PM (#18834999)
Beyond the whole foss aspect, there are good technical reasons too. For instance, blob won't work with wayland (at least right now AFAIK), and ubuntu was (is) debating switching to wayland as default.
Re:Chromium blacklists Nouveau by int_19h on Saturday January 05, 2019 @08:29PM (#18835711)
If Nouveau isn't working all that well, then clearly a switch to a new graphics stack that would require it is waaay premature, given how prevalent NVIDIA graphics hardware is.
Re:Chromium blacklists Nouveau by ndnxhs on Saturday January 05, 2019 @09:49PM (#18836198)
It does actually work fairly well for non gaming uses.
Re:Chromium blacklists Nouveau by pantalaimon on Sunday January 06, 2019 @06:35AM (#18837812)
> blob won't work with wayland (at least right now AFAIK)

AFAIK it works with Gnome's Wayland Implementation, but not with the one from KDE.

Re:Chromium blacklists Nouveau by jandrese on Saturday January 05, 2019 @06:33PM (#18835105)
My impression was that the 17.10 Weyland stuff was kind of a mess so the switch is probably premature at this point.
Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @06:38PM (#18835143)
Fedora is Wayland-by-default for several releases already.
Re:Chromium blacklists Nouveau by jandrese on Saturday January 05, 2019 @10:41PM (#18836422)
I had a handful of laptops at work that were briefly on 17.10 (because 16.04 had a showstopping bug for them) and the graphics were a complete headache until I switched them to X. Luckily 18.04 reverted to X and made my life easier.
Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @11:09PM (#18836514)
I've never had problem with it; but then, my laptops have all Intel GPU and my only desktop with AMD GPU handles it nicely too.

Chances are, that you are using modesetting X driver anyway (i.e. the KMS driver, the same driver/backed, that is used by Wayland).

Re:Chromium blacklists Nouveau by pantalaimon on Sunday January 06, 2019 @06:33AM (#18837804)
Fedora is a bleeding edge distribution whose sole purpose is to test out new features.
Re:Chromium blacklists Nouveau by loeg on Saturday January 05, 2019 @08:31PM (#18835728)
Sort of. It falls back to X for drivers that don't support Wayland, which has included nvidia for a long time. (Maybe there is some progress there more recently.) And the proprietary nvidia driver is widely used.
Re:Chromium blacklists Nouveau by jolux on Saturday January 05, 2019 @10:27PM (#18836374)
Does it really? I had grotesque lag when installing Fedora on a System76 laptop with an Nvidia card and had to switch to X manually.
Re:Chromium blacklists Nouveau by pferde on Sunday January 06, 2019 @03:21AM (#18837262)
Wait until they join up with Yutani.
Re:Chromium blacklists Nouveau by nolok on Saturday January 05, 2019 @06:05PM (#18834920)
I think what they mean is "it's now enabled and used by default even for the clic clic clic through the menu (non technical) users", not that the driver is technically present.
Re:Chromium blacklists Nouveau by amyjess on Saturday January 05, 2019 @05:55PM (#18834857)
The VESA driver?
Re:Chromium blacklists Nouveau by geofft on Saturday January 05, 2019 @06:13PM (#18834970)
How does llvmpipe do these days? I remember being excited about it ~5 years ago and I can only imagine both LLVM performance and CPU speeds have gone up.
Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @06:40PM (#18835152)
llvmpipe is the gpu part, not the display part of the graphic card.

Otherwise, when using it in KVM VM, it can run the desktop compositor quite nicely.

Re:Chromium blacklists Nouveau by geofft on Saturday January 05, 2019 @08:08PM (#18835600)
But that's the part that's crashing. I'm suggesting Chrome use llvmpipe to do whatever they needed hardware acceleration for, generate a single boring texture on a single big rectangle, and pass that through to the graphics driver. That way Chrome itself isn't loading the Nouveau libGL and is much more insulated from incompatibilities between Chrome and Nouveau, whosever fault it might be.
Re:Chromium blacklists Nouveau by loeg on Saturday January 05, 2019 @08:33PM (#18835736)
WebGL requires far more than just blitting onto a single boring texture.
Re:Chromium blacklists Nouveau by geofft on Saturday January 05, 2019 @08:38PM (#18835765)
That's why you go through llvmpipe - you use the Mesa OpeGL implementation in LLVM-JIT-accelerated but pure software mode to implement WebGL, get the results onto a texture, and pass that texture onto your actual graphics card.

https://www.mesa3d.org/llvmpipe.html

Re:Chromium blacklists Nouveau by loeg on Saturday January 05, 2019 @08:54PM (#18835852)
That seems like something you'd prefer not to do if your OpenGL driver wasn't broken.
Re:Chromium blacklists Nouveau by jmgao on Saturday January 05, 2019 @08:19PM (#18835656)
That's what swiftshader does.
Re:Chromium blacklists Nouveau by geofft on Saturday January 05, 2019 @08:40PM (#18835771)
Whoa, I totally missed that! https://blog.chromium.org/2016/06/universal-rendering-with-s... So is it the case that you get decent (though perhaps not great) WebGL performance even if you have no GL-compatible graphics driver at all?

Then are Nouveau users only losing performance and not functionality as a result of this Google decision?

Re:Chromium blacklists Nouveau by ajross on Saturday January 05, 2019 @07:36PM (#18835452)
I didn't look at the bugs at issue, but I rather doubt mode switching is what Chromium cares about. It's sure to be video decode or GPU output.
Re:Chromium blacklists Nouveau by zozbot123 on Saturday January 05, 2019 @06:22PM (#18835028)
> What else are they going to ship ?

That's not the point. The point is that it results in brokenness, and the easiest way to mitigate that for the bulk of non-technical users is to use software rendering instead (i.e. blacklist it). They're open to more refined solutions, but these will take some effort.

Re:Chromium blacklists Nouveau by stuaxo on Saturday January 05, 2019 @06:37PM (#18835132)
Chrome without acceleration == one very hot laptop in many cases (ie watching videos on YouTube).
Re:Chromium blacklists Nouveau by zozbot123 on Saturday January 05, 2019 @06:40PM (#18835156)
Chrome without acceleration ~~ Firefox without acceleration. I don't think Firefox is enabling hardware video decoding in Linux, even on a fully-free driver?
Re:Chromium blacklists Nouveau by vetinari on Saturday January 05, 2019 @11:16PM (#18836536)
Acceleration in browser is not only about video decoding.

The composition is GPU accelerated too. Chrome has it enabled by default, Firefox doesn't.

In the end, both browsers treat Linux as a second-class citizen. To make things even more weird, ChromeOS uses the same API (VA-API) and the same driver (for Intel GPUs) for video decoding acceleration that the stock Linux does, and the video decoding is supported on ChromeOS but not on Linux... And Firefox is just plain mess.

Re:Chromium blacklists Nouveau by MrStonedOne on Sunday January 06, 2019 @08:50AM (#18838281)
The main issue I have with the gpu blacklist is that chrome provides the user with no information or notice when it triggers.
Re:Chromium blacklists Nouveau by thegeomaster on Sunday January 06, 2019 @07:46AM (#18838062)
One other problem with this is that now, if you want to run Chrome with --ignore-gpu-blacklist (or any other flag), you have to do that for every one of those bloated Electron apps that you have to run. There's no way to set a system-wide flag.

I'm facing this problem and it's very annoying. I have to run Chrome with --disable-gpu-driver-bug-workarounds, which ironically makes it work perfectly---with the "driver bug workarounds", it's terribly broken. But now, any Electron app I run (e.g. VSCode, Postman, Discord, etc.) is also broken by default and needs the flag as well. Frustrating.

Re:Chromium blacklists Nouveau by okl on Saturday January 05, 2019 @08:32PM (#18835733)
Because it shows that there are different opinions about what a user can reasonably expect, the key quote for me is the following:

> Please remove the blacklist as all Nouveau users expect this corrupted behaviour. If at all possible it may be worthwhile to let users know it doesn’t have to be this bad if they flip to the binary driver. Perhaps a pop up letting them know?

[dead]
Re:Chromium blacklists Nouveau by emmelaich on Saturday January 05, 2019 @08:44PM (#18835798)
It's not just gpu/driver, it's library versions, compile flags, compiler versions plus all the flags (static and dynamic).

Let's say 50 options. If it costs $1 to test each combo it would cost 2^50, around $10^15 dollars. Google only made $10^9 dollars profit last year.

Now of course I'm being facetious but do not underestimate the cost of testing.

Re:Chromium blacklists Nouveau by dleslie on Sunday January 06, 2019 @12:09PM (#18839269)
That cost assessment is bizarre. Consider how many variants are there in the entire Google software library; somehow I doubt they're spending trillions on testing.
Re:Chromium blacklists Nouveau by mav3rick on Saturday January 05, 2019 @08:16PM (#18835644)
Feel free to use other browsers that do test this.
Re:Chromium blacklists Nouveau by dleslie on Sunday January 06, 2019 @12:16PM (#18839316)
Other browser vendors don't have Google's resources.

And still, Mozilla manages to do a better job in this regard.

Re:Chromium blacklists Nouveau by about3fitty on Saturday January 05, 2019 @09:04PM (#18835901)
The bugginess of the nouveau driver has been an accepted fact since time immemorial. Hence the reason for Torvalds' middle finger on the subject. Nvidia is slowly coming around but the arc of history isn't treating it well.