#
…

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:43marcan08:22:02 < alyssa> displayport over usb type-c
02:43marcan08:22:11 < alyssa> displayport over usb4/thunderbolt over usb type-c
02:43marcanof course those are distinct
02:43marcandisplayport != thunderbolt
02:44marcanso you're saying you're signing up to write the atc driver? :D
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
04:00marcanI get 754 using gzip as a benchmark
04:01marcan662 with a simple dd copy
04:03marcanfunny enough zcat is almost ~identical perf on both cores
04:03marcan(modulo frequency)
04:04marcan876 with a better gzip benchmark (binary data, not urandom)
04:07marcan690 by doing repeated `find /` calls (syscall-heavy)
04:09marcanI don't have a proper rootfs set up yet, but I wonder about things like compiling
04:11krbtgtmodern CPUs have a dhrystone instruction nowadays
05:38darkapex has joined #asahi
06:10svenalyssa: yup, welcome to the hell that is usb!
06:55VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
06:56VinDuv has joined #asahi
07:37mazalyssa: that can be squashed into it, or live as a separate patch, doesn't really matter.
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
09:56marcanI'll be picking up some test hardware for this :)
09:56miniyou'll get a very nice monitor out of it, I'm sure ;)
09:56marcanif only I had a good place to use it! :D
09:57marcannah but actually, I'm thinking a dock first
09:57marcanTB3 dock with DP out should be ~equivalent
09:57sveni'm already happy once usb 3 works :D
09:57sventbt will be even more "fun"
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:29j_eysven: uh, it has a few USB A ports, maybe those go over the USBC?
10:30svenprobably :D
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:30kettenislooks like the pcie driver has been picked up by the pci subsystem maintainer
10:30marcanyeah, just saw that!
10:31svenoh, nice!
10:31svenand ofc there's two ways to implement usb a ports over usb-c :>
10:31marcangoing to finish the progress report today (I get myself into too many loops...)
10:31svenor, well, a usb hub over usb-c
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:33j_eykettenis: oh cool, another arm employee
10:33nsklcan't wait to read the new progress report :)
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:36j_eynsklaus: 4K works now
10:36nsklausj_ey: nice :)
10:37nsklausi missed that info when it became available
10:37sventhere's, uh, a patch series that makes it work for trusted devices
10:37svenit's not upstream yet though
10:37j_eyive been using 16K locally, for fun
10:38sveni think i'm the only one who almost always runs 4k kernels :D
10:38marcanI don't even remember what I have now, I think it used to be 4K and I changed it?
10:38marcanlooks like 16K right now :)
10:39marcanIIRC I switched when testing the hv PAC mask stuff
10:40j_ey(thanks for that :D)
10:40MagMell[m]in next-20211001?
10:41MagMell[m]* 4k page work in next-20211001?
10:42mazPCIe bindings from kettenis are in too.
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:42marcanyes, it will
10:42marcanit can be worked around but not perfectly
10:42marcanthat is why sven is putting so much effort on 4K kernels
10:43marcanotherwise we'd just pester distros into shipping 16K
10:43maznote that the PCIE DT updates are *not* in yet.
10:43marcanjust the bindings and the driver, right?
10:43marcanthough tbh that detail about the DT updates can be omitted from the progress report
10:43JTLIOMMU work properly with 4K page size?
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:44j_eyJTL: the IOMMU still uses 16k pages
10:44marcannsklaus: I expect it to work normally
10:44kettenisDT updates not being in is not a disaster as the DT will be provided by m1n1 anyway
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:44marcan(with some limitations)
10:44mazkettenis: sure. but just so people understand what to pick from where...
10:45JTLmarcan: I'd be curious to hear about that when the time comes
10:45JTL(re IOMMU and limitations)
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:47marcanthere are very few drivers that rely on that kind of hack
10:47marcanas long as you allocate DMA memory with the right layers it works
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:50kettenisthat's a limitation of the Linux kernel code though
10:50kettenisanyway, this probably means that using an eGPU is going to be problematic
10:51marcandepends on how gpu memory is allocated tbh
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:52chadmed(because at the end of the day, they are in fact just AArch64 machines)
10:52kettenisit also assumes that you can map VRAM as NormalNC
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:54kettenisbut is seems that the M1 only allows mapping PCIe as Device-nGnRE
10:54chadmednsklaus: on these macs?
10:54nsklauschadmed: i tried fex on my macbook pro m1 yes
10:55nsklausrunning on virtualized linux on paralells on macos. i tried with an ubuntu 20 something
10:55chadmedyeah probably just a problem with hardware or how you set up your amd64 root then
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:56marcankettenis: good point on the nGnRE thing, I didn't think of that one...
10:56marcanj_ey: one of my major personal blockers is wine under FEX
10:57marcanif I want to dogfood one of these machines (probably m1x or m2) as my main workstation, I need that
10:57j_eymarcan: oh :(
10:57j_eymarcan: well fine, just fix it quickly :P
10:57marcan(to run windows VST plugins under yabridge)
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:57chadmeddidnt maz have a patch that that unlocked nGnRnE?
10:58marcanwhy would you need nGnRnE?
10:58chadmeddunno, just reading over maz's rfc from earlier this year
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
10:59marcanat the time I mostly reinstalled
11:00marcan(and I haven't reinstalled since)
11:00j_eymarcan: I mean, that's the same for most of us :P
11:01marcanj_ey: yeah but do you still run your first amd64 install from 2004?
11:01marcan$ head /var/log/emerge.log
11:01marcan1095199274: *** terminating.
11:01marcan1095202174: Started emerge on: Sep 14, 2004 22:49:34
11:01j_eyoh, in that sense
11:01j_eymarcan: which machine is this? not the imac you stream from?
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:02JTLmarcan: how big is your accept_keywords? :P
11:02marcanj_ey: it is the iMac
11:02marcanJTL: I've cleaned it up a bit over time!
11:02marcan... it's still pretty bad
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:02marcanactually I think you mean USE
11:03marcanACCEPT_KEYWORDS is just ~amd64 :p
11:03marcanbut yeah, I've just migrated this root (and forked it thrice!) over the years
11:03mazchadmed: I think you have the wrong guy. I don't remember "unlocking" anything.
11:03marcaneach time keeping the hostname of the main branch
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:04marcanthen again I already *have* a new naming scheme for M1s... for the macOS installs...
11:04marcanmaybe I should just roll with that...
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:06mazkettenis: x86 contagion. like most of what enters the architecture these days.
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:09kettenisanyway, the built-in graphics should be fine as it just uses normal memory
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:11mazkettenis: can I quote you on that next time I talk to GPU people? :D
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:12kettenismaz: be my guest; I have no formal CS education whatsoever ;)
11:13svenformal CS education is overrated ;)
11:13mazkettenis: saying "be my guest" to a hypervisor person is... turning things upside down! :D
11:13mazas for formal CS education, it really doesn't matter.
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:30Glanzmannmarcan: If you need a rootfs, follow alyssa lead: https://ab34.de/u/asahi.txt
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.
11:32marcanGlanzmann: I'm going to be using Arch Linux ARM ;)
11:32marcan(for testing machines at least)
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:07alyssamaz: congrats on the merge
12:10sventhere's no mainline nvme support for m1 yet
12:11alyssamaz: DCP can probably go as "functional" tbh
12:11alyssamarcan: i mean
12:11alyssalike NVMe
12:11marcanyeah, will do
12:11alyssadcpext is an atcphy problem, not a dcp one at this point
12:11marcanyeah, I expected that
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:12alyssaYeah, I don't want to
12:12alyssaI just wanted hv traces of it so I could make sure the DCP side could cope with it later
12:12alyssaand not have to refactor the whole DCP driver after it goes upstream
12:12marcanit doesn't do double buffering? isn't that just presenting different surfaces?
12:13alyssa* allows a compositor to do double buffering
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:13alyssa(Wayland takes advantage of that. Xorg is too dumb to.)
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:13svenmaybe that's enough to unbreak it without breaking xhci/dwc3
12:14GlanzmannMagMell[m]: This is with alyssa's tree: https://ab34.de/u/asahi.txt
12:14marcansven: might have to pull out the scope after all?
12:15svenmaybe :/
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:15Glanzmannalyssa: Have you fixed the x hotplug issue?
12:15sveni also wonder what happens if i bring usb3
12:15sventhat shouldn't break, should it?
12:15marcanyeah, USB3 is completely unrelated
12:15svenlike, hotplug should just work there
12:15marcanthat should just go through the retimer
12:15marcanwhich is controlled by the ti chip
12:15alyssaGlanzmann: not yet
12:15alyssaI got distracted by wifi
12:15marcanbut I *think* there is no weirdo protocol there
12:16Glanzmannalyssa: I saw it, did you get wifi to work?
12:16marcansame on both sides
12:16alyssaGlanzmann: yes
12:16marcanso as long as it's up it should work
12:16alyssaGlanzmann: mu-one/20211003
12:16Glanzmannalyssa: Care to share the instructions, than I'll try to reproduce.
12:16alyssasure but not right now, i'm already running late :-p
12:16Glanzmannalyssa: No issue, I'll check the backlogs.
12:16sven"fun". bringing up usb3 using hacks shouldn't be too hard
12:17svenlet's see what happens then
12:17alyssadrop the m1n1 patch (for ANS), the hack is not needed with marcan's drivers in 20211003
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:18marcanI'm going to make m1n1 do the DVMR thing and switch the pcores to 2GHz anyway
12:18marcanI think that makes sense for a bootloader state
12:18marcanand then we can drop the init from the driver
12:18marcanand besides, there's a good chance more nonsense changes here for newer chips, but the basic pstate control probably won't
12:18Glanzmannalyssa: I see, my mini did not get hot or make any noise (fan is off entire time).
12:18marcanif this means we can make basic pstates work on newer chips without kernel changes, that's a big win
12:18marcanGlanzmann: she's kidding
12:19marcanthe cores go to sleep anyway
12:19Glanzmannalyssa: Will do the same.
12:22Glanzmann156.234.58.11: Thank you for your public key, now send me the private key.
12:24alyssamarcan: Tell that to my desk 🙃
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:24chadmedfaster fan i guess?
12:25Glanzmannchadmed: Does the m1x has a nm shrink?
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:26minidoubtful, the m1 is already 5nm
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:27miniand I've had it doing things like hours of video & audio processing at 100% CPU
12:28Glanzmannmini: Two things heat up my mac: Running qemu or streaming my screen using 'screego' using a html5 browser.
12:29GlanzmannHowever I'm talking about m1 macbook air.
12:31marcanchadmed: the M1 Mac Mini is half empty space
12:32marcanthey just reused the Intel case
12:32marcanthese chips are so power-efficient you barely need a small fan to keep them cool
12:32marcanno reason why they can't cool the M1X efficiently on an even smaller case
12:33Glanzmannmarcan: Interesting.
12:34Glanzmannmarcan: Btw. did you hardware debug the usb3 chip? Any new findings?
12:35marcanusb3 chip?
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??
12:36chadmedi think he means the CD3217?
12:38sventhe eusb2 repeater actually
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:17marcanso I will still do the teardown and poke around for that later
13:17tylo1 has quit [Ping timeout: 480 seconds]
13:21tylo1 has joined #asahi
13:24Glanzmannmarcan: I see.
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
13:59marcanhttps://mrcn.st/p/18PoNpvm <- draft progress report, comments welcome :-)
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:04mazmarcan: s/Mark/Marc/
14:08marcan(brb, going to grab dinner)
14:08sveni'll read it in ~30 minutes
14:11jvoisin> The driver is looking good and is likely to be ready to merge in the next iteration!
14:11jvoisinnext iteration of what?
14:11marcanof the patches
14:12marcanI'll just say "next patchset version"
14:20jvoisinotherwise, LGTM :)
14:21tylo1 has joined #asahi
14:25marvin24_ has joined #asahi
14:28alyssamma"How long will it take for us to port that work to Linux? Stay tuned!
14:28alyssamarcan: "How long will it take for us to port that work to Linux? Stay tuned!
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:28alyssa" I mean the Asahi Mesa driver has been in Mesa's upstream CI for 6 months now :-p
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:29alyssa"the bobsledding Sven worked on RTKit.."
14:29alyssathat should disambig
14:29svenhaha :D
14:29jvoisinfirefox317: it's mentioned in the beginning of the draft
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:30alyssathere are also many Alyssa's, though admittedly I am a mononym at this point :-p
14:30svenmarcan: the mailbox driver also supports what apple calls "m3wrap" fwiw. probably doesn't matter for the progress report though
14:30svenalyssa: he also linked your twitter :P
14:31alyssasven: fair :-p
14:31sventhe rest looks good to me otherwise
14:31alyssaI'm not really sure what the order of the drivers is
14:32alyssaI guess closeness to merge?
14:32alyssatipd+i2c are surely closer than pinctrl right now?
14:32povikmarcan: draft looks good to me :)
14:32alyssaand i don't see the iommu 4k stuff getting merged any time soon
14:33sventipd just needs to be picked up by gregkh whenever he has his next scheduled git session
14:33sveni2c needs a v2 with a few small changes but should be ready then as well
14:35tylo1 has quit [Ping timeout: 480 seconds]
14:35sveni just need to find some time to get back to the 4k iommu stuff
14:36svenit's probably less "in review" and more "stuck somewhere on sven's todo blackhole^W list"
14:37kettenismarcan: maybe mentioning upstreaming U-Boot support (USB type-C only) is worked on
14:37kettenisas in, v2 of the patch series has been posted
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:42alyssathe patches I have in my tree are not ready for upstream but aren't really problematic
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:42kettenisthere are always too many Mar[ck]s
14:43marvin24_ has quit [Ping timeout: 480 seconds]
14:43kettenisalyssa: do your wifi patches actually work?
14:43alyssakettenis: yes?
14:44alyssait's Corellium code minus the firmware selection stuff that needs a rewrite (and also minus some debug hacks etc)
14:44kettenisbut with the pcie driver from maz?
14:44alyssa(and split up into separate commits)
14:44kettenisinteresting...
14:44alyssaat least an older version of the pcie driver from maz
14:44alyssaneed to rebase on the merged one still
14:44alyssabut that ought to be "trivial"
14:45svenfamous last words :P
14:45alyssasven: I'm a bit confused about this "merged but into an apple specific branch"?
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:45alyssamaz: yes, that still needs to be solved
14:45svenalyssa: uh, that's just the feature branch
14:45svenalyssa: DART also lives in apple/dart in iommu.git
14:46mazalyssa: when you're done with the rebase, let me know and I'll have a look.
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:46alyssawhich I mean. ok that's a huge hack.
14:46alyssaif you write the rescan the bus patch I guess I'll do the SMC + rfkill stuff :-p
14:47alyssakettenis: on that note, I don't think the pwren-gpios thing makes sense for the pcie driver
14:47svenSMC will be annoying though. that thing has so many random features
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:48kettenishow are you going to trigger the gpio?
14:48alyssaI think the "turn on the radios" SMC property should be managed by an rfkill driver
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:48alyssathis is important for two reasons:
14:49alyssa1. so rfkill actually works in userspace the way apple intended
14:49alyssa2. so the radios never come online if the machine is booted in airplane mode
14:49alyssahaving pwren-gpios unconditionally in the pcie driver means you can't take your macbook on Air Canada anymore :-p
14:49alyssa("I thought there's in flight wifi now" "Shhh")
14:49ketteniswell, the gpio isn't really a "turn radios on"
14:50kettenisit actually powers the entire pcie device on and off
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:50alyssakettenis: even more reason to do it with rfkill then?
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:50alyssamarcan: yeah that's fair
14:51marcanbut also, tbh, I want to rewrite that entire patch
14:51alyssaalso fair
14:51sveni think we need to understand both SMC and the pwren-gpio/rfkill thing better anyway.
14:51svenand then figure out what's the best way to implement both
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:51marcankettenis/firefox317: good call on explicitly pointing out u-boot
14:51svenat least SMC is mostly guesswork right now
14:52kettenisyeah, it might help to see what macos does when you put the machine in airplane mode
14:52alyssaI suspect something with that smc gpio
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:52alyssa(otherwise why do it with smc at all instead of just a pinctrl pin)
14:53marcanI guess time to start tracing SMC...
14:53svenyou can just set a xnu bootarg and it'll trace itself for you
14:53alyssafully automated luxury gay space tracing
14:54svensmcdebug=0xff i think
14:54marcanand that doesn't need global debug like pmgr did?
14:54marcan(the i_can_haz_debugger thing)
14:54svencpus=1 debug=0x14e serial=3 apcie=0xfffffffe -enable-kprintf-spam wdt=-1 smcdebug=0xff
14:54sventhat's what i used
14:55svenand it started printing lots of crap
14:55marcanthe debugger thing is a hv param :)
14:55marcanso I guess not then
14:55svendon't think so :D
14:55sventhe same applies for ATC PHY btw.
14:55svenit's also rather verbose
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
14:58svenit'll even print the tunables for you
14:58sven(see -re)
14:58nsklausnice read, the preview blog entry
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:04nsklauseither way, it's all good news :)
15:04marcan(as in not like 100% passing all the tests, but good enough for a composited desktop)
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:06marcanbut I guess that doesn't *technically* block the send-email
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:08marcanbut also you could pipe in the reset into ans :D
15:10svenah, right. i remember i wanted to do that :D
15:11sventhat shouldn't be too hard. let's see.
15:24kettenismarcan: you're still missing the yaml file for the pmgr binding
15:25kettenisat least I don't see it on the branch ;)
15:53tomtastic_ has joined #asahi
15:54marcankettenis: good point, that was git add fail :)
15:54marcanjust pusged
15:56tomtastic has quit [Ping timeout: 480 seconds]
15:59marcanhttps://mrcn.st/p/i8dJIQS4 I think I addressed all the comments :)
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:01alyssamarcan: any idea if the reset stuff works with DCP?
16:01marcanit does not, unfortunately
16:01marcanor rather, it doesn't come back up
16:01marcanit's possible it needs some special kick
16:02marcansince it probably expects iBoot to boot it first
16:04sorearread the draft, nothing jumped out at me
16:05The_DarkFire_[m] has quit [Ping timeout: 480 seconds]
16:05kettenismarcan: I think you need to add an entry to MAINTAINERS for the binding
16:08marcankettenis: yeah, and for the driver
16:09marcanI'm counting that in the whole checkpatch/etc dance
16:09marcanthat's why it's not actually sent out yet ;)
16:10kettenisotherwise this looks good
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:13marcankettenis: u-boot mention is okay in the installer section?
16:13marcan(thought it'd flow well since that's where it fits in the whole picture)
16:14kettenisyeah, that sounds fine to me
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:24marcankettenis: did you get the register bit defs?
16:25go4godvin has quit [Ping timeout: 480 seconds]
16:26kettenisthanks, I have your reply to the linux pinctrl diff as well
16:26marcanyeah, but that didn't have the specifics :)
16:26marcan(not all of them anyway)
16:27kettenisbut u-boot cares even less about the fancy bits ;)
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:29marcansure, that's up to you
16:29marcanI do like adding all that to linux drivers
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:31povikmarcan: skimmed through the report once more
17:31poviki want to say
17:31povikno thanks necessary
17:31poviki am having quite some fun :)
17:31povik(less so with the linux driver, but that's the cost of doing business i guess)
17:33AndrewLee[m] has quit [Ping timeout: 480 seconds]
17:46kdrag0n[m] has quit [Ping timeout: 480 seconds]
17:49alyssapovik: giggle
17:50povikmarcan asked me if i want to do the driver
17:50poviki just want to complain is all
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:37alyssasven: Naming is still inconsistent between "Apple" and "platform"
22:37alyssa(In the commit message and in Kconfig)
22:37alyssaI mean I don't care but
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
…