#
…

2024-09-16

00:19pb17 has quit [Ping timeout: 480 seconds]
00:30argonaut0 has joined #asahi-dev
00:32argonaut0 has quit []
00:47ellyq_ has quit [Ping timeout: 480 seconds]
01:00KxCORP5894000345 has quit [Quit: Bye!]
01:00KxCORP5894000345 has joined #asahi-dev
01:29pb17 has joined #asahi-dev
01:43tbodt_ has joined #asahi-dev
01:47tbodt has quit [Ping timeout: 480 seconds]
02:00gabuscus_ has quit []
02:08tobhe_ has joined #asahi-dev
02:15tobhe has quit [Ping timeout: 480 seconds]
02:28chrisl has joined #asahi-dev
02:36chrisl has quit [Ping timeout: 480 seconds]
03:17chrisl has joined #asahi-dev
03:18gabuscus has joined #asahi-dev
03:24pb17 has quit [Ping timeout: 480 seconds]
03:25chrisl has quit [Ping timeout: 480 seconds]
03:28pb17 has joined #asahi-dev
03:37chrisl has joined #asahi-dev
03:45chrisl has quit [Ping timeout: 480 seconds]
03:51Stary has quit [Quit: ZNC - http://znc.in]
03:55chrisl has joined #asahi-dev
03:56Stary has joined #asahi-dev
04:02gladiac is now known as Guest3591
04:02gladiac has joined #asahi-dev
04:03nora_ has joined #asahi-dev
04:03chrisl has quit [Ping timeout: 480 seconds]
04:05nora has quit [Ping timeout: 480 seconds]
04:07Guest3591 has quit [Ping timeout: 480 seconds]
04:30chrisl has joined #asahi-dev
04:38chrisl has quit [Ping timeout: 480 seconds]
04:50chrisl has joined #asahi-dev
04:58chrisl has quit [Ping timeout: 480 seconds]
05:09chrisl has joined #asahi-dev
05:11exile443 has joined #asahi-dev
05:17chrisl has quit [Ping timeout: 480 seconds]
05:25mkurz has quit [Ping timeout: 480 seconds]
05:29pb17 has quit [Ping timeout: 480 seconds]
05:37exile443 has quit []
05:47balrog_ has joined #asahi-dev
05:51balrog has quit [Ping timeout: 480 seconds]
05:56JayBeeFOSS has quit [Ping timeout: 480 seconds]
05:57JayBeeFOSS has joined #asahi-dev
06:21pb17 has joined #asahi-dev
07:05chrisl has joined #asahi-dev
07:10chadmed has quit [Quit: Konversation terminated!]
07:10chadmed has joined #asahi-dev
07:13chrisl has quit [Ping timeout: 480 seconds]
07:23chadmed__ has joined #asahi-dev
07:23chadmed has quit [Remote host closed the connection]
07:24chrisl has joined #asahi-dev
07:26nicolas17 has quit [Read error: Connection reset by peer]
07:26nicolas17 has joined #asahi-dev
07:38pb17 has quit [Ping timeout: 480 seconds]
07:40veen has joined #asahi-dev
07:42chrisl has quit [Ping timeout: 480 seconds]
07:44crabbedhaloablut has quit []
07:46crabbedhaloablut has joined #asahi-dev
07:46kraem has quit [Remote host closed the connection]
07:48kraem has joined #asahi-dev
07:52chrisl has joined #asahi-dev
08:00chrisl has quit [Ping timeout: 480 seconds]
08:06pb17 has joined #asahi-dev
08:26gladiac has quit [Read error: Connection reset by peer]
08:26gladiac has joined #asahi-dev
08:27chrisl has joined #asahi-dev
08:27veen has quit [Ping timeout: 480 seconds]
08:44chrisl has quit [Ping timeout: 480 seconds]
08:53chrisl has joined #asahi-dev
09:01chrisl has quit [Ping timeout: 480 seconds]
09:12chrisl has joined #asahi-dev
09:20chrisl has quit [Ping timeout: 480 seconds]
09:27chaos_princess has quit [Quit: chaos_princess]
09:28chaos_princess has joined #asahi-dev
09:30pb17 has quit [Ping timeout: 480 seconds]
09:31chrisl has joined #asahi-dev
09:32emxl has joined #asahi-dev
09:40emxlkj1243: You asked 2 weeks ago if you could help develop for M3. I think it would be helpful if you got to work on whatever init code for your platform is missing in m1n1. You can build m1n1 for your platform, flash it to a new OS install (then enable the -v (for verbose) boot arg with nvram boot-args="-v") and see what breaks and what works.
09:43emxlIf you dont get any output on your screen the culprit is probably a new version of the boot_args struct (if you have a recent macOS version). This moves mem_size_actual, breaking the mapping code and crashing m1n1 before it can initialize the screen console. I fixed this for me by increasing cmdline from 608 to 1024 bytes.
09:44chrisl has quit [Ping timeout: 480 seconds]
09:47emxl has quit [Remote host closed the connection]
09:50jannauoh, joy. changinging the platform_device.remove function pointer signature from returning int to void for ~20 drivers
09:52mazjannau: yeah, I had a fun time fixing those.
09:53mazI wish the author had provided a script...
09:54chrisl has joined #asahi-dev
10:02chrisl has quit [Ping timeout: 480 seconds]
10:02ddxtanx_ has joined #asahi-dev
10:08ddxtanx has quit [Ping timeout: 480 seconds]
10:12chrisl has joined #asahi-dev
10:18pb17 has joined #asahi-dev
10:19weitcis_ has joined #asahi-dev
10:20chrisl has quit [Ping timeout: 480 seconds]
10:22weitcis has quit [Ping timeout: 480 seconds]
10:36chrisl has joined #asahi-dev
10:44chrisl has quit [Ping timeout: 480 seconds]
10:55chrisl has joined #asahi-dev
11:01nickchanfor the BootArgs struct stuff because some very old firmwares like iBoot-2817 doesn't even have mem_size_actual I made some assumption and assumed the dram bottom to 0x800000000, then rounded things up to the nearest 256 MB
11:02ddxtanx_ has quit [Quit: Konversation terminated!]
11:02nickchanthere are some even older ones that have device tree issue that I have not gotten around to fixing yet...
11:02ddxtanx_ has joined #asahi-dev
11:03nickchanluckily for the newest increase in boot cmdline length you should be able to get around with checking the revision field of the BootArgs struct
11:03chrisl has quit [Ping timeout: 480 seconds]
11:04nickchanrevision == 3 would mean boot cmdline length 1024
11:16chrisl has joined #asahi-dev
11:24chrisl has quit [Ping timeout: 480 seconds]
11:44___nick___ has joined #asahi-dev
12:02mkurz has joined #asahi-dev
12:04veen has joined #asahi-dev
12:12veen has quit [Ping timeout: 480 seconds]
12:12chrisl has joined #asahi-dev
12:24chrisl has quit [Ping timeout: 480 seconds]
12:24pb17 has quit [Ping timeout: 480 seconds]
12:26nickchanoh hell nah A10(X) MPIDR changes when with their p-state
12:26nickchanI am seriously considering to cause an immediate TAINT_CPU_OUT_OF_SPEC when I get around to the cpufreq stuff
12:28nickchanprobably right at where aarch32 el0 is disabled
12:34chrisl has joined #asahi-dev
12:35casper31 has joined #asahi-dev
12:36RoguePlanet has joined #asahi-dev
12:37RoguePlanet has quit []
12:48chrisl has quit [Ping timeout: 480 seconds]
12:50jannauI've pushed asahi-6.11-rc and rebased asahi-wip and the bits/* branches onto v6.11
12:51jannauvery limited testing from my side (j493 only)
12:52nickchanthough I am not super suer if a changing MPIDR warrents a taint
12:52nickchanprobably should ensure that it always enter in E-mode in the loader since the device tree is like that...
12:52nickchan*super sure
12:57jannaukvm doesn't/didn't work across big and little cores to avoid changing MPIDR iirc
12:57nickchanA10 only has EL0 and EL1 so that's non issue
12:58mazit's not that KVM cares. it's luserspace responsibility to pin the threads to CPUs they care about.
12:58nickchanthere's quite a bit of places in the kernel that uses mpidr though, id rather taint the kernel first to let people know about this cursed CPU
12:59nickchanprobably should rename bad_aarch32_el0_fixup() to something more specific to a10 while doing this though
12:59nickchanapple_fusion_cursed_fixup()
13:00jannaumy point was that either qemu or kvm actively tries to avoid the same situation for the guest kernel. I think the taint is justified
13:02nickchanso far this is in arch/arm64/kernel/cpufeature.c
13:03nickchanbut now it looks like it maybe should end up in arch/arm64/kernel/cpu_errata.c...
13:05mazthe problem is that you now have multiple MIDRs for the same part -- how do you select an erratum?
13:05__nick__ has joined #asahi-dev
13:06mazand is it MIDR, not MPIDR? -- unless the affinity changes as well?
13:06nickchanmaz: MIDR is not MPIDR
13:06nickchanthere are two MIDR: one for A10/T2, another for A10X
13:06nickchanWhat changes is the MPIDR
13:07pb17 has joined #asahi-dev
13:07mazso this effectively appears as CPU hotplug on/off with affinity change?
13:08nickchanmaz: Correct
13:08___nick___ has quit [Ping timeout: 480 seconds]
13:09mazthen the cpufreq magic is going to be interesting, because I don't think there is much infrastructure for surprise-removal of CPUs.
13:09nickchannothing seems to explode that horribly on the iPad 7 where I did get cpufreq to work, so maybe I can just taint the kernel during init and ignore it for now...
13:10mazwhat if another CPU sends an IPI to the one that goes down? or are *all* the CPUs switching at the same time?
13:11nickchanmaz: All CPUs switches at the same time
13:11nickchanthere is only one performance controller
13:11___nick___ has joined #asahi-dev
13:12mazright, that makes it much simpler. you still have the same number of CPUs (half of what the HW has) in the various cpumasks,
13:13mazand as long as you don't need to refer to a MPIDR (no GIC, no problem), you should be OK.
13:13mazbut this is still doggy as fsck.
13:14__nick__ has quit [Ping timeout: 480 seconds]
13:15mazyou may need a small hack in cpu_logical_map and co though.
13:16mkurz has quit [Ping timeout: 480 seconds]
13:17veen has joined #asahi-dev
13:32chrisl has joined #asahi-dev
13:43ellyq_ has joined #asahi-dev
13:52veen has quit [Ping timeout: 480 seconds]
13:54veen has joined #asahi-dev
14:43pb17 has quit [Ping timeout: 480 seconds]
14:46casper31 has quit [Remote host closed the connection]
15:09balrog_ has quit []
15:09balrog has joined #asahi-dev
15:09chadmed__ has quit [Quit: Konversation terminated!]
15:09chadmed__ has joined #asahi-dev
15:13___nick___ has quit []
15:16___nick___ has joined #asahi-dev
15:17___nick___ has quit []
15:19___nick___ has joined #asahi-dev
15:27mkurz has joined #asahi-dev
15:53pb17 has joined #asahi-dev
16:23tobhe has joined #asahi-dev
16:27tobhe_ has quit [Ping timeout: 480 seconds]
16:28balrog has quit [Quit: Bye]
16:31balrog has joined #asahi-dev
16:37nela has quit [Ping timeout: 480 seconds]
16:55hackr has joined #asahi-dev
16:59casper31 has joined #asahi-dev
17:25pb17 has quit [Ping timeout: 480 seconds]
17:31veen has quit [Ping timeout: 480 seconds]
17:39psykose has quit [Ping timeout: 480 seconds]
17:41veen has joined #asahi-dev
17:41aleasto has quit [Quit: ZNC 1.8.2 - https://znc.in]
17:41___nick___ has quit [Remote host closed the connection]
17:42aleasto has joined #asahi-dev
17:42___nick___ has joined #asahi-dev
17:45slowlydev has joined #asahi-dev
17:47slowlydev has quit [Remote host closed the connection]
17:49veen has quit [Ping timeout: 480 seconds]
17:52pb17 has joined #asahi-dev
18:00veen has joined #asahi-dev
18:09casper31 has quit [Remote host closed the connection]
18:11veen has quit [Ping timeout: 480 seconds]
18:29john-cabaj has joined #asahi-dev
18:30john-cabaj has quit []
18:30john-cabaj has joined #asahi-dev
18:31john-cabaj has quit [Remote host closed the connection]
18:34john-cabaj has joined #asahi-dev
18:41veen has joined #asahi-dev
18:41casper31 has joined #asahi-dev
18:49veen has quit [Ping timeout: 480 seconds]
18:51roxfan has quit [Remote host closed the connection]
18:55ellyq_ has quit []
18:59roxfan has joined #asahi-dev
19:00veen has joined #asahi-dev
19:02pb17 has quit [Ping timeout: 480 seconds]
19:08veen has quit [Ping timeout: 480 seconds]
19:12popey12 has quit [Quit: The Lounge - https://thelounge.chat]
19:19veen has joined #asahi-dev
19:21nela has joined #asahi-dev
19:27veen has quit [Ping timeout: 480 seconds]
19:44veen has joined #asahi-dev
19:45pb17 has joined #asahi-dev
19:52veen has quit [Ping timeout: 480 seconds]
19:58psykose has joined #asahi-dev
20:03___nick___ has quit [Remote host closed the connection]
20:03veen has joined #asahi-dev
20:08john-cabaj has quit [Ping timeout: 480 seconds]
20:11veen has quit [Ping timeout: 480 seconds]
20:25tobhe_ has joined #asahi-dev
20:25ciara has joined #asahi-dev
20:31tobhe has quit [Ping timeout: 480 seconds]
20:37tobhe has joined #asahi-dev
20:41tobhe_ has quit [Ping timeout: 480 seconds]
20:45veen has joined #asahi-dev
20:47tobhe has quit [Ping timeout: 480 seconds]
20:50tobhe has joined #asahi-dev
20:53veen has quit [Ping timeout: 480 seconds]
21:00tobhe_ has joined #asahi-dev
21:04veen has joined #asahi-dev
21:07tobhe has quit [Ping timeout: 480 seconds]
21:12veen has quit [Ping timeout: 480 seconds]
21:19phire_ has joined #asahi-dev
21:19phire is now known as Guest3665
21:19phire_ is now known as phire
21:23Guest3665 has quit [Ping timeout: 480 seconds]
21:27veen has joined #asahi-dev
21:34pb17 has quit [Ping timeout: 480 seconds]
21:35veen has quit [Ping timeout: 480 seconds]
22:15pb17 has joined #asahi-dev
22:21nora_ has quit [Remote host closed the connection]
22:21nora has joined #asahi-dev
22:25casper31 has quit [Read error: Connection reset by peer]
22:28veen has joined #asahi-dev
22:36veen has quit [Ping timeout: 480 seconds]
22:46veen has joined #asahi-dev
22:54veen has quit [Ping timeout: 480 seconds]
23:04gladiac is now known as Guest3673
23:04gladiac has joined #asahi-dev
23:10Guest3673 has quit [Ping timeout: 480 seconds]
23:29veen has joined #asahi-dev
23:37veen has quit [Ping timeout: 480 seconds]
23:44m5zs7k_ has quit []
23:46mkurz has quit [Ping timeout: 480 seconds]
23:48m5zs7k has joined #asahi-dev
23:49pb17 has quit [Ping timeout: 480 seconds]
…