#
✕ nick:marcan
#asahi-dev · 2023-02-05 06:57
marcanyou might want to add power-domain-names / reset-names and label them, so future bindings don't depend on strict ordering (you don't have to *use* that today, as long as the binding specifies a strict ordering today the driver can just use integer indices, it's more for future-proofing)
#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
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
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: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: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: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 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-03 02:43
marcanthat usually means network issues
#asahi-dev · 2023-02-02 00:59
marcanj`ey: fixed those myself
#asahi-dev · 2023-01-31 13:04
marcanjannau: probably the dp2hdmi needing init (or a gpio reset) at this point?
#asahi-dev · 2023-01-31 11:52
marcanOK, merged the pending stuff we had into asahi-soc
#asahi-dev · 2023-01-31 06:03
marcanI mean the graphical diskutil probably won't make a complete mess but it cannot handle nonstandard partitioning *at all* and gets confused in all kinds of ways, so best avoid it
#asahi-dev · 2023-01-31 06:01
marcanfor identifying stuff it's probably easiest to just run the asahi installer and look at the output (you can just quit)
#asahi-dev · 2023-01-31 06:01
marcanuse the command line `diskutil`
#asahi-dev · 2023-01-31 06:01
marcandon't use the graphical disk utility, it's utterly broken
#asahi-dev · 2023-01-31 05:58
marcananyway, if you're on 13.2 feel free to continue there, but we'll have to backport to 12.3 at some point (but that can happen later)
#asahi-dev · 2023-01-31 05:57
marcanbut macOS will pull its root partition UUID from the ADT and we don't do anything with that right now, so if you try you'll just get an instant panic as it can't mount root (since there is no real root on an Asahi container)
#asahi-dev · 2023-01-31 05:56
marcanbut the converse isn't true, not sure if it could be made to work but probably not well
#asahi-dev · 2023-01-31 05:56
marcanyou *can* use the macOS-overlaid m1n1 to boot Linux (so you don't have to keep switching the actual boot OS to test Linux driver things) as long as you manually specify the root partition and all that, since Linux doesn't (yet) particularly care about which underlying OS container you're booting from
#asahi-dev · 2023-01-31 05:55
marcanyeah they're separate docs for a reason :p
#asahi-dev · 2023-01-31 05:54
marcanhttps://github.com/AsahiLinux/docs/wiki/SW:Hypervisor#preparing-the-macos-volume-by-disabling-security-features that specifically
#asahi-dev · 2023-01-31 05:54
marcanno, the wiki page for macOS on the hypervisor is https://github.com/AsahiLinux/docs/wiki/SW:Hypervisor
#asahi-dev · 2023-01-31 05:51
marcanthat is for linux
#asahi-dev · 2023-01-31 05:51
marcanno
#asahi-dev · 2023-01-31 05:51
marcanfor machines where I also use macOS normally I just usually have multiple macOS installs (which is useful anyway since I need to pin RE/development versions to specific ones)
#asahi-dev · 2023-01-31 05:50
marcanmacOS is macOS, if you want to run macOS inside the hypervisor you need to install m1n1 as a *replacement* for the macOS kernel (which means macOS will no longer boot by itself, it will boot m1n1 instead and *then* you can run the macOS kernel under the hypervisor)
#asahi-dev · 2023-01-31 05:49
marcanthat's never going to work
#asahi-dev · 2023-01-31 05:49
marcanyou are trying to boot macOS on top of an Asahi install
#asahi-dev · 2023-01-31 05:49
marcanagain, if you installed m1n1 using the asahi linux installer, you *cannot* use that to boot macOS
#asahi-dev · 2023-01-31 05:49
marcanI meant what kernel version is kernel.development.t8103
#asahi-dev · 2023-01-31 05:48
marcanhow did you boot macos if you have m1n1 installed on top?
#asahi-dev · 2023-01-31 05:46
marcanwhat kernel version is that and what is the machine booting when you run that?
#asahi-dev · 2023-01-31 05:45
marcanyou can use the retail kernel
#asahi-dev · 2023-01-31 05:45
marcanthat's optional
#asahi-dev · 2023-01-31 05:45
marcanalso you don't need any of that debug kernel stuff

plus ›