marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | Not ready for end users / self contained install yet. Soon. | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
aleasto has quit [Quit: Konversation terminated!]
<as400[m]> jannau: thanks a lot !
aleasto has joined #asahi
aleasto has quit [Remote host closed the connection]
aleasto has joined #asahi
aleasto has quit [Quit: Konversation terminated!]
yuyichao has joined #asahi
DragoonAethis has quit [Quit: hej-hej!]
DragoonAethis has joined #asahi
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi
PhilippvK has joined #asahi
darkapex2 has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
darkapex1 has quit [Ping timeout: 480 seconds]
marvin24 has joined #asahi
chadmed has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
the_lanetly_052 has joined #asahi
jeffmiw has quit [Ping timeout: 480 seconds]
eroux has joined #asahi
MajorBiscuit has joined #asahi
Major_Biscuit has joined #asahi
MajorBiscuit has quit [Ping timeout: 480 seconds]
<sven> looks useful, thanks!
<mps> arm64 defconfig enables a lot of drivers and options so I prefer to have config tweaked and tailored for particular SoCs
<landscape15[m]> mps: yeah it would be better to have an asahi_defconfig for the linux-asahi branch. So you don’t need to manually disable all the other platforms.
<j`ey> landscape15[m]: thats what context is: https://github.com/jannau/linux/tree/asahi-defconfig
<landscape15[m]> j`ey: I should try it. Is brcm working oob?
<j`ey> brcm is enabled
<landscape15[m]> ok thanks
<mps> j`ey: when I built first kernels for m1 I used jannaus config but tweaked it to my 'feeling'
<jannau> basing it on the arm64 defconfig is to avoid thinking/discussing for every driver whether it should be enabled
<jannau> there are a ton of drivers enabled which will never be used
<j`ey> it's just to have a good starting point or reference
<j`ey> if you want to do custom, noone is stopping you :P
<mps> j`ey: ofc, I didn't wrote that this jannaus asahi_defconfig is not good
<mps> just told what I do
<mps> it is very good to have it as base for anyone
<mps> and jannaus config helped me a lot to make first kernels and I still look at it when have some doubts about one I tweak
ewryyyyyyyyyyyyyyyyyyyyyyyyyyd has joined #asahi
Dcow__ has joined #asahi
Dcow___ has joined #asahi
Dcow_ has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
<as400[m]> mps: having such a config like jannau provided is a great thing for all newcomers. You just point people to it and can forget about answering the same questions for a billionth time.
<as400[m]> And if somebody is skilled enough to modify it. So be it.
<sven> Also makes us stop wasting time on bugs that are really just wrong config options
<mps> as400[m]: right
<jannau> defconfig refreshed with crypto options required by iwd
<mps> jannau: these ones are nice to have
<mps> (right now I'm merging iwd upgrade to 1.21 for alpine)
<as400[m]> jannau: just to understand things. Source in asahi-defconfig branch is taken from asahilinux repo ?
ChaosPrincess has quit [Quit: WeeChat 3.4]
<jannau> source is based on wifi/take5 but the intenttion is to carry apple_defconfig in the asahi branch and update it when necessary
ChaosPrincess has joined #asahi
<as400[m]> jannau: ok, sure. Great approach.
<marcan> seems to work for me with iwd and NetworkManager (you need to say wpa-psk mode in NM, not sae; sae seems to only work/be required for the wpa-supplicant backend while iwd autodetects and just wants to be told psk for both WPA2/3)
<jannau> marcan: works here with iwd, thanks
aleasto has joined #asahi
cth451_desktop has quit [Remote host closed the connection]
cth451_desktop has joined #asahi
cth451_desktop has quit [Remote host closed the connection]
cth451_desktop has joined #asahi
Major_Biscuit has quit [Ping timeout: 480 seconds]
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #asahi
os0 has joined #asahi
MajorBiscuit has joined #asahi
os has quit [Remote host closed the connection]
chadmed has quit [Remote host closed the connection]
<jannau> marcan: do you have an opinion about carrying an apple_defconfig in linux-asahi like https://github.com/jannau/linux/commit/b2cc57009936757516f040989a299c64650e0e03
<jannau> we had quite a few "issues" caused by missing/wrong configs
<mps> sorry for OT question again, but how do you solve issue with tingling (feels like vibration) when touching cases of macbooks
<ChaosPrincess> unplug the charger
<mps> ChaosPrincess: yes, but often I need it plugged when work
<mps> actually I sometimes use chromebook charger on mbp and this 'vibrations' doesn't appears
roxfan has quit [Ping timeout: 480 seconds]
Bai-Chiang[m] has joined #asahi
marvin24_ has joined #asahi
phiologe has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
PhilippvK has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi
<Glanzmann> mps: I had this tingling earlier with lenovo thinkpads but not once with macbook air. I sometimes use the charger that shipped with macbook air and sometimes I use a lenovo 65 usb-c charger.
<mps> Glanzmann: with my old macbook from 2009 year it is barely noticeable, with my son m1 mbpro 2020 it more noticeable than on this old one but not much more, but on my m1 it is annoying really
<mps> I think this happens because chargers doesn't have ground pin
<mps> same happens (but not so strongly) when I plug macbook charger to one of my chromebooks
<marcan> jannau: good idea
<Glanzmann> mps: I see. Maybe buy a charget with a ground pin.
<Glanzmann> For example the lenovo 65 watt has one.
<Glanzmann> At least some of them.
<Glanzmann> Mine has.
<mps> Glanzmann: not so important at least for now, I can use chromebook charger, will look later if I can find 'proper' solution
<mps> btw, did anyone noticed that sometime /dev/dri/card disappears on your machines
<mps> that happened few times to me but didn't find any trace why, could be that xorg remove it when stops
<marcan> mps: get a grounded plug end for the charger
<marcan> they do exist
<mps> marcan: didn't know, will search for it. thanks
<marcan> mps: assuming europe/schuko plugs, not sure what the easiest store is for you, but this is what you want: https://www.apple.com/de/shop/product/MK122D/A/power-adapter-netzteil-verl%C3%A4ngerungskabel
<marcan> the round metal button is the ground pin on the adapter side
<mps> marcan: I looked at that round button and wondered could it be ground pin, thanks for confirmation
<mps> and thank you for url, I think this cable is what I need
<mps> hehe, just tested this with few wires and it now can't feel tingles trying really carefully :)
yuyichao has quit [Ping timeout: 480 seconds]
<mini> annoyingly, the smaller apple adapter (the one without a lead) *used* to be earthed
<mini> then for some reason maybe ~8-10 years ago or so? they stopped earthing it
m42uko has quit [Quit: Leaving.]
m42uko has joined #asahi
<Glanzmann> mps: You fixed it. :-)
<mps> Glanzmann: we are hackers ;)
m42uko has quit [Quit: Leaving.]
<Glanzmann> kettenis: What was the problem with smp on OpenBSD and how did you fix it?
<Glanzmann> sven: What is linear sq on NVMe?
<sven> linear submission “queue” instead of the normal nvme submission queue
<Glanzmann> sven: So I thought nvme has one admin queue and multiple i/o queues and in every i/o queue you can submit upto 2^16 I/Os inflight.
<Glanzmann> Does linear submissions means that you only have one i/o queue or does it mean that the i/o s are processed in the order they're submitted?
<sven> more or less
<sven> on the apple chip there’s always just one IO queue even if you don’t enable linear sq
<sven> it also only has a single shared interrupt so even if you could have more queues they’d only make sense as poll queues
<sven> and linear means there’s no head/tail pointer but just an index into the array. It’s technically no longer a queue
<sven> the completion queue still exists and works as usual though
<Glanzmann> I see, thank you for the explanation.
<Glanzmann> sven: How many concurrent I/Os can the apple I/O queue do?
<Glanzmann> apple nvme i/o queue?
<sven> 64 at most, but those slots are shared between the admin and io queue
<Glanzmann> I see.
<kettenis> Glanzmann: something to do with the FPU registers
<ChaosPrincess> that sounds like they missed the point of nvme
<Glanzmann> ChaosPrincess: It is still pretty fast.
<Glanzmann> kettenis: I see. Congrats. :-)
<sven> yeah, just don’t issue flush commands :p
<Glanzmann> sven: eatmydata. :-)
<ChaosPrincess> how bad are flushes
<ChaosPrincess> say, something like redis that flushes ~every second
<Glanzmann> ChaosPrincess: I think every second will be fine. The issue is if you flush every single I/O.
<sven> random writes plus flush brings the performance down to ~100 kb/s or so
<ChaosPrincess> thats bad
<sven> also happens in the T2 Macs already
<sven> we’ll figure something out
<sven> I’ll need to write a dumb nvme driver for m1n1 to run some experiments
<Glanzmann> sven: IIRC marcan wanted to write an m1n1 driver in order to upgrade m1n1 without kmutiling a new boot object.
<sven> 🤷🏻‍♂️
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dottedmag> mini: Do you have a picture of earthed small adapter? I'm trying to understand how it might look like, if Europlug is not earthed.
<mini> dottedmag: I'm UK based, so any picture I might have would be of a UK 13A plug
<dottedmag> mini: Ah, UK plugs are easy.
<mini> but they still removed the earth connection. I imagine a minor cost saving, but it comes iwth the annoying tingle of using the mac while charging :(
<mini> weirdly, they kept using a metal earth pin into the mains socket though
<mini> they just don't connect it to anything
<landscape15[m]> Glanzmann: and also a driver to update the macOS stub partition would be nice
<sven> that's gonna be a bit more scary. it will require APFS write support and a pretty well understood SEP API
<sven> might not even be possible if the normal update procedure also updates the "custom boot object". if that's the case we'll alway have to go through 1TR for that
<landscape15[m]> sven: yeah so every single change on the machine software requires authorization from 1TR. I like this for security reasons, but then how can you upgrade the m1n1 boot object?
<sven> that's separate from the question you just asked
<j`ey> going through 1TR very occasionally doesnt sound that bad
<landscape15[m]> sven: yes, but the problem is the same. You can’t upgrade without entering 1TR.
<sven> no, it's not.
<sven> there are two things: a) updating m1n1 (the custom boot object pr fuos or however it's called) b) updating the firmware on the stub partition
<sven> both are definitely possible with a round-trip through 1TR
<sven> a) would also also possible without that roundtrip if we added chainloading support to m1n1 itself (or if this auxKC can be used together with fuos)
<landscape15[m]> sven: you mean something like /Volumes/Linux/upgrade.sh?
<sven> b) is more tricky because it's not clear if it's possible to update the firmware *while keeping the custom boot object*
<j`ey> sven: chainloading from nvme or?
<sven> j`ey: yeah, that would be possible
<sven> or do that cute hack where we stuff a new version into this auxKC thing and let iBoot load it for us but i believe marcan said that doesn't work if you have a custom boot object anyway
vnogueira has quit [Remote host closed the connection]
vnogueira has joined #asahi
vnogueira has quit []
vnogueira has joined #asahi
m42uko has joined #asahi
ewryyyyyyyyyyyyyyyyyyyyyyyyyyd has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
the_lanetly_052__ has joined #asahi
the_lanetly_052 has quit [Ping timeout: 480 seconds]
vnogueira has quit [Remote host closed the connection]
vnogueira has joined #asahi
darkapex3 has joined #asahi
darkapex2 has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
ewryyyyyyyyyyyyyyyyyyyyyyyyyyd has joined #asahi
Misthios has quit [Quit: Ping timeout (120 seconds)]
Misthios has joined #asahi
MajorBiscuit has quit [Ping timeout: 480 seconds]
Dcow___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dcow has joined #asahi
malvo has quit [Ping timeout: 480 seconds]
malvo has joined #asahi
yuyichao_ has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
Misthios has quit [Quit: Misthios]
Misthios has joined #asahi
bpye has quit [Quit: Ping timeout (120 seconds)]
bpye has joined #asahi
yuyichao has joined #asahi
___nick___ has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Ping timeout: 480 seconds]
m42uko has quit [Quit: Leaving.]
roote has joined #asahi
m42uko has joined #asahi
roote has quit [Quit: Page closed]
ewryyyyyyyyyyyyyyyyyyyyyyyyyyd has quit [Remote host closed the connection]
yuyichao has quit [Ping timeout: 480 seconds]