#
#asahi-dev · 2023-04-12 17:00
eric_engestromdoes `perf` work for you guys? no matter what I do `perf record` gives me empty records
#asahi-dev · 2023-04-12 15:12
_jannau_ack
#asahi-dev · 2023-04-12 15:10
kettenisjannau: the compatibles are also wrong
#asahi-dev · 2023-04-12 14:28
jannaukettenis: it should overwrite the relevant bits but I forgot to look for the board type
#asahi-dev · 2023-04-12 12:08
kettenishmm, the m2 pro mini should not inherit the wifi bits from t600x-j375.dtsi
#asahi-dev · 2023-04-12 10:27
kettenisthat'll save me having to implement it in OpenBSD
#asahi-dev · 2023-04-12 10:27
kettenisspeaking about firmware: I probably should work on getting the asmedia firmware loaded in u-boot
#asahi-dev · 2023-04-12 09:37
sventhe biggest issues are that reverse engineering the firmware is usually much more challenging and time consuming than just reverse engineering its interface and that the firmware interface probably helps us when supporting new chip revisions
#asahi-dev · 2023-04-12 09:35
sventhere might be power consumption penalties if we bypassed co-processors but I doubt we'd see a measurable performance penalty
#asahi-dev · 2023-04-12 08:04
CoolStarChaosPrincess: yes, but the machines I've dealt with run coreboot so SMM is fairly minimal
#asahi-dev · 2023-04-12 08:03
ChaosPrincessthese machines do not have it, but on x86 dont you also have a problem that smm might come and say hello, and break all your timings.
#asahi-dev · 2023-04-12 08:01
CoolStarmarcan: yeah understandable given there can be performance penalties from bypassing coprocessors (I tried bitbanging I2S on Skylake once -- it didn't look pretty in terms of how inefficient it was)
#asahi-dev · 2023-04-12 07:28
svenit doesn’t matter for the pcie darts so far because appclk is already enabled inside m1n1
#asahi-dev · 2023-04-12 07:28
svenfwiw, technically pcie should be a clock controller and dart should have that APPCLK as a dependency
#asahi-dev · 2023-04-12 05:48
marcanAVD I can see yeah, AVE I'm not so sure
#asahi-dev · 2023-04-12 05:25
chadmed_R and Jamie were going down a path of doing so with AV{D,E} too
#asahi-dev · 2023-04-12 05:15
marcanI think the only case where we've had a plausible "byassing firmware is OK" story so far is ANE, though I still have my doubts about that one
#asahi-dev · 2023-04-12 05:15
marcanso unless we're bypassing firmware (which I'm very reluctant to do, both because then we don't have a consistent RE story and because firmware usually helps upwards compat), we don't have to care
#asahi-dev · 2023-04-12 05:14
marcanCoolStar: in general you can access the hardware directly if you want, but all of Apple's coprocessors also access the hardware they are responsible for directly and expect to do so
#asahi-dev · 2023-04-12 04:11
CoolStarmarcan: I see; I guess even if it's MIPI, yeah it doesn't matter if the CIO2 and IPU are both on the same controller (unlike Intel where it's separate)
#asahi-dev · 2023-04-12 02:01
marcanI think the socs support MIPI and DP
#asahi-dev · 2023-04-12 02:01
marcanCoolStar: webcam is behind a giant firmware blob so it doesn't matter much what link it uses behind the scenes
#asahi-dev · 2023-04-12 02:00
marcanChaosPrincess: just mark the relevant PDs as apple,always-on; for now
#asahi-dev · 2023-04-12 02:00
marcanthat's the only sane solution here
#asahi-dev · 2023-04-12 01:59
marcanthis needs to be fixed in core genpd code to refuse to power down any PDs that have fwlinks to devices that haven't probed yet if they were on at boot time
#asahi-dev · 2023-04-12 01:59
marcanjannau: yes, DART probing first is what causes it
#asahi-dev · 2023-04-12 01:59
marcanChaosPrincess: ^
#asahi-dev · 2023-04-12 01:58
marcanit's biting us everywhere, moreso since 6.2
#asahi-dev · 2023-04-12 01:58
marcanI'll fix this in core code at some point
#asahi-dev · 2023-04-12 01:58
marcanjust work around it for now
#asahi-dev · 2023-04-12 01:58
marcanif it has a dart yeah, known problem
#asahi-dev · 2023-04-12 00:15
ChaosPrincessIdk, maybe. The mipi im talking about is the one used to connect the touchbar screen.
#asahi-dev · 2023-04-11 23:46
CoolStarChaosPrincess: does M1 use MIPI for the webcam? since I noticed an ISP in the DT but haven't looked much further into it
#asahi-dev · 2023-04-11 23:12
jannaudo we have a problem with dart runtime PM? dart is probed first due to the iommu dependency, might immediately power-down since it is unused. if the device is not so far probed that it forces the pd on, the pd will power down
#asahi-dev · 2023-04-11 23:03
ChaosPrincessI am doing pd_ignore_unused for now, i just hoped that i could drop it by adding all the necessary stuff to power-domains
#asahi-dev · 2023-04-11 23:02
jannauadd pd_ignore_unused to the kernel command line or make the power-domain always-on. Is it shared between two or more devices?
#asahi-dev · 2023-04-11 22:59
ChaosPrincessGreat, linux manages to power gate something in the time after it starts but before it loads modules and so the mipi link explodes in a serror.
#asahi-dev · 2023-04-11 22:39
jannauwith working Night Color (kwin_wayland 5.27.4)
#asahi-dev · 2023-04-11 22:37
jannaut602x/bringup works otherwise on mac studio with both 12.3 and 13.2 firmware
#asahi-dev · 2023-04-11 22:36
jannaumarcan: small PCIe copy'n'paste fix for pre t6020-pcie in https://github.com/AsahiLinux/linux/pull/134
#asahi-dev · 2023-04-11 15:41
_jannau_at least a short reset of the m1 max pcie pd in u-boot doesn't break anything. even the links stayed up. either config space or dart-apcie accesses resulted in SErrors though
#asahi-dev · 2023-04-11 15:30
svenI’ll take a look this weekend
#asahi-dev · 2023-04-11 15:25
marcanbut yeah, we should be able to skip upstreaming the whole atcphy fuse mess if we can move that to m1n1 for older fw/soc compat
#asahi-dev · 2023-04-11 15:25
marcan*on the
#asahi-dev · 2023-04-11 15:25
marcansven: also I think they're now gating the USB_AON power domains which they weren't before, so at least ont t602x they're gating *more*
#asahi-dev · 2023-04-11 15:24
marcansave/restore was my plan for PCIe too given m1n1 sets that up
#asahi-dev · 2023-04-11 15:24
marcanbut I was thinking the same
#asahi-dev · 2023-04-11 15:23
marcanit's possible we now have to save/restore
#asahi-dev · 2023-04-11 15:19
sveni thought they got dropped but maybe I messed up when I checked that ages ago
#asahi-dev · 2023-04-11 15:19
svenwould be nice if the fuses could also just be applied from m1n1

plus ›