#
…

2022-10-17

00:00kensan has joined #asahi-dev
00:08kensan has quit [Ping timeout: 480 seconds]
00:13adryzz has quit [Quit: .]
00:20thelounge7571340 has joined #asahi-dev
00:20thelounge7571340 has quit [Remote host closed the connection]
00:43amarioguy has quit [Ping timeout: 480 seconds]
01:13bluetail6 has joined #asahi-dev
01:20bluetail has quit [Ping timeout: 480 seconds]
01:20bluetail6 is now known as bluetail
01:25thelounge7571340 has joined #asahi-dev
01:25thelounge7571340 has quit [Remote host closed the connection]
01:46kensan has joined #asahi-dev
01:50bluetail has quit [Ping timeout: 480 seconds]
01:54kensan has quit [Ping timeout: 480 seconds]
02:14bluetail has joined #asahi-dev
02:28thelounge7571340 has joined #asahi-dev
02:28thelounge7571340 has quit [Remote host closed the connection]
03:38thelounge7571340 has joined #asahi-dev
03:38thelounge7571340 has quit [Remote host closed the connection]
04:11thelounge7571340 has joined #asahi-dev
04:11thelounge7571340 has quit [Remote host closed the connection]
05:14thelounge7571340 has joined #asahi-dev
05:15thelounge7571340 has quit [Remote host closed the connection]
05:34chadmed has joined #asahi-dev
05:37Dcow has joined #asahi-dev
05:41chadmed has quit [Quit: Konversation terminated!]
05:43chadmed has joined #asahi-dev
05:45Dcow has quit [Ping timeout: 480 seconds]
05:51chadmed has quit [Quit: Konversation terminated!]
05:51chadmed has joined #asahi-dev
05:57ella-0_ has joined #asahi-dev
05:58chadmed has quit [Quit: Konversation terminated!]
06:00ella-0 has quit [Read error: Connection reset by peer]
06:00chadmed has joined #asahi-dev
06:01chadmed has quit []
06:01rickybobby23 has joined #asahi-dev
06:02chadmed has joined #asahi-dev
06:03rickybobby23I'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.
06:05chadmed has quit []
06:06chadmed has joined #asahi-dev
06:11chadmed has quit [Quit: Konversation terminated!]
06:12chadmed has joined #asahi-dev
06:15chadmed has quit []
06:16chadmed has joined #asahi-dev
06:17kensan has joined #asahi-dev
06:17kensan has quit []
06:18thelounge7571340 has joined #asahi-dev
06:18thelounge7571340 has quit [Remote host closed the connection]
06:21rickybobby23 has quit [Quit: Igloo IRC: https://iglooirc.com]
06:22rickybobby23 has joined #asahi-dev
06:24chadmed has quit [Quit: Konversation terminated!]
06:25chadmed has joined #asahi-dev
06:27rickybobby23 has quit []
06:30chadmed has quit []
06:31chadmed has joined #asahi-dev
06:37chadmed has quit [Quit: Konversation terminated!]
06:38chadmed has joined #asahi-dev
06:42bluetail3 has joined #asahi-dev
06:43chadmed has quit [Quit: Konversation terminated!]
06:43bluetail has quit [Ping timeout: 480 seconds]
06:43bluetail3 is now known as bluetail
06:44chadmed has joined #asahi-dev
06:45chadmedpovik: could the dapm null pointer deref be caused by the driver catching the jack unplug irq before cs42l84_component_probe() has run?
06:51SSJ_GZ has joined #asahi-dev
06:51chadmedjudging by dmesg output, that seems to be what is happening
06:59chadmed has quit [Quit: Konversation terminated!]
07:09povikchadmed: yes, that's what's happening
07:09povikcomponent_probe is called when the codec is being bound to a sound card
07:10povikwe need to revert "ASoC: cs42l84: Hand over HSBIAS power management to DAPM"
07:11poviki tried to find some other way yesterday but all brought in too many complications
07:22thelounge7571340 has joined #asahi-dev
07:22thelounge7571340 has quit [Remote host closed the connection]
07:51dgb has quit [Quit: dgb]
08:04Etrien has joined #asahi-dev
08:32svenrickybobby23: I mean.. "writing to a random memory address" sounds like a recipe for crashing the SoC
08:36mazdevmem is, in general, a recipe for disaster...
08:42MajorBiscuit has joined #asahi-dev
08:45thelounge7571340 has joined #asahi-dev
08:45thelounge7571340 has quit [Remote host closed the connection]
08:56ella-0_ is now known as ella-0
09:48j`eypovik: markan is merging stuff now, do you have the updated i2c patch?
09:49thelounge7571340 has joined #asahi-dev
09:49thelounge7571340 has quit [Remote host closed the connection]
09:50povikso soon?
09:50poviki would have more to merge but i would like to test it first
09:52povikanyway amarioguy posted the patch yesterday
09:52povikthe first and last two patches of https://github.com/povik/linux/commits/cs42l84-fixes are good to go
09:52marcanyeah I just merged the i2c one
09:52povikthat is all that doesn't have HSBIAS in title
09:53marcancherry-picked :)
09:53povikfine :)
09:54j`eymarcan: forgetting to merge in gpu/omg-it-works
09:55povikthis one would make chadmed happy but i haven't had the chance to test it yet: https://tpaste.us/9bBZ
09:56Dementor7 has joined #asahi-dev
09:57povikmarcan: we should remove all cs42l42 compatibles if you haven't done so already
09:57povikjannau has a patch for it, let me find it
09:58marcanalready did it :)
09:58marcansed + git autofixup
09:58j`eypovik: so it turned out to be a different chip? or it wasnt as compatible as first thought?
09:59povikit's 99% compatible but it has a different default on one register
09:59povikso this is the cleanest way about it
10:00j`eyoh I see!
10:00povikit's more than the devid
10:01povikhere, this is what all the trouble was about :p
10:02j`eypovik: a whole driver for one line1
10:02povikmarcan: i linked it
10:02Dementor has quit [Ping timeout: 480 seconds]
10:02Dementor7 is now known as Dementor
10:02poviki would chance it
10:03povikdamn you sublime text!
10:03povikleaving all those spaces around
10:07Dementor has quit [Quit: The Lounge - https://thelounge.chat]
10:07Dementor has joined #asahi-dev
10:08_jannau_update seems to have lost a clk_*_add_action
10:14suricat0 has joined #asahi-dev
10:17povik^-- this improves the message on opening an unrouted PCM
10:17povikpeople have been running into it a lot lately
10:35suricat0 has quit [Quit: Konversation terminated!]
10:37povik^ disregard
10:37povikthis one enables regcache on cs42l84: https://tpaste.us/X0je
10:37povikit's tested. now i will stop posting patches
10:38j`eypovik: it has commented out code?
10:38povikthat's alright
10:38povikit's there to be filled in later
10:39povikbut i can't set the empty regdefaults or the regcache core complains
10:52thelounge7571340 has joined #asahi-dev
10:53thelounge7571340 has quit [Remote host closed the connection]
10:57povikmarcan: i would have two more if you can squeeze them in
10:57poviksee above
11:19Dcow has joined #asahi-dev
11:22Dcow has quit [Remote host closed the connection]
11:35marcan[ 11.644939] cs42l84 2-004b: Runtime PM usage count underflow!
11:35marcan[ 11.645646] apple-mca 39b600000.mca: Runtime PM usage count underflow!
11:35marcan[ 11.646455] snd-soc-dummy snd-soc-dummy: Runtime PM usage count underflow!
11:35marcanpovik: ^
11:35povikhuh what's that
11:35marcanI might have more debug enabled
11:35marcanalso I just turned on sleep support in .config which might invoke more rpm stuff
11:36Dementor has quit [Remote host closed the connection]
11:36Dementor has joined #asahi-dev
11:55povikfix in broonie/sound for-next
11:56povikor rather a revert
11:56Core8020 has joined #asahi-dev
11:57amarioguy has joined #asahi-dev
12:00Core9066 has quit [Ping timeout: 480 seconds]
12:05thelounge7571340 has joined #asahi-dev
12:06thelounge7571340 has quit [Remote host closed the connection]
12:10amarioguy has quit [Ping timeout: 480 seconds]
12:18chip_x has joined #asahi-dev
12:20marcanthat seems wrong, it should be put in as a fix for the current cycle
12:22marcanah, it is in for-6.1 also
12:24chipxxx has quit [Ping timeout: 480 seconds]
12:24Core9066 has joined #asahi-dev
12:28Core8020 has quit [Ping timeout: 480 seconds]
12:40jannauwow, running kcalc in the background uses ~6W
12:41jannauremaining battery trippled from almost trippled from ~4h to 12h
12:42marcanyeah, half the battle for battery efficiency is fixing bad userspace...
12:42jannaumore than 9W vs. 3W and a noticeable warm macbook
12:43marcan(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)
12:44jannauI'm mostly astounded that there's still such broken user space
12:49jannaulooks like it re-renders constantly
12:54marcansent an email about the bcm4355 confusion
12:58amarioguy has joined #asahi-dev
13:03marcankettenis: 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.
13:06kettenisyes, I have cpufreq
13:07kettenisbut if the compatible changed, it should be ok (you just don't get cpufreq)
13:07marcanif your users don't mind that, sure
13:08kettenisif both ways can be kept in what we ship in the "stadard uefi" option of the asahi installer that would be good
13:08kettenissince the 7.2 release has been made
13:09marcanI think I can do that (I might just keep that in our main tree anyway, for simplicity, as an extra patch)
13:10kettenisI may hold off switching to the new bindings until it has been accepted upstream
13:10marcanyes, that's fine. I intend to submit it as soon as it gets a bit of testing
13:10marcanand hopefully this one will be accepted (it doesn't really get any cleaner than this)
13:13thelounge7571340 has joined #asahi-dev
13:14thelounge7571340 has quit [Remote host closed the connection]
13:17Core1863 has joined #asahi-dev
13:19mpsdid anyone enabled MGLRU in new kernel? is it ok to enable it for asahi kernel
13:20mpsoh sorry
13:20mpsit is LRU_GEN
13:21Core9066 has quit [Ping timeout: 480 seconds]
13:23marcanpovik: the unrouted device error is very spammy, is there some way we can outright disable the secondary device when the speakers are disabled?
13:23marcanpushed new kernel & m1n1 to asahi-dev
13:24_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
13:25marcan_jannau_: it's in asahi-dev
13:25marcansmoke tested on M1MBA
13:25povikmarcan: it's those pesky sound servers trying to open the devices in a loop
13:25marcanpovik: yeah, but the kernel shouldn't expose devices and then fail when you open them
13:25marcan(loudly, at that)
13:26marcaneither the error needs to be silenced or the device outright removed
13:26povikbut the failure is a function of sound card controls
13:26_jannau_error should probably be ratelimited
13:26marcanthen it should just not log
13:26marcanor only log once
13:26povikit can't be removed/added dynamically as far as i know
13:26bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:26povikwe can log once, but ASoC will print cryptic messages anyway
13:26marcanyeah, so that needs a change in ASoC then :)
13:27povikprobably
13:27marcanif 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
13:27marcanbut if this will persist after the speakers are done properly, then it needs to be fixed some way
13:27povikno, it can happen with speakers too
13:27marcanthen yeah, we need a solution
13:27poviksince you can have the speakers and headphone both on primary
13:28povikthen opening the secondary raises that error
13:29Core1863 has quit [Ping timeout: 480 seconds]
13:30marcangoing to upgrade my build machine then see if I can get Rust into the kernel in the PKGBUILD (because lina)
13:30povikmarcan: anyway you should never get the error having the ucm installed
13:30poviki think it's time we take up the package in reference distro
13:30marcanyeah, need to package that too
13:30DarkShadow44 has quit [Quit: ZNC - https://znc.in]
13:31DarkShadow44 has joined #asahi-dev
13:31marcanin it goes then!
13:32_jannau_tags in the repo would be nice and we might want to move the repo to AsahiLinux/
13:35seb4nihel has joined #asahi-dev
13:37marcanyeah, we can move it if povik is okay with that
13:37poviki am thinking of a tag scheme i should use
13:38povikone option is: minimal compatible asahi kernel tag + revision under that
13:38povikbut maybe that's too much, it should be easy keeping the config widely compatible if we need to change something down the line
13:38poviksince you can check for existence of controls, have conditional declarations and what not
13:38_jannau_just using v0.1 and v0.2 like I did with the pkgbuild would be fine imo
13:39povikprobably, i prefer plain vN in that case
13:40_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
13:40marcanpovik: jack didn't work out of the box here with UCM, "Jack Mixer" needs to be turned up
13:40povikmarcan: that's m1 machine with cs42l42, right?
13:40poviki meam cs42l83
13:40marcan42l83, yes
13:41povikhuh, wonder what's going wrong there, it works on mac mini for me
13:41povikwhat is the machine specifically? maybe the ucm doesn't get discovered at all
13:44poviki checked the name of the .conf but it matches the card model in DT exactly
13:44povikif you send a log from pulseaudio or similar i will look at it
13:44marcanalsaucm does show the config
13:47marcanwait now it works after a pulse restart?
13:47marcan(but I rebooted the whole machine...)
13:51marcanit doesn't work if pulse starts with the jack unplugged
13:51marcan"driver does not support hardware volume control" it claims
13:54amarioguy has quit [Ping timeout: 480 seconds]
13:55bisko has joined #asahi-dev
13:55marcanah, a hotplug breaks it too
13:55marcanso it only works if I start pulse with the jack in
13:56derzahl has quit [Read error: No route to host]
13:56povikso as long as the jack was unplugged at any point it breaks?
13:57marcannot sure if UCM problem or PA bug?
13:57marcanI can try to debug this tomorrow if you want
13:58povikyeah, neither am i
13:58povikonly i had better experience running pulse + that UCM
13:58poviksure, if you can spare a moment debugging pulse, i will take it
14:00Major_Biscuit has joined #asahi-dev
14:01MajorBiscuit has quit [Read error: Connection reset by peer]
14:03bisko has quit [Ping timeout: 480 seconds]
14:03marcanoh, upstream rust support is x86-64 only, lol
14:03marcanwell, at least I got make rustavailable happy
14:03marcanwith arch linux rust packages even, yay
14:13j`eymarcan: the change in cpufreq header today gives: ./include/linux/cpufreq.h:1162:9: warning: variable 'target_idx' is uninitialized when used here [-Wuninitialized]
14:13j`eyand indeed, its never set anymore
14:14j`eynot sure if this was accidental: - target_idx = ret;
14:15thelounge7571340 has joined #asahi-dev
14:16thelounge7571340 has quit [Remote host closed the connection]
14:17marcanj`ey: oh dur, that should just return 0 now
14:17marcanfixed in bits/ (and also something else)
14:28kettenisah, bad news, I added backwards compatibility for the old old cpufreq stuff to OpenBSD
14:28kettenisand the new cpufreq recycles the compatible property of the old old cpufreq
14:30marcanah, yeah, it does, because the model is closer to the old old cpufreq...
14:30ketteniswill have to test the consequences of providing both then...
14:31marcancan you see what the old code does with the new DTs? if it just fails with something we might be okay
14:35kettenisI think it will just fail, but I'm not 100% sure
14:43Major_Biscuit has quit []
14:43seb4nihel has quit [Remote host closed the connection]
14:43seb4nihel has joined #asahi-dev
14:46MajorBiscuit has joined #asahi-dev
14:47zzywysm has joined #asahi-dev
14:54chip_x has quit [Ping timeout: 480 seconds]
14:54MajorBiscuit has quit [Quit: WeeChat 3.6]
14:55MajorBiscuit has joined #asahi-dev
14:57seb4nihel has quit [Remote host closed the connection]
14:57seb4nihel has joined #asahi-dev
15:03kettenisI'll see if I can construct a frankenDTB to see what happens in reality
15:06seb4nihel has quit [Ping timeout: 480 seconds]
15:13XeR has quit [Read error: Connection reset by peer]
15:13XeR has joined #asahi-dev
15:18thelounge7571340 has joined #asahi-dev
15:18thelounge7571340 has quit [Remote host closed the connection]
15:40bisko has joined #asahi-dev
16:15MajorBiscuit has quit [Quit: WeeChat 3.6]
16:20thelounge7571340 has joined #asahi-dev
16:20thelounge7571340 has quit [Remote host closed the connection]
16:24gladiac has joined #asahi-dev
16:33Core9066 has joined #asahi-dev
16:33chip_x has joined #asahi-dev
16:51chip_x has quit [Read error: No route to host]
16:57seb4nihel has joined #asahi-dev
16:57Gaspare has joined #asahi-dev
16:59bluetail has quit [Quit: The Lounge - https://thelounge.chat]
17:01bluetail has joined #asahi-dev
17:22thelounge7571340 has joined #asahi-dev
17:22thelounge7571340 has quit [Remote host closed the connection]
17:41seb4nihel has quit [Quit: Leaving]
18:24thelounge7571340 has joined #asahi-dev
18:26thelounge7571340 has quit [Remote host closed the connection]
18:46kensan has joined #asahi-dev
19:15kensan has quit [Quit: leaving]
19:23gladiac has quit [Quit: k thx bye]
19:26thelounge7571340 has joined #asahi-dev
19:26whistlingoat has joined #asahi-dev
19:26thelounge7571340 has quit [Remote host closed the connection]
19:38jluthra has quit [Remote host closed the connection]
19:38jluthra has joined #asahi-dev
19:45kettenisok, the frankenDTB doesn't make the kernel explode, but it does break the code that changes the CPU frequency
19:45kettenisso from an OpenBSD standpoint there is no benefit in trying to provide a backwards compatible DTB
19:57jannauthe kcalc energy use is clearly a bug. It gets constantly resizeEvents and redraws itself. bug filed in kde's bugzilla
20:13alyssa has quit [Quit: leaving]
20:28thelounge7571340 has joined #asahi-dev
20:29thelounge7571340 has quit [Remote host closed the connection]
20:29kensan has joined #asahi-dev
20:30amarioguy has joined #asahi-dev
20:42amarioguy has quit [Remote host closed the connection]
20:49jannauI'm seeing tps6598x issues with v6.1.0-rc1-asahi-1 http://paste.debian.net/1257408/
20:51jannaureproducible with disconnecting a usb-c charger
20:57svenugh… I thought we fixed that at some point
20:59jannaualso reproducible with an usb device on the UART enabled port, could be random
21:00jannauI can't remember when I saw that the last time. obvious change in the kernel is i2c irq support
21:02zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:03j`eyno changes to drivers/usb/typec/tipd/ between 6.0-rc6 and 6.1-rc1
21:04ChaosPrincessis 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.
21:04zzywysm has joined #asahi-dev
21:05kensan has quit [Ping timeout: 480 seconds]
21:05mpsChaosPrincess: from linux or macos?
21:05ChaosPrincesstrying from macos rn
21:06mpsthere is apfs driver for linux on github
21:06ChaosPrincessthe victim volume is the asahi container, so it is not mounted and shouldnt have filevault
21:07mpsmaybe this could help by reading code
21:07ChaosPrincessand it fails after loading the keybag
21:08mpsI can read apfs using linux-apfs-rw driver
21:08mpsmount, I mean
21:08ChaosPrincessok, ill look at it then.
21:13chipxxx has joined #asahi-dev
21:14Etrien_ has joined #asahi-dev
21:19Etrien has quit [Ping timeout: 480 seconds]
21:23jannauno longer reproducible with "i2c/pasemi: PASemi I2C controller IRQ enablement" reverted
21:31Etrien_ has quit [Read error: Connection reset by peer]
21:31Etrien has joined #asahi-dev
21:33thelounge7571340 has joined #asahi-dev
21:33svenhmmm… weird
21:34sven that commit still looks good to me
21:34thelounge7571340 has quit [Read error: Connection reset by peer]
21:34sveneven if the irq stuff doesn’t work at all it should just sleep 10 msec and then work like before
21:35whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
21:38jannauat least for the audio codec it is working. setting the volume got noticeable faster
21:40svenmaybe it’s too fast for the tps chips now? :D
21:49nsklaus_ has joined #asahi-dev
21:49nsklaus has quit [Read error: Connection reset by peer]
21:53kettenis_ has joined #asahi-dev
21:55kettenis has quit [Ping timeout: 480 seconds]
21:56kode54 has quit [Quit: The Lounge - https://thelounge.chat]
21:56kode54 has joined #asahi-dev
21:57jannauM2 has atcrt0 and atcrt1 on i2c2 with 'compatible = [atcrt]' but not much information to figure out what it is
22:00povik23:40 < sven> maybe it’s too fast for the tps chips now? :D
22:00povikthat is what i was thinking
22:01povikquick glance over the datasheet didn't find anything suspicious though
22:02jannausven: not reproducible with a single msleep(1); in the irq path so too fast looks like a valid theory
22:13Gaspare has quit [Quit: Gaspare]
22:21whistlingoat has joined #asahi-dev
22:28SSJ_GZ has quit [Ping timeout: 480 seconds]
22:31Core5347 has joined #asahi-dev
22:31manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
22:31manawyrm has joined #asahi-dev
22:36Core9066 has quit [Ping timeout: 480 seconds]
22:44dd has joined #asahi-dev
22:44blazra has quit [Ping timeout: 480 seconds]
22:47Core5347 has quit [Ping timeout: 480 seconds]
22:48Core9066 has joined #asahi-dev
22:55blazra has joined #asahi-dev
22:56Etrien_ has joined #asahi-dev
23:00Core9066 has quit [Ping timeout: 480 seconds]
23:02Etrien has quit [Ping timeout: 480 seconds]
23:03dgb has joined #asahi-dev
23:04blazra has quit [Ping timeout: 480 seconds]
23:09thelounge7571340 has joined #asahi-dev
23:10thelounge7571340 has quit [Remote host closed the connection]
23:20whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
23:20whistlingoat has joined #asahi-dev
23:23whistlingoat has quit []
23:28amateurece has joined #asahi-dev
23:42Core9066 has joined #asahi-dev
23:44whistlingoat has joined #asahi-dev
23:48whistlingoat has quit []
…