marcan 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
kensan has joined #asahi-dev
kensan has quit [Ping timeout: 480 seconds]
adryzz has quit [Quit: .]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
amarioguy has quit [Ping timeout: 480 seconds]
bluetail6 has joined #asahi-dev
bluetail has quit [Ping timeout: 480 seconds]
bluetail6 is now known as bluetail
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
kensan has joined #asahi-dev
bluetail has quit [Ping timeout: 480 seconds]
kensan has quit [Ping timeout: 480 seconds]
bluetail has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
Dcow has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
ella-0_ has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
ella-0 has quit [Read error: Connection reset by peer]
chadmed has joined #asahi-dev
chadmed has quit []
rickybobby23 has joined #asahi-dev
chadmed has joined #asahi-dev
<rickybobby23> I'm using arch with asahi and got a hard crash (system unresponsive) when running `devmem2` on an arbitrary address. I'm not sure where tickets are filed and searched IRC logs. Not sure if anything I can do to help / file / etc.
chadmed has quit []
chadmed has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
kensan has joined #asahi-dev
kensan has quit []
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
rickybobby23 has quit [Quit: Igloo IRC: https://iglooirc.com]
rickybobby23 has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
rickybobby23 has quit []
chadmed has quit []
chadmed has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
bluetail3 has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
bluetail has quit [Ping timeout: 480 seconds]
bluetail3 is now known as bluetail
chadmed has joined #asahi-dev
<chadmed> povik: could the dapm null pointer deref be caused by the driver catching the jack unplug irq before cs42l84_component_probe() has run?
SSJ_GZ has joined #asahi-dev
<chadmed> judging by dmesg output, that seems to be what is happening
chadmed has quit [Quit: Konversation terminated!]
<povik> chadmed: yes, that's what's happening
<povik> component_probe is called when the codec is being bound to a sound card
<povik> we need to revert "ASoC: cs42l84: Hand over HSBIAS power management to DAPM"
<povik> i tried to find some other way yesterday but all brought in too many complications
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
dgb has quit [Quit: dgb]
Etrien has joined #asahi-dev
<sven> rickybobby23: I mean.. "writing to a random memory address" sounds like a recipe for crashing the SoC
<maz> devmem is, in general, a recipe for disaster...
MajorBiscuit has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
ella-0_ is now known as ella-0
<j`ey> povik: markan is merging stuff now, do you have the updated i2c patch?
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<povik> so soon?
<povik> i would have more to merge but i would like to test it first
<povik> anyway amarioguy posted the patch yesterday
<povik> the first and last two patches of https://github.com/povik/linux/commits/cs42l84-fixes are good to go
<marcan> yeah I just merged the i2c one
<povik> that is all that doesn't have HSBIAS in title
<marcan> got it
<marcan> cherry-picked :)
<povik> fine :)
<j`ey> marcan: forgetting to merge in gpu/omg-it-works
<povik> this one would make chadmed happy but i haven't had the chance to test it yet: https://tpaste.us/9bBZ
Dementor7 has joined #asahi-dev
<povik> marcan: we should remove all cs42l42 compatibles if you haven't done so already
<povik> jannau has a patch for it, let me find it
<marcan> already did it :)
<povik> quick!
<marcan> sed + git autofixup
<j`ey> povik: so it turned out to be a different chip? or it wasnt as compatible as first thought?
<povik> it's 99% compatible but it has a different default on one register
<povik> so this is the cleanest way about it
<j`ey> oh I see!
<povik> it's more than the devid
<povik> here, this is what all the trouble was about :p
<j`ey> povik: a whole driver for one line1
<povik> marcan: i linked it
Dementor has quit [Ping timeout: 480 seconds]
Dementor7 is now known as Dementor
<povik> i would chance it
<povik> damn you sublime text!
<povik> leaving all those spaces around
Dementor has quit [Quit: The Lounge - https://thelounge.chat]
Dementor has joined #asahi-dev
<_jannau_> update seems to have lost a clk_*_add_action
suricat0 has joined #asahi-dev
<povik> ^-- this improves the message on opening an unrouted PCM
<povik> people have been running into it a lot lately
<povik> yay!
<povik> p.5ok1
suricat0 has quit [Quit: Konversation terminated!]
<povik> ^ disregard
<povik> this one enables regcache on cs42l84: https://tpaste.us/X0je
<povik> it's tested. now i will stop posting patches
<j`ey> povik: it has commented out code?
<povik> that's alright
<povik> it's there to be filled in later
<povik> but i can't set the empty regdefaults or the regcache core complains
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<povik> marcan: i would have two more if you can squeeze them in
<povik> see above
<povik> yes
Dcow has joined #asahi-dev
Dcow has quit [Remote host closed the connection]
<marcan> [ 11.644939] cs42l84 2-004b: Runtime PM usage count underflow!
<marcan> [ 11.645646] apple-mca 39b600000.mca: Runtime PM usage count underflow!
<marcan> [ 11.646455] snd-soc-dummy snd-soc-dummy: Runtime PM usage count underflow!
<marcan> povik: ^
<povik> huh what's that
<marcan> I might have more debug enabled
<marcan> also I just turned on sleep support in .config which might invoke more rpm stuff
Dementor has quit [Remote host closed the connection]
Dementor has joined #asahi-dev
<povik> fix in broonie/sound for-next
<povik> or rather a revert
Core8020 has joined #asahi-dev
amarioguy has joined #asahi-dev
Core9066 has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
amarioguy has quit [Ping timeout: 480 seconds]
chip_x has joined #asahi-dev
<marcan> that seems wrong, it should be put in as a fix for the current cycle
<marcan> ah, it is in for-6.1 also
chipxxx has quit [Ping timeout: 480 seconds]
Core9066 has joined #asahi-dev
Core8020 has quit [Ping timeout: 480 seconds]
<jannau> wow, running kcalc in the background uses ~6W
<jannau> remaining battery trippled from almost trippled from ~4h to 12h
<marcan> yeah, half the battle for battery efficiency is fixing bad userspace...
<jannau> more than 9W vs. 3W and a noticeable warm macbook
<marcan> (macos is not immune to this either, I have an MBP I always leave in sleep mode and half the time the battery dies because of some random software eating CPU)
<jannau> I'm mostly astounded that there's still such broken user space
<jannau> looks like it re-renders constantly
<marcan> sent an email about the bcm4355 confusion
amarioguy has joined #asahi-dev
<marcan> kettenis: do you have cpufreq in BSD? I just redid the cpufreq binding (again), but I changed the compatibles so I think we can just keep both ways in for compatibility for a while.
<kettenis> yes, I have cpufreq
<kettenis> but if the compatible changed, it should be ok (you just don't get cpufreq)
<marcan> if your users don't mind that, sure
<kettenis> if both ways can be kept in what we ship in the "stadard uefi" option of the asahi installer that would be good
<kettenis> since the 7.2 release has been made
<marcan> I think I can do that (I might just keep that in our main tree anyway, for simplicity, as an extra patch)
<kettenis> I may hold off switching to the new bindings until it has been accepted upstream
<marcan> yes, that's fine. I intend to submit it as soon as it gets a bit of testing
<marcan> and hopefully this one will be accepted (it doesn't really get any cleaner than this)
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Core1863 has joined #asahi-dev
<mps> did anyone enabled MGLRU in new kernel? is it ok to enable it for asahi kernel
<mps> oh sorry
<mps> it is LRU_GEN
Core9066 has quit [Ping timeout: 480 seconds]
<marcan> povik: the unrouted device error is very spammy, is there some way we can outright disable the secondary device when the speakers are disabled?
<marcan> pushed new kernel & m1n1 to asahi-dev
<_jannau_> did anyone already build asahi-wip? why wouldn't it be ok to enable multi gen LRU? except for the rc status of the kernel
<marcan> _jannau_: it's in asahi-dev
<marcan> smoke tested on M1MBA
<povik> marcan: it's those pesky sound servers trying to open the devices in a loop
<marcan> povik: yeah, but the kernel shouldn't expose devices and then fail when you open them
<marcan> (loudly, at that)
<marcan> either the error needs to be silenced or the device outright removed
<povik> but the failure is a function of sound card controls
<_jannau_> error should probably be ratelimited
<marcan> then it should just not log
<marcan> or only log once
<povik> it can't be removed/added dynamically as far as i know
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<povik> we can log once, but ASoC will print cryptic messages anyway
<marcan> yeah, so that needs a change in ASoC then :)
<povik> probably
<marcan> if this is all going away (as in cannot happen regardless of config) when the speakers are enabled, we can just carry a patch to shut it up for now
<marcan> but if this will persist after the speakers are done properly, then it needs to be fixed some way
<povik> no, it can happen with speakers too
<marcan> then yeah, we need a solution
<povik> since you can have the speakers and headphone both on primary
<povik> then opening the secondary raises that error
Core1863 has quit [Ping timeout: 480 seconds]
<marcan> going to upgrade my build machine then see if I can get Rust into the kernel in the PKGBUILD (because lina)
<povik> marcan: anyway you should never get the error having the ucm installed
<povik> i think it's time we take up the package in reference distro
<marcan> yeah, need to package that too
DarkShadow44 has quit [Quit: ZNC - https://znc.in]
<povik> AFAICT this is ready to go: https://github.com/AsahiLinux/PKGBUILDs/pull/20
DarkShadow44 has joined #asahi-dev
<marcan> in it goes then!
<povik> \o/
<_jannau_> tags in the repo would be nice and we might want to move the repo to AsahiLinux/
seb4nihel has joined #asahi-dev
<marcan> yeah, we can move it if povik is okay with that
<povik> sure
<povik> i am thinking of a tag scheme i should use
<povik> one option is: minimal compatible asahi kernel tag + revision under that
<povik> but maybe that's too much, it should be easy keeping the config widely compatible if we need to change something down the line
<povik> since you can check for existence of controls, have conditional declarations and what not
<_jannau_> just using v0.1 and v0.2 like I did with the pkgbuild would be fine imo
<povik> probably, i prefer plain vN in that case
<_jannau_> I don't think it's worth to try to be clever for a package which probably is obsolete in a couple of months
<marcan> povik: jack didn't work out of the box here with UCM, "Jack Mixer" needs to be turned up
<povik> :(
<povik> marcan: that's m1 machine with cs42l42, right?
<povik> i meam cs42l83
<povik> *mean
<marcan> 42l83, yes
<povik> huh, wonder what's going wrong there, it works on mac mini for me
<povik> what is the machine specifically? maybe the ucm doesn't get discovered at all
<marcan> j313
<povik> i checked the name of the .conf but it matches the card model in DT exactly
<povik> if you send a log from pulseaudio or similar i will look at it
<marcan> alsaucm does show the config
<marcan> wait now it works after a pulse restart?
<marcan> (but I rebooted the whole machine...)
<povik> darn
<marcan> ohhh
<marcan> it doesn't work if pulse starts with the jack unplugged
<povik> argh
<marcan> "driver does not support hardware volume control" it claims
amarioguy has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
<marcan> ah, a hotplug breaks it too
<marcan> so it only works if I start pulse with the jack in
derzahl has quit [Read error: No route to host]
<povik> so as long as the jack was unplugged at any point it breaks?
<marcan> yup
<marcan> not sure if UCM problem or PA bug?
<marcan> I can try to debug this tomorrow if you want
<povik> yeah, neither am i
<povik> only i had better experience running pulse + that UCM
<povik> sure, if you can spare a moment debugging pulse, i will take it
<marcan> sure
Major_Biscuit has joined #asahi-dev
MajorBiscuit has quit [Read error: Connection reset by peer]
bisko has quit [Ping timeout: 480 seconds]
<marcan> oh, upstream rust support is x86-64 only, lol
<marcan> well, at least I got make rustavailable happy
<marcan> with arch linux rust packages even, yay
<j`ey> marcan: the change in cpufreq header today gives: ./include/linux/cpufreq.h:1162:9: warning: variable 'target_idx' is uninitialized when used here [-Wuninitialized]
<j`ey> and indeed, its never set anymore
<j`ey> not sure if this was accidental: - target_idx = ret;
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<marcan> j`ey: oh dur, that should just return 0 now
<marcan> fixed in bits/ (and also something else)
<kettenis> ah, bad news, I added backwards compatibility for the old old cpufreq stuff to OpenBSD
<kettenis> and the new cpufreq recycles the compatible property of the old old cpufreq
<marcan> ah, yeah, it does, because the model is closer to the old old cpufreq...
<kettenis> will have to test the consequences of providing both then...
<marcan> can you see what the old code does with the new DTs? if it just fails with something we might be okay
<kettenis> I think it will just fail, but I'm not 100% sure
Major_Biscuit has quit []
seb4nihel has quit [Remote host closed the connection]
seb4nihel has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
zzywysm has joined #asahi-dev
chip_x has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Quit: WeeChat 3.6]
MajorBiscuit has joined #asahi-dev
seb4nihel has quit [Remote host closed the connection]
seb4nihel has joined #asahi-dev
<kettenis> I'll see if I can construct a frankenDTB to see what happens in reality
seb4nihel has quit [Ping timeout: 480 seconds]
XeR has quit [Read error: Connection reset by peer]
XeR has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
bisko has joined #asahi-dev
MajorBiscuit has quit [Quit: WeeChat 3.6]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
gladiac has joined #asahi-dev
Core9066 has joined #asahi-dev
chip_x has joined #asahi-dev
chip_x has quit [Read error: No route to host]
seb4nihel has joined #asahi-dev
Gaspare has joined #asahi-dev
bluetail has quit [Quit: The Lounge - https://thelounge.chat]
bluetail has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
seb4nihel has quit [Quit: Leaving]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
kensan has joined #asahi-dev
kensan has quit [Quit: leaving]
gladiac has quit [Quit: k thx bye]
thelounge7571340 has joined #asahi-dev
whistlingoat has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
<kettenis> ok, the frankenDTB doesn't make the kernel explode, but it does break the code that changes the CPU frequency
<kettenis> so from an OpenBSD standpoint there is no benefit in trying to provide a backwards compatible DTB
<jannau> the kcalc energy use is clearly a bug. It gets constantly resizeEvents and redraws itself. bug filed in kde's bugzilla
alyssa has quit [Quit: leaving]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
kensan has joined #asahi-dev
amarioguy has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
<jannau> I'm seeing tps6598x issues with v6.1.0-rc1-asahi-1 http://paste.debian.net/1257408/
<jannau> reproducible with disconnecting a usb-c charger
<sven> ugh… I thought we fixed that at some point
<jannau> also reproducible with an usb device on the UART enabled port, could be random
<jannau> I can't remember when I saw that the last time. obvious change in the kernel is i2c irq support
zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<j`ey> no changes to drivers/usb/typec/tipd/ between 6.0-rc6 and 6.1-rc1
<ChaosPrincess> is there any magic involved in handling of apfs volumes on m1? im trying to parse some apfs structures by reading them from /dev/disk0s2, and both my code and apfs-fuse seem to fail.
zzywysm has joined #asahi-dev
kensan has quit [Ping timeout: 480 seconds]
<mps> ChaosPrincess: from linux or macos?
<ChaosPrincess> trying from macos rn
<mps> there is apfs driver for linux on github
<ChaosPrincess> the victim volume is the asahi container, so it is not mounted and shouldnt have filevault
<mps> maybe this could help by reading code
<ChaosPrincess> mps: im using https://github.com/sgan81/apfs-fuse
<ChaosPrincess> and it fails after loading the keybag
<mps> I can read apfs using linux-apfs-rw driver
<mps> mount, I mean
<ChaosPrincess> ok, ill look at it then.
chipxxx has joined #asahi-dev
Etrien_ has joined #asahi-dev
Etrien has quit [Ping timeout: 480 seconds]
<jannau> no longer reproducible with "i2c/pasemi: PASemi I2C controller IRQ enablement" reverted
Etrien_ has quit [Read error: Connection reset by peer]
Etrien has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
<sven> hmmm… weird
<sven> that commit still looks good to me
thelounge7571340 has quit [Read error: Connection reset by peer]
<sven> even if the irq stuff doesn’t work at all it should just sleep 10 msec and then work like before
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<jannau> at least for the audio codec it is working. setting the volume got noticeable faster
<sven> maybe it’s too fast for the tps chips now? :D
nsklaus_ has joined #asahi-dev
nsklaus has quit [Read error: Connection reset by peer]
kettenis_ has joined #asahi-dev
kettenis has quit [Ping timeout: 480 seconds]
kode54 has quit [Quit: The Lounge - https://thelounge.chat]
kode54 has joined #asahi-dev
<jannau> M2 has atcrt0 and atcrt1 on i2c2 with 'compatible = [atcrt]' but not much information to figure out what it is
<povik> 23:40 < sven> maybe it’s too fast for the tps chips now? :D
<povik> that is what i was thinking
<povik> quick glance over the datasheet didn't find anything suspicious though
<jannau> sven: not reproducible with a single msleep(1); in the irq path so too fast looks like a valid theory
Gaspare has quit [Quit: Gaspare]
whistlingoat has joined #asahi-dev
SSJ_GZ has quit [Ping timeout: 480 seconds]
Core5347 has joined #asahi-dev
manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
manawyrm has joined #asahi-dev
Core9066 has quit [Ping timeout: 480 seconds]
dd has joined #asahi-dev
blazra has quit [Ping timeout: 480 seconds]
Core5347 has quit [Ping timeout: 480 seconds]
Core9066 has joined #asahi-dev
blazra has joined #asahi-dev
Etrien_ has joined #asahi-dev
Core9066 has quit [Ping timeout: 480 seconds]
Etrien has quit [Ping timeout: 480 seconds]
dgb has joined #asahi-dev
blazra has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
whistlingoat has joined #asahi-dev
whistlingoat has quit []
amateurece has joined #asahi-dev
Core9066 has joined #asahi-dev
whistlingoat has joined #asahi-dev
whistlingoat has quit []