ChanServ changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | https://asahilinux.org/2022/03/asahi-linux-alpha-release/ | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
tenkuu_ has quit [Quit: WeeChat 3.7.1]
Versus34 has quit [Ping timeout: 480 seconds]
<scardracs> Not really. I mean Linux OSes
Versus34 has joined #asahi
user982492 has joined #asahi
beeblebrox has quit [Quit: Konversation terminated!]
rayanamukami3 has quit [Read error: Connection reset by peer]
rayanamukami3 has joined #asahi
bgb has joined #asahi
asie has quit [Server closed connection]
asie has joined #asahi
<marcan> Bcrumb: Because we can't ship it in the root, because it makes cleanup easier, because it makes root backups redistributable for people, and because that way it works without mounting the root read-write in the initramfs (which a lot of distros don't)
marcan has quit [Server closed connection]
marcan has joined #asahi
waldi has quit [Server closed connection]
waldi has joined #asahi
Xe has quit [Server closed connection]
Xe has joined #asahi
delsol has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi
mixi has quit [Server closed connection]
mixi has joined #asahi
delsol has quit [Quit: Leaving...]
Ziemas has quit [Server closed connection]
Ziemas has joined #asahi
vafanlignarde has quit [Server closed connection]
vafanlignarde has joined #asahi
delsol has joined #asahi
V has quit [Server closed connection]
V has joined #asahi
ten15723 has quit [Remote host closed the connection]
ten15723 has joined #asahi
Foxboron has quit [Server closed connection]
Foxboron has joined #asahi
ar has quit [Server closed connection]
ar has joined #asahi
commandoline_ has quit [Server closed connection]
commandoline has joined #asahi
ma4 has joined #asahi
ma3 has quit [Ping timeout: 480 seconds]
kaprests has quit [Server closed connection]
kaprests has joined #asahi
delsol has quit [Ping timeout: 480 seconds]
erincandescent has quit [Server closed connection]
Fanfwe has quit [Server closed connection]
Fanfwe has joined #asahi
ten15723 has quit [Remote host closed the connection]
ten15723 has joined #asahi
sylveon has joined #asahi
karlyeurl has quit [Server closed connection]
karlyeurl has joined #asahi
capta1nt0ad has joined #asahi
ten15723 has quit [Remote host closed the connection]
capta1nt0ad has quit []
ten15723 has joined #asahi
sylveon has quit [Quit: Konversation terminated!]
delsol has joined #asahi
leah2 has quit [Server closed connection]
leah2 has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vup has quit [Server closed connection]
nyuhu has quit [Server closed connection]
nyuhu has joined #asahi
Nevada has quit [Server closed connection]
eroc1990 has quit [Remote host closed the connection]
dianshi has quit [Server closed connection]
dianshi has joined #asahi
eroc1990 has joined #asahi
irth has quit [Server closed connection]
irth has joined #asahi
CME has quit [Server closed connection]
CME has joined #asahi
lonjil has quit [Server closed connection]
lonjil has joined #asahi
Nevada has joined #asahi
qyliss has quit [Server closed connection]
qyliss has joined #asahi
delsol has quit [Ping timeout: 480 seconds]
nyx_o has joined #asahi
frytaped has joined #asahi
povik has quit [Server closed connection]
povik has joined #asahi
greguu has quit [Ping timeout: 480 seconds]
espo has quit [Server closed connection]
espo has joined #asahi
ten157237 has joined #asahi
ten15723 has quit [Remote host closed the connection]
ten157237 is now known as ten15723
marvin24 has joined #asahi
noopwafel has quit [Server closed connection]
noopwafel has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
jamespmorgan has joined #asahi
veloek has quit [Server closed connection]
veloek has joined #asahi
jamespmo_ has quit [Ping timeout: 480 seconds]
mjolnir[m] has quit [Server closed connection]
mjolnir[m] has joined #asahi
matrix_ds has quit [Server closed connection]
ahdeb[m] has quit [Server closed connection]
ahdeb[m] has joined #asahi
matrix_ds has joined #asahi
frytaped has quit [Quit: WeeChat 3.6]
frytaped has joined #asahi
frytaped has quit []
frytaped has joined #asahi
frytaped has quit []
frytaped has joined #asahi
frytaped has quit []
redlegion has quit [Server closed connection]
redlegion has joined #asahi
Sellerie has quit [Server closed connection]
Sellerie has joined #asahi
loki_val has quit [Server closed connection]
crabbedhaloablut has joined #asahi
Stary has quit [Server closed connection]
Stary has joined #asahi
greguu has joined #asahi
m5zs7k has quit [Server closed connection]
m5zs7k has joined #asahi
frytaped has joined #asahi
frytaped is now known as godvino
deckard_xprop has joined #asahi
godvino has quit []
frytaped has joined #asahi
deckard_xprop has quit []
SSJ_GZ has joined #asahi
chadmed_ has joined #asahi
jamespmo_ has joined #asahi
jamespmorgan has quit [Ping timeout: 480 seconds]
joske has joined #asahi
<joske> chadmed: I tried your audio suspend PR, but after resume I have no audio at all now: https://paste.debian.net/1262610/
joske has quit []
<chadmed_> is that reproducible? seems odd since thats failing on something the driver used to do anyway
joske has joined #asahi
<joske> no, second time it just worked
<joske> I waited a bit longer before resume though (not sure if that makes any difference at all)
<chadmed_> that shouldnt make a difference since the driver does those failed register pokes before suspend
<joske> I'll try a few more times
<joske> 5 suspend/resumes in a row, and worked every time
<joske> reproduced
<joske> if you suspend when no audio played since boot, you get this
<chadmed_> ah ok
<chadmed_> that sounds like the codec is never taken out of software shutdown on start, so when we try to set the bits to the same thing it fails?
<chadmed_> tas2770.c, line 75: change that function to "ret = tas2770_update_pwr_ctrl(tas2770);" and see if that fixes it
<chadmed_> which commits did you pick
<joske> I just downloaded the entire PR as a patch
<joske> and applied with git am
<joske> yes, all 4 commits present
<chadmed_> because that error is now happening on startup which is what ecdec55 is meant to fix
<chadmed_> hmm
<_jannau_> ls for dcp
<_jannau_> err
<joske> chadmed: can you reproduce it too?
<chadmed_> not with tas2764. i dont have a machine with tas2770 in it
<chadmed_> but the chips are afaik identical apart from the class d amp's power?
<joske> oh strange
<chadmed_> so this is weird
<joske> happy to try any fixes you may have
<joske> either way, I'd still call this a win :-D just touch the volume button once on login
<chadmed_> ive got a match that _may_ work, just making sure it builds first
<chadmed_> my server is slower at building kernels than this tiny laptop
<joske> haha yes
<chadmed_> cant wait to yeet it outta here
<chadmed_> joske: https://tpaste.us/4owr
<chadmed_> depending on when PRE_PMD and POST_PMU get called, that might fix t
<joske> building
<joske> WORKS!
<chadmed_> lessgoooo
<joske> no audio related stuff in dmesg on suspend nor resume
<joske> so great!
<chadmed_> no news is good news :)
<joske> in this case, yes :-)
<chadmed_> maybe ive just gotten lucky with tas2764 so far then, i should add the same fix to that
<joske> might be a good idea
<chadmed_> because that problem would logically affect both, the code paths are identical
<joske> or something played some ping on login or so
<chadmed_> the MS Sound plays when i login so... yeah thatd do it :P
<joske> haha
cylm_ has joined #asahi
leitao has joined #asahi
cylm has quit [Ping timeout: 480 seconds]
<povik> chadmed_: sorry to be a party pooper but that patch is wrong
<povik> you shouldn't touch dac_powered/unmuted in the resume/suspend functions
vx has quit [Quit: G-line: User has been permanently banned from this network.]
vx has joined #asahi
<povik> the fields are supposed to reflect the desired power state as far as commanded by the sound card
<povik> if you override that during the suspend cycle you lose some info
<chadmed_> i see
leitao has quit [Ping timeout: 480 seconds]
<povik> chadmed_: do you know if with your patch "ASoC: tas2770: software shutdown before suspend" the power-related code paths between tas2764/tas2770 are essentially the same?
<povik> if that's the case, i suspect there's a bug in the original resume function
<povik> it should do sync, *then* up the power state
<chadmed_> the data sheet sections related to the shutdown states are copy-pasted so i assume theyre supposed to behave identically
<povik> datasheet sections?
<povik> ah, as in actual sections in datasheet :)
<povik> i was thinking of code
Chai-T-Rex has quit [Remote host closed the connection]
<chadmed_> ah yeah what i mean is that if the function works on one (tas2764 as tested on my end) then it should work on the other because theyre supposed to behave identically
<chadmed_> but like i said above its possible i was just getting lucky
<povik> and the code is indeed the same you say...
<povik> well, but that could be explained by the bug i suspect
Chai-T-Rex has joined #asahi
<chadmed_> yeah but they both return regache_sync() so if you think that should happen before the power state is changed we can change that
<povik> because the ordering of registers will be different, so different registers will have been restored by the time sync gets to the power register
<chadmed_> yeah
<povik> that could explaine the tas2764/tas2770 difference
<chadmed_> https://tpaste.us/MkoX something like this?
Chai-T-Rex has quit [Remote host closed the connection]
<chadmed_> d'oh ignore that
Chai-T-Rex has joined #asahi
<joske> chadmed: is that on top of previous patch?
<joske> or should that be reverted?
<povik> chadmed_: probably best putting the cache_only(false) above sync, but yeah, like that
gabuscus has quit [Ping timeout: 480 seconds]
<chadmed_> revert the previous one please, its wrong :P
<povik> joske maybe means patches from PR, not the first link
<chadmed_> no they applied the one from before that you said was wrong
<povik> ah right
<joske> nono, I meant the first patch he posted here
<povik> got an email from github: @chadmed pushed 0 commits.
<povik> :D
<joske> reverted, and applied new one
<chadmed_> i force pushed to drop that silly revert commit that was making the DCO bot angry :P
<joske> should I move the cache_only higher up?
<chadmed_> yeah move it above the sync function
<joske> rebooting
<joske> also working!
<joske> push it
<joske> push it real good
<chadmed_> i believe its "whip it" ;)
<joske> well, you may be too young to know the song :-P
<povik> chadmed_: you can send this one straight to the list if you feel like it
<povik> notwithstanding the other suspend fixes since those probably aren't upstreamable
gabuscus has joined #asahi
<chadmed_> you fine with a Co-developed-by?
<povik> nah, just give me a suggested-by
<chadmed_> ack
<chadmed_> what do we do about the major problem then? just carry this until someone revives shared gpio handling?
<chadmed_> its been like 4 years now :P
<povik> probably until *we* revive shared gpio handling
<chadmed_> heh of course
chadmed_ has quit [Remote host closed the connection]
<povik> from experience there will be a bunch of TI codec drivers with this same faulty code
<povik> probably best to fix tas2764/2770 now
<povik> and i can eventually carry over the fix to others once i hook up the tower of codec evaluation boards TI sent me :p
<j`ey> :o
chadmed_ has joined #asahi
<povik> yeah, hit on tas2780 (this one i don't have :/)
<povik> looks like tas2552 has it too
<povik> tas2562 doesn't touch the pstate register on suspend
joske has quit [Ping timeout: 480 seconds]
<chadmed_> is it put into shutdown elsewhere? if not thats like 8mA quiescent current if it just stays in mute
<povik> it's put into shutdown by SDZ (if it has one)
<povik> but there's no special sequencing of a pstate register change
<chadmed_> maybe we should only do that if theres no SDZ pin
<povik> no, you need special sequencing of the pstate restore
<povik> that's what all the fuss in suspend/resume functions is about
<povik> in suspend, the shutdown write hits the cache only, so it's without effect
<povik> only during resume the sync restores the registers with shutdown in pstate first, only then is the pstate upped
<povik> at least, that's what it *will* do with your fix
<povik> before, the whole production was spoiled by the last act :D
<povik> oh wait, i just reread the code
<povik> it doesn't do the cache write if theres SDZ?
<chadmed_> tas2770 was like that too, but tas2764 wasnt
<povik> i see
jamespmorgan has joined #asahi
<povik> tas2764 with your fix looks best to me of all the variants of suspend code that's floating around here
<povik> uh, the tas2770 suspend code just doesnt make any sense
<povik> it pulls SDZ if theres one but otherwise all the writes are just empty exercise
jamespmo_ has quit [Ping timeout: 480 seconds]
<chadmed_> the suspend function is total nonsense yeah
Versus34 has quit [Ping timeout: 480 seconds]
kenzie7 has quit []
kenzie7 has joined #asahi
le0n has quit [Quit: see you later, alligator]
le0n has joined #asahi
ihaveamac has quit [Quit: fail]
ihaveamac has joined #asahi
frytaped is now known as Guest679
Guest679 has quit []
frytaped has joined #asahi
frytaped is now known as Guest681
Guest681 is now known as frytaped
frytaped has quit []
frytaped has joined #asahi
beeblebrox has joined #asahi
chadmed_ has quit [Remote host closed the connection]
goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kettenis has quit [Ping timeout: 480 seconds]
r0ni has quit [Ping timeout: 480 seconds]
rvalue has quit [Remote host closed the connection]
rvalue has joined #asahi
rayanamukami3 has quit [Ping timeout: 480 seconds]
goldsoultheory has joined #asahi
rayanamukami3 has joined #asahi
rayanamukami31 has joined #asahi
rayanamukami3 has quit [Ping timeout: 480 seconds]
rayanamukami31 is now known as rayanamukami3
off^ has quit [Ping timeout: 480 seconds]
leitao has joined #asahi
leitao has quit [Ping timeout: 480 seconds]
sylveon has joined #asahi
LinuxM1 has joined #asahi
janrinze has quit [Quit: Leaving.]
janrinze has joined #asahi
delsol has joined #asahi
LinuxM1 has quit [Quit: Leaving]
bgb has quit [Ping timeout: 480 seconds]
kilolima is now known as kl_
assman has quit [Remote host closed the connection]
assman has joined #asahi
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
creechy has quit [Ping timeout: 480 seconds]
creechy has joined #asahi
sylveon has quit [Quit: Konversation terminated!]
vmeson has quit [Ping timeout: 480 seconds]
vmeson has joined #asahi
corion has joined #asahi
nicolas17 has joined #asahi
systwi has joined #asahi
systwi__ has quit [Ping timeout: 480 seconds]
corion has quit []
corion has joined #asahi
tired has quit [Quit: /]
tired has joined #asahi
as400 has quit [Remote host closed the connection]
delsol has quit [Remote host closed the connection]
as400 has joined #asahi
djorz has joined #asahi
bcrumb has joined #asahi
goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bcrumb> marcan: k, was just asking and guessed these as much so i know how to follow for this hook
bcrumb has quit [Remote host closed the connection]
<nopeslide> can anyone point me to a kernel build config for an M2 air? or is there a default config that works well?
jamespmo_ has joined #asahi
<j`ey> nopeslide: any reason you want to build your own kernel?
<nopeslide> j`ey: i just want to play around with tethered setup and see if i can do anything cool..
<nopeslide> thanks!
jamespmorgan has quit [Ping timeout: 480 seconds]
<nopeslide> i guess i dont need to build my own kernel but i wanna try starting from m1, loading the kernel, installing a KDE distro etc
chengsun has joined #asahi
alex_ has joined #asahi
kettenis has joined #asahi
<alex_> Hi I'm having issue with installer installing to external drive
<alex_> I get notifications the external drive not properly ejected every time the installer is doing the partitioning
chengsun_ has joined #asahi
systwi_ has joined #asahi
systwi has quit [Ping timeout: 480 seconds]
chengsun_ has quit [Quit: Quit]
chengsun has quit [Ping timeout: 480 seconds]
LinuxM1 has joined #asahi
chengsun has joined #asahi
chengsun has quit []
chengsun has joined #asahi
mlq has joined #asahi
chengsun has quit []
axboe has joined #asahi
LinuxM1 has quit [Quit: Leaving]
bcrumb has joined #asahi
<bcrumb> so i'm running the new firmware with systemd now
<bcrumb> the trick seemed to be that the systemd bootup targets are off and sysroot is NOT mounted at initrd-fs.target
<bcrumb> so i just infinite looped that until it became available
<bcrumb> now, it's the wifi that is working at least, should keyboard backlights be on too?
mlq_ has quit [Ping timeout: 480 seconds]
<j`ey> bcrumb: yep
<bcrumb> also, i guess that initrd-fs was off because of cryptsetup... which is weird considering how their hierarchy works
<bcrumb> hmmm doesn't seem to be
<bcrumb> j`ey: is there a way to manually reload firmware?
<j`ey> echo 100 | sudo tee /sys/class/leds/kbd_backlight/brightness
<j`ey> backlight doesnt need fw
<bcrumb> oh fuck lol
<bcrumb> nice
<bcrumb> time to program so that it flashes to crazy frog
<bcrumb> on srs bzns, i support my wifi working is enough to prove that ALL the new firmware is working... I guess? but if not, plox advise on a test to see if this is true
<bcrumb> i will then i guess polish this thing out and publish files first somewhere, ask someone to review and then i can make the PKGBUILD
corion has quit [Quit: Page closed]
<bcrumb> btw, would theoretically my keyboard work if run_earlyhook (vendorfw extraction) did not happen before udev?
<bcrumb> so, not work
<bcrumb> i did try once without hook and the keyboard was just dead, so i suppose
<j`ey> keyboard shouldnt require fw
<bcrumb> right.
bcrumb has quit [Quit: WeeChat 3.7.1]
alex_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamespmorgan has joined #asahi
giskard has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jamespmo_ has quit [Ping timeout: 480 seconds]
vx has quit [Quit: G-line: User has been permanently banned from this network.]
vx has joined #asahi
jacksonchen666 has joined #asahi
tanty has quit []
chengsun has joined #asahi
tanty has joined #asahi
tanty has quit []
tanty has joined #asahi
bcrumb has joined #asahi
<bcrumb> this is still configured for my local, but the files are there
SSJ_GZ has quit [Ping timeout: 480 seconds]
goldsoultheory has joined #asahi
jamespmo_ has joined #asahi
yamii has quit [Ping timeout: 480 seconds]
jamespmorgan has quit [Ping timeout: 480 seconds]
<bcrumb> marcan: tagging on this, here's also the above pull in combo with this https://github.com/AsahiLinux/asahi-scripts/pull/20
<bcrumb> *old pull that i needed to sign off, which i did
bcrumb has quit [Quit: WeeChat 3.7.1]
Brainium has joined #asahi
artemist has quit [Ping timeout: 480 seconds]