#
…

2022-05-13

00:00kdrag0n[m] has joined #asahi-dev
00:00unevenrhombus[m] has joined #asahi-dev
00:00casperes1996[m] has joined #asahi-dev
00:00henje[m] has joined #asahi-dev
00:00codegosu[m] has joined #asahi-dev
00:01BrenoMaia[m] has joined #asahi-dev
00:01exhan[m] has joined #asahi-dev
00:01brstream[m] has joined #asahi-dev
00:04IanPlatt[m] has joined #asahi-dev
00:06the_real_briel[m] has joined #asahi-dev
01:27katatafjsh[m] has joined #asahi-dev
01:27JasonAntwi-Appah[m] has joined #asahi-dev
01:27mnc7[m] has joined #asahi-dev
01:27AnushervonTabarov[m] has joined #asahi-dev
01:28RianSouzaSantos[m] has joined #asahi-dev
01:28huddy987[m] has joined #asahi-dev
02:01luxio_39[m] has joined #asahi-dev
02:01izzyisles[m] has joined #asahi-dev
02:08DanStrong[m] has joined #asahi-dev
02:08nametable[m] has joined #asahi-dev
02:09meowmomo1[m] has joined #asahi-dev
02:09pedrohos[m] has joined #asahi-dev
02:14phiologe has joined #asahi-dev
02:17PhilippvK has quit [Ping timeout: 480 seconds]
02:19yuyichao_ has joined #asahi-dev
02:30arnidg[m] has joined #asahi-dev
02:30cadawerum1[m] has joined #asahi-dev
02:39rkjnsn has joined #asahi-dev
02:39AntonioSchettini[m] has joined #asahi-dev
02:39kedde[m] has joined #asahi-dev
03:07butterfly[m] has joined #asahi-dev
03:07minkuu[m] has joined #asahi-dev
03:07ryanhrob1[m] has joined #asahi-dev
03:11alicela1n has joined #asahi-dev
03:58digitalfx[m] has joined #asahi-dev
03:58xf00[m] has joined #asahi-dev
03:58nihilistpc[m] has joined #asahi-dev
03:58steffen[m] has joined #asahi-dev
03:59rohin[m] has joined #asahi-dev
03:59Liam[m] has joined #asahi-dev
04:00happy-dude[m] has joined #asahi-dev
04:00Tom[m]1234 has joined #asahi-dev
04:02kov has quit [Quit: Coyote finally caught me]
04:03ah-[m] has joined #asahi-dev
04:07virmos[m] has joined #asahi-dev
04:07ey3ball[m] has joined #asahi-dev
04:08ogimgd[m] has joined #asahi-dev
04:13unrelentingtech has joined #asahi-dev
04:29boardwalk has quit [Quit: Ping timeout (120 seconds)]
04:29boardwalk has joined #asahi-dev
04:35ivy_[m] has joined #asahi-dev
04:35user974[m] has joined #asahi-dev
04:36lowz[m] has joined #asahi-dev
04:39M0x8FFshulkk[m] has joined #asahi-dev
05:05eeao^ has joined #asahi-dev
06:18the_lanetly_052__ has joined #asahi-dev
07:38roxiun[m] has left #asahi-dev [#asahi-dev]
08:17jluthra has quit [Remote host closed the connection]
08:18jluthra has joined #asahi-dev
08:46akamizu[m] has joined #asahi-dev
08:53dottedmagFWIW, what needs to be done in KMS driver so that compositors can handle it (TL;DR: provide fake EDID, as it ended up in uABI): https://paste.debian.net/plain/1240762
08:54dottedmagmarcan: Does display controller really hide EDID from the CPU? I remember you talked about it, but I may have missed something in meantime
08:54* mazwatches the Studio updating macos at a glacial speed... thank fsck this is the last time I'll see that.
08:57maz(update failed... good stuff)
08:58_jannau_dottedmag: weston / kwin work without problems with the WIP dcp drm/kms driver
08:59j`eymaz: you jinxed it
08:59_jannau_I'm not sure the data is completely hidden, we might just not yet found it
08:59mazj`ey: I'll put it out in the bin... ;-)
08:59j`eymaz: I run a bin collection company, whats your address? :P
09:01_jannau_dottedmag: the dcp co-processor reports modes which we report to userspace
09:01psydroid[m]I see your experience updating macOS on Apple hardware is about as good as mine in QEMU :)
09:08_jannau_dottedmag: I think dcp reports all necessary information. make, model and serial number are reported as properties (not parsed atm). Timing and colorimetry modes as well
09:13Lucy[m] has joined #asahi-dev
09:29bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:32maz_jannau_: what's the best way to get started on the t6002? the "old" way (install m1n1 by hand and bootstrap the whole thing), or the Asahi installer?
09:35dottedmag_jannau_: yeah, shouldn't be too hard to expose. It is unfortunate that it has to be packed into fake EDID though
09:36the_lanetly_052___ has joined #asahi-dev
09:39_jannau_maz: the installer needs trivial changes to work and an updated m1n1 checkout
09:40_jannau_so you would have to build it yourself
09:41mazbuilding m1n1 is easy. it's the installer itself I'm unsure of.
09:42the_lanetly_052__ has quit [Ping timeout: 480 seconds]
09:43_jannau_building the installer itself is not hard either. It builds however m1n1 with chainloading which requires bleeding edge rust
09:44j`eythe main thing the installer does is make the partition, but if youre not going to use macOS (dual boot) and you're not using the internal disk, maybe it's not so useful? it does firmware stuff, but you can do that manually too
09:46jannaumaz: with https://paste.debian.net/1240766/ the stand-alone m1n1 installation should work
09:47jannauinstaller builds with ./build.sh, you have to adjust the host in scripts/bootstrap.sh
09:51kettenisor you just copy installer.tar.gz and installer_data.json yourself, untar it and run install.sh
09:53ricekot has joined #asahi-dev
10:04mazkettenis: I guess you then need to replace m1n1 in-situ, don't you?
10:08_jannau_maz: the self built installer will be fine if you update the submodule to current HEAD
10:42kov has joined #asahi-dev
10:56c10l1 has quit []
10:56c10l1 has joined #asahi-dev
10:56c10l1 is now known as c10l
11:03systwi_ has joined #asahi-dev
11:07systwi has quit [Ping timeout: 480 seconds]
11:11eeao^ has quit [Remote host closed the connection]
12:20bisko has joined #asahi-dev
12:55rdltromw^ has joined #asahi-dev
13:19maz_jannau_: does the installer rely on the system rust toolchain? or does it bring its own? I get some funky compilation errors...
13:21_jannau_maz: it uses the system one and requires rust nightly
13:24_jannau_if marcan doesn't beat me to it I'll prepare a PR for mac studio support in the installer
13:25_jannau_but if you plan to boot via usb you can build without chainloading/rust
13:26maz_jannau_: I may do that, as I seem to be doing something wrong (I still get the same error despite trying to force the nightly rust).
13:27j`eycan you paste the error?
13:30maz'rustup target add aarch64-unknown-none-softfloat' is what I was missing.
13:35mpsmaz: this worked for me about two months ago
13:35mpsstrange it doesn't work now
13:38mazmps: as I said above, I didn't have the right toolchain
13:38mpsah, ok and sorry
13:38yuyichao_ has quit [Ping timeout: 480 seconds]
14:03yuyichao has joined #asahi-dev
14:13ChaosPrincess has quit [Quit: WeeChat 3.5]
14:15ChaosPrincess has joined #asahi-dev
14:31mazhoohoo! I'm at the point where I'm now feeding the box the wrong secondary m1n1/u-boot/DT combo (it is the one from the mini setup).
14:32mazserial and reset working.
14:37_jannau_maz: working dts is in https://github.com/jannau/linux/tree/asahi-t6002 based on the asahi downstream branch
14:39maz_jannau_: yup, spotted it, as well as your u-boot tree.
14:44the_lanetly_052___ has quit [Ping timeout: 480 seconds]
14:45TheLink has quit [Quit: ZNC 1.8.2 - https://znc.in]
14:45TheLink has joined #asahi-dev
15:11maz_jannau_: OK, I'm in u-boot now. does it need any convincing to probe mass-storage on USB (the C ports, I know the A ports don't work)?
15:24tpw_ruleswell i can't speak for mac studio. but it should tell you how many of what kind of usb devices it found
15:25mazexactly none.
15:31arndmaz: have you tried just booting a kernel in a m1n1 vm? that's how I'm still booting at the moment, skipping the u-boot step
15:31_jannau_maz: does it probe the 6 usb-c ports?
15:32mazarnd: no, I really want to run the full thing. running under the hypervisor isn't an option, for obvious reasons.
15:32maz_jannau_: it does probe all 6 ports, but fails to detect anything.
15:36jannaumaz: ^^^
15:37jannaus/might/probably/
15:39mazjannau: yeah, looks suspiciously relevant.
15:43mazjannau: yup fixes it.
15:44mazamusingly, I just had the recovery jumping in and telling me that my "macos" install was corrupted, or something similar.
15:45mazhad to reselect the m1n1 proxy.
15:45mazI guess it doesn't like me resetting the box the hard way... :-/
15:47_jannau_yes, iboot does that now if a boot counter is not reset
15:52arndmaz: I meant just to get you started with setting up user space. Once it works in the VM, you can obviously boot the same kernel natively from proxyclient, and then move to u-boot the last step. I found the vm proxyclient to be super helpful just getting started when not following the normal install
15:55arti1208 has joined #asahi-dev
15:56mazarnd: oh, I have a full userspace ready to be plugged in (my Mini is the donor system). I used proxyclient until about 8 months ago, at which point I switched to u-boot. I now have u-boot correctly probing USB, so it is only a matter of building the kernel, dumping it on the Mini's FS, and moving the disk over.
15:59maz_jannau_: I'm really tempted to stick that counter reset in u-boot itself! :D
16:01nicolas17 has joined #asahi-dev
16:03arndmaz: makes sense. I wasted a ton of time just finding the right kernel config. I had started with arm64 defconfig and then turned on stuff one option at a time, which meant a lot of reboots until I had something working ;-)
16:04arndI still want to eventually turn on all those options in mainline, so I can just build a defconfig kernel and not think about it much, but there is not much point until enough drivers are there
16:04sven_jannau_: wait, if I have a newer iboot I can no longer forcibly reset this thing because I’m too lazy to issue a real reboot?
16:06_jannau_sven: linux resets the counters on boot
16:06svenI’m not running the asahi branch
16:07svenand even if I was right now there are times where it serrors very early because if this tbt mess
16:08_jannau_then you will have to reselect the m1n1 partition every ~10 resets as startup disk
16:08sven*sigh*
16:08svenguess I’ll be careful to not update iboot then
16:09mazthis is going to be super annoying, as the box will be in a rack with no way to interact with it other than the serial console...
16:09_jannau_I was tempted to add the boot_error_count reset optionally to m1n1
16:09svenI’d very much like that
16:09maz100% in favor.
16:09mazjust make it optional.
16:21nicolas17add a remote actuator for the power button like AWS did for their Mac EC2 instances :D
16:24maznicolas17: for a number of reasons, I don't want to do *anything* like AWS does... :-/
16:25_jannau_it would not help at all with the problem
16:27nicolas17ah you'd need a full *graphical* console to select the boot partition again?
16:27_jannau_yes, it boots into macos recovery
16:31maz_jannau_: do you have to select dual mode for DWC3 to work? or host? I have the former in my kernel config, and the ports don't seem to get detected...
16:35jannaumaz: I think so, host breaks iirc due to typec interaction
16:37mazjannau: OK, so I'm missing something else.
16:40jannauwhich kernel? if upstream it's missing support for the iommu variant? otherwise do you have CONFIG_TYPEC_TPS6598X ?
16:50mazjannau: using your t6002 branch. I have this module, but the controllers themselves don't seem to appear, and it is like the driver never really probes them.
16:50mazfeels like a missing dependency.
16:52mazCONFIG_I2C_APPLE=y
16:57mazand I see a bunch of cd321x devices hanging off the i2c bus.
16:57jannaumaz: my dev config if you want to compare https://www.jannau.net/asahi-t6002.config
16:58jannaucd321x is apple's TPS6598X
16:58j`eyjannau: what's different between that and a normal m1 config?
16:59jannauit has most stuff built-in for booting via m1n1
17:00j`eywell I mean that does the ultra need any extra options?
17:01jannauthe asahi distro kernel works with the t6002 dts out of the box
17:01mazI have the ugly feeling that I'm missing modules in my initrd.
17:02mazthey probably are on the mass storage, but since I made the initrd on the Mini, tons of things may be missing from there.
17:07jannauhw doesn't differ that much. ethernet and sd card reader are the only things I can think of which use separate module
17:07mazmy mini uses a DT that doesn't know about the DWC3 ports at all.
17:08mazso there is no reason for the initramfs to end-up with these modules...
17:09arti1208 has quit [Quit: Konversation terminated!]
17:43mazyup, definitely a module dependency issue. with jannau's config, I can boot by debian install all the way.
17:45mazyup, that.
17:46mazhuh, the transition from USB3 speeds to USB2 is quite a let-dowm...
17:47kit_ty_kate has quit [Quit: WeeChat 3.2.1]
17:47kit_ty_kate has joined #asahi-dev
17:53roxfan2 has quit [Remote host closed the connection]
17:53svenif you don't mind hacks you can try https://github.com/AsahiLinux/linux/tree/atc-WIP to get usb3 speeds back
17:53svenhrm, although i dunno if someone already found the right fuses and build the devicetree for the ultra
17:56mazah, I can finally feel a bit of heat coming from the box! :D
17:58roxfan has joined #asahi-dev
18:18maz4:17 for a full debian kernel. not bad. I think I'm limited by the I/O here. already 30% faster than my current box, with only a fraction of the CPUs.
18:19j`eynice!
19:18nico_32_ has joined #asahi-dev
19:18nico_32 has quit [Ping timeout: 480 seconds]
19:45jakebot has quit [Quit: The Lounge - https://thelounge.chat]
19:59rdltromw^ has quit [Remote host closed the connection]
21:04Telvana2 has joined #asahi-dev
21:04Telvana has quit [Ping timeout: 480 seconds]
21:06yuyichao_ has joined #asahi-dev
21:10yuyichao has quit [Ping timeout: 480 seconds]
21:34jakebot has joined #asahi-dev
21:36jakebot has quit []
21:40jakebot has joined #asahi-dev
22:36tanty has quit [Remote host closed the connection]
22:38tanty has joined #asahi-dev
22:46Telvana2 has quit [Ping timeout: 480 seconds]
23:18ricekot has quit [Quit: Connection closed for inactivity]
23:31Eighth_Doctormarcan, svenpeter: so I know that linux-5.18 is coming up in a couple of weeks, I was wondering if you folks would be so kind as to be willing to prepare a branch off the 5.18 tag with the remaining non-upstream Asahi stuff that exists so far?
23:31Eighth_Doctorthat way I can cherry-pick it all onto the Fedora kernel tree once we start our 5.18 rebase
23:32Eighth_Doctorfor the kernel-asahi package I'm working on
23:33j`eyEighth_Doctor: the current branch is based on 5.18rc4
23:34Telvana has joined #asahi-dev
23:35Eighth_Doctorso it is (5.18-rc5) as of right now
23:35Eighth_DoctorI should have just checked instead of asking a question that apparently already has an answer :)
23:35j`eyerr rc5. but yeah, I guess it wont be too hard to rebase onto the final release
23:41Telvana has quit [Read error: Connection reset by peer]
23:43Telvana has joined #asahi-dev
23:56Telvana has quit [Read error: Connection reset by peer]
23:56Telvana has joined #asahi-dev
…