#asahi-dev · 2025-01-14 12:19
anuragraowhat is the state of wifi p2p at the moment, what layer is it supported until and what layer has to be implemented? the output of iw phy lists p2p-client p2p-go and p2p-device as supported interface modes#asahi-dev · 2025-01-14 12:17
anuragraoHey, I'm new here and would like to try to help with WiFi P2P support. If this is supported, we can partially solve the external display problem on Macbook Air devices. I tried setting it up with gnome-network-displays but then I can see errors in journalctl and dmesg. I looked through the driver code for brcmfmac and saw there is a p2p.c file. I'm new to kernel development and want to understand the scope of this problem an#asahi-dev · 2025-01-14 10:12
nickchanactually xnu uses aic mode on a7-a10#asahi-dev · 2025-01-14 08:16
nickchanso it probably won't work#asahi-dev · 2025-01-14 08:16
nickchanin the AIC mode that ostensibly is supposed to deliver an IRQ not only no IRQs are received but PMCR0_IACT never gets set as if it's in OFF mode#asahi-dev · 2025-01-14 07:50
nickchanand then allow the custom sync exception handler to call the default sync exception handler#asahi-dev · 2025-01-14 07:49
nickchanor maybe no hack but also give sync exception the fiq treatment when adding m1 support except the default handler is the normal sync exception handler#asahi-dev · 2025-01-14 07:39
LarstiQnickchan: I'll applaude from the sidelines. I like reading your progress but can't help much. Unless you need some rubber duck debugging!#asahi-dev · 2025-01-14 07:34
nickchanfor linux too#asahi-dev · 2025-01-14 07:34
nickchanso it should be fine#asahi-dev · 2025-01-14 07:34
nickchanthis is actually m1n1's behavior#asahi-dev · 2025-01-14 07:27
nickchanthe FIQ handler probably should only touch the PMCR0 register when PMCR0_IMODE is set to FIQ#asahi-dev · 2025-01-14 07:26
nickchanbecause I believe the CPMU has other modes even on M1#asahi-dev · 2025-01-14 07:26
nickchanit's technically wrong for every CPU#asahi-dev · 2025-01-14 07:26
nickchanactually#asahi-dev · 2025-01-14 07:24
nickchanbecause the CPMU on these can't deliever a FIQ, the fiq handler should not touch the PMC registers#asahi-dev · 2025-01-14 07:23
nickchanThis also means the current AIC FIQ handler is wrong for A7-A10#asahi-dev · 2025-01-14 07:22
nickchanI really hope I can get AIC mode to work because otherwise it's to insert an IMP DEF hack inside Linux's sync exceptio handler#asahi-dev · 2025-01-14 07:21
nickchanthere's quite a bit of hw differences#asahi-dev · 2025-01-14 07:21
nickchanLarstiQ: for those device themselves#asahi-dev · 2025-01-14 07:20
LarstiQnickchan: for those devices themselves, or as inspiration for Asahi targeted macs?#asahi-dev · 2025-01-14 07:19
nickchanLarstiQ: to get performance counters working properly in Linux#asahi-dev · 2025-01-14 07:19
nickchanmy experiments https://github.com/asdfugil/m1n1-idevice/blob/cpmu/proxyclient/experiments/pmi.py#asahi-dev · 2025-01-14 07:18
LarstiQjust fun poking around or is this yak shaving for some other goal?#asahi-dev · 2025-01-14 07:16
nickchanthere is no hypervisor however so a lot more blind probing#asahi-dev · 2025-01-14 07:14
nickchanthese devices are lot cheaper than macs :)#asahi-dev · 2025-01-14 07:12
nickchanLarstiQ: i have a lot #asahi-dev · 2025-01-14 07:12
LarstiQnickchan: do you have a whole testbench of devices?#asahi-dev · 2025-01-14 07:11
nickchanbut only a11 can deliver the fiq#asahi-dev · 2025-01-14 07:11
nickchanall of a7-a11 can deliever the sync exception#asahi-dev · 2025-01-14 06:26
nickchaneven as IMPDEF delivering a data abort doesn't sound right to me however#asahi-dev · 2025-01-14 06:19
nickchanby generating a sync exception I mean it is generated at the expected time, where the counter reaches 48 bit#asahi-dev · 2025-01-14 06:16
nickchanffs i don't want to add impdef aborts into linux#asahi-dev · 2025-01-14 06:15
nickchanExternal abort type. This bit can provide an IMPLEMENTATION DEFINED classification of External aborts.#asahi-dev · 2025-01-14 06:15
nickchanEA, bit [9]#asahi-dev · 2025-01-14 06:13
nickchandata abort exception too#asahi-dev · 2025-01-14 06:13
nickchanam pretty sure that's illegal#asahi-dev · 2025-01-14 06:13
nickchan16-bit instruction trapped and ISV is 0#asahi-dev · 2025-01-14 06:12
nickchanand HALT mode halts the CPU as expected#asahi-dev · 2025-01-14 06:12
nickchanFIQ mode is RES0 so probably not supported#asahi-dev · 2025-01-14 06:11
nickchanAIC mode can be set but does nothing#asahi-dev · 2025-01-14 06:11
nickchanPMI mode generates a sync exception with a ESR of 0x94000200#asahi-dev · 2025-01-14 06:11
nickchanokay a8x cpmu is getting even more interesting#asahi-dev · 2025-01-13 17:49
nicolas17when connecting an Apple Silicon Mac to another computer via USB, do all Macs report the same USB PID, or does it differ per model?#asahi-dev · 2025-01-12 06:25
nickchan<https://github.com/asdfugil/linux-apple/blob/bits/060-pmu/drivers/perf/apple_m1_cpu_pmu.c> my newest code Note a7-a10 don't use PMCR0_IMODE_FIQ and i will figure that out later#asahi-dev · 2025-01-12 06:23
nickchanalas the pmu driver hardcodes every details of the pmu, unlike, say, the pmgr power domain drivers#asahi-dev · 2025-01-11 19:02
nickchanand uses PMCR0_IMODE_AIC instead of PMCR0_IMODE_FIQ#asahi-dev · 2025-01-11 19:02
nickchana7-a10's CPU PMU does not have the interrupt fired via FIQ#asahi-dev · 2025-01-11 19:01
nickchan appearently#asahi-dev · 2025-01-11 13:21
nickchanso there's no all instruction hw event