2021-10-16
00:00alyssa582 should be TRUE'd or maybe FALSE'd if that doesn't work, couldnt tell you without a hypervisor trace
00:04bps has joined #asahi
00:06jmr2Is there an easy way to capture dmesg at the other end of the USB link? Currently, the TTY link closes during linux boot.
00:15jmr2For context: the USB-C to USB converter I'm using to connect the rootfs has a screen attached to it. Might mess things up.
00:20jmr2Allright. Unless you have another quick one for me, I'll be signing out for now. I need to improve my setup before I can assist properly.
00:21bps has quit [Ping timeout: 480 seconds]
00:39kenjigashu has quit []
00:40kenjigashu has joined #asahi
00:45jmr2 has quit [Remote host closed the connection]
01:03kenjigashu has quit []
01:19Nspace has quit [Quit: Nspace]
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi
01:31nuh^ has quit [Ping timeout: 480 seconds]
01:32nuh^ has joined #asahi
02:08jabashque_ has joined #asahi
02:08aeroraptor has quit [Ping timeout: 480 seconds]
02:08jabashque is now known as Guest3064
02:08jabashque_ is now known as jabashque
02:08nkaretnikov has quit [Ping timeout: 480 seconds]
02:09eichin_ has joined #asahi
02:09sorear_ has joined #asahi
02:09kendfinger has quit [Ping timeout: 480 seconds]
02:09ZLSA has quit [Ping timeout: 480 seconds]
02:09brinly has quit [Ping timeout: 480 seconds]
02:09saintdev has quit [Ping timeout: 480 seconds]
02:10eichin has quit [Ping timeout: 480 seconds]
02:10sorear has quit [Ping timeout: 480 seconds]
02:10sorear_ is now known as sorear
02:10Guest3064 has quit [Ping timeout: 480 seconds]
02:10steev has quit [Ping timeout: 480 seconds]
02:10Ariadne_ has joined #asahi
02:10Ariadne has quit [Ping timeout: 480 seconds]
02:10Ariadne_ is now known as Ariadne
02:10Chainsaw has quit [Ping timeout: 480 seconds]
02:10ovf has quit [Ping timeout: 480 seconds]
02:10guan has quit [Ping timeout: 480 seconds]
02:10brinly has joined #asahi
02:11cptcobalt has quit [Ping timeout: 480 seconds]
02:11robher has quit [Ping timeout: 480 seconds]
02:12jkkm has quit [Ping timeout: 480 seconds]
02:12eric_engestrom has quit [Ping timeout: 480 seconds]
02:12guan has joined #asahi
02:13ZLSA has joined #asahi
02:15saintdev has joined #asahi
02:18cptcobalt has joined #asahi
02:18aeroraptor has joined #asahi
02:21PhilippvK has joined #asahi
02:23nkaretnikov has joined #asahi
02:24kendfinger has joined #asahi
02:24phiologe has quit [Ping timeout: 480 seconds]
02:26cptcobalt has quit [Ping timeout: 480 seconds]
02:26aeroraptor has quit [Ping timeout: 480 seconds]
02:30yuyichao has joined #asahi
02:35Chainsaw has joined #asahi
02:35robher has joined #asahi
02:36aeroraptor has joined #asahi
02:37cptcobalt has joined #asahi
02:49kenjigashu has joined #asahi
02:49amw has quit [Ping timeout: 480 seconds]
02:59kenjigashu has quit []
03:09eichin_ has quit []
03:09eichin has joined #asahi
03:28ovf has joined #asahi
03:33kov has quit [Quit: Coyote finally caught me]
03:33roxfan has quit [Ping timeout: 480 seconds]
03:33steev has joined #asahi
03:33roxfan has joined #asahi
03:34kov has joined #asahi
03:34eric_engestrom has joined #asahi
03:44jkkm has joined #asahi
04:02marvin24 has joined #asahi
04:05marvin24_ has quit [Ping timeout: 480 seconds]
04:35Glanzmannrross101: Recently the debian installer never works for me, so I end up running debootstrap or copying the rootfs over. But whatever works for you. Copying the rootfs over is much faster.
04:38Glanzmannrross101: About the other question, You need one partitions, one for m1n1 and one for the rootfs. And go with copying over the rootfs, it will be much faster.
05:20Glanzmannalyssa: If you have not found anyone else by then, I can get you a hypervisor trace from a macbook air. If you talk me through it. To my knowledge I ahve an uart because I have three m1 devices.
05:43rohin has quit [Quit: Konversation terminated!]
08:26aleasto has joined #asahi
08:26nuh^ has quit [Remote host closed the connection]
08:53nsklaus has joined #asahi
08:55nskl has quit [Ping timeout: 480 seconds]
10:30bps has joined #asahi
10:50svenj_ey: i think the pinctrl binding also needs the #interrupt-cells = <2> property. can you add that as well when you submit the apple,npins change?
10:51bps has quit [Ping timeout: 480 seconds]
10:53j_eysven: I suppose that is forward compatible with making it <3> in the future if we want to put a group there
10:55sveni think you'd need a custom irq_domain_ops then to default the group to zero when only two cells are present.
10:56svenbut it might make more sense to just round robin distribute the interrupts across the groups or something anyway
10:56svenbut we need #interrupt-cells = <2>; in the device tree with the current code to make it work
10:59j_eysven: some of those dtbs are huuuge, the m1s are quite short in comparison, I wonder if they'll eventually be as bad
12:08Nspace has joined #asahi
12:30Nspace has quit [Quit: Nspace]
12:37psykose has quit [Remote host closed the connection]
12:38psykose has joined #asahi
12:40yuyichao has quit [Ping timeout: 480 seconds]
12:46Nspace has joined #asahi
12:54___nick___ has joined #asahi
12:54___nick___ has quit []
12:55___nick___ has joined #asahi
12:59Nspace has quit [Quit: Nspace]
13:02Nspace has joined #asahi
13:04Nspace has quit []
13:11alyssaj_ey: Adding the display subsystem (DCP x2 plus all the type-C crossbar) will make it even worse :')
13:15j_eymight also help if future computers have USB being identical but something else is different?
13:15alyssaj_ey: that reminds me, we might need to mess with the PCIe dts a bit so we don't try to bring up type-A/Ethernet on the macbooks
13:15alyssa(It's harmless to do so, but it's also.... kinda wrong. And with the current PCIe driver adds a delay at boot.)
13:19alyssaj_ey: I'm holding out for the M1X release to drive down the prices of used M1 macbooks ;-p
13:22alyssaj_ey: It's either that or text marcan "hey I need a MacBook Air for DCP driver dev" and make it Patreon's problem ;-p
13:26chadmedits a massive privilege to be able to work, study AND pursue a hobby all at one and you should absolutely do it while you can
13:27chadmedi go through depressive episodes where i come dangerously close to dropping out but going in and doing meaningful research digs me out
13:35rross101 has quit [Remote host closed the connection]
14:09Nspace has joined #asahi
14:13Nspace has quit []
15:14Nspace has joined #asahi
15:24Nspace has quit [Quit: Nspace]
15:49sirn has quit [Remote host closed the connection]
15:51method_ has quit [Ping timeout: 480 seconds]
16:06Method has joined #asahi
16:16sirn has joined #asahi
16:26doggkruse has joined #asahi
16:33ZestOfBeans has joined #asahi
16:39ZestOfBeans has quit []
17:00ZestOfBeans has joined #asahi
17:20method_ has joined #asahi
17:21Method has quit [Ping timeout: 480 seconds]
17:45jmr2 has joined #asahi
17:48zopieux has quit [Quit: zopieux]
17:50zopieux has joined #asahi
17:52jmr2alyssa: I believe that for the D582 callback, what I tried yesterday was not what you were asking for.
17:53jmr2I tried "[582] = trampoline_nop" and "[582] = trampoline_true" (which both hang during the boot process), but I guess you meant "[582] = dcpep_cb_true" ?
17:53jmr2drivers/gpu/drm/apple/dcp.c:832:13: error: initialization of ‘bool (*)(struct apple_dcp *, void *, void *)’ {aka ‘_Bool (*)(struct apple_dcp *, void *, void *)’} from incompatible pointer type ‘u8 (*)(struct apple_dcp *)’ {aka ‘unsigned char (*)(struct apple_dcp *)’} [-Werror=incompatible-pointer-types]
17:53jmr2Let me know if there's something else you want me to try. FWIW, I'm now on yout 20211015 branch and wifi is working (no X yet, though).
18:00jmr2OK. Let me see how I can get you some output of that. Can't connect either on the console or through ssh, so it'll probably need to be a screen picture.
18:00sorearlooks like http://man.cat-v.org/plan_9/1/8c has a similar extension but with different syntax
18:01jmr2I saw that there's a way to log the login process through ttyAM1, but when I tried, it too disconnected before reaching the interesting part.
18:03poviksorear: ah, you're right. i knew there was something plan-9-specific about it but confused the details
18:05yuyichao has joined #asahi
18:08Nspace has joined #asahi
18:08zopieux has quit [Ping timeout: 480 seconds]
18:11zopieux has joined #asahi
18:17doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:17svenhttps://github.com/AsahiLinux/linux/commit/3d687f279aec44626a8a7a57e23547feb7a06a27 <-- new (and even more ugly) usb quirk
18:18svenjust also needs my minimal atc phy that i'll clean up tomorrow and then unplugging a cable when the mac is in device mode should also no longer break the port
18:19alyssaI stop working on panfrost ===> I stop having money ===> I have to get a real job ===> No more M1
18:19nsklaus"device mode" is when you have the macbook lid closed and plugged in keyboard,mouse and external screen ?
18:22svennsklaus: yeah, and we haven't even started on usb 3 or thunderbolt yet. i fear it's just gonna get worse from here
18:23doggkruse has joined #asahi
18:25nsklausi saw mentions of this "atc-phy" driver a few times by now, but i have no clear idea of what it is exactly ?
18:27svenit's the hw block that translates between the analog usb line signals (e.g. D+/D- for usb2) and the internal controller signals
18:28nsklaussven: how could usb even work at all without that ? (i saw you people reporting usb was working already, but didn't support hotplug) from what you say, it seems pretty important
18:30nsklausah i see.. these boot loader become more and more proeminent these days, they seem to be responsible for many things i would have thought to be the responsability of the kernel only, from a few years ago (decades)
18:31svenit essentially configured the PHY in device mode but for some reason that's also enough to make it work in host mode inside linux
18:35jmr2alyssa: with "[406] = trampoline_nop" and "[582] = trampoline_true": https://postimg.cc/ZCDHdfj5
18:36nsklausm1n1 seems like a bootloader/firmware handler/device init daemon/ and some more. on x86 too, grub seems like taking care of many things too
18:37j_eynsklaus: i guess that m1n1 will eventually not need to initialise the phy, but m1n1 will contain some special apple silicon bits that the kernel will not accept
18:37doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:38sveneh... the stuff that runs long before grub is also going to do a lot of hw initialization/configuration you just don't see
18:39alyssathat's your problem i guess. I can write a patch to help debug that in a bit but currently doing mali debug.
18:39nsklausit was more like a general thought about bootloaders across the spectrum of available archs, not a critic specificaly about m1n1
18:41jmr2alyssa: when you deem it the right time. I'm just providing feedback, not asking for support.
18:43jmr2Final tidbit: the monitor I'm using as a USB hub to convert USB-C to USB-A (for keyboard and rootfs) also supports DisplayPort over USB-C. I think this external display is what messes stuff up in my case.
18:45jmr2OK. But I think the reason I don't reach the login prompt is because it doesn't see the USB key at this time. Anyway. I'll stop distracting you.
18:49ZestOfBe_ has joined #asahi
18:56ZestOfBeans has quit [Ping timeout: 480 seconds]
19:06jmr2 has quit [Remote host closed the connection]
19:34Nspace has quit [Quit: Nspace]
19:42ZestOfBe_ has left #asahi [Leaving...]
20:20V_ is now known as V
22:45aleasto has quit [Quit: Konversation terminated!]
23:21crabbedhaloablut has joined #asahi
23:25loki_val has quit [Ping timeout: 480 seconds]