#
…

2022-02-27

00:00ndut2 has quit [Read error: Connection reset by peer]
00:05Telvana has quit [Read error: Connection reset by peer]
00:10Telvana has joined #asahi-dev
01:04ndut2 has joined #asahi-dev
01:04ndut2 was kicked from #asahi-dev by ChanServ [You are not permitted on this channel]
01:46ndut2 has quit [autokilled: This host violated network policy and has been banned. Mail support@oftc.net if you think this is in error. (2022-02-27 01:46:25)]
03:18sirn- has joined #asahi-dev
03:18sirn has quit [Read error: Connection reset by peer]
03:18sirn- is now known as sirn
03:37phiologe has joined #asahi-dev
03:41PhilippvK has quit [Ping timeout: 480 seconds]
03:57Rabbitz has joined #asahi-dev
04:02kov has quit [Quit: Coyote finally caught me]
04:02kov has joined #asahi-dev
04:35* Rabbitzhi anyone wanna code something together ? may be we can meet at channnel #rabbithacker
04:38Rabbitz has quit [autokilled: This host violated network policy and has been banned. Mail support@oftc.net if you think this is in error. (2022-02-27 04:38:09)]
05:29bisko has quit [Read error: Connection reset by peer]
05:30bisko has joined #asahi-dev
07:05TheFirst has quit [Server closed connection]
07:05TheFirst has joined #asahi-dev
08:21the_lanetly_052 has joined #asahi-dev
08:55esden has quit [Server closed connection]
08:55esden has joined #asahi-dev
10:07philpax_ has quit [Server closed connection]
10:07philpax_ has joined #asahi-dev
10:14jabashque has quit [Server closed connection]
10:14jabashque has joined #asahi-dev
10:46gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:47gabuscus has joined #asahi-dev
10:47nathanchance has quit [Server closed connection]
10:47nathanchance has joined #asahi-dev
10:56JTL has quit [Server closed connection]
10:57JTL has joined #asahi-dev
11:02ids1024 has quit [Server closed connection]
11:02ids1024 has joined #asahi-dev
11:06NekomimiScience has quit [Server closed connection]
11:06NekomimiScience has joined #asahi-dev
11:16___nick___ has joined #asahi-dev
11:16___nick___ has quit []
11:18___nick___ has joined #asahi-dev
12:39tpw_rules has quit [Server closed connection]
12:39tpw_rules has joined #asahi-dev
13:31the_lanetly_052 has quit [Ping timeout: 480 seconds]
13:42cyrozap has quit [Server closed connection]
13:42cyrozap has joined #asahi-dev
13:43Lightsword has quit [Server closed connection]
13:43Lightsword has joined #asahi-dev
14:39rcombs has quit [Server closed connection]
14:43rcombs has joined #asahi-dev
14:45Method has quit [Server closed connection]
14:45Method has joined #asahi-dev
14:58krbtgt has quit [Server closed connection]
14:58krbtgt has joined #asahi-dev
15:08marcansven: what do you think about sending out a fixes patch to future-proof the disp0 DART stuff?
15:10marcantoday, without a binding change, we could have the driver check the streams and refuse to probe if any are enabled (even in bypass), which honestly would qualify as a firmware bug in my book (does u-boot clear them?)
15:12kettenisThe only thing u-boot does is place some of the DARTs in bypass mode.
15:12kettenisIt probably should undo that, but it currently doesn't.
15:13marcanwe could only bail if any streams are in non-bypass mode
15:13marcanunder the argument that a bootloader smart enough to use non-bypass mode really should be cleaning up after itself
15:13marcanmaybe just warn for bypass mode
15:14svenI think bailing when the TCR is set to translate is a good idea
15:15svenand a dev_warn for anything in bypass mode is probably useful too
15:15marcanfirmware bug really
15:16kettenisthanks ;)
15:16marcanwanna send the patch or should I?
15:16svenit should hand over the darts in a sane state ;)
15:17svenfeel free to send something
15:17kettenisnote that this means that 5.17 will still break
15:18svenI don’t even remember what iboot does to the DARTs
15:18sveni think it hands over some in bypass mode
15:18kettenis(and 5.18 if the change doesn't make it into that)
15:18marcanI'll send it as stable
15:18marcanso it should be backported
15:21kettenisThe alternative solution is to change the compatible for these display DARTs to something like apple,t8103-disp-dart
15:22kettenisand have the driver key off that
15:22marcanyeah, but... ew
15:22marcanI think we should have a property like apple,dart-handoff to tell the driver handoff is expected
15:22marcanso it still complains for darts that shouldn't handoff
15:22marcanbut in the meantime, we should just bail if TCRs are set
15:22bisko has quit [Read error: Connection reset by peer]
15:23bisko has joined #asahi-dev
15:24kettenisnote that robh has indicated a few times that using different compatibles is generally preferred over boolean properties like that
15:25kettenis(not that I necessarily agree with that)
15:26marcanfor stuff that isn't a hardware difference like this?
15:27kettenismaybe not in that case
15:29kettenisFWIW, I'd like to see a property that indicates that mappings need to be preserved
15:30kettenisbut I'll see if I can do the TCR check on OpenBSD as well
15:38alyssawouldn't we all?
15:50jannaukettenis: I'm not sure we want to preserve all mappings. Thierry Reding proposed in https://lore.kernel.org/linux-iommu/YgPsVAsEcUYKHNIj@orome/ to add "mapped-devices" as a link back to the device. Used to read the pre-mapped regions from the device
16:00kettenisI guess that would work; the presence of the mapped-devices property would then indicate that we don't want to do a full reset of the DART I presume?
16:00kettenisBut I suspect this will still take a bit of time to be worked into a formal binding...
16:01kettenisGuess the TCR check will buy us some time for that
16:02jannauthat would be enough although I parse already the preserved mappings in dcp_probe
16:35svenmarcan: when you’re working on that tcr patch feel free to also send one to merge the dart entries to the rest in MAINTAINERS
16:36marcanah, sure
16:37svenI thought we already did that but apparently we just forgot :D
16:43jbowen has quit [Server closed connection]
16:43jbowen has joined #asahi-dev
17:21bisko has quit [Read error: Connection reset by peer]
17:22bisko has joined #asahi-dev
18:05King_InuYasha has quit [Server closed connection]
18:05King_InuYasha has joined #asahi-dev
18:11kettenishmm, on the j274, 4 out of the 8 DARTs that are currently in the device tree have the translate enable bit set (for all of the streams)
18:12kettenisso adding a simple TCR check is not going to fly unless we have m1n1 sanitize the DARTs
18:32nafod has quit [Server closed connection]
18:32nafod has joined #asahi-dev
18:38svenwhat if we change that to “tcr translate enabled and any ttbr has the valid bit set”?
18:52bisko has quit [Read error: Connection reset by peer]
18:53bisko has joined #asahi-dev
18:59kettenissven: that seems to work
19:16kettenisand verified that adding the nodes for disp_dart and dcp_dart has the expected effect
19:16kettenisapldart0 at simplebus0: translating
19:17kettenisapldart1 at simplebus0: locked
19:34gladiac is now known as Guest718
19:34gladiac has joined #asahi-dev
19:40Guest718 has quit [Ping timeout: 480 seconds]
19:44jkkm has quit [Server closed connection]
19:44jkkm has joined #asahi-dev
19:58svenso I guess it’s either that or clean up all darts in m1n1
20:57weems_ has quit [Server closed connection]
20:57weems_ has joined #asahi-dev
20:57daniels has quit [Server closed connection]
20:58daniels has joined #asahi-dev
21:06arnd has quit [Server closed connection]
21:06arnd has joined #asahi-dev
21:07___nick___ has quit [Ping timeout: 480 seconds]
22:15mmarchini has quit [Server closed connection]
22:15mmarchini has joined #asahi-dev
22:19kendfinger has quit [Server closed connection]
22:19kendfinger has joined #asahi-dev
22:36skoobasteeve has quit [Server closed connection]
22:37skoobasteeve has joined #asahi-dev
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
…