#
…

2021-10-16

00:00jmr2OK, I'm NOP'ing 582.
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:05jmr2Oops... missed that. NOP doesn't work - it fails to boot. Trying true.
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:09alyssafails to boot how?
00:09alyssaI say this as someone who needs a UART -- you *need* a UART ...
00:13jmr2Fails to boot: never reaches the login prompt.
00:13jmr2With TRUE instead of NOP, the last line is "fb0: switching to apple from simple".
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:15jmr2Let me try with an initrd instead.
00:18jmr2Seems to work better - I get to Debian Installer's first screen in that context.
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:22alyssano quick ones
00:24jmr2OK. Thanks for all your work alyssa.
00:24alyssamarcan: ^^ if you want to get dcp.py going on an air lmk :_p
00:27alyssalooks like I only get a single link up / link down interrupt and then I need a reboot :|
00:29alyssaoh it's ratelimited in the pcie driver derp
00:31alyssahm no it's still unhappy with me
00:38alyssaguessing something's screwed up on the SMC side of the equation
00:39kenjigashu has quit []
00:40kenjigashu has joined #asahi
00:41alyssamight need to hv this. groan
00:45jmr2 has quit [Remote host closed the connection]
01:03kenjigashu has quit []
01:04* alyssawrites trace_smc.py
01:08alyssaholy cow macOS is noisy on the smc
01:09alyssaspam reads to... MSX0?
01:14alyssaI don't see macOS using the gP0d key.
01:14alyssaI do see it using the tGA0 key
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:35Glanzmannalyssa: Where can I get the x hotplug patch?
04:36Glanzmannjmr2: Good to hear.
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:20GlanzmannI might avaiable on the weekend, but next week for sure.
05:21GlanzmannI can give you also remote access if that is any help.
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:57svenlooks good to me
10:57j_eyand looks good to dt_bindings_check
10:58sveni'm trying to clean up the device tree mess we have a little bit :D
10:58j_eyI'm going to send out v3 today, probably in a few hours
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
10:59j_eyerr as big
11:00svenprobably :D
11:00svenadding usb with the pd chips is already a lot
11:01j_eythose can be added now right? linux-next has everything for those?
11:02svenwe'll probably need that fun quirk for dwc3 first
11:02svenotherwise it's kinda broken
11:02j_eyi guess
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:07alyssaGlanzmann: downstream/20211015 has fixes in the DCP driver
13:07alyssait also fixes the build
13:11alyssaj_ey: Adding the display subsystem (DCP x2 plus all the type-C crossbar) will make it even worse :')
13:13j_eyI've seen that others seem to split the dts up a bit
13:13j_eyso maybe we could have t8031-usb.dtsi etc
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:16j_eywell we can put them as status=disabled in the t8103.dtsi and only =okay them in j274.dts
13:16j_eyare you sure maz's dts change doesnt do that already?
13:17alyssaah, sure
13:17alyssawe don't have a non-j274 dts in mainline so there's why ;-)
13:18j_eymaybe we can add j313 and whatever the mbp is called for 5.16
13:19alyssaj_ey: I'm holding out for the M1X release to drive down the prices of used M1 macbooks ;-p
13:19Glanzmannalyssa: I'm currently traveling, will try it tomorrow and report back.
13:19j_eyalyssa: ;)
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:23j_eyalyssa: just quit school and get a full time job :P
13:25chadmeduni is fun though
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:26chadmedespecially if the three overlap
13:26* j_eyhated uni
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:28chadmedthose opportunities are becoming rare as funding gets slashed though :(
13:32j_eyuh oh, trying to send the pinctrl v3 and the machine I use to git send-email is down..
13:34j_eyok nvm, just the dns is borked, IP address worked
13:35rross101 has quit [Remote host closed the connection]
14:09Nspace has joined #asahi
14:13Nspace has quit []
14:15marcanchadmed: uni can be a... very different experience for different people
14:19j_eyafter running git send-email --dry-run 10 times, pinctrl v3 is finally out
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:28alyssaj_ey: nice!
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:53jmr2However, that doesn't compile:
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).
17:54povik"[index] = " is in kernel? i thought that was plan 9 dialect :-p
17:56sorearthat's a C99 designated initializer, not a plan9ism
17:58poviki guess it was a plan9ism before that, or i am mistaken
17:59alyssajmr2: oh, trampoline_true is right, I forgot I did that refactor
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:03soreartil the history
18:05yuyichao has joined #asahi
18:08Nspace has joined #asahi
18:08zopieux has quit [Ping timeout: 480 seconds]
18:11zopieux has joined #asahi
18:11j_eyalyssa: clang-format ¯\_(ツ)_/¯
18:12alyssaonto panforst code! finally!
18:17doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:17nsklausi thought panfrost was for arm mali gpu, is that relevant for m1 soc too ?
18:18nsklausi believed m1 soc had an original gpu, not an integrated mali ?
18:18nsklausi must have missed some bits of infos on this it seems
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:19svennsklaus: she works on panfrost as well
18:19j_eyit's not related to the m1
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:20nsklausalyssa: i see only one course of action there, you need to clone yourself
18:20svenno, device mode is when the usb controller pretends to be a device
18:20nsklausmarcan may need to that too
18:21nsklauscome to think about it, everyone in the team should
18:22alyssaI call dibs on the clone of sven
18:22nsklaussven: that usb thing seems so much more quirky than i would have supposed it to be
18:22psykosewtf 2 svens
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:23alyssaooh, or external DCP 😉
18:23doggkruse has joined #asahi
18:23svenugh. yeah. that too.
18:23nsklausfor a v1 having working basic usb2 mode would already be nice
18:24svenusb2 "just" requires that quirk + a pretty minimal atc-phy driver
18:24sventhe rest (mainly the iommu driver) is already upstream :)
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:25nsklausit's a subset of usb ?
18:25nsklausi thought OSI model was just a tcp/ip thing
18:26nsklausis that what's required to have ethernet dongle through usb plug ? (network over usb)
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:27milek7I don't know why OSI is still referred to, it is dead
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:29svenm1n1 already initializes the phy
18:30alyssa^^ this is also how I already have wi-fi working with no SMC driver :-p
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:30nsklaus*from the stand point of a feww years ago, i meant
18:31svenfirmware might be a better term for m1n1 fwiw
18:31svenand the usb phy initialization insider there is more of a hack that works by accident
18:31nsklausthey initialize and handle more and more stuffs
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:33nsklausthank you for the explanations
18:35jmr2alyssa: with "[406] = trampoline_nop" and "[582] = trampoline_true": https://postimg.cc/ZCDHdfj5
18:35jmr2with "[406] = trampoline_nop" and "[582] = trampoline_false": https://postimg.cc/21ZQBCV0
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:36nsklausit seemed lighter and easier in the lilo days
18:37nsklausbetter "compartimentalized" 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:38alyssajmr2: "failed to parse display attribs"
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:39alyssastill, progress!
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:41alyssameanwhile about AFBC being broken..
18:42alyssaWait. R32F RGB1 AFBC???
18:43alyssaIt's a thing apparently.
18:43alyssaencoded like R8G8B8A8
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:43alyssaNo, it's not
18:44alyssaLinux will completely ignore the DisplayPort for now
18:44alyssa(If you were having USB trouble, different story)
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]
23:45poviksorear: ah, you're right. i knew there was something plan-9-specific about it but confused the details
…