#
…

2022-03-19

00:01yuyichao has quit [Ping timeout: 481 seconds]
00:06bisko has joined #asahi-dev
00:20al3xtjames6 has joined #asahi-dev
00:21bisko has quit [Ping timeout: 480 seconds]
00:23al3xtjames has quit [Ping timeout: 480 seconds]
00:23al3xtjames6 is now known as al3xtjames
00:50marcanalright, I should get some sleep...
00:55turo has joined #asahi-dev
00:59winterprobably a good idea yeah
01:11turo has quit []
01:12turo_ has joined #asahi-dev
01:30bisko has joined #asahi-dev
01:36kameks has joined #asahi-dev
01:39bisko has quit [Ping timeout: 480 seconds]
01:46chadmed has joined #asahi-dev
02:02kita99 has quit [Ping timeout: 480 seconds]
02:15Kalissaac[m] has joined #asahi-dev
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi-dev
03:06doggkruse has joined #asahi-dev
03:07bisko has joined #asahi-dev
03:15bisko has quit [Ping timeout: 480 seconds]
03:24doggkruse has quit [Read error: Connection reset by peer]
03:38kov has quit [Quit: Coyote finally caught me]
03:40phiologe has joined #asahi-dev
04:02dirbaio has joined #asahi-dev
04:13bisko has joined #asahi-dev
04:17silverocean[m] has joined #asahi-dev
04:21bisko has quit [Ping timeout: 480 seconds]
04:53Denver has joined #asahi-dev
04:56yuyichao has joined #asahi-dev
05:02bisko has joined #asahi-dev
05:15Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
05:15Denver has joined #asahi-dev
05:16bisko has quit [Ping timeout: 480 seconds]
05:20doggkruse has joined #asahi-dev
05:21doggkruse has quit []
05:21doggkruse has joined #asahi-dev
05:30bisko has joined #asahi-dev
05:30Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
05:32Glanzmannmarcan: Here is the wiki page to install Debian, if you want to link it https://alx.sh/w/Debian
05:32Denver has joined #asahi-dev
05:38bisko has quit [Ping timeout: 480 seconds]
05:44Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
05:50Glanzmann has quit [Quit: leaving]
05:54Denver has joined #asahi-dev
05:55Glanzmann has joined #asahi-dev
05:55Glanzmannmarcan: With the new asahi kernel the 'rcu' hangs are gone. Well done.
06:01Skirmisher has joined #asahi-dev
06:02Glanzmannmarcan: But I have no sound output anylonger on the air. Rebooted two times, no luck, knobs are on.
06:02chadmedyeah the DT disables audio
06:02chadmedbecause we dont want people exploding their machines
06:03Dcow[m]1isn't jack should be still enabled?
06:05Glanzmannchadmed: I'm talking about the jack, not the spakers.
06:07brentr123[m]Glanzmann: Pro user over here
06:08brentr123[m]Headphones ain’t working
06:10Glanzmannbrentr123[m]: Are you on the 2020 13" pro?
06:14Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
06:22Denver has joined #asahi-dev
06:35Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
06:36Denver has joined #asahi-dev
06:37bisko has joined #asahi-dev
06:38Denver has quit []
06:40Denver has joined #asahi-dev
06:44Denver has quit []
06:45bisko has quit [Ping timeout: 480 seconds]
06:52Denver has joined #asahi-dev
06:54Denver has quit []
06:55chadmed has quit [Quit: Konversation terminated!]
06:58chadmed has joined #asahi-dev
07:03Denver has joined #asahi-dev
07:14Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
07:14Denver has joined #asahi-dev
07:19the_lanetly_052 has joined #asahi-dev
07:20ntfls^ has joined #asahi-dev
07:22ntfls^ has quit [Remote host closed the connection]
07:30aratuk has joined #asahi-dev
07:39aratuk has quit [Remote host closed the connection]
07:40aratuk has joined #asahi-dev
07:46merry has joined #asahi-dev
07:55Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
07:56Denver has joined #asahi-dev
08:13bisko has joined #asahi-dev
08:14aratuk has quit [Remote host closed the connection]
08:15aratuk has joined #asahi-dev
08:21bisko has quit [Ping timeout: 480 seconds]
08:22aratuk has quit [Remote host closed the connection]
08:23aratuk has joined #asahi-dev
08:33aratuk has quit [Remote host closed the connection]
08:43bisko has joined #asahi-dev
08:51bisko has quit [Ping timeout: 480 seconds]
09:07spokv[m]New to this project...wanted to help add camera support. Could this be helpful as starting point: https://github.com/patjak/facetimehd
09:21bisko has joined #asahi-dev
09:36__nick__ has joined #asahi-dev
09:38bisko has quit [Ping timeout: 480 seconds]
09:47kov has joined #asahi-dev
09:53bisko has joined #asahi-dev
10:01Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
10:01bisko has quit [Ping timeout: 480 seconds]
10:04bisko has joined #asahi-dev
10:12bisko has quit [Ping timeout: 480 seconds]
10:15chadmedno one can really answer for sure unless its tested
10:16j`eyspokv[m]: the first thing is finding out how the camera is actually connected
10:17j`eyI dont think it's PCIe for the m1?
10:17spokv[m]just need any comment on the concept: extracting apple's firmware and using module driver
10:17spokv[m]j`ey: i'll look to find out more
10:17luca020400 has joined #asahi-dev
10:19Jamie[m]1pretty sure it uses the integrated ISP in the M1 chip
10:19jannauit might be helpful on the macbook air/pro 13" as those might still use the same sensor. the pcie driver will not be useful, the camera is very likely connected via csi directly to the SoC
10:21luca020400 has quit [Quit: bye!]
10:21luca020400 has joined #asahi-dev
10:21spokv[m]is there any way to confirm this?
10:22luca020400 has quit []
10:22luca020400 has joined #asahi-dev
10:22bisko has joined #asahi-dev
10:24spokv[m]will it be the right approach to find the macos driver (hopefully it is not bundled with a lot of other things) and wrap it with kernel module?
10:24j`eyyou can use m1n1 to trace what macOS does
10:25sventhe right approach is to figure out what macOS does, then understand how the hardware works and then write a Linux driver
10:25jannauno, we don't use any mac os binaries. the right approach is to understand how the hardware works and then write suppport for it
10:25m6wiq has joined #asahi-dev
10:27luca020400 has quit [Quit: bye!]
10:27luca020400 has joined #asahi-dev
10:28luca020400 has left #asahi-dev [#asahi-dev]
10:28spokv[m]ok. understood. is it documented somewhere how to trace macos while triggering some HW?
10:29spokv[m]so it reverse all the way, it seems....
10:36bisko has quit [Ping timeout: 480 seconds]
10:36__nick__ has quit []
10:38___nick___ has joined #asahi-dev
10:39___nick___ has quit []
10:40spokv[m]if there are simpler tasks that i can help just to get into things it will be great 😀
10:40___nick___ has joined #asahi-dev
10:42marcanj`ey: it's MIPI CSI and ISP handles all of that, pretty sure
10:42marcanso the right approach is to trace ISP communications and see how that works
10:42marcanprobably not much of a beginner project though :-)
10:43marcanthe good thing is I bet that interface is very high level
10:43marcani.e. "give me a raw image/jpeg photo" style, not dealing with low level sensor details
10:44spokv[m]I have knowledge on mipi CSI, just need the technical of tracing ISP common for the headstart
10:44marcanyou probably won't have to deal with anything related to MIPI CSI itself
10:44marcanI bet that's all abstracted out by ISP firmware
10:44marcansee https://github.com/AsahiLinux/docs/wiki/SW:Hypervisor for the tracing, though that's a bit outdated
10:45marcanthe article isn't very clear but you don't need a development kernel
10:45j`eyand 12.3 tracing is broken currently
10:46j`ey21:01:51 < jannau> panic(cpu 1 caller 0xfffffe00137df064): phystokv: illegal PA: 0x10003654000; phys base 0x10015bf0000, size 0x7b701c000 @arm_vm_init.c:379
10:46j`ey21:02:47 < jannau> 0x10003654000 is inside the SEP firmware, 0x40000 below BootArgs
10:49Jamie[m]1(and also confirmed by someone else in #asahi-re)
10:50luca020400 has joined #asahi-dev
10:58svenstill early WIP, make sure to also merge https://github.com/AsahiLinux/m1n1/pull/170 into m1n1 if you want to try it
10:58svenalso please boot with tp_printk trace_event=appletypecphy:*
10:59kameks has quit [Ping timeout: 480 seconds]
11:00luca020400 has quit [Quit: bye!]
11:01luca020400 has joined #asahi-dev
11:09spokv[m]Do I need to use your pull/170 into m1n1 to be able to use it as hypervisor for ISP trace?
11:09Jamie[m]1no, that’s for usb 3
11:22BitcoinCandyWarrior has joined #asahi-dev
11:23riker77 has quit [Quit: Quitting IRC - gone for good...]
11:27PaterTemporalis has joined #asahi-dev
11:30kameks has joined #asahi-dev
11:34marcanj`ey: sounds like something about how SEPFW is mapped changed, I'll have to take a look
11:35marcanohh I get it, it's pointing to SEPFW inside the host, not guest, isn't it?
11:35marcanlooks like I'm doing something wrong there
11:35marcanshould be easy to fix
11:35marcanand while I'm at it support .bin in the HV
11:35marcanwill take a look monday if nobody else does
11:40roxfan2 has quit [Ping timeout: 480 seconds]
11:44spokv[m]If there is a way to start looking at ISP traces I'll start working on it.
12:02chadmed has quit [Remote host closed the connection]
12:15spokv[m]Sorry for pushing, but I know that with the right guidance I can, for sure, contribute.
12:24marcanjust give me a few days to get my things together and fix the hypervisor please :)
12:25marcanI'm a bit exhausted and have non-Asahi things coming up I really should be paying a bit of attention to
12:25marcanI'll write up a proper dev guide after that
12:27spokv[m]Great, I here for this great project. Take care.
13:00m6wiq1 has joined #asahi-dev
13:06m6wiq has quit [Ping timeout: 480 seconds]
13:14riker77 has joined #asahi-dev
13:22jannau12.3 ADT gained /chosen/memory-map/preoslog which is ignored by hv.py
13:26marcanre the 4TB U-Boot issue someone mentioned, is it possible u-boot is just broken on >2T drives? that's the 2**32 x 512-byte sector limit. these drives use 4K sectors though...
13:28j`eyhow do I properly get a u64 property with fdt_getprop, I think Im getting endian issues?
13:30marcanstatic int disk_read(__u32 block, __u32 nr_blocks, void *buf)
13:30jannauj`ey: there's fdt64_to_cpu
13:30kettenismarcan: that would not suprise me
13:30marcanI don't like this
13:30marcanI suspect the FAT32 driver in u-boot has a problem here
13:31j`eyjannau: thanks
13:31marcanthough those are offsets within the partition
13:31marcanso that should be OK
13:31kettenisI'll fix it if someone sends me a mac with 4TB of storage ;)
13:33roxfan has joined #asahi-dev
13:37jannaupreoslog seems to be iboot log. it has some interesting strings
13:37jannauHit enter or '1' to break into the iBootStage1 command prompt", "End of iBootStage1 serial output"
13:38MajorBiscuit has joined #asahi-dev
13:39MajorBiscuit has quit []
13:39kettenisbut that doesn't actually make it out on the serial port is it?
13:39marcanalso >iBootStage1
13:40marcanI keep telling people it's that, not LLB :p
13:40jannauat least not on the external facing one
13:40marcanat least not on *that* external facing one
13:40marcanquite likely it goes out via dockchannel which ought to be muxed into that magic debug usb thing...
13:41marcanbut no idea what that protocol looks like
13:41m6wiq1 has quit []
13:42marcanyeah, confirmed the 4T issue
13:44tpw_rulesmarcan: from talking to the 4T guy it seemed the nvme disk detection completely failed. it didn't show up in the list of nvme devices and no partitions were found. i don't think it was just an issue reading the filesystem?
13:45marcanm1n1 chainloads itself properly though, so obviously it's not a problem at the low level
13:49svenalright, SART bindings: do we want the apple,sart2 and apple,sart3 generics there?
13:49marcanah right, this was 2/3?
13:49MajorBiscuit has joined #asahi-dev
13:49svensart1 is even older
13:49marcanyeah let's have them
13:49sven1 -> 2 -> 3 is always about adding more paddr space
13:49marcanI get the feeling sart3 is going to stick around
13:50j`eymarcan: can m1n1 as a hv modify the FDT that the m1n1 as a guest sees?
13:50marcanit's built into it
13:50svenactually, let me figure out how long sart2 was used
13:51j`eymarcan: what about the adt?
13:51svenoh, also, apple sometimes calls SART coastguard for some reason
13:55marcanj`ey: adt yes
13:55marcanI suspect the u-boot EFI code
13:55marcanpart_test_efi just checks the PMBR... why on earth?
13:55marcanmaybe there isn't even a PMBR on these huge drives? since MBR doesn't work on them at all
13:56marcanwhy on earth would you check for EFI partitions by looking for... not EFI...
13:57jannaumacos 12.3 HV fixed
13:59svenhow much address space does the pro/max support again? 42bit?
14:00svenalright, SART1 was 36 bit address space and filter entry length 24 bit then. SART2 just increased the filter entry size to 36 bit. SART3 pushed both to 42 bit.
14:02MajorBiscuit has quit [Quit: WeeChat 3.4]
14:07Major_Biscuit has joined #asahi-dev
14:07Major_Biscuit has quit []
14:07Major_Biscuit has joined #asahi-dev
14:08svenhuh, looks like SARTv2 might actually be a A14 / M1 exclusive thing
14:10marcanwe can drop the generic for that then
14:11svenso "t8103-sart" but "t6000-sart", "sart2"?
14:12marcanso nvme is indeed broken in uboot, interesting
14:12sven*sart3 actually
14:12svenmeh, i guess it'll be yak shaved on the ML anyway ;)
14:13svenkettenis: does openbsd or u-boot care about the sart compatible already?
14:15j`eyoh, adt can only set existing properties it seems like
14:19marcanhuh, nvme doesn't even try to probe?
14:19marcanj`ey: python can change anything
14:27marcankettenis: is it possible I'm not seeing nvme init because it happens too early?
14:28marcanI tried to enable the debug uart stuff but it didn't make a difference
14:28marcanlike I don't even see it trying to probe
14:29jannaueven after `nvme scan`? should be done by the default boot script though
14:30marcan"nvme scan" fails on RTKit stuff
14:30marcanbut I don't see it being run automatically
14:30marcanwhich makes me thing it just fails to reinit
14:30kettenismarcan: u-boot initializes devices on-demand
14:30kettenisso nvme shouldn't get initialized until the built-in boot scripts run
14:32jannaurepeated nvme scan works for me
14:32marcanyeah but what if the first one fails?
14:32marcanalso wait, does it not do nvme init if it doesn't have the ESP partuuid set?
14:32jannauon j314c with 2TB
14:33jannauyes, nvme is skipped if no partuuid is set
14:33kettenisI think jannau's script does indeed skip nvme completely if the partuuid isn't set
14:33spokv[m]> macos 12.3 HV fixed
14:33spokv[m]Can I pull it from m1n1 main repo and use it?
14:34jannauspokv[m]: not yet, you need the change in https://github.com/AsahiLinux/m1n1/pull/172
14:34marcanok, yeah
14:34marcanit just fails in RTKit then
14:34marcanlet's see
14:37kettenisjannau: I was going to ask some questions about whether that is really what we want before merging that diff ;)
14:38marcanI have a feeling I know what this is...
14:39marcanlol it just times out
14:39marcan100ms is not enough for these big drives
14:39marcanthat was dumb
14:41kettenissomething to be said for getting developers the biggest and baddest configs ;)
14:41kettenisassuming it is a small change, maybe it can still be sneaked into the official u-boot release
14:42sveni assume we're all happy with "apple,tXXXX-nvme-ans2", "apple,nvme-ans2"?
14:44kettenisI'd be terribly unhappy if you change that at this point
14:45marcanyeah, fixed and deployed
14:45marcanbuilding new images
14:45marcankettenis: it's in the releng branch
14:45svenalright, "apple,tXXXX-nvme-ans2", "apple,nvme-ans2" it is then
14:45marcanI just changed the timeout to 1s...
14:46sventhe one thing i'm still unhappy about is this mystery lock required around command submission (but not for me!): https://github.com/AsahiLinux/linux/blob/asahi/drivers/nvme/host/apple.c#L329
14:47jannaukettenis: I'm not quite sure about that either. the idea was to prefer usb "rescue" partitions if the matched ESP can't be used
14:47marcanI think it does make sense to me, but I don't have a very strong opinion here
14:47MZG[m] has joined #asahi-dev
14:48marcanit might make sense to just *prefer* USB partitions but still alow a local last resort random ESP boot
14:50jannauit allows that manually and prints the required command
14:51kettenisfor testing I would prefer if I can still just chainload u-boot
14:52kettenisso I want to play with that a bit, but not this weekend
14:53kettenisconcerts tonight and tomorrow
14:55rikkaa has joined #asahi-dev
14:56jannauI have no strong opinion on what should happen when the matched partuuid boot fails
15:00marcanuploading new images...
15:03sven~95% done with what i'll submit for nvme, https://github.com/AsahiLinux/linux/commits/nvme-rfc
15:03svenj`ey: ^--
15:16sventhat's obviously just a spelling mistake for reviewer #2 to catch ;p
15:16sventhanks, fixed!
15:16tpw_rulesis kernel patch reviewer #2 the same as academic paper reviewer #2?
15:17svenprobably. my joke was a reference to the academic ones i had to suffer through though! :)
15:28m6wiq has joined #asahi-dev
15:31tpw_rulesmarcan: have you been able to verify that the timeout increase fixes the issue?
15:32marcanI was waiting for the install to finish on this machine before tweeting, it just did :)
15:32marcansilly me skipped the M1 Max test because other folks tested on it (and it's ~identical to the Pro), but I didn't think of the SSD creeping up as a difference again
15:43bisko has joined #asahi-dev
15:51bisko has quit [Ping timeout: 480 seconds]
15:52bisko has joined #asahi-dev
15:54Nspace has quit []
15:56Nspace has joined #asahi-dev
16:34herbas has joined #asahi-dev
16:34bisko has quit [Quit: Textual IRC Client: www.textualapp.com]
16:36kameks has quit [Ping timeout: 480 seconds]
16:37nyanpasu64 has joined #asahi-dev
16:44herbas has quit [Remote host closed the connection]
16:50wxllow[m] has joined #asahi-dev
16:53wxllow[m] is now known as willow[m]
17:30Denver has joined #asahi-dev
17:31Denver has quit []
17:36___nick___ has quit []
17:37___nick___ has joined #asahi-dev
17:38___nick___ has quit []
17:40___nick___ has joined #asahi-dev
17:45PaterTemporalis has quit [Ping timeout: 480 seconds]
18:11mattebullet[m] has joined #asahi-dev
18:12doggkruse has quit [Quit: Textual IRC Client: www.textualapp.com]
18:15doggkruse has joined #asahi-dev
18:31doggkruse has quit [Read error: Connection reset by peer]
18:41the_lanetly_052 has quit [Ping timeout: 480 seconds]
18:44doggkruse has joined #asahi-dev
19:14Simonx22 has joined #asahi-dev
19:15winterfor the m1n1 PKGBUILD, where is the pacman hook that handles install?
19:37jannaumarcan: you just pushed the tag and not the branch
19:39jannaunot sure if update-grub is called automatically except from the first-boot script
19:53marcanjannau: fixed ,thanks
19:57FarukAydn[m] has joined #asahi-dev
20:13r0ni has joined #asahi-dev
20:15kevans91 has joined #asahi-dev
20:34rikkaa has quit [Quit: Connection closed for inactivity]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:31weems_ has quit [Quit: Connection closed for inactivity]
21:40FilipJeretina[m] has joined #asahi-dev
22:23msteffen has joined #asahi-dev
22:33jeffmiw has joined #asahi-dev
22:58nicolas17 has joined #asahi-dev
23:30Major_Biscuit has quit [Ping timeout: 480 seconds]
…