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
gladiac is now known as Guest6477
gladiac has joined #asahi
Guest6477 has quit [Ping timeout: 480 seconds]
_chamomile has joined #asahi
chamomile has quit [Ping timeout: 480 seconds]
kenzie has quit [Quit: The Lounge - https://thelounge.chat]
kenzie has joined #asahi
kenzie has quit [Quit: The Lounge - https://thelounge.chat]
kenzie has joined #asahi
kenzie has quit []
kenzie has joined #asahi
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
<marcan> cth451_desktop: there's an API for this, you don't need to open-code it
<marcan> see how the other drivers do it
<marcan> grep for eth_platform_get_mac_address
<marcan> also, if a mac address is supplied via OF it should always override whatever the card thinks is its mac address, even if valid
<cth451_desktop> K.
kenzie has quit [Read error: Connection reset by peer]
kenzie has joined #asahi
darkapex1 has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
kenzie has quit [Quit: The Lounge - https://thelounge.chat]
kenzie has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
kenzie4 has joined #asahi
kenzie has quit [Ping timeout: 480 seconds]
linearcannon has quit [Quit: Textual IRC Client: www.textualapp.com]
kenzie41 has joined #asahi
kenzie4 has quit [Read error: Connection reset by peer]
jmr2 has joined #asahi
<jmr2> FireFox317: FYI, I just did the pull request. Thanks again.
jmr2 has quit []
ganpa[m] has left #asahi [#asahi]
_chamomile has quit [Ping timeout: 480 seconds]
arahael3 has joined #asahi
<marcan> cth451_desktop: you can skip aq_nic_is_valid_ether_addr in the platform path, that's just something about weird engineering samples of the cards
<cth451_desktop> i.e. assuming DT won't supply such weird MACs
<marcan> yes
<marcan> other than that looks good to me, want to send it upstream? :)
<cth451_desktop> Sure. The patch has been update
<cth451_desktop> * updated
<marcan> check the commit summary to make sure it is formatted the same way as others for that file
<marcan> (probably needs some net/ethernet prefix or so)
<marcan> looks like net: atlantic:
<marcan> also if you made the edit to the patch by hand, make sure it applies. if you remove a line you need to change the thunk header.
<cth451_desktop> I'm working in a git tree so yeah amended commit and did another format-patch
sailorek1234 has joined #asahi
<marcan> ah, cool :)
tomtastic_ has joined #asahi
tomtastic has quit [Ping timeout: 480 seconds]
linearcannon has joined #asahi
cth451_desktop has quit [Remote host closed the connection]
<jannau> https://github.com/jannau/linux/tree/apple-m1-exp_v5.16-rc2 is t6000/bringup-work rebased on top of 5.16-rc2 with extended HW support and and dts files for all M1 models
<jannau> only lightly tested (boots M1 Max macbook pro and mac mini)
<jannau> I'll update the PKGBUILD tonight
stblassitude_ has joined #asahi
Chainsaw_ has joined #asahi
<mps> jannau: thank you
maennich_ has joined #asahi
aeroraptor has quit [Ping timeout: 480 seconds]
mustache_ride___ has quit [Ping timeout: 480 seconds]
enomem has quit [Ping timeout: 480 seconds]
brinly has quit [Ping timeout: 480 seconds]
taowa has quit [Ping timeout: 480 seconds]
maennich_ is now known as maennich1
philpax has quit [Ping timeout: 480 seconds]
robher_ has joined #asahi
ovf has quit [Ping timeout: 480 seconds]
eichin has quit [Ping timeout: 480 seconds]
esden has quit [Ping timeout: 480 seconds]
kendfinger has quit [Ping timeout: 480 seconds]
tardyp has quit [Ping timeout: 480 seconds]
arnd_ has quit [Ping timeout: 480 seconds]
guan has quit [Ping timeout: 480 seconds]
cptcobalt has quit [Ping timeout: 480 seconds]
austriancoder has quit [Ping timeout: 480 seconds]
Vaughn has quit [Ping timeout: 480 seconds]
sjg1 has quit [Ping timeout: 480 seconds]
NekomimiScience has quit [Ping timeout: 480 seconds]
<jannau> patches for additional HW probably need "power-domain" properties added to their devicetree nodes
sorear_ has joined #asahi
Ariadne has quit [Ping timeout: 480 seconds]
nkaretnikov has quit [Ping timeout: 480 seconds]
rann has quit [Ping timeout: 480 seconds]
jkkm has quit [Ping timeout: 480 seconds]
jabashque has quit [Ping timeout: 480 seconds]
sorear has quit [Ping timeout: 480 seconds]
sorear_ is now known as sorear
maennich has quit [Ping timeout: 480 seconds]
steev has quit [Ping timeout: 480 seconds]
maennich1 is now known as maennich
Chainsaw has quit [Ping timeout: 480 seconds]
robher has quit [Ping timeout: 480 seconds]
stblassitude has quit [Ping timeout: 480 seconds]
Chainsaw_ is now known as Chainsaw
stblassitude_ is now known as stblassitude
daniels has quit [Ping timeout: 480 seconds]
ZLSA has quit [Ping timeout: 480 seconds]
tom-w has quit [Ping timeout: 480 seconds]
saintdev_ has quit [Ping timeout: 480 seconds]
Ariadne has joined #asahi
eric_engestrom has quit [Ping timeout: 480 seconds]
tom-w has joined #asahi
<mps> yes. poweroff and reboot doesn't work for now
daniels has joined #asahi
jkkm has joined #asahi
<mps> xorg server segfaults with xf86-video-fbdev
tardyp has joined #asahi
aeroraptor has joined #asahi
saintdev_ has joined #asahi
<j_ey> reboot should work on that branch
brinly has joined #asahi
mustache_ride___ has joined #asahi
enomem has joined #asahi
<mps> j_ey: you mean with kernel 5.16-rc2 ?
philpax has joined #asahi
taowa has joined #asahi
<j_ey> no jannau's branch
<mps> yes sorry, I mean 5.16-rc2 with jannau patches
Vaughn has joined #asahi
<marcan> mps: xorg-server doesn't like fbdev, possibly due to the 30-bit color depth
<marcan> try simpledrm instead
steev has joined #asahi
<j_ey> yeah reboot should work, it has sven's watchdog driver
eric_engestrom has joined #asahi
cptcobalt has joined #asahi
eichin has joined #asahi
arnd_ has joined #asahi
nkaretnikov has joined #asahi
sjg1 has joined #asahi
austriancoder has joined #asahi
ovf has joined #asahi
<mps> marcan: I tried with simpledrm but got blank screen on boot, will test it on other arm64 first and then try again on m1
jabashque has joined #asahi
NekomimiScience has joined #asahi
<mps> oh btw, what RTC driver should be enabled in kernel. date year is 1970
esden has joined #asahi
<marcan> I don't think we have one yet
ZLSA has joined #asahi
kendfinger has joined #asahi
guan has joined #asahi
<marcan> I think that was in the PMU which needs SPMI?
rann has joined #asahi
<mps> not that I know. I thought EFI rtc could work
<marcan> there is no EFI
<marcan> certainly no EFI runtime services involving hardware :)
<mps> yes, noticed this after looking on dmesg and /sys
<marcan> u-boot will provide EFI but nothing terribly useful for runtime services, since we don't have a variable store
<_jannau_> reboot was working on the macbook pro, I didn't test the mac mini
<mps> I tested u-boot but usb keyboard doesn't work
<sven> works on a t8103 mini for me
<mps> not on macbook pro
<mps> say something that usb must be started, and keyboard on machine also doesn't work
<marcan> u-boot does not support the built-in keyboard yet
<mps> if u-boot works it will be a lot easier for me to test kernels with different drivers/options
<marcan> tethered boot is still a lot faster and easier for testing kernels :p
<sven> u-boot should also allow network boot
<kettenis> not all usb keyboards work in u-boot
<kettenis> but my apple keyboard works fine with the 13" macbook pro
<mps> I have only one gaming usb keyboard
<marcan> gaming keyboards tend to be problematic if they have fancy features
<mps> it works with kernel but not with u-boot
<marcan> that's common
<marcan> those keyboards tend to cause issues with the boot protocol but work fine with full HID stacks
<mps> that is my observation also
chamomile has joined #asahi
<Chainsaw> Sometimes there is a hotkey that allows you to put the gaming keyboard into "simple mode" or "BIOS mode".
chamomile has quit [Ping timeout: 480 seconds]
<FireFox317> marcan, can we find the latest cpufreq driver somewhere?
kov has joined #asahi
<marcan> there isn't one, it needs a rewrite since the last submission
<marcan> part of that was the memory controller poking I did earlier, to figure out how that changed
cth451_desktop has joined #asahi
<FireFox317> ah my bad, i wasnt sure if it needed a rewrite or not
<kettenis> SPMI is fairly simple, and so is the RTC component of Apple's SPMI PMU
<kettenis> Those are the OpenBSD drivers I wrote based on my understanding of how the hardware works
<kettenis> Shouldn't be too hard to write a clean Linux driver based on that
<marcan> cool!
<kettenis> the t6000 seems to have a different SPMI PMU, but I think the RTC component works in the same way
<kettenis> I'm not really planning to add support for the RTC to u-boot since it would only work at boot time
<marcan> right
<kettenis> I've been told netbooting already works in u-boot if you use a supported usb dongle
gabuscus has quit [Ping timeout: 480 seconds]
gabuscus has joined #asahi
X-Scale has joined #asahi
X-Scale` has quit [Ping timeout: 480 seconds]
gabuscus has quit [Ping timeout: 480 seconds]
<mps> kettenis: can u-boot detect internal drive boot partition
gabuscus has joined #asahi
<kettenis> yes
aleasto has joined #asahi
<mps> kettenis: nice. how the boot partition should be formated? ext4? and does it need boot flag set
as400 has joined #asahi
<as400> mps: it depends. Is distro boot enabled ?
<kettenis> the way this is intended to work is that you have an EFI System Partition (ESP) with an EFI bootloader on it
<kettenis> of course in Linux-land there several ways to do this
<kettenis> and u-boot will still allow "legacy" distroboot, where it looks for a config file
<as400> BTW - is keyboard and touchpad working on macbooks ? Or it's not the time yet ?
<j_ey> as400: with patches
<as400> j_ey: thx. Are those patches included in janau's tree --> https://github.com/jannau/linux/tree/apple-m1-exp_v5.16-rc2 ?
<j_ey> no
<as400> ty sir
<mps> kettenis: iiuc I can put grub-efi in boot partition?
<mps> or I can put extlinux.conf file
<kettenis> yes
<kettenis> (I don't do Linux and I am baffled by the infinity ways to boot Linux)
<kettenis> apparently cool kids use systemd now to boot linux
<mps> I usually have to mark boot partition for arm SBCs with boot-able flag for u-boot to find them
* mps swithed from debian to alpine linux because of systemd 'hell'
<mps> switched*
sailorek1234 has quit []
sailorek1234 has joined #asahi
V has quit [Remote host closed the connection]
V has joined #asahi
Dcow_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jbowen has joined #asahi
sailorek1234 has quit []
yuyichao_ has quit [Ping timeout: 480 seconds]
dottedmag has joined #asahi
as400 has left #asahi [#asahi]
yuyichao_ has joined #asahi
darkapex2 has joined #asahi
darkapex1 has quit [Ping timeout: 480 seconds]
darkapex3 has joined #asahi
gladiac is now known as Guest6521
gladiac has joined #asahi
method_ has joined #asahi
darkapex2 has quit [Ping timeout: 480 seconds]
Guest6521 has quit [Ping timeout: 480 seconds]
Method has quit [Ping timeout: 480 seconds]
the_lanetly_052 has joined #asahi
the_lanetly_052 has quit []
the_lanetly_052 has joined #asahi
jbowen has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
yuyichao_ has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi
gladiac is now known as Guest6527
gladiac has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
Guest6527 has quit [Ping timeout: 480 seconds]
jbowen has joined #asahi
<mps> simpledrm works, typing right now in terminal on it
<mps> touchpad is 'dead'
the_lanetly_052 has quit [Remote host closed the connection]
<mps> if I have sound I don't need to boot macos anymore
<povik> mps: working on it
<mps> povik: thanks. in evtest it shows moves and touch buttons but doesn't show anything in xev
<povik> i meant sound, not touchpad :)
<mps> ah, that is also good news
<j_ey> that sounds like a configuration problem then (touchpad)
<mps> j_ey: hm, let me remove config and test
<j_ey> I havent tried the touchpad yet, but if it's getting stuff in evtest, doesnt sound like a driver issue
<mps> j_ey: no, even without config file it doesn't work
<mps> I'm using xf86-input-libinput driver
<_jannau_> possible a missing power-domain although strange that just the trackpad does not work. without the pmgr driver the commits from j_ey were working on a 14" macbook pro
<mps> xinput -list-props show this https://tpaste.us/0wOz
<_jannau_> forget that. if it were a missing power-domain issue spi woudn't work at all
<mps> ok, anyway I'm excited how well all works.
<mps> most programs works fine, except firefox which starts without any error but don't displays its window
<mps> many thanks to you all who works on porting linux (and BSD) on these machine
<j_ey> probably a distro/build issue, ff is working for others
<mps> j_ey: ff works fine on my other two arm64 and one armv7 chromebooks
<kov> ff works for me on the macbook air
chamomile has joined #asahi
<mps> kov: with simpledrm?
<kov> mps, yeah
<kov> debian 11
<mps> maybe missing sound card blocks it?
<kov> there is no sound driver on my air either, so I'd doubt it
<mps> hmm, have to look more what can be cause
<kov> though maybe if it is trying to use alsa directly? or you got pulseaudio?
<mps> no, alsa directly
<kov> yeah, that sounds more likely then, strace should be able to tell you
as400 has joined #asahi
<as400> mps: did you try chromium ?
jbowen has quit [Ping timeout: 480 seconds]
<mps> kov: could be, mpv also starts but it is stuck on audio
<mps> ah, yes, strace shows that it is polling something
<unrelentingtech> i don't think audio backends in firefox have the ability to prevent the window from showing up. not having any sound devices should definitely be supported with any backend
<mps> as400: no, I can't install chromiun because of dependencies conflict
<unrelentingtech> https://github.com/WayfireWM/wayfire/issues/775 some of the things apps can be waiting on (at least for a finite amount of time) heh
as400 has left #asahi [#asahi]
<kov> yeah I wonder if it could be a library that tries to open the audio device and never returns from a call though, strace should be able to clear that one up
<kov> but I agree the media backend of the web engine itself should not be blocking the ui at startup
<unrelentingtech> failing to open should be an instant ENOENT
<mps> and it is EAGAIN as I see in strace
<kov> mps, on what?
<mps> stracing ff
<kov> mps, I mean on what syscall you are getting EAGAIN?
<kov> is it an open()? if so of what path? =)
<mps> read and write
<kov> the first paramter should be the file descriptor, you can use lsof to figure out what path the fd refers to, if any
<mps> write(26, "\372", 1)
<kov> mps, yeah, lsof should tell you what 26 refers to
<mps> recvmsg(4, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
<mps> kov: 'lsof | grep "\<26>"' ?
chamomile has quit [Ping timeout: 480 seconds]
<mps> thanks all for help, I must go now, will continue testing tomorrow
jbowen has joined #asahi
chamomile has joined #asahi
HardWall has joined #asahi
RealityVoid has quit [Ping timeout: 480 seconds]
jbowen has quit [Ping timeout: 480 seconds]
SmileyKeith has joined #asahi
jmr2 has joined #asahi
<jmr2> jannau: for my understanding, what is your audience for your apple-m1-exp* branches ? Only you, (and perfect if it's of interest for others), or are you trying to build a reference tree of everything Asahi has worked on so far ?
Dcow has joined #asahi
Dcow has quit []
Dcow has joined #asahi
<jannau> jmr2: I'm not sure. it is certainly intended for public use but I'm unsure which standard to use for including patches
X-Scale` has joined #asahi
aleasto has quit [Quit: Konversation terminated!]
X-Scale has quit [Ping timeout: 480 seconds]
tertu2 has joined #asahi
tertu has quit [Ping timeout: 480 seconds]
_chamomile has joined #asahi
chamomile has quit [Ping timeout: 480 seconds]
<jmr2> jannau: OK, thanks. Mine's still too messy to share, but I'm starting to think that we're duplicating efforts. I might propose something later, once I'll have clean it up - and my mind at the same time.
<j_ey> jmr2: share it anyway!
<jmr2> j_ey: Glad to see the interest, but it's really too messy at this time. Soon.
<jmr2> (and the reality is that it doesn't contain anything new - it just merge bits that I haven't seen in the same branch yet)
<j_ey> jmr2: fair :)
<sven> :D
<jmr2> sven: since you're here: what's the correct source for your latest NVME patches?
<sven> There’s no correct source yet
<jmr2> I've seen two versions where an ID was changing... let me try to recall what it was.
<jmr2> Well... latest draft, let's say?
<j_ey> genctr?
<sven> i actually understand the nvme subsystem at this point and am working on a version locally right now
<sven> but so far it can only bring up the admin queue and crash then
<sven> until that’s ready it probably doesn’t matter what version you use. the two that are around should be very similar
<j_ey> jmr2: i would say look at asahi t6000/bringup-work
<jmr2> OK. I'll probably just keep nvme out, as it is currently. I'm still ooting from USB2.
<j_ey> sven: so youre going for a complete rewrite?
<jmr2> *booting
<sven> j_ey: yes. that was the only way for me to understand how the driver actually works
<sven> it should also recover correctly from timeouts etc. now that I can actually reset the co-processor
<j_ey> sven: cool, i look foward to the branch!
<sven> It also looks simpler now. (Except for that fact that it just crashes right now, but that’s details :D)
<j_ey> :3
<sven> and I can explain what all those custom Apple register so now :-)
<sven> already much happier than I was with the previous one so far
<j_ey> sven: how many LOC so far? (not a great measure, but still..)
<sven> 1200 or so
<j_ey> sven: 'it crashes' was ANS, or linux?
<sven> linux
<sven> likely something dumb, just need to find some time to debug it
<j_ey> 🙏 good luck1
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Dcow has joined #asahi
yuyichao_ has quit [Ping timeout: 480 seconds]