00:14LaughingMan[m]: looks like the server provides two certs. one (71a6f5daed116c73b5e4428e01828ddb747dea59a3c03be2fba5109a7ed2bc98) is trusted but the other (bc94dfd0af7e6ba21186ae0226f0dd27a95755ffc1d10c5b4b2e33a503549c3c) isn't valid for the archive subdomain. doesn't result in any actual errors for me though.
03:18kode54: holy crap, marie
03:18kode54: https://lore.kernel.org/all/20230505144910.317943-1-matthew.auld@intel.com/
03:18kode54: this patch made intel-compute-runtime work
03:21kode54: never mind
03:21kode54: it was a false alarm :[
03:39kode54: why is XE_FENCE_INITIAL_SEQNO -127 when seqno is an unsigned type everywhere?
03:46kode54: great
03:46kode54: an attempt was made to catch wrapping errors
03:46kode54: apparently it just fails right away with that seqno
04:23kode54: apparently I don't know what's up, it's just failing its first DMA fence
07:33sima: jani, https://lwn.net/Articles/931180/ <- should we do that in dim?
07:35sima: we could set it for the mr generation only ...
07:38sima: https://paste.debian.net/hidden/7ee2bcd2/ something like this?
09:01sima: emersion, see my other reply, essentially I'm not a fan of forever adding new GETFOORESOURCE and GETFOO/SETFOO and DRM_MODE_OBJECT_FOO for every new $FOO
09:01emersion: we don't need that
09:01jani: sima: yeah. there's really a fair amount of stuff that a user could blow up with their local config, and we should check the config
09:01emersion: i just the GETPROPERTIES
09:01emersion: and nothing more
09:01sima: also the plane:crtc:connector graph is N:M:K
09:02sima: emersion, yeah but with enable flag to get foo nodes
09:02emersion: ?
09:02sima: emersion, I'm also nowhere talking about making full blown color op graphs
09:02pq: when did danvet become sima? :-o
09:02sima: it happens
09:03emersion: it took me some time to realize
09:03sima: it's all linked to the same auth'ed oftc account
09:03sima: or should be
09:03emersion: sima, can i update the WhosWho page, or would you rather not?
09:03sima: hm where is that even?
09:03emersion: https://dri.freedesktop.org/wiki/WhosWho/
09:03sima: can do for sure
09:04pq: realizing your identity requires explicit use of /whois, which I almost never do
09:04sima: emersion, fixed
09:04emersion: thx
09:05emersion: sima, there is a generic DRM_IOCTL_MODE_OBJ_GETPROPERTIES already
09:05emersion: and that's the only thing we need
09:06emersion: this proposal doesn't actually touch any uAPI header, apart from adding a new DRM_MODE_OBJECT_COLOROP entry
09:07emersion: we also do _not_ need a way to list all colorop object IDs (ala DRM_IOCTL_MODE_GETPLANERESOURCES)
09:08emersion: and yeah, we do _not_ need GETCOLOROP
09:08emersion: no new struct
09:18sima: emersion, replied to you too
09:19sima: it's essentially the exact same idea we've done for cursor/primary planes
09:20sima: where we added a type/class to the existing thing
09:20sima: just even more generic
09:20sima: because I think extending kms api with properties is more flexible and more fits in with the direction we've taken since atomic
09:20sima: but also, it's a bikeshed :-)
09:21sima: jani, I think adding ad-hoc is probably good enough, since there's sooooo much git config can do
09:21sima: and it's growing every release
09:29sima: emersion, pq tbf since I seem to just have caused massive confusion maybe we need to wait another few specific object types until it's time for a kms node object
09:29sima: we're not running out of flags anytime soon
09:32sima: DRM_MODE_PROP_OBJECT_ENUM would still be nice, but I think we can do that without explicit nodes
09:42sima: pq, passing back shaders would give us an excuse to use ebpf in kms :-)
09:52emersion: sima, you replied with an internal kernel struct
09:53emersion: please don't use internal kernel things when talking about uAPI
09:53emersion: DRM_MODE_PROP_OBJECT_ENUM would be nice I agree
09:54emersion: I still am strong -1 on the node object type
09:54sima: emersion, hm why?
09:54emersion: I don't see the point
09:54emersion: it makes the uAPI ugly for no good reason
09:55emersion: I'll type a reply later, I'm afk atm
09:55sima: emersion, yeah that part is pure bikeshed
09:55sima: the DRM_MODE_PROP_OBJECT_ENUM has some semantic meaning, and if we agree on that I'm like 90% happy at least
09:56emersion: sorry for using the term "ugly", I shouldn't have
09:56sima: it should be good enough to get at least a bit more type checking
09:56sima: emersion, it's defo a bit more cumbersome for userspace to just fish out the stuff it wants
09:56emersion: "inconsistent", " overkill" is still what i'd call it
09:56sima: emersion, so the reason I thought of it was the mention of the scaler node
09:56sima: we might get more stuff, like a crc tap
09:56sima: or a histogram tap
09:56emersion: we don't need nodes when we can represent them with props
09:57sima: or maybe funk blending modes
09:57sima: but I guess we can handle those the same way we do now: explicit op-in flags
09:57sima: and the kernel appropriately filters everything to present to userspace only the nodes/links it understands
09:58sima: like we currently filter plane types and writeback connectors (although filtering the links there is much easier than pulling a crc tap node out of the middle of the plane color pipeline, but all doable)
09:59sima: so I guess I also get a price for failing to explain my motivation :-/
09:59sima: emersion, the scaler might grow some props to control how it scales
10:00sima: like pixel-art upscaling vs linear vs bilinear vs "here's you NxM tap matrix"
10:00sima: so I'd expect that we'll get full-blown scaler nodes too
10:01sima: the nodes also would be a really neat way to express were exactly the various crc tap points are that debugfs can expose
10:01sima: plus adaptive backlight needs histogram output or you can't
10:06sima: pq, ^^ maybe this explains why I even brought this all up
10:32pq: sima, the scaler element is *already* a full-blown element - it just didn't have anything to configure at first.
10:33sima: pq, I guess I missunderstood what emersion a bit further up with meant with "we don't need nodes when we can represent them with props"
10:33pq: sima, all the "branch-off nodes" you mentioned so far are all leaf nodes. Therefore they won't have any elements after them, so they don't actually need to be branches at all.
10:33sima: I thought that was about the scaler node
10:33pq: I have no idea what you were talking about there.
10:33sima: pq, hm my idea was to put them all in-line
10:33pq: yes
10:34sima: but I guess we could put them out-of-line with different "crc" or "histogram" object pointers
10:34sima: kinda like the plane has the color-pipeline prop
10:34pq: they can be inline in the pipeline, they just don't branch off like graph, but act as no-op elements.
10:34sima: pq, yeah that's what I meant
10:35pq: so there is nothing to add to the design to do that, just the actual element types.
10:35sima: I really don't argue for a full blown graph, just a touch more generic node object type so we can extend more later
10:35sima: but we can also extend more later the same way we've added more stuff thus far
10:35sima: pq, ah then you missed a piece
10:35pq: I have no idea what DRM_MODE_PROP_OBJECT_ENUM is about, and I think it's irrelevant to me.
10:35sima: my idea was that kernel would guarantee that userspace can safely skip any class it doesn't understand
10:36pq: no
10:36sima: but within a class like colorop it must understand all elements or things go wrong
10:36sima: so adding crc or histogram tap points as a different type would not convey enough meaning
10:36sima: and we'd need to again filter them like we do now when we add new things
10:36pq: I thought a crc elements *is* a COLOROP object?
10:36sima: nope
10:36sima: making it a colorop object would defeat the point
10:37pq: oookay
10:37sima: it would break uapi because suddenly the compositor has a thing in the middle it doesn't understand
10:37sima: so we _have_ to filter it out
10:37sima: like we currently filter out planes that userspace doesn't understand
10:37sima: or writeback connectors
10:37sima: the idea of nodes was that you'd get them all in GETRESOURCES or when walking a color pipeline
10:38sima: but by using the class property (_not_ the type property within the colorop class)
10:38pq: it seems like it would be much better is a crc-element *is* a COLOROP object with "type"="bypass" property. Then userspace knows it does not need to undertand any furhter.
10:38sima: userspace would know what it could safely skip (i.e. what's safe to add for new features) and what it must understand
10:38sima: pq, that feels really funky to me
10:38pq: it's much simpler and streamlined than a mess of nodes
10:39sima: we'd end up with a really_the_type_I_mean="crc" or so
10:39sima: pq, it's exactly the same list of nodes
10:39sima: so the mess should be 100% equivalent
10:39pq: "crc" could be an alternative value to the element "type" so crc can be toggled on/off
10:39sima: hm
10:40pq: just like all other elements emersion already mentioned
10:40sima: ok I guess that would need to be put down into the uapi spec that anything with "bypass" can be set to that and userspace can ignore it
10:40pq: I thought that's obvious.
10:40sima: if you don't spec it
10:40sima: or if a compositor fails to implement it
10:40pq: "type" is an enum, and if "bypass" is an allowed value, then what else could it mean?
10:41sima: then no, it'd be an uapi breakage if we add something
10:42sima: pq, it's not so much what it means, but what's less likely to result in compositors getting confused and failing to use the hw color pipeline just because we added something
10:42sima: if we say "there's potentially random gunk in the pipeline, you must filter on class=="ColorOp" I think we have better chances
10:42pq: if you worry about that, add another pipeline
10:42sima: than "you need to handle arbitrary stuff with type=bypass
10:43sima: hm yeah that might work too
10:43sima: probably what we have to do
10:43sima: at least in the uapi, the driver could just expose one and we do a few filtered versions automatically as compat
10:43pq: sima, filter on this, or filter on that, I see no difference. But I do see a difference between one-level and two-level type systems.
10:43sima: my point is kinda it's two-level either way
10:44pq: it's not
10:44sima: like once you add something that breaks an existing compositor it has to be two-level
10:44sima: because you need to hide that stuff from the old compositors
10:44pq: don't do that
10:44sima: it breaks it you don't?
10:45sima: like the alternate pipelines are just very convoluted way to make the 2 level classes work
10:45sima: thus far we just filtered stuff out with flags
10:45sima: e.g. planes are also two-level for exactly this reason
10:45pq: yeah, so we already have two ways to avoid breaking old compositors: don't modify existing pipelines, and offer "type"="bypass" option.
10:45sima: same for connectors
10:46sima: all I kinda threw in is to make this a bit more explicit
10:46pq: bypass has to be there *anyway* so why invent another redundant type level on top?
10:46sima: I expect people to get it wrong :-)
10:47sima: we have enough amusement with compositors doing funny stuff that that's a fairly safe assumption
10:47pq: I expect people to accidentally design UAPI wrong, but you are very much against that too. *shrug*
10:47sima: I'm not sure whether explicit two-level would actually help though
10:47pq: I don't understand what we're arguing about.
10:48sima: the "wrong uapi" we can try to prevent, because there's only one canonical upstream
10:48pq: it won't help, it's just another level to get things wrong
10:48sima: (excluding vendors doing absolute hilarious stuff in their downstream trees)
10:48sima: preventing wrong compositors has been fairly hopeless historically
10:48pq: no, it just means we never release any UAPI
10:49sima: so expecting that type=bypass will allow us to add stuff I don't buy, we'll have to filter in-kernel
10:49sima: either with alternate kernels or explicit opt-in
10:49pq: ok, that sentence I can understand, and I disagree, but ok then.
10:50pq: we just add more pipelines to pick from.
10:50sima: well that's a way of filtering imo
10:50sima: but yeah I think the node bikeshed is probably for the dumpster pile :-)
10:50pq: no, no filtering, just add new pipelines to everyone
10:50sima: the DRM_MODE_PROP_OBJECT_ENUM I think would be good to keep
10:51sima: pq, well it's the old pipeline as a filtered version of the new one, could even generate that one programatically in drm core code
10:51sima: which I expect is how we'd implement this because doing it by hand is not going to be consistent enough
10:51sima: but yeah in the uapi it's just more pipelines
10:52pq: ...I could have not guessed at all that you meant the *old* pipeline is a filtered pipeline. That's not how userspace sees things.
10:52pq: I'm also not sure you want to automate generating "old" pipelines from new ones, but that's kernel internal, so I don't care the least.
10:54pq: At least it's easy to have CI checks to ensure old pipelines keep on being advertised like they used to be.
10:55pq: maybe we need VKMS to add ramdom COLOROP nodes with "type"="bypass" and require that userspace passes that test.
10:56sima: pq, it's how we've done all the obj extensions thus far, we outright hide them
10:56sima: pq, yeah that might work to keep bypass functional like you plan to
10:56sima: *functional for forward compat
10:56pq: for NVIDIA hardware support for bypass is a must already
10:57pq: they have elements that do special things no-one else does
10:58pq: and tbh I expect all hardware vendors to have some elements no-one else has
10:59pq: you could even insert random bypass elements for actual hw drivers, too
11:04dolphin: airlied: did a rebase of the topic/core-for-CI
11:09pq: sima, it sounds a bit like you are intentionally trying to design some artificial kernel-internal structures so that there would be some kernel-internal work to do before actual UAPI. Like a framework for a single use case that doesn't need it. - from your email 2h ago
11:10pq: sima, I'll let you reply to it if you got some new conclusions from IRC.
11:15pq: sima, I guess you are now me from the virtualized cursor plane discussion.
11:15sima: pq, yeah that was a bit the idea, essentially a case of "maybe this is what it should have looked like from the start"
11:16sima: pq, the key bit really is the DRM_MODE_PROP_OBJECT_ENUM though, everything else doesn't matter from uapi pov I think
11:16sima: so instead of object class + separate possible_$type mask
11:16sima: do what you have in the proposal as an explicit enum
11:16sima: but with the additional semantic meaning that it really has to be a kms obj and not just a random integer value
11:16pq: there are no masks...
11:17pq: or even options
11:17sima: pq, the existing graph links are all constraint with masks
11:17sima: possible_crtcs in plane and connector
11:17pq: no, they're not. They are just single, immutable, links.
11:18pq: If you want to re-design absolutely everything, then ok, but I don't think people are going to wait for it.
11:19sima: pq, since when is CRTC_ID immutable on a plane or connector?
11:19sima: it's exactly the same as your color pipeline selector
11:19pq: I'm talking about those at all.
11:20pq: I'm not looking to change those at all.
11:20sima: except the explicit enume is a lot better uapi than the stuff we have right now
11:20sima: pq, we can't
11:20sima: but we can do better going forward
11:20sima: which is what I'm trying to argue for
11:21sima: make this entire kms graph node/link business just a notch more semantically meaningful
11:21sima: instead of ad-hoc everywhere like we've done thus far and caused quite some confusion
11:21pq: maybe write the UAPI docs for what you are imagining?
11:21sima: see mail to emmersion, but I guess I can do a bit more detail
11:22pq: I've read all the email, and there is no UAPI doc patch.
11:22sima: (yes it's internals mixed up in there because I wanted to show that I really don't want to make the links a part like what emersion wrote)
11:22pq: nothign that even resembles UAPI doc
11:22sima: yeah I'll type that up I guess
11:22pq: and UAPI header to go with it would be nice, kernel internals are absolutely uninteresting
11:50sima: I need the header otherwise I can't attach the kerneldoc :-)
12:11sima: emersion, pq while I'm looking around for the right place to type the uapi proposal (and filling gaps)
12:11sima: ... what's the interaction of these new objs with drm leases?
12:12sima: entirely forgot about this myself too :-/
12:12swick[m]: mh, the links between COLOROP objects are just numbers but they also are immutable. selecting the pipeline on a plane are links to COLOROP objects but mutable... so I guess for the later you want this new DRM_MODE_PROP_OBJECT_ENUM
12:13pq: right, would not want lessee to have access to change lessor's colorop parameters.
12:14swick[m]: leasing a plane should probably lease out all the possible pipelines as well
12:14pq: seems simple enough in that case: expose all colorobjs that are reachable from the leased plane/crtc objects.
12:15swick[m]: indeed
12:15pq: colorop objects are never used in two pipelines
12:15pq: even if they would refer to the same hardware block in multiple pipelines
12:16pq: that's another reason why I don't really understand what kernel internal state tracking infrastructure would be needed
12:16sima: pq, yeah I think the fix is simple, just something I realized
12:16pq: good to realize :-)
12:17sima:was reading set/get_prop ioctl code to be able to document it correctly :-)
12:18pq: unrelated colorop objects would never be advertised to lessees anyway, but just in case the lessee goes fishing by guessing IDs
12:19sima: yeah kms id space is extremely predictable
12:19sima: so not much fishing required
12:25swick[m]: reading the backlog, I'm with pq. User space figuring out that it can skip elements which can be set to bypass is one of the least hard problems it has to solve when mapping its pipeline onto a KMS color pipeline...
12:27pq: indeed
13:11mlankhorst: tjaalton: Hey, what's igt used for inside ubuntu?
13:21Company: jadahl, swick[m]: I'm looking at https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14#note_1899436 from a client perspective
13:22jadahl: Company: perhaps a #wayland topic?
13:22Company: like, if GTK was given a random icc profile (from a fullscreen gstreamer say) and wanted to pass it on, it seems suboptimal if stuff doesn't show up on screen
13:22Company: oh right
13:23Company:reposts
13:47tjaalton: mlankhorst: dunno, why?
16:26alyssa: gfxstrand: First day! :-D
16:26alyssa: Trying to compile a "NIR maintenance" todo list
16:26alyssa: I assume you will want to fill it out :p
16:38ccr: alyssa, I am shocked that paparazzo zmike's SGC blog has not yet revealed the news about your new position
16:39alyssa: ccr: I wonder
16:39ccr: :)
16:40zmike: I don't post news for other people unless they don't have blogs
16:40alyssa: it's not news it's gossip
16:40alyssa: the world must know about my new gig on Taco Bell's graphics team
16:41zmike: TBGT is supposed to be secret until june...
16:49ccr: !
16:49ccr: accelerated fast food rendering
16:55MrCooper: TIL RT stands for Rendered Tacos
17:17jenatali: RTRTRT: real-time raytraced rendered tacos
19:21anholt_: NIR folks, I'd like input on naming in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22809. would like to repaint the shed once hopefully.
19:26alyssa: ooh I love NIR bikesheds
19:28alyssa: anholt_: +1 on kusma's suggestion of nir_get_variable_with_location
19:28alyssa: but also I don't care and am find with nir_get_slot_var
19:28alyssa: *fine
19:29alyssa: gfxstrand: working on an MR I think you'll like
20:06alyssa: gfxstrand: https://gitlab.freedesktop.org/alyssa/mesa/-/commit/4f2ac0dc6628de61bec69517cb1e55ac4adb84ad
20:06alyssa: Example: https://gitlab.freedesktop.org/alyssa/mesa/-/commit/2c0a1f0c7274cf5ac7cab2028f2986cac4bbfe43
20:06alyssa: this is exactly what AGX wants
20:07alyssa: it's not quite what Bifrost wants but still a net improvement
20:07alyssa: not inclined to convert every backend until we agree that we want to move in the direction of unified atomics
20:07alyssa: but, if we're in agreement, I have a coherent plan on how to get there that's not "10000 line flag day commit yeet!"
20:08alyssa: namely
20:08alyssa: 1. add unified intrinsics coexisting with the current stuff
20:08alyssa: 2. add a pass to convert current intrinsics to unified ones
20:08alyssa: 3. convert drivers one at a time to ingest unified intrinsics (opting in by calling the pass)
20:08alyssa: ...
20:08alyssa: 4. now that all drivers are opted in, convert producers one at a time to produce unified intrinsics
20:09alyssa: ...
20:09alyssa: 5. now that only unified atomics are used, the pass is dead. delete all its callers (a single line deleted from each driver, possibly just a sed), delete the pass, and delete the old intrinsics
20:10jenatali: I like it
20:10alyssa: thanks :)
20:11alyssa: Anyway, for this MR, I aim to do 1, 2, and a representative sample of 3 (convert enough drivers to establish the concept is viable and give lots of examples for other people to convert their drivers)
20:11alyssa: then hopefully nerdsnipe a bunch of backend maintainers to write the easy patch for their backends in parallel
20:12jenatali: The DXIL change would be straightforward
20:12alyssa: yeah, it's straightforward for all backends
20:12alyssa: I think
20:12alyssa: but not fully mechanical
20:13alyssa: This is obviously a lot more code than the helper you added for NAK, but converting drivers to that helper doesn't get us much closer to switching to new style atomics
20:13alyssa: (since you'd still need a nontrivial flag day at some point even if all drivers use it)
20:14dj-death: alyssa: I think some of the work Kayden did recently matches pretty well with your plan
20:14alyssa: dj-death: eh?
20:14dj-death: alyssa: we already put the ALU op in our backend as a sources
20:14alyssa: OK
20:15alyssa: (This is in response to https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22724 fwiw, which includes an intel patch)
20:15dj-death: alyssa: yeah I've seen that
20:16dj-death: alyssa: but as you can see that would be rewriting 1/2 switch statements for anv
20:16dj-death: I mean anv/iris/etc...
20:17alyssa: right.. the helper makes things a little less awkward for the backend but doesn't actually fix the problem
20:17alyssa: if we're all on board with the direction of unified intrinsics, I'll send out the MR tomorrow (with Mali and AGX converted)
20:24alyssa: (and ACO and ir3 since I guess I care about those now o:)
22:26alyssa: oh, oof, NIR's existing atomics match what ACO does
22:26alyssa: (and I guess AMD hw)
22:26alyssa: so nothing really saved for ACO from unifying them
22:26alyssa: though it's probably not any harder. let's find out.
22:28alyssa: and ACO also handles these funny inc_wrap thing
22:29alyssa: that's for images only apparently. uff.
22:29alyssa: don't @ me but why do we have that in NIR at all? why not just add with 1?
22:30alyssa: Who is even producing these?
22:31alyssa: Seemingly glsl-to-nir but not vtn
22:32alyssa: uff. weirdo GL thing
22:34alyssa: Well. still "just" ALU
22:35alyssa: what's not clear to me is why only a few hardware supports that
22:35alyssa: it seems to be for EXT_shader_image_load_store
22:35alyssa: oh but that's not the ext that people use, gated on a CAP
22:36alyssa: Fine, whatever, sure
22:52alyssa: Some of these backends are harder to convert, uff
22:56alyssa: llvmpipe, you're up
22:56alyssa: well, lp_bld_nir
22:56alyssa: guess I am working on lavapipe today :-D
22:57jenatali: Can I get a nir reviewer to take a look at the first patch of https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22787 ?
22:58alyssa: oh hey that's me
22:59jenatali: I debated just pinging you directly :P
23:00alyssa: jenatali: Lol
23:00alyssa: +1 on the commit message
23:00alyssa: Do you really want a mesa set?
23:01jenatali: What else would I want?
23:02jenatali: I guess I could've gone for a bitset based on block index?
23:03alyssa: Oh I mean shrug
23:03alyssa: I've never seen a block with more than, like, 3 predecessors in practice :p
23:04jenatali: Yeah I'm not really sure how you can get more, but it's possible
23:04alyssa: loop with many breaks/continues
23:04alyssa: the loop header has arbitrarily many predecessors
23:06jenatali: Right
23:18jenatali: So yeah, could do the O(n*m) search, or switch to a bitset, but since this only does anything in places where validation would fail today, I'm not worried about the allocation overhead from the set, and I'd rather not rework it if that's the only complaint :P
23:25alyssa: :D
23:38jenatali: Ok that needs more investigation, thanks for questioning me :)
23:38jenatali: I'll split that MR and land just the dzn bits then
23:39alyssa: +1
23:49alyssa:deletes a chunk of llvmpipe
23:50HdkR: :O
23:58alyssa: 3 files changed, 54 insertions(+), 230 deletions(-)