2021-11-25
00:05yuyichao has quit [Ping timeout: 480 seconds]
00:34amw has joined #asahi
00:54psykose has joined #asahi
00:54psykose has quit [Remote host closed the connection]
00:59psykose has joined #asahi
01:56nctcf^ has quit [Ping timeout: 480 seconds]
02:39darkapex1 has joined #asahi
02:43darkapex has quit [Ping timeout: 480 seconds]
02:47littledust3403[m] has joined #asahi
03:08phiologe has joined #asahi
03:25palmer_ has joined #asahi
03:25palmer_ has quit [Remote host closed the connection]
03:28kov has quit [Quit: Coyote finally caught me]
03:31c10l8 has joined #asahi
03:38c10l has quit [Ping timeout: 480 seconds]
03:50palmer_ has joined #asahi
03:50palmer_ has quit [Remote host closed the connection]
04:10crabbedhaloablut has joined #asahi
04:14loki_val has quit [Ping timeout: 480 seconds]
04:17loki_val has joined #asahi
04:21crabbedhaloablut has quit [Ping timeout: 480 seconds]
04:21marvin24_ has joined #asahi
04:25marvin24 has quit [Ping timeout: 480 seconds]
04:29cth451_desktop has quit [Remote host closed the connection]
05:33kajiryoji has quit [Ping timeout: 480 seconds]
05:36chamomile has quit [Ping timeout: 480 seconds]
05:40squags_ has quit [Ping timeout: 480 seconds]
05:40squags has joined #asahi
05:48squags has quit [Ping timeout: 480 seconds]
05:57squags has joined #asahi
06:05squags has quit [Ping timeout: 480 seconds]
06:14cth451_desktop has joined #asahi
06:14squags has joined #asahi
06:22squags has quit [Ping timeout: 480 seconds]
06:27squags has joined #asahi
06:38sailorek1234 has joined #asahi
06:57aeadOnce everything is merged and well supported, how well is Linux expected to be able to handle the heterogenous cores in the M1 / M1 Max? Does the scheduler have good support for "big.little"?
06:58aeadIt seems to me the answer could be one of three things: it's good at knowing which threads belong on the big and little cores; or, it's aware of the difference in compute capacity and just schedules all threads proportionally to each core's rough performance; or it doesn't do much special
06:58bgb has joined #asahi
06:59aead(I Googled a little before asking it _seems_ like 2 might be the answer based on a paper about teaching CFS how to treat cores proportionally, but concrete info seems kinda thin)
07:04sorearremember that big.LITTLE has been a reality for Android for years and that's in the upstream kernel
07:09aeadyeah but I'm curious how smart the scheduler is really. It seems like Apple does a great job of putting the "right" threads on each core because it exposes an API for userspace to tell the kernel what the QoS of the process is
07:09aeadwhich, if that does exist on Linux now (not sure?) it's unlikely anything would make use of it anyway
07:10aeadit seems it'd have to pull some really clever tricks to do the same thing just based on pure heuristics
07:10aead(and smartphone SoC manufacturers are notorious for not upstreaming their device-specific tweaks, AFAIK)
07:11BlitzWorkslwn has some good articles on what it does and does not do
07:11BlitzWorkstry looking for the 'sched' schedule policy
07:12kode54I mean, macOS also tends to want to shove background/idle threads onto the LITTLE cores so they use less power overall
07:17bgb_ has joined #asahi
07:21bgb has quit [Ping timeout: 480 seconds]
07:47bgb has joined #asahi
07:48bgb_ has quit [Ping timeout: 480 seconds]
08:29squags has quit [Ping timeout: 480 seconds]
08:30squags has joined #asahi
09:27FireFox317can anyone here run the release version of macos 12.0.1 kernel under the hypervisor? it gets stuck in the beginning of the boot process for me
09:27FireFox317the previous 11.something works fine
09:37FireFox317ah macos panics with 'panic(cpu 0 caller 0xfffffe0014b57f3c): "REQUIRE fail: NULL != prop @ const void *get_dt_pointer(IORegistryEntry *, const char *, vm_size_t *):106:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/AppleSEPManager/AppleSEPManager-722.40.2/SEPHibernation/InvalidateHmac.cpp: " @InvalidateHmac.cpp:106
09:39FireFox317so apparantly something is removed from the adt and macos doesnt like that
09:40_jannau_are you booting from the right startup disk? i.e. the one which has mac os 12.0.1 installed?
09:41FireFox317_jannau_, oh that might be it
09:41FireFox317the startup disk is set to the one that has m1n1 installed
09:43yuyichao has joined #asahi
09:47as400 has joined #asahi
09:48as400jannau: I have a question - keyboard patches are not included in your PKGBUILD. Am I right ?
09:48FireFox317_jannau_, nope same panic. Previously I could just set the startup disk to the m1n1 partition and still boot macos under the hypervisor.
09:49FireFox317The panic message suggests that something is missing in the adt
09:49FireFox317hmm, does each partition/os install have a different adt? then it may be using the old adt from 11.something to boot 12.0.1
09:51_jannau_as400: preliminary policy for patches to be included is either in asahilinux/linux or submitted to a linux mailing list and I didn't had time for more yet
09:53_jannau_firefox317: I think since macos 12 each install uses and probably requires a matching last stage iboot. hence my question about the startup disk
09:55FireFox317_jannau_, ah okay. But i cant set the startup disk to the macos install and still boot m1n1 to run the hypervisor right? so i think my only option is to update the firmware on the m1n1 partition to 12.0.1 right?
09:56squags has quit [Read error: Connection timed out]
09:58_jannau_firefox317: I'm not sure that anything except using m1n1 as custom boot object on the mac os install you want to virtualize is going to work
09:59squags has joined #asahi
09:59_jannau_you can probably modify the ADT or boot args to tell the kernel which partition is the system partition
10:03FireFox317_jannau_, but you cant install m1n1 on the same partition as the mac os install right? I think apple designed it in a way that each os install has its own firmware version, and thus adt version
10:04FireFox317they are on the same disk (nvme), but not the same partition
10:06_jannau_you can configure m1n1 as custom boot object on every mac os install / volume group. That's different from the asahi installer use case. The installer is designed for a separate linux install
10:11FireFox317_jannau_, aha okay that makes sense. I had m1n1 installed on a seperate partition
10:14FireFox317_jannau_, is it documented somewhere how to install m1n1 on the same mac os install?
10:17_jannau_https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart#step-4-downgrade-security and https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart#installation
10:18gabuscus_ has quit [Read error: Connection reset by peer]
10:22gabuscus has joined #asahi
10:47gabuscus has quit [Ping timeout: 480 seconds]
10:50gabuscus has joined #asahi
11:00bgb_ has joined #asahi
11:04bgb has quit [Ping timeout: 480 seconds]
11:08squags has quit [Ping timeout: 480 seconds]
11:09squags has joined #asahi
11:12FireFox317_jannau_, wait, so from macos 12 m1n1 has to be in the same container for the hypervisor to work? I just updated m1n1 with the installer (in a seperate container), but it still fails to boot
11:12FireFox317macos is now panicking with: 'rootvp not authenticated after mounting @bsd_init.c:961'
11:20_jannau_as400: yes, it should work on the 14/16 inch macbook pros. you need to add the SPI node to t6001.dtsi
11:26darkapex2 has joined #asahi
11:31darkapex1 has quit [Ping timeout: 480 seconds]
11:42kettenishttps://github.com/kettenis/u-boot/blob/b64821d05f4a4e59e3c7c618d894831ab17621f3/arch/arm/dts/t8103.dtsi#L588
12:07mpsI don't know details but because keyboard works maybe these patches could be sent to kernel ML
12:16nctcf^ has joined #asahi
12:19j_eysven: Ive been delaying it since I felt like some more understanding of the hw could be good. but maybe its not that important
12:20mpsas400: in my build touchpad is detected and work with evtest but not with xorg or consolation (daemon which uses libinput on consoles for handling pointing devices)
12:21svenj_ey: as long as there’s no obscure magic or similar weird things it might be good enough. Did you write that driver from scratch?
12:22squags has quit [Ping timeout: 480 seconds]
12:25FireFox317_jannau_, so i can just reduce the security of my main macos partition and then use kmutil to make it boot m1n1? without actually overwriting the actual macos kernel
12:25svenimho just start with a simple driver that doesn’t do DMA and only add that later if it makes sense
12:26j_eysven: i think i sent you the driver, you can see its quite simple. its just some of the register bits that felt a bit weird
12:28j_eyhttps://paste.gg/p/anonymous/ca6dbe8a59a042a0848ccbd3acf10ba9 Ill repaste it here, its not thst secret!
12:29squags has joined #asahi
12:35sveni think for clk_prepare_enable the same comment i got for my watchdogv1 applies. technically you should only disable the clock after devm has unregistered the spi controller so you should use devm_add_action_or_reset or however it's called
12:36svenin practise it just doesn't matter because the clock is just a dumb constant frequency clock anyway
12:37squags has quit [Ping timeout: 480 seconds]
12:45squags has joined #asahi
12:54squags has quit [Ping timeout: 480 seconds]
12:55squags has joined #asahi
12:59kov has joined #asahi
13:03bingoChecker has joined #asahi
13:03bgb_ has quit [Read error: Connection reset by peer]
13:07bgb_ has joined #asahi
13:23ianlienfa[m] has joined #asahi
13:33marcanwe're not going for "it works" here, we're going for maintainability and correctness, and that means doing things right
13:34artemist has quit [Ping timeout: 480 seconds]
13:34marcanj_ey: also, do you think you can implement runtime-pm in that spi driver? that'd be another good test case for the pmgr stuff, and it should be easy to add (and does not add a hard dependency in either direction)
13:36j_eymarcan: I can take a look. im not exactly sure what runtime-pm does.. (im assuming turn stuff off if its idle?)
13:37_jannau_as400: I have no config with enabled keyboard. you need APPLESPI and the config the spi driver introduces
13:37marcanj_ey: look at the patch to add runtime-pm to the samsung driver for an example; also there's a good chance some other SPI driver has it too
13:38marcanthe important thing is MMIO will be inaccessible while suspended, so you need to make sure to always resume it before doing anything
13:45mpsmarcan: yes, I understand your stance on this because I'm one who always (nearly) insist on correctness first but sometimes ... I'm impatient
13:46artemist has joined #asahi
13:48mpsin last decade I had to work in financial applications field and my knowledge on hacking hardware vanished (mostly) so I can't help with making some drivers and fixes, just could test what all you make
13:48mazsven: I like that I don't have to say anything anymore. the _relaxed police is now doing its job! :D
13:50marcanmaz: btw, did you see that the PERST patches apparently break 10G NICs? my guess is it just takes longer to initialize after PERST...
13:56mazmarcan: where was that reported? 100ms is quite a long time, but I wonder if it could be that the 100us delay before releasing #PERST is too short.
14:06bgb has joined #asahi
14:06bgb_ has quit [Read error: Connection reset by peer]
14:10as400jannau: I have them enabled but it restarts config on me. Is this how it's supposed to be using your PKGBUILD ? I'm cross compiling - not sure if it makes any difference.
14:13kovas400, this config has a few other bits, but it has the keyboard stuff https://cloud.kov.dev.br/s/D8o7BTspgkZtPkE
14:14kov"few other bits" = driver for the usb ethernet I was using, not sure if anything else that is relevant
14:16Gaelan has quit [Quit: ZNC 1.8.2 - https://znc.in]
14:16Gaelan has joined #asahi
14:17FireFox317marcan, how did you find out that the AVD needs firmware? I'm trying to trace the device, but i'm not seeing the firmware getting copied
14:19svenif it's the same co-proc like the others it'll just put the firmware somewhere in RAM and write a pointer to some configuration register
14:21bgb_ has joined #asahi
14:22FireFox317sven, hmm yeah that makes sense. The ADT also states that a DART is used, so maybe that's why i dont see the writes?
14:23sailorek1234 has quit []
14:25FireFox317sven, oh ofcourse. I think it makes more sense now
14:26sveni'd expect it to write a pointer to the first 0x8000 bytes of the MMIO region (i.e. the region just before the mailbox interface)
14:27bgb has quit [Ping timeout: 480 seconds]
14:42kovnot sure, haven't measured that yet, I don't think it'd be representative at this point anyway
14:43aleasto has joined #asahi
14:44as400yes, you're probably right. But it would be nice starting point if somebody measured it and then we could compare it after few months.
14:56marcanfirefox317: I was poking around ioreg to find out what codecs/levels it supports, and I found a firmware-size property and that set all the alarms ringing
14:56marcanI looked at the kext and it has the firmware embedded (a whole bunch actually, for different IP core versions)
15:05FireFox317yep presumably supports ADS HEVC AVC and H264
15:10as400I'm trying to compile kernel with keyboard support for t6001 but it seems I'm missing "pinctrl_nub" node. Anyone knows how to define it ?
15:11nctcf^ has quit [Remote host closed the connection]
15:26_jannau_kettenis: not that it makes a practical difference. t600x support still PoC and needs cleanup
16:14bgb has joined #asahi
16:18bgb_ has quit [Ping timeout: 480 seconds]
16:21marcanthough apple calls VP9 some weirdo internal codename I forget all throughout their driver stack, because I guess it was secret or they're allergic to calling it VP9 or something?
16:33Gaelan has quit [Quit: ZNC 1.8.2 - https://znc.in]
16:34Gaelan has joined #asahi
17:14as400 has left #asahi [#asahi]
17:17bingoChecker has quit [Quit: Leaving]
18:27Misthios has quit [Quit: Misthios]
18:27Misthios has joined #asahi
18:28nrl^ has joined #asahi
18:31Misthios has quit []
18:32Misthios has joined #asahi
18:44Misthios has quit [Quit: Misthios]
18:44Misthios has joined #asahi
18:46Misthios has quit []
18:47Misthios has joined #asahi
18:55Misthios has quit [Quit: Misthios]
18:55Misthios has joined #asahi
18:56X-Scale` has joined #asahi
18:56Misthios has quit []
18:56Misthios has joined #asahi
19:00X-Scale has quit [Ping timeout: 480 seconds]
19:13aleasto has quit [Ping timeout: 480 seconds]
20:54opticron has quit [Ping timeout: 480 seconds]
20:56bgb_ has joined #asahi
20:57___nick___ has joined #asahi
20:57HardWall has quit [Remote host closed the connection]
20:57___nick___ has quit []
20:59___nick___ has joined #asahi
21:03bgb has quit [Ping timeout: 480 seconds]
21:08___nick___ has quit [Ping timeout: 480 seconds]
23:41povik has quit [Ping timeout: 480 seconds]
23:49povik has joined #asahi
23:50X-Scale has joined #asahi
23:54X-Scale` has quit [Ping timeout: 480 seconds]