#
…

2022-01-29

00:06FireFox317 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
00:07FireFox317 has joined #asahi-dev
00:23chadmed has quit [Remote host closed the connection]
00:48chadmed has joined #asahi-dev
01:48chadmed has quit [Read error: No route to host]
02:13chadmed has joined #asahi-dev
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi-dev
03:13PhilippvK has quit [Ping timeout: 480 seconds]
03:25kov has quit [Quit: Coyote finally caught me]
03:25kov has joined #asahi-dev
04:01tpw_ruleswhat is the timeline like on a 4k kernel? i found another big thing that is broken by 16k pages an am wondering if it's worth getting a patch in nixos...
04:02chadmedim actually building a 4k kernel to test as we speak
04:03Jamie[m]1I'd appreciate a patch in nixos tpw
04:04Jamie[m]1I'd like to run a 16k system indefinitely if possible
04:04tpw_rulesJamie[m]1: well presumably upstream will fix it eventually. it's just that i think this will have to go to staging, and would be a bit of a hack
04:05tpw_rulesi am sad because nix just gained the ability to bootstrap on 16k like yesterday...
04:05tpw_ruleschadmed: so does this mean someone wrote the necessary patches?
04:06chadmedthe DART driver has had 4k support for a while afaik
04:06chadmednot sure if its been tested thoroughly but i plan on changing that over the next few days
04:07tpw_ruleslet me flip the switch and see what happens
04:07chadmedpretty sure theres nothing else that needs patching to explicitly support 4k pages
04:07chadmedwe will find out i guess :)
04:09chadmedive been in the process of decommissioning my old build machine and havent replaced it yet so im building on my 2017 13" mbp so this is gonna take a while but ill give an update when i get it booted on the j314s
04:09tpw_rulesi'lll be done in a couple minutes
04:10chadmedi really shouldnt have offloaded my 5600x so soon :P
04:13tpw_rulesit boots but usb doesn't seem to work
04:14tpw_rulesi think the problem is IOMMU, not DART
04:16abbas_faiz[m] has joined #asahi-dev
04:18tpw_rulesethernet does not appear to work either, which also needs the IOMMU functioning
04:18tpw_rulesso no 4k kernel yet
04:19tpw_rulesnvme and the display work fine though
04:19tpw_ruleson m1 mini
04:42chadmedshould probably add a note on that somewhere in the wiki since 4k pages will be essential for amd64 binary translation
04:43tpw_rulesit is being worked on, i don't remember quite by whom
04:43tpw_rulesbut afaik the intention is to ship asahi linux with a 4k kernel by default
04:45chadmedand even if we dont, distros certainly arent going to be shipping 16k kernels on account of us
05:06chadmed has quit [Remote host closed the connection]
05:07chadmed has joined #asahi-dev
05:07chadmed has quit []
05:09chadmed has joined #asahi-dev
06:22Glanzmanntpw_rules: WIth a 4k kernel you don't have PCIe IIRC. Ethernet and Usb is connected via PCIe IIRC.
06:27GlanzmannAt least some of the usb ports, maybe the usb-c work because they don't go through pcie.
06:27chadmedonly USB-A goes through PCIe on the M1 Mini
07:00mjg59 has quit [Remote host closed the connection]
07:09the_lanetly_052 has joined #asahi-dev
07:09jannaunothing has changed with wrt 4k support. the darts are configured to bypass mode with 4k page size
07:12jannauthat means hardware which which is behind by darts without bypass support (pice/thunderbolt) or locked (dcp) will not work
07:16jannauso display wise only the framebuffer works, okay for now on laptops and imacs, less so on the mac mini especially when using a monitor which is not full hd
09:49svenI have a patch series to actually support 4K page somewhere on the mailing list
09:50sveni need to get back to that one eventually
09:54povik(wanted to look at it so i looked it up)
10:19___nick___ has joined #asahi-dev
10:20___nick___ has quit []
10:21___nick___ has joined #asahi-dev
10:52chadmed has quit [Quit: Konversation terminated!]
10:53chadmed has joined #asahi-dev
14:19espo has joined #asahi-dev
14:49gladiac is now known as Guest1023
14:49gladiac has joined #asahi-dev
14:55Guest1023 has quit [Ping timeout: 480 seconds]
15:33kettenispovik: there is another "REG_SERDES_CHANMASK" register at offset 0x18 in the serdes block and if I poke that one I can manage to get data in TDM slot 1 and have "stereo" output on the speaker of the mini
15:35alyssaisn't it only a single speaker
15:35alyssahow does stereo work
15:36kettenisthe tas5770 speaker amplifier chip has a mode to mix the left and right channels into a single mono output
15:37alyssaah, neat
15:48povikkettenis: i know about the mask but i am not sure about its meaning
15:48povikor rather recently i learned that it behaves as if the actual mask was AND of the two masks
15:49povikso to get stereo on mca1, you had to clear a bit in the second mask that is otherwise left set by iboot
15:49povikthat's what happened, right?
15:51poviki ran into the same when simulating macbook air's speakers on mini
15:51povikand switching the speaker to be left/right based on the TDM slots it's sensitive to
15:52povikso in my local tree the MCA driver clears the second mask
15:52poviki am now experimenting with audio capture, there's two masks too, here it may be obvious what they do
15:55povikkettenis: i have m1n1.hw.mca with register definitions
15:55poviki plan to push it together with demo script for capture, once that's ready, but if it would be useful to you i can push it now
15:56the_lanetly_052__ has joined #asahi-dev
15:56chengsun has joined #asahi-dev
16:00kettenispovik: that would probably be helpful
16:02the_lanetly_052 has quit [Ping timeout: 480 seconds]
16:04kettenisnot all of the register definitions in mca.c on the asahi branch make sense to me
16:10povikkettenis: i am battling git, here it is in paste instead: https://tpaste.us/qP6B
16:11povikbut it should essentially be the same as in sound/soc/apple/mca.c, module the RX serdes registers
16:12povikanywhere where there's a cluster SEL it is the cluster no. plus one i think
16:13ketteniswith 0 meaning disabled probably
17:11the_lanetly_052__ has quit [Ping timeout: 480 seconds]
19:52Gaspare has joined #asahi-dev
19:59M1bn3mar[m] has joined #asahi-dev
20:24Gaspare has quit [Ping timeout: 480 seconds]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:43waagrr has quit [Ping timeout: 480 seconds]
22:49waagrr has joined #asahi-dev
23:02chadmed has quit [Read error: Connection reset by peer]
23:05chadmed has joined #asahi-dev
23:41tpw_rulessven: your 4k patches seem to still work on the latest asahi. i had to reorder the includes slightly to get it to apply though
23:51poviki had bit of fun finding which mmio ranges come alive as power domains get enabled one-by-one in a topological order
23:52povikpoint was to find AOP's MCA, because i didn't see it in DART nor DAPF
23:52povikbut it's there... :)
…