#
…

2021-02-19

00:01odmir_ has quit [Read error: Connection reset by peer]
00:01odmir has joined #asahi-dev
00:05odmir has quit [Read error: Connection reset by peer]
00:06odmir has joined #asahi-dev
00:08odmir has quit [Remote host closed the connection]
00:08odmir has joined #asahi-dev
00:10odmir_ has joined #asahi-dev
00:10odmir has quit [Read error: Connection reset by peer]
02:43DarthCloud has quit [Ping timeout: 268 seconds]
02:45DarthCloud has joined #asahi-dev
02:48qyousef has quit [Ping timeout: 240 seconds]
02:50qyousef has joined #asahi-dev
03:09PhilippvK has joined #asahi-dev
03:09phiologe has quit [Ping timeout: 260 seconds]
04:01eric_engestrom has quit [Read error: Connection reset by peer]
04:01titanous has quit [Ping timeout: 272 seconds]
04:02eric_engestrom has joined #asahi-dev
04:03mxw39 has joined #asahi-dev
04:03titanous has joined #asahi-dev
04:35odmir_ has quit [Remote host closed the connection]
04:35odmir has joined #asahi-dev
04:57odmir has quit [Remote host closed the connection]
06:30VinDuv has joined #asahi-dev
06:37bisko has joined #asahi-dev
06:44maor26 has joined #asahi-dev
06:57_whitelogger has joined #asahi-dev
06:58bisko has quit [Quit: Textual IRC Client: www.textualapp.com]
06:59acelogic has quit [Client Quit]
06:59acelogic has joined #asahi-dev
07:32VinDuv has quit [Quit: Leaving.]
07:53amw has quit [Ping timeout: 264 seconds]
07:59marcan has quit [Quit: Now where's my screwdriver...]
08:03marcan has joined #asahi-dev
08:04rafaelmartins_ has joined #asahi-dev
08:09amw has joined #asahi-dev
08:12rockinrobstar[m] has quit [*.net *.split]
08:12emily has quit [*.net *.split]
08:12psydruid has quit [*.net *.split]
08:12TomJepp has quit [*.net *.split]
08:12rafaelmartins has quit [*.net *.split]
08:19marcan has quit [Ping timeout: 276 seconds]
08:23TomJepp has joined #asahi-dev
08:23emily has joined #asahi-dev
08:23rockinrobstar[m] has joined #asahi-dev
08:23marcan has joined #asahi-dev
08:25M0_osx[m] has quit [Ping timeout: 240 seconds]
08:25bastilian has quit [Ping timeout: 240 seconds]
08:25enverb[m] has quit [Ping timeout: 240 seconds]
08:25greatudini[m] has quit [Ping timeout: 240 seconds]
08:25yuyangchee98[m] has quit [Ping timeout: 240 seconds]
08:25jevinskie[m] has quit [Ping timeout: 240 seconds]
08:25Eighth_Doctor has quit [Ping timeout: 240 seconds]
08:25svenpeter has quit [Ping timeout: 240 seconds]
08:25izzyisles[m] has quit [Ping timeout: 240 seconds]
08:25ryanhrob[m] has quit [Ping timeout: 240 seconds]
08:25Spectrejan[m] has quit [Ping timeout: 240 seconds]
08:25_alice has quit [Ping timeout: 240 seconds]
08:26Bastian[m] has quit [Ping timeout: 240 seconds]
08:26rockinrobstar[m] has quit [Ping timeout: 258 seconds]
08:26konradybcio has quit [Ping timeout: 246 seconds]
08:26nirusu[m] has quit [Ping timeout: 246 seconds]
08:26Alex[m] has quit [Ping timeout: 246 seconds]
08:26brentr123[m] has quit [Ping timeout: 246 seconds]
08:26ewlsh[m] has quit [Ping timeout: 246 seconds]
08:26ldhacker[m] has quit [Ping timeout: 246 seconds]
08:26PedroAraujo[m] has quit [Ping timeout: 246 seconds]
08:26zvtu[m] has quit [Ping timeout: 246 seconds]
08:26emily has quit [Ping timeout: 258 seconds]
08:26shadaj[m] has quit [Ping timeout: 246 seconds]
08:26nutmanja[m] has quit [Ping timeout: 250 seconds]
08:26flokk[m] has quit [Ping timeout: 250 seconds]
08:26foxlet has quit [Ping timeout: 250 seconds]
08:26Jasper[m] has quit [Ping timeout: 250 seconds]
08:26undvasistas[m] has quit [Ping timeout: 244 seconds]
08:26will1 has quit [Ping timeout: 244 seconds]
08:26davidrysk[m] has quit [Ping timeout: 244 seconds]
08:26assusdan[m] has quit [Ping timeout: 244 seconds]
08:26bylaws has quit [Ping timeout: 244 seconds]
08:26Alice[m] has quit [Ping timeout: 250 seconds]
08:26hypergenesis[m] has quit [Ping timeout: 250 seconds]
08:26fridtjof[m] has quit [Ping timeout: 250 seconds]
08:26josiahmendes[m] has quit [Ping timeout: 250 seconds]
08:26blazra has quit [Ping timeout: 250 seconds]
08:26randohacker[m] has quit [Ping timeout: 250 seconds]
08:26Jan[m]1 has quit [Ping timeout: 250 seconds]
08:26jamesmunns[m] has quit [Ping timeout: 268 seconds]
08:26user1tt[m] has quit [Ping timeout: 268 seconds]
08:26thecake21[m] has quit [Ping timeout: 268 seconds]
08:26xerpi[m] has quit [Ping timeout: 268 seconds]
08:26irradiated_lemmi has quit [Ping timeout: 265 seconds]
08:26winocm has quit [Ping timeout: 265 seconds]
08:26alexanderwillner has quit [Ping timeout: 265 seconds]
08:26mofux[m] has quit [Ping timeout: 265 seconds]
08:26citruscitrus[m] has quit [Ping timeout: 265 seconds]
08:43amw has quit [Ping timeout: 272 seconds]
08:49acelogic has quit [Ping timeout: 260 seconds]
09:23Spectrejan[m] has joined #asahi-dev
09:50will1 has joined #asahi-dev
09:50svenpeter has joined #asahi-dev
09:50Bastian[m]1 has joined #asahi-dev
09:50bastilian has joined #asahi-dev
09:50Eighth_Doctor has joined #asahi-dev
09:50Alex[m]1 has joined #asahi-dev
09:50emily has joined #asahi-dev
09:50ewlsh[m] has joined #asahi-dev
09:50thecake21[m] has joined #asahi-dev
09:50foxlet has joined #asahi-dev
09:50flokk[m] has joined #asahi-dev
09:50mofux[m] has joined #asahi-dev
09:50shadaj[m] has joined #asahi-dev
09:50PedroAraujo[m] has joined #asahi-dev
09:50assusdan[m] has joined #asahi-dev
09:50botoxparty[m] has joined #asahi-dev
09:50yuyangchee98[m] has joined #asahi-dev
09:50user1tt[m] has joined #asahi-dev
09:50citruscitrus[m] has joined #asahi-dev
09:50khronokernel[m] has joined #asahi-dev
09:50fridtjof[m] has joined #asahi-dev
09:50nutmanja[m] has joined #asahi-dev
09:50jamesmunns[m] has joined #asahi-dev
09:50enverb[m] has joined #asahi-dev
09:50bylaws has joined #asahi-dev
09:50xerpi[m] has joined #asahi-dev
09:50jevinskie[m] has joined #asahi-dev
09:50greatudini[m] has joined #asahi-dev
09:50Alice[m] has joined #asahi-dev
09:50izzyisles[m] has joined #asahi-dev
09:50M0_osx[m] has joined #asahi-dev
09:50ConeOfAttack[m] has joined #asahi-dev
09:50ldhacker[m] has joined #asahi-dev
09:50Jasper[m] has joined #asahi-dev
09:50rockinrobstar[m] has joined #asahi-dev
09:50davidrysk[m] has joined #asahi-dev
09:50hypergenesis[m] has joined #asahi-dev
09:50nirusu[m] has joined #asahi-dev
09:50ryanhrob[m] has joined #asahi-dev
09:50zvtu[m] has joined #asahi-dev
09:50wolf511[m] has joined #asahi-dev
09:50psydruid has joined #asahi-dev
09:50winocm has joined #asahi-dev
09:50irradiated_lemmi has joined #asahi-dev
09:50Jan[m]3 has joined #asahi-dev
09:50konradybcio has joined #asahi-dev
09:50blazra has joined #asahi-dev
09:50_alice has joined #asahi-dev
09:50randohacker[m] has joined #asahi-dev
09:50undvasistas[m] has joined #asahi-dev
09:50brentr123[m] has joined #asahi-dev
09:50josiahmendes[m] has joined #asahi-dev
09:50alexanderwillner has joined #asahi-dev
10:16grumble has quit [Quit: shovels were a truly groundbreaking invention]
10:19grumble has joined #asahi-dev
12:08HeN has quit [Remote host closed the connection]
12:08eric_engestrom has quit [Remote host closed the connection]
12:08narmstrong has quit [Remote host closed the connection]
12:08nkaretnikov has quit [Remote host closed the connection]
12:08jkkm has quit [Remote host closed the connection]
12:08hatf0 has quit [Remote host closed the connection]
12:08titanous has quit [Remote host closed the connection]
12:18narmstrong has joined #asahi-dev
12:19jkkm has joined #asahi-dev
12:19nkaretnikov has joined #asahi-dev
12:20titanous has joined #asahi-dev
12:21eric_engestrom has joined #asahi-dev
12:23HeN has joined #asahi-dev
12:24hatf0 has joined #asahi-dev
13:06WhyNotHugo has quit [Remote host closed the connection]
13:30WhyNotHugo has joined #asahi-dev
14:19bsandro has joined #asahi-dev
14:39odmir has joined #asahi-dev
14:54Bastian[m]1 is now known as Bastian[m]
14:58Alex[m]1 has quit [Quit: Idle for 30+ days]
15:34vimal has quit [Ping timeout: 272 seconds]
15:44vimal has joined #asahi-dev
16:00ConeOfAttack[m] has quit [Quit: Idle for 30+ days]
16:00wolf511[m] has quit [Quit: Idle for 30+ days]
16:00khronokernel[m] has quit [Quit: Idle for 30+ days]
16:00botoxparty[m] has quit [Quit: Idle for 30+ days]
16:10emily has quit [Ping timeout: 240 seconds]
16:10xerpi[m] has quit [Ping timeout: 240 seconds]
16:11randohacker[m] has quit [Ping timeout: 258 seconds]
16:11citruscitrus[m] has quit [Ping timeout: 258 seconds]
16:11citruscitrus[m] has joined #asahi-dev
16:12randohacker[m] has joined #asahi-dev
16:14thestr4ng3r has quit [Quit: ZNC 1.8.1 - https://znc.in]
16:15thestr4ng3r has joined #asahi-dev
16:15konradybcio has quit [Ping timeout: 240 seconds]
16:15winocm has quit [Ping timeout: 258 seconds]
16:16PedroAraujo[m] has quit [Ping timeout: 240 seconds]
16:16winocm has joined #asahi-dev
16:19konradybcio has joined #asahi-dev
16:24xerpi[m] has joined #asahi-dev
16:25emily has joined #asahi-dev
16:30PedroAraujo[m] has joined #asahi-dev
17:11carlosn has joined #asahi-dev
17:14JTL_ has joined #asahi-dev
17:18bkero_ has joined #asahi-dev
17:18vimal has quit [*.net *.split]
17:18carlosn1 has quit [*.net *.split]
17:18JTL has quit [*.net *.split]
17:18bkero has quit [*.net *.split]
17:21vimal has joined #asahi-dev
17:21carlosn1 has joined #asahi-dev
17:21JTL has joined #asahi-dev
17:21JTL has quit [Max SendQ exceeded]
17:21vimal has quit [Max SendQ exceeded]
17:22carlosn1 has quit [Ping timeout: 254 seconds]
17:25VinDuv has joined #asahi-dev
17:25yuyangchee98[m] has quit [Ping timeout: 244 seconds]
17:26PedroAraujo[m] has quit [Ping timeout: 244 seconds]
17:26xerpi[m] has quit [Ping timeout: 244 seconds]
17:26emily has quit [Ping timeout: 244 seconds]
17:26mofux[m] has quit [Ping timeout: 244 seconds]
17:26ewlsh[m] has quit [Ping timeout: 244 seconds]
17:26bylaws has quit [Ping timeout: 244 seconds]
17:26Eighth_Doctor has quit [Ping timeout: 244 seconds]
17:27svenhow very strange. the disp0-dart seems to have two blocks: one DART and one thing the device tree calls SMMU. the usb dart otoh seems to have two blocks and both looks like DART.
17:28sven"DARTLLT" and "DARTBLK"
17:28xerpi[m] has joined #asahi-dev
17:28vimal has joined #asahi-dev
17:28ewlsh[m] has joined #asahi-dev
17:28mofux[m] has joined #asahi-dev
17:28bylaws has joined #asahi-dev
17:29marcansven: USB3 is... complicated, maybe there are separate DARTs for e.g. host/device mode, or for data and controller shenanigans, or stuff like that?
17:29svenpossibly
17:29marcanlike I think most xHCI controllers run firmware and stuff, so maybe there's a carve-out for that
17:29marcanare either of them already configured by the time we run?
17:30acelogic has joined #asahi-dev
17:31sventhey are power gated by the time we run. I can re-enable power/clocks and then there's some stuff left in the registers, but no valid pagetables as far as I can tell
17:31svenhrm, though I wonder what happens if I enter DFU mode and then reboot
17:35svenhm, nope. no change
17:38sventhe audio video encoder seems to have two of these DARTs and another SMMU according to the device tree
17:38sven(assuming that ave actually means audio/video encoder, heh)
17:40yuyangchee98[m] has joined #asahi-dev
17:41PedroAraujo[m] has joined #asahi-dev
17:44emily has joined #asahi-dev
17:45Eighth_Doctor has joined #asahi-dev
17:54encounter[m] has joined #asahi-dev
17:55svenugh.. I guess there's no way around actually bringing up usb to play around with the device side
18:00maor26 has quit [Ping timeout: 240 seconds]
18:04bkero_ is now known as bkero
18:04bkero has joined #asahi-dev
18:04bkero has quit [Changing host]
18:35modwizcodeSMMU is the arm standard iommu thing
18:36svenlet's call this one Apple SMMU then, heh
18:36svenI'm quite sure it's not the arm standard thing
18:36modwizcodeI wonder if it's related at all though
18:36modwizcodeor maybe just abused acronym
18:36modwizcodesince SMMU I believe stands for system mmu
18:37svenI haven't found any evidence that this apple smmu even has pagetables
18:37modwizcodeAny idea what it does at all?
18:37svenit seems to be closely coupled to the DART
18:37svennot really
18:38marcansven: shot in the dark: something something virtualization?
18:39marcanmuch like this thing has a vGIC for VMs...
18:39modwizcodeThat was kind of my thought originally
18:39svenI can't even seem to change most registers in there fwiw
18:40marcanmaybe there's a lock/enable in the DART side?
18:40marcanthat would make sense if it really is a thing meant for VM guests
18:40svenmaybe. it's not present for all DARTs in the device tree though
18:40svenusb e.g. doesn't have it
18:40modwizcodeThe SMMU docs are unusually dense even for ARM, I tried pulling them up for some conceptual/possible functionality reference and it was not helpful
18:40marcanyeah, so maybe just things you might reasonably want to pass to a guest
18:40marcan... like graphics/display
18:40modwizcodeUSB might have a more complex reassignment method
18:40svenhm, fair enough
18:40marcanI would not expect USB to be passed through
18:41modwizcodeI haven't read any specs but isn't there some specific feature of xHCI targeted towards virtualization?
18:41svenwe can pretty much ignore it for now anyway, I'm just curious :-)
18:42marcanmodwizcode: there is some stuff, yeah
18:42riker77 has quit [Quit: Quitting IRC - gone for good...]
18:42marcannot sure if anything implements it properly though :)
18:42modwizcodeI seem to remember that that's maybe why xHCI based things make passing through individual devices much more sane compared to other setups. But it's not the kind of thing I would dig into.
18:43modwizcodeApple has an API for paravirtualized graphics support for virtualization, but it has like... no meaningful docs.
18:43modwizcodeI don't even know if there's an API enough to use it yet given the docs on the site.
18:49modwizcodethere's actually seemingly some matching between offsets and some stuff I see in the SMMU linux driver.
18:51svenwhich ones?
18:51sventhe pagetables are very similar fwiw
18:51modwizcodefault address seems to be in the right place
18:51modwizcode16 streams matches up (without an extension you get 16 streams, with extensions you get 16 bits for streams)
18:51riker77 has joined #asahi-dev
18:51modwizcodelatter point isn't really that relevant
18:52svenhuh, so maybe the arm secification just totally confused me
18:52modwizcodewhat ARM's SMMU calls context bank is possibly in the correct place but dynamic constants make it hard to tell
18:52modwizcodeI could be just seeing what I want to see
18:52svenare you talking about the SMMU or the DART range?
18:56svenhm... maybe DART was inspired by the arm smmu
18:56svenbut it certainly doesn't line up with the smmu registers
18:56acelogic has quit [Remote host closed the connection]
19:00modwizcodeThere's a lot of versions, I think it's kind of like a v1
19:21arvimal has joined #asahi-dev
19:21svenooookay.. I think the SMMU does some kind of scatter/gather DMA
19:21modwizcodethat's exciting
19:21svenI've mapped the whole frame buffer to a single page with DART
19:21svenand then I've tried memset32(0x0000000231302000, 0, 0x20) and varied the size
19:22svenoh, and I set that one page to 0xffffffff to have a white screen
19:22svenand depending on the size I chose in that memset a black contiguous area appears for a brief moment at different places
19:22svenand the size controls, well, the size :-)
19:23vimal has quit [Ping timeout: 240 seconds]
19:24svenyup, and if I memset32(0x0000000231302000, 0x809e0df8, 0x100) and set the buffer at 9e... to 0x88888888 the bar that appears is green
19:26modwizcodeInteresting
19:27svennow I wonder if there's a bit to disable the automatic filling of that table
19:27modwizcodeIs it actually doing some kind of memory op or is it just more granular mapping? (If I'm understanding things right)
19:28sventhe page size still seems to be the same
19:29svenit's a little bit weird. I originally though this is just some kind of cache or something, and it just might still be
19:29svenbut the SMMU names makes me suspicious this might be more than just a cache
19:29modwizcodeThe S has so many possibilities :p
19:29modwizcodeSuspicious MMU
19:29Thomas__ has quit [Ping timeout: 260 seconds]
19:30Thomas__ has joined #asahi-dev
19:30modwizcodeI think you're probably right it's not a cache, based on the fact that not every device has one
19:33svenit's only present for disp0, dispext0 and ave in the device tree
19:33modwizcodeMy first thought here though is it's some kind of GARt
19:35opticron_ has joined #asahi-dev
19:36jn__(ah, ARM's SMMU has already been mentioned, good)
19:36odmir has quit [*.net *.split]
19:36brandas has quit [*.net *.split]
19:36jaalsa has quit [*.net *.split]
19:36arnd has quit [*.net *.split]
19:36opticron has quit [*.net *.split]
19:36vijfhoek has quit [*.net *.split]
19:36skg has quit [*.net *.split]
19:36commandoline has quit [*.net *.split]
19:36lethalbit has quit [*.net *.split]
19:36krbtgt has quit [*.net *.split]
19:36dlnx`` has quit [*.net *.split]
19:36agraf has quit [*.net *.split]
19:36milek7 has quit [*.net *.split]
19:40odmir has joined #asahi-dev
19:40brandas has joined #asahi-dev
19:40arnd has joined #asahi-dev
19:40lethalbit has joined #asahi-dev
19:40jaalsa has joined #asahi-dev
19:40commandoline has joined #asahi-dev
19:40vijfhoek has joined #asahi-dev
19:40skg has joined #asahi-dev
19:40krbtgt has joined #asahi-dev
19:40milek7 has joined #asahi-dev
19:40dlnx`` has joined #asahi-dev
19:40agraf has joined #asahi-dev
19:41modwizcodesven: Can I get a full dump from the SMMU range?
19:41svensure, it's rather boring though
19:44opticron_ is now known as opticron
19:46svendon't you have a second m1 Mac yet? :-P
19:53modwizcode:p I don't even own any macs
21:29brandas_ has joined #asahi-dev
21:32brandas has quit [Ping timeout: 256 seconds]
22:08JTL_ is now known as JTL
22:35brandas has joined #asahi-dev
22:35brandas_ has quit [Read error: Connection reset by peer]
22:41VinDuv has quit [Quit: Leaving.]
22:42bsandro has quit [Ping timeout: 256 seconds]
23:02TheLink has quit [Quit: Blubb]
23:02TheLink has joined #asahi-dev
23:05bsandro has joined #asahi-dev
…