00:27zzoon[m]: airlied: okay.thanks. note that the branch has been updated last Friday.(5days ago)
00:34zzoon[m]: airlied: yeah confirmed your branch is on top of my latest branch.
00:38zzoon[m]: airlied: please review https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26139 just in case you missed it.
02:48DemiMarie: If someone could exploit Firefox or Chromium by using WebGL or WebGPU to trigger a bug in Mesa, would this be a Mesa vulnerability or a Firefox/Chromium vulnerability?
02:49DemiMarie: I don’t think “only receives trusted input” is a reasonable assumption for Mesa’s compilers anymore, unless browsers all switch to having 1 GPU process per origin.
02:51DemiMarie: In this (hypothetical) example, there is certainly a vulnerability somewhere (website can compromise end user’s system) and certainly a bug in Mesa (undefined behavior triggered via valid API usage).
03:30jenatali: FWIW the Windows team's perspective is that a graphics API isn't a security boundary. Security needs to be managed at the web, kernel, or hardware levels
03:35immibis: that makes no sense from a principled perspective
03:35immibis: or is it a "kernel-coloured glasses" problem?
03:36immibis: i.e. from a kernel perspective, the kernel can't stop the graphics API having vulns - kernel security boundaries are processes and tokens. But from a graphics API perspective, API calls should only draw on the screen, not format your hard disk
08:03mripard: sima: so, there's a missing SoB (from the committer) in drm-misc-next, for one of our patches. What should we do about it?
08:04dj-death: sorry to probably ask again
08:05dj-death: in the DGC extension, each group of token (containing elements like VkBindIndexBufferIndirectCommandNV, etc...) is stored in the stream buffer given by VkGeneratedCommandsInfoNV::pStreams
08:05dj-death: where is the stride between each of those group of token?
08:16sima: mripard, uh that would generally mean someone pushed ignoring dim ...
08:16sima: or a bug in dim
08:16sima: imo debug with the committer why this happened
08:17sima: and then just leave it at that (with the missing sob supplied on the m-l maybe) since we can't really rebase drm-misc-next for this
08:19mripard: yeah, I already asked https://lore.kernel.org/dri-devel/73cg637ax5cahqocscx5cjvtqkwlt4ves6cxgprbwqllasxq6v@gk6vzsqfc46j/
08:20mripard: I'll ask for their SoB too then, thanks
08:28sima: mripard, replied too
08:28sima: I guess we might need to add cherry-pick to the list of things that are off-limits for committers in that bullet I quoted ...
08:40mripard: yeah, it looks to me that it's not clear to most
08:47javierm: sima: another advantage of using dim cherr-pick is that it traverses the Fixes: and wanrs you if you need to cherry-pick another fix (because the "fix" caused a regression too)
08:48sima: javierm, yeah, but cherry-pick is more meant for adding a bugfix to -fixes that landed in -next first
08:48sima: the other way round really should be a backmerge with explainer what you're pulling in & why
08:49javierm: sima: ah, I see. Yeah, I don't think that cherry-picks should be done in -next
08:49javierm: but backmerges as mripard and you said
08:49sima: javierm, but we also have dim backmerge with some checks, so "use dim" still applies :-)
08:50javierm: sima: yeah :)
09:12jfalempe: tzimmermann, regarding https://gitlab.gnome.org/GNOME/mutter/-/issues/3157 , to mitigate the issue, maybe we can report a BMC connector, only if there is a DP connector.
09:13jfalempe: for VGA, as it's not possible to know reliably if something is connected, the BMC virtual connector has no added value.
09:13tzimmermann: jfalempe, the bmc comes with any connector
09:14tzimmermann: i'm going to rework the connector code
09:14tzimmermann: i guess, we have to go back to your original proposal and support the bmc transparently
09:15tzimmermann: for vga, if we detect an EDID, we assume a monitor, otherwise not. and if theres no monitor, we return the bmc resolutions
09:16tzimmermann: i'm not so super happy about user space failing us, but well
09:16jfalempe: I though there was some VGA monitor without EDID.
09:16tzimmermann: what?
09:17tzimmermann: back to the 80s!
09:17mripard: also, some VGA cables don't have the DDC signals wired
09:17tzimmermann: userspace ignoring anything but the first connector would probably already resolve the issue
09:17tzimmermann: we'd still get the bmc resolutions
09:18tzimmermann: otherwise it'd would just be 1024x768
09:18tzimmermann: i though the original problem was that this rsolution was too low?
09:19jfalempe: the original problem is with DP output. if nothing is connected, it set 640x480
09:19tzimmermann: that's really a bit low
09:19tzimmermann: 640x480 was the DP standard's default, right?
09:20jfalempe: tzimmermann, yes it's the default from the standard. But most monitors fails with 640x480, and works with 1024x768
09:20tzimmermann: monitors cannot do 640x480 any more?
09:20jfalempe: at least some of them don't.
09:23jfalempe: and some userspace don't support 640x480, notably the anaconda installer.
09:25tzimmermann: jfalempe, i want to rework the connector code anyway. i'd post a patchset soonish. for non-DP we'll see what we can do. having consistent behaviour would be nice, of course
09:25tzimmermann: maybe someone from gnome meanwhile reacts to the ticket
09:28jfalempe: tzimmermann, sounds good. yes a fix in mutter would be good too.
09:43tzimmermann: jfalempe, FYI i've just asked in irc://irc.gnome.org/gnome about the problem
09:46MrCooper: tzimmermann: FYI, the canonical GNOME channels are on Matrix, the IRC ones currently aren't bridged
09:46tzimmermann: MrCooper, thanks
10:03jfalempe: tzimmermann, another way to fix that would be to report the BMC virtual connector as "connected" only when the other connector is disconnected. That way only one connector would be on at a time.
10:04tzimmermann: depends on gnome. IDK if gnome 'understands' that
10:05emersion: it should…
10:05tzimmermann: i mean, even if the connector is disconnected, it is still there
10:06emersion: yeah
10:06emersion: that's a common thing
10:06tzimmermann: gnome still seess two conenctors
10:06emersion: on your laptop maybe you have a DP and HDMI connectors, without anything plugged in userspace still sees them as disconnected
10:06emersion: yet userspace doesn't go and try to use them
10:08tzimmermann: i can easily test this here by hard-coding the bmc to disconnected. give me a minute...
10:10jfalempe: that way we can even report more resolutions as valid, when the bmc connector is "connected"
10:25MrCooper: eric_engestrom: FYI, I just marked https://gitlab.freedesktop.org/mesa/mesa/-/issues/10146 as a blocker for 23.3, since it looks like a zink regression, it's initializing with lavapipe when it shouldn't
10:25MrCooper: tzimmermann: mutter doesn't try to use disconnected connectors
10:29eric_engestrom: MrCooper: ack, and thanks for the ping :)
10:30emersion: eric_engestrom: how should i go about marking a series of commits which should be backported, with only the last commit actually fixing a bug?
10:30emersion: Fixes for all?
10:31eric_engestrom: I would say `cc: mesa-stable` for those that only need to be backported because of the one with `fixes: $commit`
10:31emersion: ack
10:32eric_engestrom: `fixes:` for all would be a bit "wrong" IMO
10:32eric_engestrom: since these don't actually do a fix
10:32emersion: indeed
10:33emersion: but it would make it easier to know which stable branches they should be backported to
10:33emersion: like, there's a chance to misunderstood this, backporting all Cc commits to all branches, and Fixes to the last one only
10:34tzimmermann: sounds like a good idea then. if that works, we can adopt it with a lengthy comment explaining the thing.
10:34emersion: hm actually it sounds like Backport-to is the thing to use now?
10:35MrCooper: eric_engestrom: no worries; JosExpsito[m]1 is going to create an MR to fix it
10:45eric_engestrom: emersion: cc goes to all active stable branches, fixes goes to all active stable branches *that contain the fixed commit* (or a backport thereof)
10:45emersion: right, so cc isn't good here
10:46emersion: i've done Backport-to with an explicit version number
10:46eric_engestrom: and yeah, we added backport-to: to make it only backport to specific branches, but there's a bug in that code that I haven't had time to fix yet so I have to check for that one manually right now to make sure I'm not missing anything tagged with that
10:47emersion: hm
10:48emersion: well, just let me know what you prefer. the tl;dr is that everything should be only backported to 23.3
10:50sima: tzimmermann, jfalempe I think if we do a hack in the kernel then default to off modparam would be good
10:50sima: really not super keen to encode this as uapi expectations because gnome dies
10:50sima: maybe airlied has a different take (when he's back from lpc)
10:51sima: tzimmermann, we could also do a drm knob where you only get a maximum of #crtc of connectors reporting as connected
10:51sima: since the bug can happen in other drivers too
10:52sima: drm.limit_connector_to_crtc or something like that
10:52eric_engestrom: emersion: since you're specifying a single branch in your `backport-to:` it should work (the bug is when you have multiple of it) but I'll make sure it's backported 👍
10:53emersion: ok thx!
10:59jfalempe: sima, I see this as a temporary fix, the time for userspace to handle this case. As the BMC connector is already in 6.6, this can avoid breaking user's expectation.
11:00javierm: jfalempe: there's nothing more permanent than a temporary fix :)
11:00MrCooper: sima: I'd say in this particular case it makes sense by default, since the BMC connector was only added for when the real connector isn't connected in the first place
11:01sima: ah if it was added then yeah we've hit the inglorious "it's a regression rule" ...
11:01sima: still means that if we put this in now it's probably going to be forever :-/
11:02jfalempe: yeah, and it's probably there for a long time already.
11:02javierm: sima: agreed. But according to MrCooper it may be the correct thing to do (if is meant to only be connected when the other connector is not connected)
11:04emersion: it all depends if the use-case have having both connectors displaying the output at the sae time is important to you
11:04emersion: same*
11:04jfalempe: using BMC and the real monitor at the same time is very unlikely.
11:05emersion: right, so sounds reasonable to just have one of the two marked as connected then
11:06tintou: Do we know who is pushing the Mesa builds to Coverity?
11:08MrCooper: emersion: the BMC connector doesn't actually do anything, it's just so that generic user space doesn't fail to start up when the real connector isn't connected, so remote access via the BMC works
11:09emersion: ... really?
11:09emersion: because starting up without any connector connected sounds like a pretty basic thing to handle
11:10MrCooper: maybe I'm mis-remembering the details, jfalempe?
11:10emersion: my understanding is that the BMC connector is used for remoting
11:10emersion: and then a physical connector can be used as well
11:11emersion: if it's just about headless startup i'd really rather see userspace fixed
11:11emersion: it's not a new situation and can come up pretty regularily
11:12emersion: like, you start a rpi or something
11:18jfalempe: Yes the problem is when nothing is connected to the display port, the default resolution is 640x480, so we added this "virtual" BMC connector, to overcome that.
11:19jfalempe: and previously for userspace the DP connector was seen as always connected
11:20emersion: jfalempe: when no external connector is connected, you still want user-space to display something right? and then grab this and send it for remoting?
11:21jfalempe: emersion, yes because you may want to access the server remotely, it's the main use-case for aspeed card.
11:21emersion: right
11:21emersion: okay
11:21emersion: can you detect if someone is using the remoting part?
11:22jfalempe: emersion, no, there is currently no way to know that. It's even not possible to know if the hw can handle remoting (as some cards don't).
11:22emersion: i see
11:23emersion: right, so 2 connectors with only a single connected at a time, that makes sense to me
11:25jfalempe: Also some cards have DP output, and older have VGA, and on VGA it's not possible to reliably detect if it's connected. But I don't think that's a real problem.
11:26pq: jfalempe, how does the remoting actually work in the first place? Is there some dedicted mini-computer reading the BMC output and arranging that to be available via RDP or whatever using its own independent OS?
11:27jfalempe: pq, it's an ARM chip, actually the VideoRAM is the RAM of the ARM processor. there is a web server running on it, that send the content of the framebuffer on the internet.
11:27pq: I see.
11:29tzimmermann: sima, whatever we do, it has to be on by default. our we simply declare this a gnome bug, which is actually is
11:31sima: tzimmermann, yeah I think since the bmc connector got added later on it's on the kernel to paper over this :-/
11:31sima: maybe in another lts or so we can try to revert, if we know the known-broken compositors are fixed
11:32pq: jfalempe, is it hardwired such that the physical output and the remote output always use the same FB to read from? which would be why you need to model it as one CRTC driving two connectors?
11:33tzimmermann: pq, yes
11:33pq: ok, makes sense
11:42kode54: get a load of this guy
11:42kode54: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26187/diffs?commit_id=e3c978afc0269a17cc4f69d6bd0de59ba85f2ee4
11:48tzimmermann: jfalempe, hard-coding the bmc to disconnected brought back the old behaviour. nice :) i'd strongly prefer that solution over the other possible workarounds.
11:48tzimmermann: it's transparent to userspace, automatic, and we can easily remove it
11:48pq: kode54, sounds like you are either laughing at them, or assuming bad intentions. Neither is nice. Reviewers will catch it in due time.
11:50emersion: usually they are people not used to GitLab
11:51MrCooper: this one so far seems immune to feedback though
11:51jfalempe: tzimmermann, thanks, so I can do the patch, or if you prefer do that with your encoder refactoring ? But we may need that in misc-fixes for 6.6 ?
11:51emersion: yeah :/
11:53pq: close the MR instead of point and laugh, right?
11:54emersion: indeed
11:55MrCooper: they might just create another one, as they did instead of updating the original one
11:56pq: if that's too much, there is a process for spam
11:57MrCooper: not sure it's malice, might be just very clumsy
11:57pq: it's hard to imagine that "get a load of this guy" is ever appropriate to say
11:58emersion: tbh i was not sure how to parse this
11:58karolherbst: yeah, or language barrier, or....
11:58karolherbst: emersion: it's a meme
11:58emersion: i assumed "i get a load of MRs from this guy"
11:58emersion: oh, i'm just too old then
11:59karolherbst: from friends
11:59karolherbst: the tv series
11:59pq: I don't recall the meme, but I have the impression it's derogative phrase
11:59karolherbst: though the history seems older.. anyway
11:59karolherbst: https://knowyourmeme.com/memes/get-a-load-of-this-guy
12:00karolherbst: (for context)
12:00karolherbst: seems like it's not from frinds actually.. I just saw it with that picture usually.. anyway
12:00kode54: yikes, that spawned a whole conversation on the etiquette of link dropping?
12:01karolherbst: I'm just here to explain
12:01pq: kode54, not link dropping but the "load" phrase
12:01kode54: ah
12:01kode54: one of the earlier sources was possibly Wayne's World
12:02karolherbst: yeah.. it's meant in a more humourus way usually, but I'd be careful with pointing out new contributors this way
12:02kode54: right
12:03ccr: I'm fairly sure that saying is way older than Wayne's World tho.
12:03ccr: (irrelevant factoid, I know)
12:03kode54: I do guess I'm doing exactly the wrong things I regularly expect others are doing to me
12:03karolherbst: that's a common misconception, yes
12:03karolherbst: I mean.. it always depends on the environment
12:03kode54: I regularly expect everyone is pointing and laughing at me when I'm not there to see it
12:03karolherbst: here we at least pretend to act more professional
12:04karolherbst: nobody meant malice here anyway I hope
12:32kode54: no, I wasn't meaning malice intentionally
12:35kode54: also I originally thought that malice comment was related to me possibly suggesting the user was malicious
12:35kode54: maybe making a rookie mistake
12:36kode54: but doesn't look malicious
12:36kode54: though it is a bit strange they decided to reconfigure the global CI to accept more rebuild actions
12:36kode54: or at least, it looked like that's what it does
12:36pq: that may just have been an attempt to get CI to run at all
12:37pq: anyway, all good - careful with memes and popular phrases
13:02tzimmermann: jfalempe, patch sent
13:06eric_engestrom: tintou: I think it's brianp or vlee (they are the admins of the mesa project on coverity, which I think means it has to be one of them)
13:09airlied: pretty sure it's vlee
13:35tintou: Alright, emailed them both then :)
13:37tintou: (I wanted to know which driver were being compiled because I don't see virgl there so that's suspicious 😅)
15:54emersion: agd5f hwentlan__: is it fine to merge the amd patches for atomic async page-flips via drm-misc-next?
17:19tjaalton: dcbaker: when can we expect mesa 23.2.2?
17:57agd5f: emersion, fine with me
17:57emersion: ty
18:39eric_engestrom: tintou: `-D gallium-drivers=all -D vulkan-drivers=all` is what we want for builds like coverity; you can tell them that in your email conversation :)
18:40eric_engestrom: also, I'd be interested in helping maintain the "components" list, it's in dire need of tlc
18:41eric_engestrom: could you cc me (eric@engestrom.ch) into the conversation with these two notes?
18:56tintou: Alright, I'll cc you when I get a reply 🙂
20:30karolherbst: jenatali: I fixed my problem and I already hate it.... so the idea is to not emit "private" global variables, but have function local copies of them or something...: https://github.com/karolherbst/SPIRV-LLVM-Translator/commit/aab7a270861369fa143185a28ddad62be4905edc
20:30karolherbst: sadly the AI model returns bogus values with mesa :')
20:31karolherbst: and no idea what's up there
20:31jenatali: karolherbst: That seems like the right solution. I don't know the code well enough to give you any kind of review though...
20:31karolherbst: yeah...
20:32karolherbst: I'll probably rebase it on the main branch and see what people say about it
20:32jenatali: I really need to finish getting CLOn12 up to 100% conformance and then figure out a way to get CTS into some automation somewhere so it stays that way
20:32karolherbst: yeah...
20:32karolherbst: I kinda want to CI on the CTS as well
20:32jenatali: Gotta figure out the right subset of it at least. Because there's no way you're running the whole thing in any kind of reasonable timeframe
20:33karolherbst: so intel says the picture I have is 66.5% a minivan, it isn't really, looks more like a "normal" car, but rusticl on iris says 2.2% combination lock and nothing higher :')
20:33karolherbst: jenatali: I do, in 5-10 minutes
20:34karolherbst: let me show you
20:34karolherbst: https://gitlab.freedesktop.org/karolherbst/opencl_cts_runner/-/blob/master/clctsrunner.py?ref_type=heads
20:34karolherbst: grep for `quick`
20:35karolherbst: that's roughly 5-10 minutes depending on the driver on a decent 12/20 core intel CPU
20:35karolherbst: 20 threads
20:35karolherbst: ehh
20:35karolherbst: 8+4/20 I mean...
20:35karolherbst: ehh quick + wimpy
20:35jenatali: Cool
20:35karolherbst: I only use that for testing
20:36karolherbst: once I did a full run with zink I had like 4 fails, mostly MT related
20:36karolherbst: so it's good enough
20:36karolherbst: one bug with denorms only showing with longer runs
20:36jenatali: Then the question is, do I put that in our GitHub project or do I try to onboard it to Mesa CI? And which component has to deal with ABI breaks between the compiler and runtime? Or do I try to move, or maybe even abandon the separate runtime? Idk
20:37karolherbst: my script also can use the offline compiler to test the spir-v path and then with 3 drivers each online/spirv and each native/zink it takes like 2 hours in total across all combinations
20:37karolherbst: and that's 12 runs i think
20:37jenatali: I wish I could just adopt rusticl, but there's so many shenanigans in making CL-sourced nir usable for D3D (e.g. global => SSBO) that I don't think it's realistically feasible
20:38karolherbst: yeah.. would have to move it all into the gallium driver
20:38jenatali: Which is impossible if rusticl doesn't send me the buffers that the global addresses came from
20:38karolherbst: or you just use it through zink :D
20:38karolherbst: I benchmarked it against nvidia CL and zink got 92% performance
20:38jenatali: Requires BDA, doesn't it?
20:38karolherbst: yeah
20:38jenatali: Yeah, we can't do that in Dozen
20:38karolherbst: pain
20:39jenatali: Yep
20:39jenatali: Maybe someday
20:39karolherbst: anyway.. openvino runs but gives wrong results atm :')
20:39karolherbst: this will be fun to debug now
20:39jenatali: Yeah, good luck
20:39karolherbst: but at least no funky spir-v validation errors anymore
20:41karolherbst: wouldn't surprise me if something with the compiler, but uhhh... those kernels are like huge
20:41karolherbst: or maybe it's just broken on non intel
20:41karolherbst: they have subgroup emulation code which isn't used on intel's stack obviously
20:41karolherbst: I should check against nvidia on my desktop tomorrow
20:41karolherbst: and AMD
22:59gfxstrand: I think I just broken marge...
22:59gfxstrand: Hopefully she fixes herself.