marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | https://asahilinux.org/2022/03/asahi-linux-alpha-release/ | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
ptudor has joined #asahi
ptudor_ has quit [Ping timeout: 480 seconds]
eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
eroc1990 has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
Ry_Darcy has quit [Remote host closed the connection]
Ry_Darcy has joined #asahi
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
boardwalk4 has joined #asahi
boardwalk has quit [Read error: Connection reset by peer]
boardwalk4 is now known as boardwalk
jeffmiw has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi
chadmed has quit [Quit: Konversation terminated!]
MajorBiscuit has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi
c10l76 has quit []
c10l76 has joined #asahi
MajorBiscuit has joined #asahi
<zx2c4> has anybody got netflix (widevine) working on asahai?
<Cy8aer[m]> IMHO there is now widewine for Linux arm 64 bit around.
<Cy8aer[m]> (looking for that too)
<chadmed> chromium has the aarch64 CDM
<chadmed> the only package i can find with it though is v73 as a deb package for stretch
<zx2c4> chadmed: v73? sure that's not arm32?
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chadmed> no the package in the stretch repo exists for arm64
<chadmed> 73.0.3683.75-1~deb9u1: amd64 arm64 i386
<chadmed> aahhh it installs but just gives you the doc files
<chadmed> thats... silly
<chadmed> the only other way i can think of "acquiring" the CDM then is to extract the library from chrome os
<chadmed> sad state of affairs
<zx2c4> i just extracted some chromeos images and they all seem to have arm32 widevine, not arm64
<zx2c4> maybe i'll just run x86 chrome under linux rosetta...
<Lucy[m]> I find it strange that the M1 SoCs don't have any kind of 32 bit support..
<zx2c4> why? it's not like apple has any arm32 code they need to run
<zx2c4> i wonder what shape arm64 wine is in...
<povik> i still find the release of linux rosetta bizarre
<povik> are there any performance comparisons with macos rosetta, or qemu?
<zx2c4> def better than TCG, right?
<zx2c4> prolly worse than macos rosetta because no caching?
<povik> i seem to remember macos rosetta exploits some m1 specifics, which i reckon are unavailable to the linux one
<povik> thanks
<j`ey> povik: rosetta linux assumes TSO is enabled
<povik> "When the Rosetta directory is mapped to the virtual machine, all of the VM runs in Total Store Ordering mode. This provides the guarantees needed by Rosetta to provide x86-compatible memory model semantics."
<povik> aha!
<povik> can we implement enabling TSO for a process?
<chadmed> would that not require changes deep in the kernel?
<j`ey> yes, via prctrl.. if upstream accepts it
<chadmed> it really just does not seem worth it at all
<chadmed> and work should be done on improving fex or box64
<j`ey> but surely you can watch netflix on chromeos currently?
<j`ey> or is that in a private build only
<zx2c4> that's arm32 as mentioned above
<jn> chadmed: i wonder if TSO would also be useful for fex/box64 though
<chadmed> probably, but would again require upstream changes to the kernel and fex/box64 to work properly
<chadmed> unless we start getting a glut of arm maachines that can do this, i dont think anyone upstreaam is going to be willing to make those changes just for slightly better support for apple stuff, especially once apple drop support for running x86 code from macos altogether and then likely drop the architectural features that are there solely to support it
ciggi has quit [Read error: Connection reset by peer]
eroux has quit [Remote host closed the connection]
bisko has joined #asahi
millenialhacker has quit [Remote host closed the connection]
ciggi has joined #asahi
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millenialhacker has joined #asahi
<sven> regarding TSO: easiest start is to add a flag to m1n1 to enable it for the entire machine during boot and see what happens and if it helps box64/fex. if performance for non-x86 code drops too much we could then carry a downstream patch with a prctl
<zx2c4> Could somebody here with the latest macos beta tar up /Library/Apple/usr/libexec/oah/RosettaLinux and send it to me?
psykose has quit [Remote host closed the connection]
ptrc has quit [Remote host closed the connection]
psykose has joined #asahi
ptrc has joined #asahi
<sven> that's liekly copyright infringement and probably also violates the NDA you need to sign to get betas
<zx2c4> ffs
darkapex has joined #asahi
bisko has joined #asahi
<zx2c4> oh no, no USB in grub, so i cant edit that?
<j`ey> there is.. but some keyboards dont work
<j`ey> flashy / gamer ones
<pjakobsson> Hi all, I just installed opensuse tumbleweed on my M1. Is there a list of tweaks that are done in Asahi so I can start fixing things up in TW as well?
<_jannau_> also the usb a ports on mac mini/studio don't work
<zx2c4> _jannau_: they do in linux. do you mean they dont in grub? or something else?
<zx2c4> whats the best way to mount the ashai linux partition from macos?
<_jannau_> zx2c4: yes, they don't work in u-boot/grub
<zx2c4> do usb-c ports work better?
<_jannau_> the usb-c ports work
<zx2c4> oh whew, thanks
<zx2c4> hm, no, no luck in grub
<_jannau_> u-boot has no PCIe driver, the USB-A ports are on a 3rd-part PCIe USB hostcontroller
<_jannau_> zx2c4: how is the keyboard connected? can you easily try a different keyboard?
<zx2c4> okay got it with a different keyboard
<zx2c4> but now, hah, there's no usb support in linux initramfs...
<zx2c4> what's generally the best way to mount ashai from macos?
<chadmed> i dont think there are any good or reliable ways to mount an ext4 partition from macos
<zx2c4> i guess i could boot linux in qemu and pass it through
<zx2c4> okay saved it.
<mps> zx2c4: iirc paragon have commercial ext4 driver for macos
<zx2c4> oh yea
<mps> and you can use it free for some 'test' period
<chadmed> is it any good or reliable though?
<chadmed> they used to be called ParaGone for a reason (your data was gone after using their software)
<mps> chadmed: I didn't tried it
<mps> chadmed: well, they added ntfs3 to linux
<opticron> zx2c4, there's a complicated dance you can do to get ext4 read support from macos, but it's not fun and requires disabling security because you have to add a kext and it takes at least a couple reboots to accomplish along with some scary confirmation prompts
<chadmed> isnt that now unmaintained?
<mps> though I don't use it, it is good to have it in linux in case of need to copy something from people who uses ntfs
<mps> chadmed: ?
<zx2c4> my ethernet card has now disappeared? doesnt show up in `ip a`
<chadmed> mps: they got it merged and now its orphaned
<chadmed> they havent even pushed fixes for bugs that they have in one of their downstream branches
<mps> chadmed: no, last -rc have some fixes and updates
<mps> but someone else taking maintainership
<zx2c4> that's weird. where did my ethernet controller go
<_jannau_> zx2c4: does it show up in lspci?
<zx2c4> i assume that second broadcom is bluetooth not ethernet
<zx2c4> so its gone from the bus?
<sven> yeah, second broadcom is bluetooth
<_jannau_> yes, it's not there
<zx2c4> where on earth did it go
<sven> anything weird in dmesg? :/
<zx2c4> nope
<zx2c4> booting into macos to see if it's there...
<zx2c4> alright well it worked there
<sven> it wouldn't surprise me if wifi/bluetooth disappeared from the bus but ethernet is very strange
<zx2c4> booting back into asahai then...
<_jannau_> ethernet controller should be on 03:00.0, can you paste dmesg | grep pci if it happens again
<zx2c4> yea sure, booting now, will see
<zx2c4> "pci@2.0 link didnt come up" that new?
<_jannau_> yes, just ethernet gone from PCIe is very strange. I would have had explanations for PCIe completely missing too
<zx2c4> maybe i should get rid of ashai-dev and go back to using ashai as repo so i get the older kernel?
<_jannau_> zx2c4: "link didn't come up" new, I haven't seen it before and explains why the ethernet controller is missing
<_jannau_> you can try that, the asahi-dev kernel is certainly less tested
<zx2c4> nope,didnt fix it
<_jannau_> I don't use the kernel from the package but my self compiled kernel based on the same branch has working ehternet on mac mini
<zx2c4> mine _was_ working too
<zx2c4> not sure what changed. i rebooted a bunch of times
<zx2c4> lets see if i can force it to rescan the bus
<zx2c4> that link didnt come up cant be it, because @2 is the usb controller
<zx2c4> _jannau_: whats your lspci say for reference?
<_jannau_> zx2c4: device is not on, but it should report either broadcom (1GB) or Aquantia (10GB) network controller as 03:00.0
<zx2c4> i think ive got the aquantia
<zx2c4> could booting back into macos have reflashed some firmware somehow?
<_jannau_> I doubt that would break PCIe link training. which macos version do you use?
<_jannau_> I don't think there is a mac smc power enable gpio for the ethernet controller
<_jannau_> zx2c4: did you do anything with the remote management option in mac os?
<zx2c4> no, didnt touch anything at all
<zx2c4> hmmm
<zx2c4> what on earth happened
Ry_Darcy_ has joined #asahi
Ry_Darcy_ has quit [Remote host closed the connection]
Ry_Darcy_ has joined #asahi
schuepbs[m] has left #asahi [#asahi]
<Ry_Darcy_> Hello all, I am currently running debian 5.18.0-asahi on an M1 Mini. Is there any updates to this here? I am currently using this >git clone --depth 1 https://github.com/AsahiLinux/linux -b asahi<.
<j`ey> asahi is the latest branch, based on 5.18
osaka1990 has quit [Quit: No Ping reply in 180 seconds.]
<Ry_Darcy_> Thanks. Last question, there is no 5.18.1-4 (minor release) yet?
<j`ey> theres no -3 yet
<Ry_Darcy_> Fair enough, must wait then...
<_jannau_> I don't think anyone plans to track 5.18.x stable releases in asahi. the next rebase will probably be 5.19-rcX
osaka1990 has joined #asahi
<Ry_Darcy_> Thanks for the info. Is there an Asahi timetable when the 5.19-rc* will be available?
<_jannau_> no
Ry_Darcy_ has quit [Remote host closed the connection]
<zx2c4> so im kind of puzzled by this ethernet thing
<zx2c4> all i can think of is that macos changed some firmware thing
<_jannau_> zx2c4: it looks a little like the pwren-gpio for the wlan/bt controller but I'm not aware that there is one for the ethernet chip and I can't explain why the default would have changed
<zx2c4> _jannau_: there any way to do some sort of firmware reset without wiping everything?
<_jannau_> I assume you already powered the mac mini down and disconnected the power cable?
<_jannau_> zx2c4: yes, there is dfu restore via idevicerestore or mac-configurator
<zx2c4> _jannau_: dfu restore will require me to do something to get ashai loading again after?
<_jannau_> yes, it's a factory reset
the_lanetly_052__ has joined #asahi
the_lanetly_052 has quit [Ping timeout: 480 seconds]
<zx2c4> _jannau_: okay i "fixed" it by... booting into macos recovery ("Options"), and then rebooting after that
<zx2c4> thats pretty weird
<sven> it sounds like we're doing something slightly wrong when bringing up pcie
<sven> you mentioned that you have the 10g ethernet option, didn't you?
<zx2c4> sven: yea
<zx2c4> 03:00.0 Ethernet controller: Aquantia Corp. Device 04c0 (rev 03)
<zx2c4> [ 1.095633] pcie-apple 690000000.pcie: Link up on /soc/pcie@690000000/pci@2,0
<sven> yup. most people only have the 1G ethernet so that specific hw isn't tested as well
<sven> and that link needs more bandwidth than all the others
<sven> maybe we're missing some setup somewhere or just need to increase some delays
<zx2c4> strange that booting from recovery would "fix" it though
<sven> very strange, yes.
<_jannau_> I haven't seen any issues with the same 10GB ethernet adapter on the mac studio
<_jannau_> only oddity was that "max-link-speed" in Apple's device tree is not describing the maximum link speed
amarioguy has quit [Quit: Leaving]
<clayscode[m]> What bug fixes/new features have there been since the initial alpha release?
<zx2c4> looks like qemu-user also has issues with 16k pages
<j`ey> some people have mentioned issues with an rcu assertion with some qemu commands
<j`ey> same thing?
<zx2c4> i see that with the prebuilt debians
<zx2c4> seeing something a lil different with building master branch
<zx2c4> er, yea, and then the rcu thing eventually. darn
MajorBiscuit has quit [Ping timeout: 480 seconds]
<mps> qemu-user works fine with 4 and 16 K pages on alpine
<mps> at least I didn't noticed any problem yet
<mps> and no one reported
DarkShadow44 has quit [Remote host closed the connection]
DarkShadow44 has joined #asahi
VasilisTheChu has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
VasilisTheChu has joined #asahi
<zx2c4> mps: in a chroot?
<mps> zx2c4: ?
<mps> yes, I'm using chroot for some work
<mps> if that was the question
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
nsklaus has quit [Ping timeout: 480 seconds]
<zx2c4> mps: so the alpine executables are statically linked?
<mps> zx2c4: no
<mps> I run grub setup in chroot on alpine with qemu-user for riscv64 emulation
<mps> zx2c4: here is guide and script about this https://arvanta.net/alpine/alpine-on-visionfivev1/
<mps> hmm, no. this is for plain extlinux, sorry
nsklaus has joined #asahi
nsklaus_ has joined #asahi
<mps> this is script with chroot and grub-install https://tpaste.us/MkE1
nsklaus has quit [Ping timeout: 480 seconds]
systwi_ has joined #asahi
systwi has quit [Ping timeout: 480 seconds]
systwi_ has quit []
systwi has joined #asahi
Tano70 has joined #asahi
ciggi has quit [Read error: Connection reset by peer]
ciggi has joined #asahi
Tano70 has quit [Quit: Leaving]
yamii_ has joined #asahi
yamii has quit [Read error: Connection reset by peer]
<badlydrawnface[m]> in macOS 12.4, the installer fails due to an SSL authentication error
guillaume_g has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi
yamii has joined #asahi
yamii_ has quit [Read error: Connection reset by peer]
mavericks has quit [Quit: The Lounge - https://thelounge.chat]
mavericks has joined #asahi
yamii_ has joined #asahi
yamii has quit [Read error: Connection reset by peer]
yamii has joined #asahi
yamii_ has quit [Read error: Connection reset by peer]
<IcaroDextris[m]> <zx2c4> "what's generally the best way to..." <- Paragon ext4
<IcaroDextris[m]> <chadmed> "i dont think there are any..." <- Paragon ext4 works well for me
mavericks has quit [Quit: The Lounge - https://thelounge.chat]
<IcaroDextris[m]> <mps> "chadmed: well, they added..." <- Yes, also their maintainer disappeared so long that they thinking about removing it
<IcaroDextris[m]> <mps> "but someone else taking maintain..." <- Oh I missed that news, cool
<steev> the new ntfs support? or the older stuff?
mavericks has joined #asahi
mavericks has quit []
mavericks has joined #asahi
wally_ has joined #asahi
WanliLi[m] has joined #asahi
wally_ has quit [Ping timeout: 480 seconds]
wally_ has joined #asahi