2021-10-04
00:53tylo1 has quit [Ping timeout: 480 seconds]
01:07tylo1 has joined #asahi
02:11marvin24_ has joined #asahi
02:15marvin24 has quit [Ping timeout: 480 seconds]
02:34phiologe has joined #asahi
02:37PhilippvK has quit [Ping timeout: 480 seconds]
02:45linearcannon has quit [Quit: Textual IRC Client: www.textualapp.com]
03:22kov has quit [Quit: Coyote finally caught me]
03:22kov has joined #asahi
03:33marvin24 has joined #asahi
03:36marvin24_ has quit [Ping timeout: 480 seconds]
03:52linearcannon has joined #asahi
03:52marcankdrag0n[m]: works for me, is it a timing thing? it has some timeout stuff that might fire due to the latency introduced depending on how you're doing it
04:00marcankdrag0n[m]: re performance, yeah, I think you're right that dhrystone seems to be an outlier
05:38darkapex has joined #asahi
06:55VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
06:56VinDuv has joined #asahi
07:49aleasto has joined #asahi
09:38myon98 has joined #asahi
09:55minialyssa: if you get to the point of needing to test things with a TBT monitor, I have a mac mini and a LG Ultrafine 5K here. I'll need to do the required linux setup, but that's not an issue
10:12j_eyI wonder if my usb-c monitor not working with my m1 is a macOS software issue, that will be interesting to see if linux works
10:25svendoes that monitor only use display port or does it also have more features it needs usb-c for?
10:30marcanj_ey: if it's TBT then USB A ports would be behind a host controller; if it's just USB3 then it'd be a hub
10:31marcanI'm putting together a list of all the in-flux kernel drivers, I'll post it here so you all can double check if you don't mind
10:34nskl is now known as nsklaus
10:34sveni guess i worked on i2c, tipd, usb2 reset quirk, rtkit, smc, sart, nvme and some very early atc phy stuff. oh, and the "make dart work on 4k kernels" i should pick up again at some point
10:36nsklausare we still using a custom kernel with 16k page size ? or we're using 4k like everyone else now ?
10:40MagMell[m]in next-20211001?
10:41MagMell[m]* 4k page work in next-20211001?
10:42nsklausi'm a bit over my league with those kind of questions (so forgive me if i happen to say something stupid) but, wouldn't the kernel memory page size being 16k instead of expected 4k will trash some software relying on that ? i was thinking about things like wine for example, being a bit picky with memory issues
10:43nsklausmarcan: when you'll arrive to the point of fiddling with fex-emu, i hope you can help it make wine work well on asahi (m1, arm arch and all)
10:44marcanthe IOMMU only supports 16K, but with the right kernel voodoo can be coaxed to work when the rest of the system is 4K
10:45j_ey(just to help those that were looking for lorenzo's branch https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/log/?h=pci/apple)
10:47marcanmostly you just can't assume you can map an arbitrary userspace mapping to hardware, but you can't assume that anyway for other reasons
10:47kettenisfairly simple; if your kernel uses 4k pages but the IOMMU has a granularity of 16k, you end up exposing pages to the hardware that you don't intend to expose
10:48marcankettenis: not just that, you can't do contiguous maps of 4K granularity blocks at all any more
10:52ketteniswell, the standard graphics stack expects to be able to map arbitrary allocations made from userland
10:52chadmednsklaus: fex shouldnt need any special help running on these macs, once all the low level hardware drivers are sorted, all fex sees is an AArch64 linux machine.
10:53nsklauschadmed: last time i tried fex (around last may) it wasn't able to run wine at all beside 'wine --version' iirc
10:54nsklausi could ran sdl based apps, like that metroid vania 'dead cells' (x86_64 app) that worked fine
10:54j_eyi hope that markan doesnt look at wine under fex, by the time m1 is fully in linux.. m1x or m2 will be here, so i hope thats what he focuses on :P
10:56chadmedoh well yeah thats definitely going to be a problem. it should work absolutely fine natively once support for the hardware is there. in fact, it should run pretty well natively at the state we're in now. you just dont have any fancy stuff like graphics acceleration
10:57marcanif I want to dogfood one of these machines (probably m1x or m2) as my main workstation, I need that
10:57nsklauschadmed: no graphic acceleration ? you mean because the driver are WIP on asahi itself, or that's a fex-emu limitation ? if that's a fex-emu limitation that will be sad
10:59marcanone *very* interesting thing for me is that if I move to M1... that means switching architectures on my main machine, which I haven't done since, er, 2004 or so
11:02marcanbut I wonder if I could get something I could call a "conversion" done by just replicating my Gentoo package configs except on arm64, then just reinstalling everything onto a new root and merging it in respecting CONFIG_PROTECT...
11:02chadmedthe same gentoo root for almost 20 years is quite impressive. i can barely go a year without being compelled to nuke my root partition and start fresh :P
11:04marcanso the question is can I legitimately keep that hostname or is it time for a new naming scheme for ARMs :)
11:04kettenisI admit I didn't actually check that the M1 doesn't allow NormalNC on the PCIe address space
11:05chadmedmaz: yeah i was about to say this actually isnt your patch at all lmao, idk why your name was in the header. wasnt even your reply to it
11:05kettenis(personally I think it was a mistake for ARM to allow unaligned access to normal memory)
11:07chadmedsame thing happening to the linux userspace too wrt making it more windows-y to entice windows users over. i think making your replacement/alternative look more like the thing its trying to replace is usually not a good idea. why should your replacement exist if it just needs to dress itself up as the "old" thing?
11:09kettenislet's hope Apple didn't screw things up and has coherency issues like Intel had for many generations of their integrated graphics
11:10mazkettenis: I guess that if they have that kind of issues, it is likely to affect a lot more than just graphics.
11:10kettenisI think the "make graphics fast by bypassing the coherency protocol" paradigm from the AGP days is finally dead now
11:12sveneverything that uses the dma-iommu api via the the dma api as intended will work on 4k kernels. there's some broken code that expects to be able to give the DMA api two 4k pages at A and A+8k and get back a single contiguous mapping for those at A' and A'+4k but well.... nothing we can do there
11:14chadmedi contemplated doing CS but both the good unis that offer it in Brisbane have utterly atrocious CS courses. one is basically just a glorified helpdesk certificate of competency and the other is just Bachelor of Python and Java. very depressing
11:15chadmedit shouldnt matter anyway, there are plenty of fantastic resources online and millions of lines of code to study in various git repos
11:29Glanzmann has joined #asahi
11:31Glanzmannmarcan: I have multiple system that I have not installed for over twenty years and cross graded from i386 to amd64 (Debian ...). Of course the hardware change a lot of times.
12:05* MagMell[m]uploaded an image: (187KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/JPSohuUmnqHWnxAwrtIteasy/photo_2021-10-04_20-02-29.jpg >
12:05MagMell[m]NVME support on the mainline should be good at the moment (this is on the Mac mini M1)? Just switched over from corellium
12:05MagMell[m]s/moment/next/
12:12MagMell[m]ok thx
12:12marcanand unless you want to sign up for the entire USB3/TB3/USB4/dpxbar/atc/etc mess, I would recommend you leave that side for now
12:12alyssathere are lots of bells and whistles that could be added to the dcp driver but in terms of "set native modes, double buffering, hotplug, ..." i mean it does what it needs
12:13svenmarcan: ah, btw., i tested the usb isolation thing and that did absolutely nothing. i still have to try what happens if i only set one of the two reset bits in the usb2phy control register though
12:13GlanzmannMagMell[m]: I noticed that when I do 80 threads 4k random write I only get around 1000 iops. Other than that it looks 'good'. Linear access I get several GB/s.
12:15marcanthough this poor thing can barely do 100MHz, need to see what the timings are for the eUSB2 control sequences... hopefully not *that* fast...
12:17alyssaalso consider not running cpu_pstates.py before boot, 20211003 has marcan's cpufreq drivers which should get similar perf without melting your desk
12:18marcanand besides, there's a good chance more nonsense changes here for newer chips, but the basic pstate control probably won't
12:18marcanif this means we can make basic pstates work on newer chips without kernel changes, that's a big win
12:24chadmedthe M1X mac mini is apparently going to be even thinner so i have no clue how theyre going to effectively cool the chip
12:26chadmeddoubt it, M1 is already on TSMC N5 and theyd have to port the firestorm/icestorm IP to whatever TSMC's next node is. i dont even think their next node has entered risk production yet anyway
12:26chadmedits not an easy task to shink an existing design, you cant just take the same photomask and make it smaller. the actual physical layout must change to conform to the new node's electrical and physical properites
12:27miniI can't say I've noticed any heat or noise issues even with very extended loads on my m1 mac mini so far
12:28Glanzmannmini: Two things heat up my mac: Running qemu or streaming my screen using 'screego' using a html5 browser.
12:36Glanzmannmarcan: I read in the irc backlog, that when you plug/unplug usb3 macos resets the entire chip, you bought an additional m1 to look at it for a hardware bug, I wonder if you did??
13:08jbowen has joined #asahi
13:13povik has joined #asahi
13:16marcanGlanzmann: I haven't yet, I bought it *before* I realized what that whole mess was about, once I did I was pretty sure there was no hope of avoiding the reset
13:17marcanbut the question still remains, as I mentioned above, whether we really need to do a full XHCI teardown or we can get away with something lighter
13:17tylo1 has quit [Ping timeout: 480 seconds]
13:21tylo1 has joined #asahi
13:29tylo1 has quit [Ping timeout: 480 seconds]
13:34jbowen has quit [Quit: leaving]
13:37jbowen has joined #asahi
13:41oi_wtf has joined #asahi
14:00marcan(also maz/kettenis/sven/alyssa/j_ey/povik: please check that I described your parts properly!)
14:03yuyichao has quit [Ping timeout: 480 seconds]
14:21tylo1 has joined #asahi
14:24FireFox317LGTM too!
14:25marvin24_ has joined #asahi
14:28FireFox317marcan, what about the work done by Mark Kettenis on supporting the M1 in U-Boot? I dont think it is explicitely mentioned? https://lore.kernel.org/all/20211003183050.67925-1-kettenis@openbsd.org/
14:28marvin24 has quit [Ping timeout: 480 seconds]
14:28svenmarcan: there are many svens. please call me "sven peter" the first time or link to my twitter or something like that :)
14:30FireFox317jvoisin, well kinda. It is mentioned in the PCIe bindings section indeed, but that is a different patch than the one that I just linked
14:30svenmarcan: the mailbox driver also supports what apple calls "m3wrap" fwiw. probably doesn't matter for the progress report though
14:35tylo1 has quit [Ping timeout: 480 seconds]
14:38alyssamarcan: "ready for review" I would highly encourage you to do the send-email and then switch to in review even if it's only technically true ;)
14:39marvin24 has joined #asahi
14:42alyssa"as well as patchsets too problematic to bundle as-is at this time (WiFi, which needs significant rewrites)"
14:42tylo1 has joined #asahi
14:42alyssaJust left with the firmware issue but if that's left as a DIY/bring-your-own like it is on the T2 Macs, 🤷
14:43marvin24_ has quit [Ping timeout: 480 seconds]
14:44alyssait's Corellium code minus the firmware selection stuff that needs a rewrite (and also minus some debug hacks etc)
14:45mazalyssa: I'm sure there will be an issue when the link comes up late and that we need to rescan the bus.
14:46alyssamaz: right now i'm bringing up the radios in m1n1, because that and also because no SMC driver in my tree yet
14:47alyssakettenis: on that note, I don't think the pwren-gpios thing makes sense for the pcie driver
14:47alyssathe only special thing in the pcie driver should be rescanning the bus on link up/down (which we need anyway for thunderbolt hotplug)
14:48alyssa(either in the rfkill subsystem using an in-kernel SMC API, or just adding rfkill to one of the many hats the soc/apple/smc.c driver wears.)
14:49alyssahaving pwren-gpios unconditionally in the pcie driver means you can't take your macbook on Air Canada anymore :-p
14:50marcan alyssa> marcan: "ready for review" I would highly encourage you to do the send-email and then switch to in review even if it's only technically true ;) fair :)
14:50tylo1 has quit [Ping timeout: 480 seconds]
14:50kettenisso it isn't clear to me whether rfkill should be implemented using thise gpio, or if there is some other way
14:50marcan< alyssa> Just left with the firmware issue but if that's left as a DIY/bring-your-own like it is on the T2 Macs, 🤷 <- I just don't really want to ship that hack, I'd much rather do a proper firmware bundler in the installer and ship *something* that at least is a reasonably upstreamable approach
14:51alyssathe register map thing you already committed to rewriting, the MAC address stuff I already rewrote half of to match what m1n1 does, all that's left is just the #define's which are trivial and you can use as-is :)
14:52sveni'd hate if we e.g. upstream SMC right now and then later realize that we need an entire different approach because it also does $whatever
14:56sventhat one needs "AppleT8103USBXHCI-debug=0xff AppleUSBXDCIARM-debug=0xff" and like 10 similar flags because this mess is spilled across many kexts
14:56tylo1 has joined #asahi
15:01nsklausnovember is still a month away, you folks have already linux running up to the desktop, with most of the peripherals supported, or with support underway, with a bit of luck soon there may be a first publicly usable version getting out, in 1year time, linux support for M1 arch.. very nice
15:02nsklausi remember marcan posted on phoronix, picking up the challenge that in this timeframe it could be done, and you're about to deliver just that..
15:02robinpmarcan: draft reads well, only two suggestions I have: 1. Name Sven and Alyssa in full like the others first use (if they are ok with that), 2. s/backwards-compatible/forwards-compatible/ ?
15:03marcannsklaus: the challenge was GPU before the end of the year... and we still have some time to get there ;)
15:03nsklausmarcan: was it ? i remember it wrongly then i thought it was a discussion of general linux support for M1
15:04tylo1 has quit [Ping timeout: 480 seconds]
15:06marcanalyssa: only issue with pmgr is the reset bit has no consumers and hasn't been tested at all :')
15:07tylo1 has joined #asahi
15:07sventhere'll probably be a v2 for some minor changes anyway. you can always sneak in a fix for the reset bit as well :D
15:53tomtastic_ has joined #asahi
15:56tomtastic has quit [Ping timeout: 480 seconds]
16:00marcanI'll post it tomorrow, along with the pmgr patchset (because if I start doing that now I know I'm not sleeping at a reasonable time *again* ;))
16:05The_DarkFire_[m] has quit [Ping timeout: 480 seconds]
16:10kettenisalready aligned the u-boot driver with this (although that isn't part of my first upstreaming diff)
16:12facez[m] has quit [Ping timeout: 480 seconds]
16:15shaman_br[m] has quit [Ping timeout: 480 seconds]
16:15TellowKrinkle[m] has quit [Ping timeout: 480 seconds]
16:16AlessandroFerrari[m] has quit [Ping timeout: 480 seconds]
16:18jryans has quit [Ping timeout: 480 seconds]
16:19ryanhrob[m] has quit [Ping timeout: 480 seconds]
16:19The_DarkFire_[m] has joined #asahi
16:20spot[m] has quit [Ping timeout: 480 seconds]
16:21jammie[m] has quit [Ping timeout: 480 seconds]
16:21ovf[m] has quit [Ping timeout: 480 seconds]
16:23kettenisneed to take another look at the u-boot pinctrl driver to bring it in line with what we now know about the hardware
16:25go4godvin has quit [Ping timeout: 480 seconds]
16:27h_ro[m] has quit [Ping timeout: 480 seconds]
16:28kettenisand I don't think adding the all as #define in the u-boot driver makes as much sense as it does for the linux driver
16:29izzyisles[m] has quit [Ping timeout: 480 seconds]
16:29noc0lour[m] has quit [Ping timeout: 480 seconds]
16:29etsukata[m] has quit [Ping timeout: 480 seconds]
16:31kettenisI agree, especially when there isn't a data sheet where you can look up the meaning of the bits ;)
16:31The_DarkFire_[m] has quit [Ping timeout: 480 seconds]
16:32HaoYanQi[m] has quit [Ping timeout: 480 seconds]
16:33OrganicPumpkin[m] has quit [Ping timeout: 480 seconds]
16:33dgc[m] has quit [Ping timeout: 480 seconds]
16:33_alice has quit [Ping timeout: 480 seconds]
16:33MingcongBai[m] has quit [Ping timeout: 480 seconds]
16:34smvg[m] has quit [Ping timeout: 480 seconds]
16:35VitorCardoso[m] has quit [Ping timeout: 480 seconds]
16:36Izumoo[m] has quit [Ping timeout: 480 seconds]
16:36foxlet has quit [Ping timeout: 480 seconds]
16:37joerosenberg[m] has quit [Ping timeout: 480 seconds]
16:37stttcccccccccccc[m] has quit [Ping timeout: 480 seconds]
16:39Amey has quit [Ping timeout: 480 seconds]
16:39brentr123[m] has quit [Ping timeout: 480 seconds]
16:41jbowen has quit [Ping timeout: 480 seconds]
16:41JuniorJPDJ has quit [Ping timeout: 480 seconds]
16:42booffo[m] has quit [Ping timeout: 480 seconds]
16:43jbowen has joined #asahi
16:44EdwardAnd[m] has quit [Ping timeout: 480 seconds]
16:51dpatterbee[m] has quit [Ping timeout: 480 seconds]
16:51jevinskie[m] has quit [Ping timeout: 480 seconds]
16:51alexanderwillner[m] has quit [Ping timeout: 480 seconds]
16:52M31j[m] has quit [Ping timeout: 480 seconds]
16:53cavoirom[m] has quit [Ping timeout: 480 seconds]
17:00LeviLynch[m] has quit [Ping timeout: 480 seconds]
17:00angustrau[m] has quit [Ping timeout: 480 seconds]
17:00wollymilkcap[m] has quit [Ping timeout: 480 seconds]
17:01AnushervonTabarov[m] has quit [Ping timeout: 480 seconds]
17:08M32thSystem[m] has quit [Ping timeout: 480 seconds]
17:09ilovetrains[m] has quit [Ping timeout: 480 seconds]
17:10camr0[m] has quit [Ping timeout: 480 seconds]
17:11peerp[m] has quit [Ping timeout: 480 seconds]
17:16jbowen has quit [Ping timeout: 480 seconds]
17:20Spectrejan[m] has quit [Ping timeout: 480 seconds]
17:25Aaron[m]1 has quit [Ping timeout: 480 seconds]
17:29jbowen has joined #asahi
17:30PedroArajo[m] has quit [Ping timeout: 480 seconds]
17:33AndrewLee[m] has quit [Ping timeout: 480 seconds]
17:46kdrag0n[m] has quit [Ping timeout: 480 seconds]
17:53thebrinkoftomorrow[m] has quit [Ping timeout: 480 seconds]
17:54jbowen has quit [Ping timeout: 480 seconds]
18:24jbowen has joined #asahi
18:26ghantaz[m] has quit [Ping timeout: 480 seconds]
18:29bastilian[m] has quit [Ping timeout: 480 seconds]
18:30facez[m] has joined #asahi
18:32yuyichao has joined #asahi
18:51cgv[m] has quit [Ping timeout: 480 seconds]
18:54jbowen has quit [Ping timeout: 480 seconds]
18:57sandornagy[m] has quit [Ping timeout: 480 seconds]
19:02YichaoYu[m] has quit [Ping timeout: 480 seconds]
19:05ll3macorn[m] has quit [Ping timeout: 480 seconds]
19:07Caedus[m] has quit [Ping timeout: 480 seconds]
19:08jbowen has joined #asahi
19:10SocioProphet[m] has quit [Ping timeout: 480 seconds]
19:12muscularduckling[m] has quit [Ping timeout: 480 seconds]
19:12jbowen has quit []
19:12i509vcb[m] has quit [Ping timeout: 480 seconds]
19:12tertu2 has joined #asahi
19:12tertu has quit [Read error: Connection reset by peer]
19:26jthom[m] has quit [Ping timeout: 480 seconds]
19:29facez[m] has quit [Ping timeout: 480 seconds]
19:36MagMell[m] has quit [Ping timeout: 480 seconds]
19:37shaman_br[m] has joined #asahi
19:39hablerentand[m] has quit [Ping timeout: 480 seconds]
19:39TellowKrinkle[m] has joined #asahi
19:40svenhttps://github.com/AsahiLinux/linux/commits/i2c/v2 alright, that'll probably be v2 for i2c unless the amigaone guys run into some roadblocker during their tests
19:52yuyichao_ has joined #asahi
19:56yuyichao has quit [Ping timeout: 480 seconds]
20:14vasilymilovidov[m] has quit [Ping timeout: 480 seconds]
20:20happy-dude[m] has quit [Ping timeout: 480 seconds]
20:26ah-[m] has quit [Ping timeout: 480 seconds]
20:31shaman_br[m] has quit [Ping timeout: 480 seconds]
20:36AlessandroFerrari[m] has joined #asahi
20:37yuyichao has joined #asahi
20:41yuyichao_ has quit [Ping timeout: 480 seconds]
20:41commandoline has quit [Quit: Bye!]
20:42commandoline has joined #asahi
20:42anfernee[m] has quit [Ping timeout: 480 seconds]
20:48TypoKign[m] has quit [Ping timeout: 480 seconds]
21:01povik has quit [Quit: Page closed]
21:02PieroDel[m] has quit [Ping timeout: 480 seconds]
21:02idf00[m] has quit [Ping timeout: 480 seconds]
21:12Axenntio has joined #asahi
21:28jryans has joined #asahi
21:28Axenntio has quit [Ping timeout: 480 seconds]
21:41ryanhrob[m] has joined #asahi
21:44spot[m] has joined #asahi
21:53jammie[m] has joined #asahi
21:55ovf[m] has joined #asahi
22:04aleasto has quit [Quit: Konversation terminated!]
22:15go4godvin has joined #asahi
22:15go4godvin is now known as Guest1819
22:23h_ro[m] has joined #asahi
22:32izzyisles[m] has joined #asahi
22:37noc0lour[m] has joined #asahi
22:53The_DarkFire_[m] has joined #asahi
22:57HaoYanQi[m] has joined #asahi
23:02etsukata[m] has joined #asahi
23:02OrganicPumpkin[m] has joined #asahi
23:06_alice has joined #asahi
23:08MingcongBai[m] has joined #asahi
23:23VitorCardoso[m] has joined #asahi
23:25_alice has quit [Quit: irc_error]
23:28Izumoo[m] has joined #asahi
23:29foxlet has joined #asahi
23:32joerosenberg[m] has joined #asahi
23:34stttcccccccccccc[m] has joined #asahi
23:42Nspace has joined #asahi
23:46Amey has joined #asahi
23:47brentr123[m] has joined #asahi
23:47yuyichao has quit [Ping timeout: 480 seconds]
23:48smvg[m] has joined #asahi