#
…

2021-08-11

00:12yuyichao has quit [Quit: Konversation terminated!]
00:13yuyichao has joined #asahi
00:19jeffmiw has quit [Ping timeout: 480 seconds]
00:25quarkyalice has joined #asahi
00:35yuyichao has quit [Ping timeout: 480 seconds]
00:37quarkyalice has quit [Ping timeout: 480 seconds]
01:57riker77_ has joined #asahi
02:02riker77 has quit [Ping timeout: 480 seconds]
02:02riker77_ is now known as riker77
02:06yuyichao has joined #asahi
02:27PhilippvK has joined #asahi
02:30phiologe has quit [Ping timeout: 480 seconds]
03:20cth451_desktop has joined #asahi
03:37marvin24 has joined #asahi
03:41marvin24_ has quit [Ping timeout: 480 seconds]
03:53kov has quit [Quit: Coyote finally caught me]
03:53kov has joined #asahi
04:46marcanwill probably stream in a bit, once macOS finishes reinstalling :-) (I think I broke my "Linux" install)
04:48marcanoh hey it's done
04:52marcanfwiw, the (basic) installer is 70% of the way there; I just need to solve the ownership transfer problem (basically generate a macOS user database in the installer) and add the missing partitioning assistant type functionality (just wrapping diskutil to automate things)
04:53marcanso we should be able to deprecate that hideous quickstart wiki page for something much simpler today :)
04:54chadmedso that OD user database is where 1TR/bputil get the user information when it asks us for it?
04:54marcannot entirely sure, but regardless, the problem is it wants a user *in* that volume, not just any machine owner
04:55marcanI think the SEP backend lets you authenticate with any machine owner, but sadly the frontend tools don't (and we can't go directly to the SEP due to entitlements)
04:55marcanhowever, the boot picker has an ownership transfer feature that lets you set up ownership on a user in the volume, if it has one
04:55marcanso by creating that OD user database, the boot picker will let you do that
04:55marcanand that will set things up the way bputil/kmutil wants
04:56marcanthat said, if kmutil/bputil is really only looking for the user existence in the database, maybe we can cheat
04:56marcanworth a bit of an experiment from macOS
04:57marcan(if it's just authing against the SEP, we could just create a fake user matching the *macOS* i.e. another partition's user, with no password even)
04:57marcanbut I think that won't quite work because I do have the same username everywhere and it did want the right password
04:57marcanthough it could be checking the password against the database first, then SEP
04:58marcanregardless, this worked when I copied the database over manually, and I think I did the ownership transfer thing then
05:08al3xtjames has quit [Quit: The Lounge - https://thelounge.chat]
05:10al3xtjames has joined #asahi
06:01svenamw: and that didn't happen before? the code in nvme and devel is also essentially the same
06:02svenamw: and just to confirm: this specific usb drive works fine if you use it with another machine? (i'm asking because i have one broken usb drive that caused me headaches for a week or so until i realized it *also* failed in the same ways on macOS and another linux machine)
06:03chadmedwasnt there also someone else having data corruption issues with devel or dart/dev yesterday?
06:04svenpretty sure i've only read about that from amw
06:07svenit's also weird because even with 4k pagesize code that i know to be broken i haven't seen that severe corruption
06:10amwsven: My dart+nvme was pretty bad, but devel has the boot issues from time to time.
06:10amwI use it through a hub, but that shouldn't make a difference but I can move things around and see if this misbehave on other machines.
06:11svenwould be good to make sure it's really an issue somewhere in linux
06:11svenanother think you could try is to boot with the IOMMU in passthrough mode
06:11sventhere's a config options and also a boot argument for that
06:12amwIt's probably something screwy on my hacky set of patches that I have made - if anyone else tries it shoukd just be-aware of it.
06:13svenit also could be a very subtle bug in the iommu code that's why i'd like to make sure
06:13amwAs I can re-image that partition in a minute, it's main impact is that if it happens, I have to re-start the Mac, then m1n1, then load linux et cetera.
06:13svenso this is not just the devel branch but devel branch + some of your patches?
06:14amwAt the moment - yep it's got other corellium spi+gpio+keyboard patches
06:14svenhm.. that *shouldn't* break anything
06:14svenbut it would still be great if you could try with just the iommu patches
06:15amwMy branch is https://github.com/amworsley/AsahiLinux/tree/asahi-keyboard if you wanted to see what is present
06:16amwUm - what is "just iommu" patches? Do you have a URL / rev no. or something
06:16svenjust no additional commits
06:18svenjust to make 100% sure the bug is already present there
06:18amwSure - I'll give it a try tonight (my time :-) as I'm still at work.
06:20svensure, i'm also working (read: waiting for something to finish and chatting in the meantime ;))
06:42bps has joined #asahi
07:21bps has quit [Ping timeout: 480 seconds]
07:49bps has joined #asahi
09:09phiologe has joined #asahi
09:12PhilippvK has quit [Ping timeout: 480 seconds]
10:23pinskia has quit [Remote host closed the connection]
10:51amwsven: I just built and booted the devel branch with out fault. I booted it twice - both were fine
10:52amwI mounted it on host linux in between and no faults or problems. I think it is my set of unstable patches that was causing problems
10:58svenhm... still very strange. please let me know if this happens again, could still be very subtle bug in the DART driver
11:37tomtastic has quit [Read error: No route to host]
11:39tomtastic has joined #asahi
13:10obr[m] has joined #asahi
13:12obr[m] has left #asahi [#asahi]
13:18robinp has quit [Read error: Connection reset by peer]
13:18Lockna[m] has joined #asahi
13:19yuyichao has quit [Ping timeout: 480 seconds]
13:36Lockna[m] is now known as lockna[m]
13:52* alyssalooks for the "PCI but no NVMe" branch
13:54yuyichao has joined #asahi
14:02alyssaalthough those patches don't apply cleanly on top of the mainline DART
14:06alyssasven: AFAIU you have a branch of those patches rebased on top of the latest DART (used to test said DART)? i don't want to go duplicating effort and it looks like a nontrivial rebase
14:12j_eydo you mean linux-next? it hasnt made it to torvalds / master yet
14:16yuyichao_ has joined #asahi
14:17lockna[m] is now known as Lockna
14:17Lockna is now known as lockna
14:20yuyichao has quit [Ping timeout: 480 seconds]
15:12alyssa kettenis_: building your u-boot, I'm getting a link error for print_cpu_info unless I unset CONFIG_DISPLAY_CPUINFO -- it looks like arch/arm/mach-apple/ needs to define tha
15:22sventhe dt from u-boot should give you pcie then
15:23svenyou may have to adjust the iommu-maps, let me check
15:23sven- iommu-map = <0x100 &pcie0_dart_0 1 1>,
15:23sven- <0x200 &pcie0_dart_1 1 1>,
15:23sven- <0x300 &pcie0_dart_2 1 1>;
15:23sven+ iommu-map = <0x100 &pcie0_dart_0 0 1>,
15:23sven+ <0x200 &pcie0_dart_1 0 1>,
15:23sven+ <0x300 &pcie0_dart_2 0 1>;
15:24svenand then i use python3 proxyclient/tools/linux.py -u ../u-boot/u-boot-nodtb.bin -t /dev/cu.debug-console --bootargs="earlycon rw root=/dev/sda1 rootwait rootfstype=ext4" Image.gz ../u-boot/u-boot.dtb
15:24svenit's... not great. but now that DART is on its way to mainline we should be able to make this nicer
15:25alyssathat dt patch is to u-boot or to inux?
15:25svenu-boot
15:25TheJollyRoger has quit [Remote host closed the connection]
15:25TheJollyRoger has joined #asahi
15:26alyssaI smell hax
15:27svenyou must be mistaken! all my code is immensely beautiful and never contains any hacks whatsoever :-P
15:28bps has quit [Ping timeout: 480 seconds]
15:29svenso the issue with that iommu-map is that apple's pcie controller allows you to essentially configure a pcie rid to sid map in some register
15:29sventhat pci code in linux probably need some support to take care of that. there's another pci driver that also needs that but only during init time
15:30svenand any device that is not configure to a specific sid gets tagged with zero by default
15:30svenso that dtb patch just changes "map these devices to SID 1" to "map these devcies to SID 0" which then works out
15:34alyssaAttributeError: 'NoneType' object has no attribute 'baudrate'
15:34pipcet[m]old serial lib?
15:34svenah.. so, uh, that might just be my u-boot hack
15:35sveni've only ever tested that with a hardware UART. it patches u-boot in memory to setup the correct baudrate for that
15:35svenjust remove bootenv.append("baudrate=%d" % tty_dev.baudrate) i guess
15:36alyssaIt is refusing to boot, uhh...
15:36alyssa(Just showing the apple logo)
15:37svenhrm... now if you had a hardware uart you could check what u-boot complains about
15:38svendunno how to go from here. i've never debugged u-boot. i just treated it as a black box that i needed to hack a little bit to get pcie up and running
15:39sveni don't even know if it has a framebuffer
15:39pipcet[m]it does, it works with the fb here (but without the pcie hacks :/)
15:42alyssait would helpt o enable simplefb in u-boot :p
15:43j_eyalyssa: i made the exact same mistake with the kernel :D
15:43svenframebuffers are overrated.
15:43pipcet[m]an LED is all you need, right? :-)
15:43svenit's a start :D
15:44sveni'm happy with uart though ;)
15:44pipcet[m]or a GPIO pin at sufficient voltage to zap your finger ;-)
15:53pipcet[m]speaking of insufficient voltages, my MBP just gave me the red battery just as I was about to test&push the fast-ipi thing. works now, code at https://github.com/pipcet/linux/tree/apple-fast-ipi, but I'm taking it as a sign that it's time to do something else prior to cleanup+checking it masks things at the vipi layer+serializing+PRing :-)
15:55svenno idea where it came from, but it works for me
16:58yuyichao_ has quit [Ping timeout: 480 seconds]
17:03yuyichao_ has joined #asahi
17:46YTG123[m] has joined #asahi
17:54YTG123[m] is now known as ytg
17:54ytg has quit [Quit: Reconnecting]
17:54ytg has joined #asahi
18:01handlerug has joined #asahi
18:16hramrach has joined #asahi
18:35alyssasven: Here are the hacks I neeeded https://rosenzweig.io/hacks.txt
18:40alyssaDT hacks are from you for pcie
18:40alyssasimplefb hack is so u-boot passes through my framebuffer since I don't have UART
21:00PhilippvK has joined #asahi
21:04phiologe has quit [Ping timeout: 480 seconds]
21:09bps has joined #asahi
21:14bps has quit [Read error: Connection reset by peer]
21:40phiologe has joined #asahi
21:40PhilippvK has quit [Ping timeout: 480 seconds]
22:49yuyichao_ has quit [Quit: Konversation terminated!]
22:50riker77 has quit [Ping timeout: 480 seconds]
22:51riker77 has joined #asahi
23:22riker77_ has joined #asahi
23:25riker77 has quit [Ping timeout: 480 seconds]
23:25riker77_ is now known as riker77
…