#
#asahi-dev · 2023-02-05 06:54
marcanare the 6 PDs arbitrarily numbered?
#asahi-dev · 2023-02-05 06:54
marcanand then the reset APIs should just work
#asahi-dev · 2023-02-05 06:53
marcanso if you need resets on those, just also add them into a resets = <> prop
#asahi-dev · 2023-02-05 06:53
marcanyeah, that looks right :)
#asahi-dev · 2023-02-05 06:52
eilni've added them as normal PDs https://github.com/eiln/linux.git
#asahi-dev · 2023-02-05 06:52
marcanDCP does the same thing
#asahi-dev · 2023-02-05 06:52
marcanso you *definitely* want to use the pmgr driver and hook it up like that then
#asahi-dev · 2023-02-05 06:52
marcanin Linux land that's called runtime PM with autosuspend delay
#asahi-dev · 2023-02-05 06:51
eilnshut off after every firmware call w/ 0.5sec-ish delay
#asahi-dev · 2023-02-05 06:51
marcanif the registers are part of the pmgr area and follow the same rules as the regular PDs they should be regular PD instances in the DT
#asahi-dev · 2023-02-05 06:51
marcanburst-style?
#asahi-dev · 2023-02-05 06:48
eilnthey're like sub-power domains w/ burst-style mgmt @ the kext level
#asahi-dev · 2023-02-05 06:45
marcanwe don't want drivers poking PDs directly (yes apple does it, because their drivers are a mess)
#asahi-dev · 2023-02-05 06:45
marcanoh, you're directly poking the PDs? if it's something the driver has to do they need to be added to the DT and you should use the standard APIs for that
#asahi-dev · 2023-02-05 06:44
eilnthanks, looking into it rn
#asahi-dev · 2023-02-05 06:44
eilntheyre all pmgr pds but aren't described in the dt
#asahi-dev · 2023-02-05 06:43
marcanyou need to declare resets = <> in the DT and then use the standard APIs
#asahi-dev · 2023-02-05 06:43
marcansee nvme/ANS which uses that feature
#asahi-dev · 2023-02-05 06:42
marcanif this is a pmgr power domain, it's hooked up as a reset provider so you can use the reset API
#asahi-dev · 2023-02-05 06:42
marcaneiln: what do you mean? how to actually trigger the reset?
#asahi-dev · 2023-02-05 06:41
eilnthe SYS pd shared with dart isn't needed for recovery, so no ctx/parents involved
#asahi-dev · 2023-02-05 06:40
eilnive seen it from apple's own compiler
#asahi-dev · 2023-02-05 06:39
eilntakes only a single bit off in the convolution param descriptor (i guess microcode equivalent?)
#asahi-dev · 2023-02-05 06:39
eilnmarcan: an engine failure can only be recovered via power domain reset, how would i go about this?
#asahi-dev · 2023-02-05 06:25
marcanI'm happy to come up with something while I hack on it, it shouldn't be too difficult
#asahi-dev · 2023-02-05 06:17
chadmedi dont think we landed on a way to gate full output unless the daemon is running so it might be time to have that discussion in earnest too
#asahi-dev · 2023-02-05 06:15
chadmedthe rust bindings for alsa-lib's PCM interface are far more complete than CTL was and getting samples seems pretty simple to do so once the kernel side is done it shouldnt take much to rejig the daemon and then we can get testing
#asahi-dev · 2023-02-05 06:13
chadmedim waiting for povik to wire up the kernel driver so i can fix the daemon and then validate things
#asahi-dev · 2023-02-05 05:56
marcanpovik: I think you asked and I'm not sure if I ever answered, but I just checked and at least j313 does have feedback from the speaker amps wired up back to the SoC
#asahi-dev · 2023-02-05 05:52
marcanand then I want to use that to derive models for the M1 laptops that don't have them
#asahi-dev · 2023-02-05 05:52
marcan(temperature can be estimated from VI data if the signal is a well-behaved test tone)
#asahi-dev · 2023-02-05 05:51
marcannot sure if this should be part of the production daemon or a separate research thing in Python, but we need a way to play test tones and do temperature measurements to validate the models
#asahi-dev · 2023-02-05 05:51
marcanchadmed, povik: what's the status for the visense/speaker safety stuff? I'm thinking I want to work on that myself soon
#asahi-dev · 2023-02-05 04:23
Keyaedisahello, i have experience with arch linux and have jus got a 2023 M2 Mac Macbook Pro. i'd like to know if i could be of any help as id like to get arch running on this macbook
#asahi-dev · 2023-02-05 03:25
eilnwhat's the preferred way to send a mini patch? would like to send the power/dpe tunables
#asahi-dev · 2023-02-05 00:41
chadmedalso the smc core driver has its own float conversion function now with scaling support so its probably best to use that instead of duplicating that functionality in the hwmon driver
#asahi-dev · 2023-02-05 00:39
chadmedjeffmiw: can i suggest making the dt binding an array of elements which contain a key and label? that should be a little nicer to read too
#asahi-dev · 2023-02-04 18:54
jeffmiwHere is the branch: https://github.com/AsahiLinux/linux/compare/asahi...jfbortolotti:linux:hwmon-smc-asahi-6.1-2
#asahi-dev · 2023-02-04 18:54
jeffmiwjust posted a new version of the hwmon driver based on SMC using DT to get the keys. This is an MBA M1 version, SMC Keys can be changed in DT to adapt to the different model. Next step is to add custom labels per key in the DT to make more sense of the sensors. See updates in https://github.com/AsahiLinux/docs/wiki/Yaks-in-need-of-shaving for details
#asahi-dev · 2023-02-03 22:50
svenhrm, i get the hpd interrupt in dpin, the nhi part claims the tunnel is up, I set up the crossbar but dcpext doesn’t see the hpd :/
#asahi-dev · 2023-02-03 21:41
t👍️
#asahi-dev · 2023-02-03 21:40
jannaut: for testing that the changes have the desired effect. the most interesting features are routing serial port to the SBU pins locally and remotely and resetting a connected mac
#asahi-dev · 2023-02-03 21:36
twhy does tipd require 2 macs? @j`ey @sven
#asahi-dev · 2023-02-03 20:12
svenI don't even remember how that all started but I do remember that I just wanted to figure out how $something worked
#asahi-dev · 2023-02-03 20:11
svendistraction is how I ended up with this usb4 mess :P
#asahi-dev · 2023-02-03 20:11
sventsk tsk ;)
#asahi-dev · 2023-02-03 20:10
jannauI got just distracted by 13.2 / m2 mini support
#asahi-dev · 2023-02-03 20:09
jannauruntime pm shouldn't be hard to implement. I expect it's enough to shut the endpoint down and restart it at convenient places from dcp's suspend/resume functions
#asahi-dev · 2023-02-03 20:05
svenmostly just want to have a good understanding how that part interacts with the rest before I start cleaning up the usb4 and pcie changes
#asahi-dev · 2023-02-03 20:04
svenonce is good enough for now ;)

plus ›