ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
dylanchapell has quit [Read error: Connection reset by peer]
dylanchapell has joined #asahi-dev
gabuscus_ has joined #asahi-dev
gabuscus has quit [Read error: Connection reset by peer]
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
ciara has quit [Read error: Connection reset by peer]
ciara has joined #asahi-dev
ciara has quit [Read error: No route to host]
ciara has joined #asahi-dev
bisko has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
bisko has quit []
bisko has joined #asahi-dev
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
chadmed has quit [Ping timeout: 480 seconds]
mkurz has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
bisko has quit []
bisko has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
bisko has quit []
cylm_ has joined #asahi-dev
cy8aer has quit [Remote host closed the connection]
ciara has quit [Ping timeout: 480 seconds]
ciara has joined #asahi-dev
bisko has joined #asahi-dev
gabuscus_ has quit []
gabuscus has joined #asahi-dev
gabuscus has quit []
gabuscus has joined #asahi-dev
eiln has joined #asahi-dev
crabbedhaloablut has joined #asahi-dev
ChaosPrincess has quit [Quit: ChaosPrincess]
zane has joined #asahi-dev
ChaosPrincess has joined #asahi-dev
zane has quit [Quit: WeeChat 4.0.2]
jjanzic has quit [Ping timeout: 480 seconds]
zane has joined #asahi-dev
<eiln>
ChaosPrincess: what firmware version are you on? I'm looking at an old copy of 12.3 dt (ipsw currently downloading) and the segment-ranges property in the isp node seem to be missing
bcrumb has joined #asahi-dev
bcrumb has quit []
<ChaosPrincess>
13.2
<ChaosPrincess>
are you looking at template adt or live?
<ChaosPrincess>
it is missing in template, its filled by iboot
<eiln>
template. this might be an issue
jjanzic has joined #asahi-dev
<eiln>
The firmware & pagetable mapping (they call it ctrr/ctrr locked region) persists as long as ISP_SYS is kept on
<eiln>
so I guess we'll have to do keep that always-on & dart-map it in mini
<eiln>
It faults at the end of __TEXT. This is probably it.
jacksonchen666 has joined #asahi-dev
ciara has quit [Read error: Connection reset by peer]
ciara has joined #asahi-dev
<jannau>
extracting just the firmware needed for the install device is a little inconvenient for my dev workflow
* jannau
sits before a m2 macbook pr 13" without trackpad
chadmed has joined #asahi-dev
<jannau>
my dev workfow boots the kernel via run_guest_kernel with initrd + firmware.cpio + cpio of the matching kernel modules
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
<jannau>
ChaosPrincess: have you already tested the touchbar on top of 6.4? apple_z2 misses linux/of.h after the rebase (might be my tree)
<jannau>
the idle timeout is broken with fedora's tiny-dfr-0.1.1 on my j493 with 6.4. did you test recently?
<jannau>
I'll check if this is a tiny-dfr, 6.4 or fedora issue
<ChaosPrincess>
jannau: 6.4 - not yet
<ChaosPrincess>
idle timeout - are you on m2?
<jannau>
/sys/class/backlight/228200000.display-pipe.0/brightness stays at 12 but I think it changed from bright to dimmed in the beginning
<ChaosPrincess>
also it seems like whatever is currently in asahi-wip has broken dcp on j314
<ChaosPrincess>
jannau: do you have a systemd backlight service thing managing brightness
<jannau>
yes, m2 / j493. using the same tree (but rebased) I tested previously on the same machine
<jannau>
which dcp firmware? broken how? can you make sure you're using the matching dtb. there was an change in asahi-6.4-2 which is not backwards compatible
<jannau>
systemd-backlight@backlight:228200000.display-pipe.0.service is marked as failed
<marcan>
eiln: FWIW we should check on 13.5 firmware, which is what Fedora will ship with. supporting that is higher prio than 12.3/4 (though ideally we support both).
<ChaosPrincess>
i dont think it changed much from 12.3 to 13.2, so probably not much on 13.5
<marcan>
ISP?
<eiln>
marcan: 12.3 runs, fixing mini to support ctrr region
<eiln>
13.2 I haven't looked at, should be fine
<marcan>
13.5 is the target
<marcan>
(latest version right now)
<marcan>
anything in between we don't care about (except 12.4 on M2)
bgb has joined #asahi-dev
<eiln>
fuck do I have to install ventura
<eiln>
the issue is the initial firmware pte & locked region setup, which I thought was constant so I hardcoded
<bgb>
maz: I just assembled and tested your Central Scrutinizer, it works very well, thanks :-)
ATiltedTree_ has joined #asahi-dev
<jannau>
eiln: you mean the coprocessor's segments? we need to handle that in m1n1 via reserved-memory as currently done for dcp
<eiln>
jannau: that and a private heap. I'm referencing dcp.c rn
<jannau>
I think other coprocessors should be able to use that PR other coprocessors with little code changes in m1n1
<jannau>
I'll review the code and see if I can get it merged
ATiltedTree_ is now known as ATiltedTree
<eiln>
jannau: the segment ranges struct is different
<jannau>
sigh, why apple?
<eiln>
for ISP it's u64 phys, u64 iova, u64 unk, u32 size, u32 pad
<eiln>
twice
elvishjerricco has joined #asahi-dev
bgb has quit [Quit: WeeChat 4.0.2]
spuos has joined #asahi-dev
i509vcb has joined #asahi-dev
<spuos>
So what's the state of the speaker stuff? I'm tired of waiting and I would like to know if I could try my hand at porting the J313 myself. Worst case scenario I blow my speakers, I can live with that.
<eiln>
marcan: I just upgraded to ventura, tried to install 13.5 tether
<eiln>
stage 2 fails after a pink screen, getting "The version of macOS on the selected disk needs to be reinstalled"
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
lawq has joined #asahi-dev
lawq has quit [Ping timeout: 480 seconds]
CoolStar has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amarioguy has joined #asahi-dev
roxfan has joined #asahi-dev
ciara has quit [Read error: No route to host]
ciara has joined #asahi-dev
eiln has quit [Quit: WeeChat 4.0.2]
novafacing992 has joined #asahi-dev
ourdumbfuture has joined #asahi-dev
novafacing99 has quit [Ping timeout: 480 seconds]
novafacing992 is now known as novafacing99
jeisom has quit [Ping timeout: 480 seconds]
roxfan has quit [Read error: Connection reset by peer]
spuos has joined #asahi-dev
eiln has joined #asahi-dev
<eiln>
marcan: both 12.3 & 13.5 work. locked heap size changes between versions though (not in dt). 13.5 gets some new filters & sensor configs, that's about it
<eiln>
aaa I need sleep
eiln has quit [Quit: WeeChat 4.0.2]
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ciara has quit [Read error: No route to host]
ciara has joined #asahi-dev
ourdumbfuture has joined #asahi-dev
crabbedhaloablut has quit []
jtolio has quit [Quit: Connection closed for inactivity]
<chadmed>
spuos: i dont have a j313 anyway so by all means have a go. patches welcome :)
<ChaosPrincess>
is j313 even a thing that exists? they probably meant the 314
<chadmed>
313 is the 13" m1 air
<chadmed>
i think?
<ChaosPrincess>
oh, right, i see it
<chadmed>
spuos: just a forewarning, you cant just copy the IRs from j314 and call them j313 and call it a day
<chadmed>
someone already tried to pull that little trick
<spuos>
oh.
<spuos>
well I guess that's a little anticlimactic
<chadmed>
i wouldnt be surprised if apple use the same parts in the machines but the airs arent dual-opposed afaik so will require at the very minimum customisation to the existing ones
<chadmed>
and more likely entirely new ones
<chadmed>
the 13" pro sounded _almost_ good with them for the same reason
skipwich has quit [Read error: Connection reset by peer]
<spuos>
I suppose that makes things a lot easier to work with, I was kind of excited for a bit of a project. I could definitely work on tuning it, though.
<chadmed>
its kind of outdated but a good place to start
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chadmed>
youd then need a piece of software capable of taking in filter data and spit out an IR. ive been using REW
<chadmed>
you also need to be comfortable messing around with pipewire and wireplumber
<chadmed>
basic process is take a frequency response measurement from one woofer and one tweeter
<chadmed>
make them flat in REW
<chadmed>
then play around and tweak until the sound profile is natural
<chadmed>
then apply whatever compression/bass enhancement you feel necessary to complete the picture
<chadmed>
the woofers apple use are very very mid-heavy
<chadmed>
and im not sure if the air has tweeters to counteract that, ik the 13" pros just have two sets of woofers
<chadmed>
i need more hardware...
ourdumbfuture has joined #asahi-dev
zalyx06 has joined #asahi-dev
zalyx0 has quit [Read error: Connection reset by peer]
zalyx06 is now known as zalyx0
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
jeisom has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeisom has quit []
jeisom has joined #asahi-dev
<spuos>
chadmed, I'd be lying if I said I know much about wireplumber configuration, but I can figure it out. I have all the necessary tools, and can get started with testing tomorrow :)
<chadmed>
have a look at the asahi-audio repo, its got basically everything you need under j314 :)
<chadmed>
we've put a lot of effort into getting the plumbing right over the last.. holy shit two years?
<chadmed>
thats where most of the effort has been
<chadmed>
the actual making of the IRs is not hard
cylm_ has quit [Ping timeout: 480 seconds]
<spuos>
just one question, how do I actually enable the speakers? I've never messed with a devicetree in my life.
<chadmed>
i dont want to be too specific, but in the device tree source file for your model one of the device statuses will be set to disabled. you need to set it to okay