2022-10-18
00:04dgb has quit [Quit: dgb]
00:14thelounge7571340 has joined #asahi-dev
00:14thelounge7571340 has quit [Remote host closed the connection]
00:18Etrien has joined #asahi-dev
00:18Etrien_ has quit [Read error: Connection reset by peer]
00:20Etrien_ has joined #asahi-dev
00:20Etrien has quit [Read error: Connection reset by peer]
00:32Etrien_ has quit [Read error: Connection reset by peer]
00:32Etrien has joined #asahi-dev
01:22dgb has joined #asahi-dev
01:42kettenis has joined #asahi-dev
01:43thelounge7571340 has joined #asahi-dev
01:44thelounge7571340 has quit [Remote host closed the connection]
01:44kettenis_ has quit [Ping timeout: 480 seconds]
01:44amarioguy has joined #asahi-dev
01:57dd has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
02:10Etrien_ has joined #asahi-dev
02:10Etrien has quit [Remote host closed the connection]
02:15Etrien has joined #asahi-dev
02:18Etrien_ has quit [Ping timeout: 480 seconds]
02:20jluthra has quit [Remote host closed the connection]
02:20whistlingoat has joined #asahi-dev
02:20jluthra has joined #asahi-dev
02:25thelounge7571340 has joined #asahi-dev
02:26thelounge7571340 has quit [Remote host closed the connection]
02:41amarioguy has quit [Remote host closed the connection]
02:57whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
02:57dgb has quit [Quit: dgb]
02:59whistlingoat has joined #asahi-dev
03:08amateurece has quit [Remote host closed the connection]
03:28thelounge7571340 has joined #asahi-dev
03:29thelounge7571340 has quit [Remote host closed the connection]
03:45pthariensflame has joined #asahi-dev
03:50whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
03:52whistlingoat has joined #asahi-dev
03:54pthariensflame has quit [Remote host closed the connection]
03:54pthariensflame has joined #asahi-dev
03:54whistlingoat has quit []
03:54pthariensflame has quit []
03:59rickybobby23 has joined #asahi-dev
03:59whistlingoat has joined #asahi-dev
04:00rickybobby23 has quit [Remote host closed the connection]
04:01Etrien_ has joined #asahi-dev
04:08Etrien has quit [Ping timeout: 480 seconds]
04:15whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
04:16whistlingoat has joined #asahi-dev
04:21rickybobby23 has joined #asahi-dev
04:32rickybobby23 has quit [Remote host closed the connection]
04:33marcanpovik: the PA thing was a PA bug as far as I can tell (regression as of dec 2021). there was also a cs42l84 bug I just fixed (see bits branch)
04:34marcanalso the UCM config for the Mac Studio needs a fix (ASI stuff should only be set inside the conditional for speakers present)
04:40SSJ_GZ has joined #asahi-dev
04:40Etrien__ has joined #asahi-dev
04:41Etrien_ has quit [Ping timeout: 480 seconds]
04:47thelounge7571340 has joined #asahi-dev
04:47thelounge7571340 has quit [Remote host closed the connection]
04:54rickybobby23 has joined #asahi-dev
04:56rickybobby23devmem2 crashes my box -- anything I can do to help debug?
04:59whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
05:00marcanapple silicon platforms require device-nGnRnE mappings for IO, it cannot be done with mmap
05:01rickybobby23Wow til.
05:01rickybobby23Would a patch for a guard be of interest? Ie so the system doesn't totally freeze
05:02marcannot really, if you enable devmem its user is supposed to be able to kill the system by design
05:07rickybobby23Fair enough, except that whereas on another system, there are commands that wouldn't crash things -- here it seems virtually anything will crash the system
05:07rickybobby23ie devmem2 commands
05:07rickybobby23I'm not an expert on linux apis though so take with grain of salt
05:08marcanI'm not entirely sure how the VM / devmem system picks IO mapping modes, but since these SoCs actually require different modes for different things (some PCIe stuff needs to be nGnRE), it would require a UAPI change to expose this via mmap and a change in devmem to let you specify that, to support it properly
05:09marcanif you want to play around with device registers, that's what m1n1 is for (which using the hypervisor you can even do while linux is running)
05:15rickybobby23 has quit [Quit: Igloo IRC: https://iglooirc.com]
05:17whistlingoat has joined #asahi-dev
05:17marcanlooks like they left, but actually it looks like the devmem path does use nGnRnE? so it probably should work for real MMIO?
05:18Etrien has joined #asahi-dev
05:23marcanI tried it, it actually should work as far as I can tell, other than not being able to specify 32 bits and the vast majority of MMIO being 32-bit only
05:25Etrien__ has quit [Ping timeout: 480 seconds]
05:51thelounge7571340 has joined #asahi-dev
05:53thelounge7571340 has quit [Remote host closed the connection]
05:54Etrien has quit [Read error: Connection reset by peer]
05:54Etrien has joined #asahi-dev
05:54Core9066 has quit [Remote host closed the connection]
05:56ella-0_ has joined #asahi-dev
05:58Etrien_ has joined #asahi-dev
05:59ella-0 has quit [Read error: Connection reset by peer]
06:02Etrien has quit [Ping timeout: 480 seconds]
06:07chadmed has joined #asahi-dev
06:22dd has joined #asahi-dev
06:35Etrien_ has quit [Read error: Connection reset by peer]
06:35Etrien has joined #asahi-dev
06:36_jannau_asahi-6.0-rc6-1 contained sound/6.1 for dependencies. that was probably around 200 commits
06:36chadmed has quit [Quit: Konversation terminated!]
06:37chadmed has joined #asahi-dev
06:38chadmed has quit []
06:38marcanthat said, please test since I intend to go into upstreaming mode again after this release is pushed to users
06:39chadmed has joined #asahi-dev
06:41_jannau_I managed with the kde volume applet to set voulme one point quieter on the right channel
06:43chadmeducm stuff still borked with pipewire but i can live without it for now until we work out whats going on there
06:47chadmedyeah i noticed that, samples are still going through at ~half the speed they should even when everythings clamped to 96kHz
06:47_jannau_I count 199 patches on top of v6.0-rc6 ignoring patches in asoc-6.1 (which probably misses a few patches we would have carried)
06:56sventps6598x_exec_cmd possibly. it seems to poll for command completion instead of relying on the irq e.g.
07:05chadmed has quit [Quit: Konversation terminated!]
07:06povik06:55 <@marcan> povik: let me know if you want to move the ucm repo under the org so we can both push :)
07:06chadmed has joined #asahi-dev
07:07thelounge7571340 has joined #asahi-dev
07:08thelounge7571340 has quit [Remote host closed the connection]
07:09poviki pushed the 'Transfer' button, at first it seemed like i don't need any permissions on the target side, just that the new owner will need to approve it
07:10povikmarcan: feel free to create it under AsahiLinux and push the current contents, giving me push permission
07:14chadmedthe failure mode re samples being messed up does resemble that. i did some testing with various mclk values when they were still in the DT and the same thing happened back then
07:26povikchadmed: earlier, when you opened it for 32 channels, you got the 'digital noise' sounds because it was misconfigured at MCA level -- the no. of channels couldn't be supported under the TDM parameters commanded to MCA by the machine driver, so it scrambled the samples across channels
07:27poviknow MCA constrains the no. of channels so it can't enter the digital noise failure mode, but it doesn't all need to be usable channels
07:30whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
07:31povikchadmed: you can open it for two more channels, but it shouldn't be outright broken like before
07:33chadmedpipewire can do enough to route the convolvers to their correct channels, but those two extra phantom ones still seem to be blowing something up
07:41the_lanetly_052 has joined #asahi-dev
07:44svenjannau: can you try to put the sleep into that loop here? https://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/usb/typec/tipd/core.c#L316
07:46svenif that works we should enable the command completed interrupt and use that instead of the busy loop
08:18thelounge7571340 has joined #asahi-dev
08:20thelounge7571340 has quit [Remote host closed the connection]
08:35MajorBiscuit has joined #asahi-dev
08:54chadmed has quit [Quit: Konversation terminated!]
09:22thelounge7571340 has joined #asahi-dev
09:23thelounge7571340 has quit [Remote host closed the connection]
09:44espo has joined #asahi-dev
09:45bluetail has quit [Ping timeout: 480 seconds]
10:26thelounge7571340 has joined #asahi-dev
10:27thelounge7571340 has quit [Remote host closed the connection]
10:40kov has quit [Quit: Coyote finally caught me]
10:44bluetail has joined #asahi-dev
11:00bluetail has quit [Quit: The Lounge - https://thelounge.chat]
11:03bluetail has joined #asahi-dev
11:03bluetail has quit []
11:05bluetail has joined #asahi-dev
11:06amarioguy has joined #asahi-dev
11:07bluetail has quit []
11:08bluetail has joined #asahi-dev
11:23marcan... I basically had to implement a pile of features that bcmdhd supports, because I guess the broadcom guys are too lazy to actually maintain the upstream Linux driver to modern features
11:25marcanso far I don't think we've implemented *any* apple-only features whatsover, in the entire pcie series
11:25kov has joined #asahi-dev
11:26marcanmaz: btcoex? no, that's actually already working I think, but I think it needs a change on the *BT* side to mark audio connections are prioritized first
11:27marcanthe funny btcoex stuff does seem to be apple-exclusive, but when I tried to implement it it didn't help much, so I think we really need the BT side flag first
11:29mazmarcan: ah, yes, that's how it's actually called. yeah, I expect it to be a two-way thing. I bet this stuff only exists in Android otherwise...
11:30marcanapple actually sends wifi commands when the BT side starts streaming, which is going to be... fun to wire up
11:36thelounge7571340 has joined #asahi-dev
11:37thelounge7571340 has quit [Remote host closed the connection]
11:47svenif anyone else wants to take a look at it: you can use PacketLogger from the additional XCode tools to trace all bluetooth commands from inside macos
11:47sventhen there's https://github.com/seemoo-lab/internalblue/blob/master/internalblue/hci.py which contains a list of essentially all vendor specific commands that existed a few years ago
11:48svenso the initial hack is probably to sniff BT traffic inside hci_bcm4377 and just inject that command before the audio stream starts
12:11FoxboronAll the mkinitcpio patches Asahi is using, is everything upstreamable? are they submitted?
12:19_jannau_Foxboron: I think there's only a single patch which is as patch in the archlinux arm pkgbuild. It is ignored upstream since march
12:21FoxboronI'm asking because I'm aware of the upstream issue and probably going to solve that soon'ish
12:21FoxboronBut i saw this as well; https://github.com/AsahiLinux/mkinitcpio/commit/0e54169d37485a0298535d9ac53055950e1d1382
12:32bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:42_jannau_compression support isn't that important to us anymore since we ship uncompressed kernels for sd-boot compatibility
12:48thelounge7571340 has joined #asahi-dev
12:50thelounge7571340 has quit [Remote host closed the connection]
12:52ecurtin has joined #asahi-dev
12:59bisko has joined #asahi-dev
13:09bisko has quit [Ping timeout: 480 seconds]
13:22marcanpushed the wifi S3 fixes to asahi-wip and the bits branch. I'm not going to enable suspend in the arch kernel yet, but feel free to try it if you're building your own kernels.
13:23marcanhttps://gist.github.com/marcan/bdeb06fd3048481f88490870bf361ff5 <- how it looks on an m1 mini
13:24marcanpovik: I suspect the mca errors are because the clocks are off? we might have to add code to mca to bring up clocks (dummy ones) around rpm resume so the power states can change properly, or otherwise change the pmgr code so it doesn't complain about this particular case
13:25sven nvme-apple 27bcc0000.nvme: RTKit: Unknown system endpoint: 0x0a <-- huh, looks like at some point they updated the ANS firmware and it also got that endpoint
13:27joske has joined #asahi-dev
13:27marcanbtw, the wifi stuff is 8 new patches because I broke it up, but given my previous experience upstreaming this stuff, I'm tempted to squash them into 2 or so...
13:28marcansince upstream net apparently doesn't like reviewing "big" patch series, where "big" refers exclusively to the number in the subject line
13:28joske has quit []
13:31joske has joined #asahi-dev
13:35SSJ_GZmarcan: Great work, as always :) Are there any figures on s2idle power-savings e.g. using a watt-meter, or somesuch?
13:36marcanhaven't tested, honestly I don't expect much on laptops because I think the biggest power hogs are probably CPU and display scanout (which don't change)
13:36marcanthe main benefit right now is knowing that the system is actually forced to be idle, instead of hoping apps aren't eating CPU
13:38marcanand honestly that will always be the main benefit, because s2idle by *definition* provides zero power saving over an idle system, because an idle system is already supposed to save power
13:38marcanthere is "real" full sleep mode on these machines, but I think it won't save that much power, not enough for us to bother with it for a while
13:39marcanthere are much bigger things to fix first that will make the overall machines and s2idle more efficient
13:41amarioguy2 has joined #asahi-dev
13:50thelounge7571340 has joined #asahi-dev
13:50thelounge7571340 has quit [Remote host closed the connection]
13:52joske has quit [Read error: Connection reset by peer]
13:55axboe has joined #asahi-dev
13:57_jannau_Foxboron: I think it's PE executable embedded compressed data. not sure if compressed offset/size are at constant offsets. it's probably harder to parse compressed kernels
13:59pthariensflame has joined #asahi-dev
14:00bluetail has quit [Quit: The Lounge - https://thelounge.chat]
14:02Gaspare has joined #asahi-dev
14:03pthariensflame has quit []
14:03bluetail has joined #asahi-dev
14:03bluetail has quit []
14:04bluetail has joined #asahi-dev
14:20amarioguy2 has quit [Ping timeout: 480 seconds]
14:22amarioguy2 has joined #asahi-dev
14:31atipls has joined #asahi-dev
14:34gladiac has joined #asahi-dev
14:36bluetail has quit [Quit: The Lounge - https://thelounge.chat]
14:36amarioguy2 has quit [Ping timeout: 481 seconds]
14:40amarioguy2 has joined #asahi-dev
14:45espo has quit [Quit: zzz]
14:51thelounge7571340 has joined #asahi-dev
14:53thelounge7571340 has quit [Remote host closed the connection]
14:57bluetail has joined #asahi-dev
15:01amarioguy2 has quit [Ping timeout: 480 seconds]
15:03isinyaaa has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
15:03isinyaaa has joined #asahi-dev
15:06amarioguy2 has joined #asahi-dev
15:25atipls has quit [Quit: My laptop probably went to sleep.]
15:33bisko has joined #asahi-dev
15:42Gaspare has quit [Quit: Gaspare]
15:54thelounge7571340 has joined #asahi-dev
15:55thelounge7571340 has quit [Remote host closed the connection]
16:10povikmarcan: that's right, it's because the clocks are off. but why does it want to switch on those power domains?
16:16MajorBiscuit has quit [Ping timeout: 480 seconds]
16:20amarioguy2 has quit [Ping timeout: 480 seconds]
16:20amarioguy2 has joined #asahi-dev
16:25ljs has joined #asahi-dev
16:34Gaspare has joined #asahi-dev
16:36ljs has quit [Remote host closed the connection]
16:36ljs has joined #asahi-dev
16:39whistlingoat has joined #asahi-dev
16:41derzahl has joined #asahi-dev
16:46joske has joined #asahi-dev
16:48Gaspare has quit [Quit: Gaspare]
16:48sven[ 36.083214] apple-dcp 231c00000.dcp: RTKit: syslog message: entSource_rtkit.cpp:105: [AFK][AFKTimerEventSource:0xffffffff40fa85c8] worker <-- at least the AFK/EPIC stuff is finally working :)
16:51Gaspare has joined #asahi-dev
16:55joske has quit [Ping timeout: 480 seconds]
16:57thelounge7571340 has joined #asahi-dev
16:57thelounge7571340 has quit [Remote host closed the connection]
17:08whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
17:33ljs has quit [Remote host closed the connection]
17:51amarioguy2 has quit [Ping timeout: 480 seconds]
17:53amarioguy2 has joined #asahi-dev
18:07espo has joined #asahi-dev
18:08bisko has quit [Read error: Connection reset by peer]
18:09bisko has joined #asahi-dev
18:14___nick___ has joined #asahi-dev
18:14___nick___ has quit []
18:16___nick___ has joined #asahi-dev
18:18bluetail has quit [Ping timeout: 480 seconds]
18:27thelounge7571340 has joined #asahi-dev
18:27thelounge7571340 has quit [Remote host closed the connection]
18:32jluthra has quit [Remote host closed the connection]
18:32jluthra has joined #asahi-dev
18:32Gaspare has quit [Quit: Gaspare]
18:36the_lanetly_052 has quit [Ping timeout: 480 seconds]
18:38dd_ has joined #asahi-dev
18:39derzahl has quit [Ping timeout: 480 seconds]
18:39dd has quit [Quit: Textual IRC Client: www.textualapp.com]
18:43espo has quit [Quit: nyaa~]
18:50thelounge7571340 has joined #asahi-dev
18:51thelounge7571340 has quit [Remote host closed the connection]
18:51derzahl has joined #asahi-dev
18:58Gaspare has joined #asahi-dev
19:04ljs has joined #asahi-dev
19:13Gaspare has quit [Quit: Gaspare]
19:17ljs has quit [Remote host closed the connection]
19:25King_InuYashamarcan: gently pinging about asahi-scripts PRs again
19:26Gaspare has joined #asahi-dev
19:27jannaunot using the keyboard as wakeup source but also not powring it down has has unexpected results
19:28dd_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:30mpsjannau: keyboard doesn't wake up but power switch does. I will left it in suspend mode over night to see battery status in morning
19:34jannauI was verifying that keyboard input doesn't wake and did tenths of keypresses which filled the password prompt after waking
19:34ChaosPrincessisnt there some sort of a gpio pin connected to the kb in order to allow wakeup?
19:36jannauI think we're currently not not powering the keyboard down so we could just wakeup on a keypress
19:37jannausmc needs to have a gpio or similar for any keypress for the annoying feature of powering the laptops on on a keypress
19:39bisko has quit [Remote host closed the connection]
19:40kettenisbut that'll likely need some driver support all the drivers that are involved (pinctrl, spi, keyboard)
19:40bisko has joined #asahi-dev
19:56amarioguy2 has quit [Ping timeout: 480 seconds]
19:59dd has joined #asahi-dev
20:04gladiac has quit [Quit: k thx bye]
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:15kloenk has quit [Remote host closed the connection]
20:16thelounge7571340 has joined #asahi-dev
20:16kloenk has joined #asahi-dev
20:16chipxxx has quit [Ping timeout: 480 seconds]
20:16kettenisprobably preferable if you intend to support proper suspend to RAM at some point in the future
20:16thelounge7571340 has quit [Remote host closed the connection]
20:36ecurtin has quit [Quit: Connection closed for inactivity]
20:38amarioguy2 has joined #asahi-dev
20:49ljs has joined #asahi-dev
21:09abby has joined #asahi-dev
21:09bisko has quit [Read error: Connection reset by peer]
21:11bisko has joined #asahi-dev
21:13IcaroDextris has joined #asahi-dev
21:21Gaspare has quit [Quit: Gaspare]
21:21thelounge7571340 has joined #asahi-dev
21:22thelounge7571340 has quit [Remote host closed the connection]
21:29bluetail has joined #asahi-dev
21:34Gaspare has joined #asahi-dev
21:49ljs has quit [Remote host closed the connection]
21:57SSJ_GZ has quit [Ping timeout: 480 seconds]
22:24Gaspare has quit [Quit: Gaspare]
22:27amarioguy2 has quit [Ping timeout: 480 seconds]
22:29thelounge7571340 has joined #asahi-dev
22:30thelounge7571340 has quit [Remote host closed the connection]
22:31amarioguy2 has joined #asahi-dev
22:46Etrien_ has joined #asahi-dev
22:50Etrien has quit [Ping timeout: 480 seconds]
23:04derzahl has quit [Ping timeout: 480 seconds]
23:12derzahl has joined #asahi-dev
23:13derzahl has quit [Remote host closed the connection]
23:15dd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:18povik has quit [Ping timeout: 480 seconds]
23:34thelounge7571340 has joined #asahi-dev
23:34thelounge7571340 has quit [Remote host closed the connection]