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
hightower3 has joined #asahi-dev
nepeat has quit [Ping timeout: 480 seconds]
hightower2 has quit [Ping timeout: 480 seconds]
nepeat has joined #asahi-dev
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
crabbedhaloablut has quit []
Z750 has quit [Quit: Ping timeout (120 seconds)]
Z750 has joined #asahi-dev
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi-dev
gabuscus has quit []
i509vcb has joined #asahi-dev
gabuscus has joined #asahi-dev
jluthra has quit []
jluthra has joined #asahi-dev
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #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
<ChaosPrincess> w.r.t backlight - try doing whatever is the fedora equivalent of this string https://github.com/chadmed/asahi-overlay/blob/main/app-laptop/tiny-dfr/tiny-dfr-0.1.1.ebuild#L283
<ChaosPrincess> dcp - sec, will grab logs
<jannau> oh, I can increase the brightness but I can't decrease it below 12
<ChaosPrincess> https://paste.bingner.com/paste/8omxm - dcp trace
<jannau> ChaosPrincess: works for me on j314c (m1 max) with asahi-6.4-6 (asahi-wip has only dts change which shouldn't matter). using m1n1-1.3.2
<jannau> can you check the live devicetree if there's anything fishy with reserved-memory or linking of reserved memory in dcp
<jannau> dtc -I fs -O dts -o - /proc/device-tree | less
<ChaosPrincess> the fact that i cant even boot complicates that slightly :P
<jannau> add nomodeset to the kernel command line. that will skip dcp and hopefully avoids the NULL pointer deref
jjanzic has quit [Ping timeout: 480 seconds]
<ChaosPrincess> https://paste.bingner.com/paste/m8o3p - thats the reserved memory
sefidel has quit [Remote host closed the connection]
sefidel has joined #asahi-dev
<ChaosPrincess> https://paste.bingner.com/paste/5k55v - and the dcp node
<jannau> that looks sane
<ChaosPrincess> just to check, what system fw version are you using
<jannau> 12.3. 13.3-13.5 only lightly tested through HV on this system
<jannau> 13.4 probably not at all
<ChaosPrincess> should be 12.3 dcp here
<jannau> yes, it is: apple,firmware-version = <0x0c 0x03 0x00>;
jeisom has joined #asahi-dev
mkurz has quit [Read error: Connection reset by peer]
<ChaosPrincess> reverted went back to just regular asahi instead of wip, it works again
<ChaosPrincess> weird
<jannau> backlight shutoff is fixed, still need to fix the fedora package
<jannau> asahi is still 6.3-13? weird. I guess I'll have to look at the code
<jannau> have you seen https://github.com/AsahiLinux/linux/issues/169 ? pwm 0 is apparently not off
<ChaosPrincess> jannau: not my bug, when i set brightness to lowest in kde, the driver is still requested to set duty cycle 313, period 40000
<ChaosPrincess> yep, kde bug, i can turn the brightness off completely by writing 0 to the file in sysfs
<chadmed> fwiw kde does the same thing with the keeb backlight on j314
<ChaosPrincess> yea, thats what im checking it on
zane has quit [Quit: WeeChat 4.0.2]
i509vcb has quit [Quit: Connection closed for inactivity]
CoolStar has quit [Read error: Connection reset by peer]
<ChaosPrincess> jannau: so, https://github.com/AsahiLinux/linux/commit/17292e0c9d75e2adeb5a1b67901bd09ccb2ff9e7 seems to be the offending commit
elvishjerricco has quit [Ping timeout: 480 seconds]
<jannau> ChaosPrincess: solved the systemd/udev backlight issue differently after marcan complained that we install a service unit with a hardware address in its name: https://github.com/WhatAmISupposedToPutHere/tiny-dfr/pull/6
<ChaosPrincess> yea, thats probably a better idea
<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> in https://github.com/AsahiLinux/m1n1/pull/286 the dcp support is refactored to be used by sio
<eiln> thank you
ATiltedTree has quit [Ping timeout: 480 seconds]
<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: Textual IRC Client: www.textualapp.com]
ourdumbfuture has joined #asahi-dev
ciara has quit [Read error: No route to host]
ciara has joined #asahi-dev
spuos has quit [Ping timeout: 480 seconds]
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.
<spuos> So how exactly do I get started?
skipwich has joined #asahi-dev
mini0n has joined #asahi-dev
<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
ellyq has joined #asahi-dev
<Tramtrist> how different is 313 from 413?