18:28mattst88: could someone give me a quick summary of when firmware is needed by nouveau?
18:29TimurTabi: That's an open-ended question
18:29TimurTabi: I mean, if the hardware needs firmware in order to function, that's when Nouveau needs it.
18:30mattst88: yes. I guess I'm specifically interested in knowing when is non-redistributable firmware needed
18:30TimurTabi: How can an open-source driver need non-redistributable firmware?
18:32mattst88: ping: imirkin, karolherbst
18:33mattst88: TimurTabi: this is the case with e.g. the b43 wireless driver. the necessary firmware has to be extracted from the windows driver blob
19:22ajax: if i wanted to learn about engine resets and why they don't work, where would i start?
19:59karolherbst: mattst88: starting with second gen maxwell for hw acceleration
20:00karolherbst: and power management
20:00karolherbst: ajax: ask skeggsb_ :D
20:00mattst88: karolherbst: okay, thanks. and that applies to basically everything since then too, right?
20:00karolherbst: recovery mostly works, just sometimes it breaks for whatever reason
20:00karolherbst: mattst88: yes
20:01karolherbst: before that we required it for accelerated video decoding, but that's not a hard requierement, we just never wrote our own firmware
20:01karolherbst: for that we have a script to extract those, the above mentioned firmware files are distributeable though
20:01mattst88: karolherbst: I remember Andy responding in the Q-n-A after a nouveau talk (in... Helsinki?) that it was a struggle to get firmware released but that they were trying, etc
20:01karolherbst: unless.. they were never published by nvidia
20:01karolherbst: mattst88: it's better
20:02karolherbst: we are working with Nvidia together on this
20:02karolherbst: (we as in Red Hat)
20:02mattst88: ah, great
20:02karolherbst: still painful :D
20:02mattst88: no doubt :)
20:03karolherbst: the final go is day 0/1 release of the firmware.. the last time it took... 1-2 years?
20:03mattst88: that would be nice
20:03karolherbst: yeah.. let's see how it goes
20:03mattst88: any clarity on why they can't release the existing firmware blobs as they are?
20:03karolherbst: no idea...
20:03mattst88: some dependence between the firmware and the proprietary drivers?
20:04karolherbst: there is an interface
20:04karolherbst: but they could just document it
20:04karolherbst: the firmware we get from nvidia are using the same interfaces though
20:04karolherbst: they are just cut down and contain less features afaik
20:04mattst88: ah, so they're actually going to produce/release firmwares specifically for use with nouveau?
20:05karolherbst: I think so...
20:06karolherbst: I mean.. I attend the meetings with Nvidia where we discuss this, I am just not 100% sure with everything here :D though I am fairly sure
20:16mattst88: makes sense
23:41imirkin: mattst88: did you get a satisfactory answer?
23:42mattst88: imirkin: yeah, I think so. sounds like stuff is in progress and might be better in the future, and it's Maxwell Gen2 and everything newer that requires unredistributable firmware for acceleration and power management
23:42imirkin: non-redistributable firmware is needed in practice by nouveau only for video-decoding acceleration
23:42imirkin: the firmware for maxwell gen2+ is redistributable (in fact, it's in linux-firmware)
23:42karolherbst: well, only after nvidia publishes it
23:43karolherbst: which.. takes some time usually
23:43karolherbst: still nothing for ampere :(
23:43imirkin: this firmware differs from the firmware that is shipped with their blob drivers
23:43imirkin: in that it's highly neutered
23:43imirkin: but it's redistributable :)
23:44karolherbst: Sometimes I think we really should just rewrite our entire wiki and start from scratch and explain those bits there as well :D
23:44imirkin: (video decoding accel = vdpau/va-api btw)
23:44imirkin: karolherbst: definitely
23:44karolherbst: I think I will start deleting nonsense pages this weekend or so
23:44karolherbst: check what's like never accessed and just kill it
23:44imirkin: karolherbst: yeah. i keep meaning to delete it all
23:44imirkin: but i never quite get around to it
23:45karolherbst: well.. I do have the data from google
23:45imirkin: i get so tired
23:45imirkin: no energy for anything =/
23:45karolherbst: yeah.. understandable
23:45imirkin: i guess that happens when you start pushing 40 =/
23:45karolherbst: well, that's not the only reason that stuff happens
23:46karolherbst: the entire pandemic is also just annoying
23:46imirkin: yeah, should stop that thing. it's not working out.
23:46imirkin: we tried it, didn't like it.
23:46karolherbst: we are close at the end though
23:47karolherbst: need to approve vaccination for children and then next year for everybody not vaccinated... well.... hope for the best I guess?
23:47imirkin: sounds like a plan!
23:47karolherbst: phase 3 studies are already finished for children so.. not that far away actually
23:47imirkin: 5+ afaik
23:48karolherbst: right.. phase 2 for younger
23:48karolherbst: anyway.. I kind of expect that end of this year or starting next year we won't see many restrictions anymore, unless you live in a state where people don't vaccinate and your hospitals are filling up again...
23:48karolherbst: natural selection as its best or something, I don't know
23:49karolherbst: anyway, point is, next year it's probably over
23:51ccr: I wouldn't hold my breath yet, but we'll see.
23:51karolherbst: I am quite sure that nobody will accept that anymore once we see that winter is mostly harmless now
23:52karolherbst: well.. depending on where you live of course
23:52HdkR: Do latest GPUs still require signed firmware for video decoding as well?
23:53karolherbst: I think they always did
23:53karolherbst: pre maxwell v2 the security is just broken or something
23:53HdkR: Last time I asked someone about that I had a very confused response thinking that they were already under a redistributable license
23:53karolherbst: I think for tegra there are
23:54HdkR: For all the people doing video decode on Xavier :P
23:54karolherbst: at least tagr told me that the code for enabling it is almost finished
23:54karolherbst: the open source one
23:54karolherbst: so.. will be interesting
23:54HdkR: Very interesting
23:54karolherbst: no clue what the situation is on the desktop chips
23:55karolherbst: a difficult question to answer is, if extracting firmwares falls under the "repackaging" clause
23:55karolherbst: if you are creative enough...
23:56HdkR: For desktop I'm going to guess it is also still a mess
23:56karolherbst: I mean.. what's the difference of extracting *.so files from an archive and extracting the firmware files from it :p
23:56HdkR: Data signing I guess
23:56karolherbst: what signing?
23:57karolherbst: and why is that relevant
23:57karolherbst: we just extract a blob of data
23:57karolherbst: and push it into /lib/firmware/ and nouveau picks it up and loads it
23:57HdkR: firmwares are signed, so files aren't, wan wan goes the code lawyers? :)
23:57ccr: mmm.. forbidden blob of bytes.
23:57karolherbst: again.. what "signing"? I am not aware of any signing. Those are just bytes of data
23:58karolherbst: so.. what difference does it make if ld loads a *.so file to execute code and mesa loading a blob we push to the GPU directly :D
23:58karolherbst: well.. there are differences, but I guess none lawyers care about
23:59karolherbst: the question is just, if we extract bytes of data from files within that archive.. is that relevant?
23:59karolherbst: we could add an option to ... tar saying --extract-nv-fw-files :D