marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | 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
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
labavonn has joined #asahi
labavonn has quit []
labavonn has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
X-Scale` has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
X-Scale has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
kajiryoji has quit []
kajiryoji has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
<shenki> i'm loading the osx kernel under m1n1, but don't have a second mac or serial hardware
<shenki> so i'm relying on m1n1 staying in charge of the usb port
<shenki> under linux, i can set the xhci device and dart to disabled in the device tree
<shenki> is there a way to blacklist the driver for a usb port under osx?
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
marvin24_ has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
marvin24 has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
method_ has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
<jannau> shenki: the m1n1 hypervisor keeps control of the usb port it is running on by removing it from the ADT
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
Method has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bps2 has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
<VinDuv> sven: I can confirm that building a custom debug kernelcache without AppleSerialShim makes cu.debug-console works in 12.0.1. I think I’ll also try to rename "uart0" in the ADT with the hypervisor, given how AppleSerialShim matches devices it might also work…
<bgb> VinDuv: can you share the buiding guide?
useableporthole has quit [Remote host closed the connection]
<sven> yeah, that building guide would be very useful
<sven> i kinda gave up at that point because building a custom kernel sounded painful
VinDuv_ has joined #asahi
<VinDuv_> bgb, sven: I basically followed the beginning of https://github.com/AsahiLinux/docs/wiki/SW:Hypervisor to create the dev kernel macho and then installed it with kmutil configure-boot as if it were m1n1
<sven> ohhh.... true. i totally forgot that custom kernel for the hv thing
<sven> i guess i should also teach the linux tipd driver to behave like macvdmtool as well
<sven> and then just switch to linux on my development machine
<VinDuv_> AIUI the kmutil inspect part of the command builds the list of extensions that will be included in the kernelcache; it takes all of them except SEPHiber. I just changed it to: kmutil inspect -V release --no-header | awk '!/SEPHiber|SerialShim/ {print " -b "$1; }'
<VinDuv_> I'm guessing there is a way to do this without installing the dev kernel though, and maybe without using configure-boot?
<sven> i've briefly looked into it and neither found a boot argument to specifically disable SerialShim nor another one to just block some kext from loading
<j_ey> I dont understand why *removing* AppleSerialShim makes it work
<sven> afaiu AppleSerialShim has a higher priority than the real serial driver
labavonn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<j_ey> :<
<sven> so if that kext doesn't exist it'll fall back to AppleSamsungSerial or however it's called again
<sven> and AppleSerialShim is quite literally a shim. all it does is ack any serial irqs it gets
<VinDuv_> It seems to be "more specific" in its device matches than SamsungSerial so I guess that's why it takes priority
<sven> probably. i think there's also a probe priority but i didn't check if the serial shim has a higher value there
VinDuv_ has quit [Quit: Page closed]
<amw> j_ey: Is this commit in linux-next a0f160ffcb83 pinctrl: add pinctrl/GPIO driver for Apple SoCs has a compile problem - see https://paste.debian.net/1218157
<amw> Sorry I meant do you have fix for this?
<j_ey> one sec
<amw> j_ey: ok - ta
jacoxon has joined #asahi
bgb_ has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
<amw> ok - I got a message that some one got the linux-next tree working with USB keyboard and mass storage but even after fixing the above compile error I can't get USB keyboard to work???
<amw> Now trying with make mod2yesconfig to see if it helps as that was suggested too...
<sven> there are no usb nodes in linux-next yet
<amw> Ok - thanks I'll try a device tree from asahi linux then
<amw> sven: Thanks a million - that was it - now getting USB keyboard working again.... with linux-next build
<sven> sure. i should prepare the apple dwc3 bindings and then resubmit that usb reset quirk series. then we can also add those nodes to linux-next
<mps> what I could expect if install linux on M1 to work, and what does not work
<mps> ok, gpu still doesn't and iirc audio
<chadmed> usb4/thunderbolt, the gpu and builtin audio are the biggies for the mac mini
<mps> I have macbook pro
<chadmed> for the macbooks its the same plus no touchbar
<chadmed> i think there were issues with the display controller too
<mps> yes, forgot to mention that I know that touchbar doesn't work
<mps> does wifi works
<mps> for audio I could use external usb dongle so no big issue (for now)
yuyichao_ has joined #asahi
<sven> usb3 also doesn't work on the type-c ports, only usb 2
<chadmed> i think wifi works with alyssa's collected patches. it definitely does on the mini, not sure if its the same on the laptops
<mps> sven: so speed is not so high
<mps> and laptops only have usb-c ports
<mps> what kernel to build? mainline or something else?
<kettenis> wifi should work just fine on the laptops; you just need to install the right firmware files for your model
<mps> kettenis: thanks for info. hope will find proper one
<mps> probably it is somewhere in macos FS, but I don't have any experience with macos (except looking few times what it have on FS)
<amw> sven: Is there any work yet on adding the apple-spi master so the builtin keyboard can work?
<sven> don't think so
<sven> i believe marcan said he eventually wanted to work on writing that spi driver
<amw> ok - thanks - have to keep squeezing in the corellium one for the moment I guess
<arnd> amw: the corellium spi driver seems fine for the most part, someone could just submit that. This driver is fairly independent of everything else, so there are not a lot of things one could do differently. The main missing bits are documentation for the DT binding, and properly hooking it up to the clk and pinctrl drivers. In the corellium dts the spi controller links to two nodes handled by their clk driver, but that is not upstream
<kettenis> I should finish my proposal for the DT binding
<kettenis> there is some cruft in the corellium driver that doesn't seem to be necessart
<sven> The clocks are probably just power domains or maybe the ref clk if the driver also configures the bus frequency like i2c
<kettenis> it needs the ref clock
<kettenis> the controller has its own divider
<amw> It would be very nice to have that in there some how with USB it would make a USB installable M1 much more viable
<kettenis> and the ADT suggests there are indee power domains
<kettenis> but they all seem to be powered on already
gabuscus has joined #asahi
jbowen has joined #asahi
X-Scale has joined #asahi
X-Scale` has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
yuyichao_ has quit [Quit: Konversation terminated!]
yuyichao has joined #asahi
minecrell has quit [Quit: Ping timeout (120 seconds)]
minecrell has joined #asahi
c10l has quit [Quit: The Lounge - https://thelounge.chat]
c10l has joined #asahi
yuyichao_ has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
yuyichao_ has quit [Ping timeout: 480 seconds]
linearcannon has quit [Read error: Connection reset by peer]
___nick___ has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
jbowen has quit [Ping timeout: 480 seconds]
coderobe has quit [Quit: '); DROP TABLE users;--]
c10l has quit [Quit: Ping timeout (120 seconds)]
c10l has joined #asahi
coderobe has joined #asahi
kov has joined #asahi
jbowen has joined #asahi
c10l9 has joined #asahi
c10l has quit [Ping timeout: 480 seconds]
c10l9 is now known as c10l
jbowen has quit [Ping timeout: 480 seconds]
___nick___ has quit [Ping timeout: 480 seconds]
jacoxon has quit []
jacoxon has joined #asahi
psykose has quit [Remote host closed the connection]
psykose has joined #asahi
jacoxon has quit []
aleasto has quit [Quit: Konversation terminated!]
richbridger has joined #asahi