ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
<heli0s[m]> For the people in IRC that cannot see that I deleted the previous message, it was not spam. I just sent it to the wrong room by mistake. Sorry about that.
PaterTemporalis has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
mrkajetanp has quit [Ping timeout: 480 seconds]
hizon has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi-dev
mrkajetanp has joined #asahi-dev
<marcan> OMG
<marcan> bless --setBoot --device /dev/disk5s1
<marcan> this works
<marcan> in 12.3
<marcan> it used not to in 12.1
<marcan> we can get rid of the hideous boot picker nonsense
<marcan> ... change of plans, maybe 12.3 is going to be the minimal version now (or at least recommended for the installer)
<tpw_rules> and there was much rejoicing
<matthewayers[m]> marcan: reduce technical debt wherever possible?
<marcan> I ran into a failed race at least once so I was fearing guiding users through that problem
<marcan> let me see how this behaves without a boot policy... though we know we can create those with bputil anyway
tweets_so_fresh_ has joined #asahi-dev
<marcan> confirmed broken in 12.2.1
<marcan> 12.3 it is then!
balrog_ has quit [Ping timeout: 480 seconds]
balrog has joined #asahi-dev
<chadmed> and here i was reading phoronix article comments this morning from the usual naysayers over there with their "apples just luring you in so they can lock you out just you wait and see"
<chadmed> ok buddy seems like we will be waiting a long time for that!
<kode54> phoronix more like moronix
<chadmed> michael's articles are alright, but there are a few people who comment on every single apple article like "wow these machines look amazing but i hate them anyway because apple hates open source"
<chadmed> pay no mind to the fact that most of the articles are actually about how much progress is being made here
the_lanetly_052 has joined #asahi-dev
the_lanetly_052 has quit [Ping timeout: 480 seconds]
the_lanetly_052 has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
MajorBiscuit has quit []
MajorBiscuit has joined #asahi-dev
chadmed has quit [Ping timeout: 480 seconds]
chengsun_ has quit [Quit: Quit]
chengsun has joined #asahi-dev
kameks has joined #asahi-dev
ChaosPrincess has joined #asahi-dev
phiologe has joined #asahi-dev
XeR has quit [Remote host closed the connection]
XeR has joined #asahi-dev
amarioguy has joined #asahi-dev
PaterTemporalis has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
hizon has quit [Read error: Connection reset by peer]
<marcan> yes, it's supposed to be hard link
<marcan> er sorry
<marcan> was scrolled up
MajorBiscuit has quit [Ping timeout: 480 seconds]
<sven> jannau: have you ever tried to bring up dcpext? (either inside m1n1 or linux)
<_jannau_> sven: no. I would start in m1n1 with experiments/dcp.py
<sven> hrm, then i'd also have to bring up atcphy inside m1n1. oh well.
<_jannau_> hmm, first trying it in linux might be easier then
<jannau> sven: current dcp driver is in https://github.com/jannau/linux/tree/asahi-dcp based on asahi
<jannau> needs https://github.com/jannau/m1n1/tree/dcp for transferring the pre-mapped memory for dart-dcp and dart-disp0
<jannau> does not work with u-boot since it tries to map the dcp/disp0 virtual adresses as pa
chadmed has joined #asahi-dev
<jannau> I guess the easiest first test for dispext would be the hdmi port of the macbook pro 14/16"
hizon has joined #asahi-dev
<sven> i only have a m1 air and a m1 mini
<_jannau_> I was speaking to myself
<sven> ah :D
<_jannau_> I'll try that tonight
<kettenis> btw, any ideas about the extent to which the M1 cores are vulnerable to Spectre-BHB?
<kettenis> The mitigation suggested by Arm (and implemented in the Linux kernel) does a loop and the number of iterations in that loop depends on the microacrhitecture
<kettenis> I'm a bit lost in the #ifdef maze that implements this, but it seems the default is to use 32 which is the largest value for any of the cores released by Arm
<marcan> hm, I think the PCIe issue we have isn't just a race with macsmc
<marcan> something is borky
<marcan> this time on my Mini, only WiFi came up, while link 1 (was that USB or Ethernet?) did not come up, and link 2 came up but the device did not probe
<marcan> neither of the other two are on power gates
<marcan> not SMC ones anyway
yuyichao has quit [Ping timeout: 480 seconds]
<marcan> I wonder if it's actually the PMGR power gates breaking things
<Glanzmann> marcan: I have config with that I don't get usb-c up. Don't know if its me (probably) or a race. But with the previous asahi branch even sound was not coming up: tg.st/u/config-debian-distro-kernel-2022-03-17-4k
kameks has quit [Ping timeout: 480 seconds]
<marcan> usb-c is not pcie
<Glanzmann> Good point.
<milek7> could pcie be related with boot hangs I sometimes get?
<kettenis> marcan: PCIe always comes up for me in OpenBSD
<kettenis> but I do no runtime power management and just leave PMGR alone after powering-up the domain
yuyichao has joined #asahi-dev
<maz> kettenis: without knowing whether they tag their BHB (or equivalent structure) by context, it is really hard to know.
<maz> marcan: I have never seen USB or Ethernet not coming up on mine. but I only run upstream.
<marcan> maz: do you run modules?
<maz> marcan: yup.
<marcan> as in apple-pcie?
<maz> that, no.
<marcan> exactly :-)
<marcan> I suspect that is the problem
<marcan> (also, that oopses on rmmod, but it's not the only one with that problem)
<maz> well, it's not supposed to be removable. I'm missing a suppresss_bind somewhere, clearly.
<_jannau_> I've never seen problems with self-built kernels which have apple-pcie built-in
<maz> also, how much of that is reproducible with upstream?
hizon has quit [Ping timeout: 480 seconds]
<j`ey> everyone else wants the features that the asahi branch brings :P
<sven> and implementing new hardware has been more fun that sending patches recently. at least for me.
<maz> I already deal with Android, so I'm done when it comes to Linux forks.
<sven> but i should at least nvme upstream soon-ish
<sven> +get
<marcan> ! [remote rejected] main -> main (Internal Server Error)
<marcan> error: failed to push some refs to 'github.com:AsahiLinux/asahi-scripts.git'
<marcan> ... did github just break?
<j`ey> sven: it will also be fun if it all just worked on mainline ;)
<j`ey> marcan: yes
<j`ey> someone on another channel complained about GH
<sven> j`ey: sure :D
<marcan> oh for fuck's sake
<marcan> how am I supposed to get a release out like this?
<sven> j`ey: i actually already wrote a cover letter for the nvme patchset. just need to collect the individual patches now and submit it. maybe this weekend :)
<j`ey> sven: :o lemme know if you want a quick proof read/patch skim
<sven> sure!
<nametable[m]> Yeah, github does appear to be having some issues
<j`ey> sven: so it's going to be sart/rtkt/nvme all in one go as an RFC? I guess you might have to split it up when getting them merged
<sven> yeah, single RFC. sart+nvme can go together anyway because it's not used anywhere else. and for rtkit we can probably create a frozen branch after review if we actually end up with multiple drivers in different subsystems that need it
<Glanzmann> marcan: Apply this patch https://pbot.rmdir.de/IKV1FbbsWVWFPc4kba80NA and post the link to twitter.
<j`ey> Glanzmann: that's not going to happen :P
kgarrington has joined #asahi-dev
<kgarrington> marcan: did you remember to update m1n1’s remote in your asahi-installer changes today?
<marcan> kgarrington: the submodule isn't updated so the version is wrong, but it's functionally 1.0
kgarrington has quit [Remote host closed the connection]
kgarrington has joined #asahi-dev
kgarrington has quit [Remote host closed the connection]
kgarrington has joined #asahi-dev
kgarrington has quit [Remote host closed the connection]
<marcan> yup, forcing the pstate to always on fixed the PCIe breakage
<marcan> oh well
<marcan> at least that answers that
<marcan> it's possible bringing that down requires doing the m1n1 init sequence again, or something
<sven> iirc when atcphy is powered down all tunables are lost
<sven> could be the same for pcie
<marcan> yeah, could be
<Glanzmann> marcan: Because you just pushed asahi and this patch is still missing, you might want to apply this: https://tg.st/u/40c9642c7569c52189f84621316fc9149979ee65.patch when you type on one of the new macbook pros you can constantly crc mismatch erros on the console.
<Glanzmann> s/can/get/
<marcan> do we know why those CRC errors happen?
<Glanzmann> jannau: You might.
<Glanzmann> marcan: I only know that no keystrokes are lost and it confuses users because they don't trust the keyboard.
<j`ey> marcan: so ps_apcie_gp is powered down(?), before the apple-pcie module was loaded? and it was a race since it didnt always happen
<marcan> it doesn't get powered down if the driver is built-in
<marcan> powering it down doesn't break pcie entirely, it makes it flaky
<marcan> e.g. some devices work and not others
<marcan> that's why it's been inconsistent
MajorBiscuit has joined #asahi-dev
<marcan> this is what the checklist looks like for now
the_lanetly_052 has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi-dev
ChaosPrincess has quit [Quit: Page closed]
ChaosPrincess has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
<sven> huh, so thunderbolt looks less painful than I thought. The biggest challenge will be that typec subsystem and how to pass the “usb4 cable connected” along and that most thunderbolt crap can’t be mapped before this weird “clock/power domain” is up and that acio coprocessor is running
<sven> acio needs some reversing as well ofc
<sven> but I guess I should clean up atcphy first anyway and get more people to test it :D
<kettenis> and send out sart/nvme ;)
<sven> yeah, that too :)
<sven> I’ll grab dinner and at least collect the patches for that somewhere
<marcan> I'm going to grab a snack and put together the plasma image
<firefox317> marcan, im also in the progress of installing plasma on the base image now, basically you need: plasma-meta sddm kde-applications-meta. Might be good idea to also install sudo, configure sudo to look at the wheel group, and add the alarm user to the wheel group
<firefox317> Oh yeah also: systemctl enable sddm
<firefox317> and might be a good idea to increase the display-scale of KDE, because with the HiDPI screens its all pretty small by default
m6wiq has joined #asahi-dev
<marcan> firefox317: I already have plasma on my m1pro, I just need to put together the script for the image builder
<marcan> already covered all of that
<marcan> the alarm user will be removed; there will be a graphical first-time setup wizard
<firefox317> marcan, ah great :)
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
bisko has quit []
bisko has joined #asahi-dev
bisko has quit []
bisko has joined #asahi-dev
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bisko has joined #asahi-dev
<j`ey> sven: I feel this is you and usb3/atc (no offense :P) https://twitter.com/wayward710/status/1504245483014922249/photo/1
<sven> :D
<jannau> did anyone already ran macos 12.3 under the hypervisor?
bisko has quit [Read error: Connection reset by peer]
<jannau> it panics here with
<jannau> panic(cpu 1 caller 0xfffffe00137df064): phystokv: illegal PA: 0x10003654000; phys base 0x10015bf0000, size 0x7b701c000 @arm_vm_init.c:379
<jannau> 0x10003654000 is inside the SEP firmware, 0x40000 below BootArgs
bisko has joined #asahi-dev
m6wiq has quit []
Telvana has quit []
gladiac has quit [Quit: Ping timeout (120 seconds)]
gladiac has joined #asahi-dev
Telvana has joined #asahi-dev
m6wiq has joined #asahi-dev
m6wiq has quit [Remote host closed the connection]
hizon has joined #asahi-dev
Telvana has quit []
Telvana has joined #asahi-dev
hizon has quit [Ping timeout: 480 seconds]