#
…

2021-11-22

00:20gladiac is now known as Guest6477
00:20gladiac has joined #asahi
00:26Guest6477 has quit [Ping timeout: 480 seconds]
01:33_chamomile has joined #asahi
01:34chamomile has quit [Ping timeout: 480 seconds]
02:52kenzie has quit [Quit: The Lounge - https://thelounge.chat]
02:54kenzie has joined #asahi
03:07kenzie has quit [Quit: The Lounge - https://thelounge.chat]
03:07kenzie has joined #asahi
03:08kenzie has quit []
03:10kenzie has joined #asahi
03:16phiologe has joined #asahi
03:19PhilippvK has quit [Ping timeout: 480 seconds]
03:21kov has quit [Quit: Coyote finally caught me]
03:27marcancth451_desktop: there's an API for this, you don't need to open-code it
03:27marcansee how the other drivers do it
03:28marcangrep for eth_platform_get_mac_address
03:28marcanalso, if a mac address is supplied via OF it should always override whatever the card thinks is its mac address, even if valid
03:46kenzie has quit [Read error: Connection reset by peer]
03:46kenzie has joined #asahi
03:52darkapex1 has joined #asahi
03:58darkapex has quit [Ping timeout: 480 seconds]
03:59kenzie has quit [Quit: The Lounge - https://thelounge.chat]
04:21kenzie has joined #asahi
04:25marvin24 has joined #asahi
04:28marvin24_ has quit [Ping timeout: 480 seconds]
04:32kenzie4 has joined #asahi
04:32kenzie has quit [Ping timeout: 480 seconds]
04:36linearcannon has quit [Quit: Textual IRC Client: www.textualapp.com]
04:38kenzie41 has joined #asahi
04:39kenzie4 has quit [Read error: Connection reset by peer]
05:20jmr2 has joined #asahi
05:21jmr2FireFox317: FYI, I just did the pull request. Thanks again.
05:21jmr2 has quit []
05:23ganpa[m] has left #asahi [#asahi]
05:33_chamomile has quit [Ping timeout: 480 seconds]
05:55arahael3 has joined #asahi
06:20marcancth451_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
06:20cth451_desktopi.e. assuming DT won't supply such weird MACs
06:21marcanother than that looks good to me, want to send it upstream? :)
06:23cth451_desktopSure. The patch has been update
06:23marcancheck the commit summary to make sure it is formatted the same way as others for that file
06:23marcan(probably needs some net/ethernet prefix or so)
06:23marcanlooks like net: atlantic:
06:25marcanalso 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.
06:26cth451_desktopI'm working in a git tree so yeah amended commit and did another format-patch
06:33sailorek1234 has joined #asahi
06:34marcanah, cool :)
07:09tomtastic_ has joined #asahi
07:12tomtastic has quit [Ping timeout: 480 seconds]
08:10linearcannon has joined #asahi
09:20cth451_desktop has quit [Remote host closed the connection]
09:22jannauhttps://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
09:23jannauonly lightly tested (boots M1 Max macbook pro and mac mini)
09:23jannauI'll update the PKGBUILD tonight
09:28stblassitude_ has joined #asahi
09:28Chainsaw_ has joined #asahi
09:28mpsjannau: thank you
09:28maennich_ has joined #asahi
09:29aeroraptor has quit [Ping timeout: 480 seconds]
09:29mustache_ride___ has quit [Ping timeout: 480 seconds]
09:29enomem has quit [Ping timeout: 480 seconds]
09:29brinly has quit [Ping timeout: 480 seconds]
09:29taowa has quit [Ping timeout: 480 seconds]
09:29maennich_ is now known as maennich1
09:29philpax has quit [Ping timeout: 480 seconds]
09:29robher_ has joined #asahi
09:30ovf has quit [Ping timeout: 480 seconds]
09:30eichin has quit [Ping timeout: 480 seconds]
09:30esden has quit [Ping timeout: 480 seconds]
09:30kendfinger has quit [Ping timeout: 480 seconds]
09:30tardyp has quit [Ping timeout: 480 seconds]
09:30arnd_ has quit [Ping timeout: 480 seconds]
09:30guan has quit [Ping timeout: 480 seconds]
09:31cptcobalt has quit [Ping timeout: 480 seconds]
09:31austriancoder has quit [Ping timeout: 480 seconds]
09:31Vaughn has quit [Ping timeout: 480 seconds]
09:31sjg1 has quit [Ping timeout: 480 seconds]
09:31NekomimiScience has quit [Ping timeout: 480 seconds]
09:31jannaupatches for additional HW probably need "power-domain" properties added to their devicetree nodes
09:31sorear_ has joined #asahi
09:32Ariadne has quit [Ping timeout: 480 seconds]
09:32nkaretnikov has quit [Ping timeout: 480 seconds]
09:32rann has quit [Ping timeout: 480 seconds]
09:32jkkm has quit [Ping timeout: 480 seconds]
09:32jabashque has quit [Ping timeout: 480 seconds]
09:32sorear has quit [Ping timeout: 480 seconds]
09:32sorear_ is now known as sorear
09:32maennich has quit [Ping timeout: 480 seconds]
09:32steev has quit [Ping timeout: 480 seconds]
09:32maennich1 is now known as maennich
09:32Chainsaw has quit [Ping timeout: 480 seconds]
09:32robher has quit [Ping timeout: 480 seconds]
09:32stblassitude has quit [Ping timeout: 480 seconds]
09:32Chainsaw_ is now known as Chainsaw
09:32stblassitude_ is now known as stblassitude
09:32daniels has quit [Ping timeout: 480 seconds]
09:32ZLSA has quit [Ping timeout: 480 seconds]
09:32tom-w has quit [Ping timeout: 480 seconds]
09:32saintdev_ has quit [Ping timeout: 480 seconds]
09:32Ariadne has joined #asahi
09:33eric_engestrom has quit [Ping timeout: 480 seconds]
09:33tom-w has joined #asahi
09:33mpsyes. poweroff and reboot doesn't work for now
09:34daniels has joined #asahi
09:34jkkm has joined #asahi
09:35mpsxorg server segfaults with xf86-video-fbdev
09:35tardyp has joined #asahi
09:35aeroraptor has joined #asahi
09:35saintdev_ has joined #asahi
09:35j_eyreboot should work on that branch
09:35brinly has joined #asahi
09:36mustache_ride___ has joined #asahi
09:36enomem has joined #asahi
09:36mpsj_ey: you mean with kernel 5.16-rc2 ?
09:36philpax has joined #asahi
09:36taowa has joined #asahi
09:37j_eyno jannau's branch
09:38mpsyes sorry, I mean 5.16-rc2 with jannau patches
09:38Vaughn has joined #asahi
09:39marcanmps: xorg-server doesn't like fbdev, possibly due to the 30-bit color depth
09:39marcantry simpledrm instead
09:39steev has joined #asahi
09:39j_eyyeah reboot should work, it has sven's watchdog driver
09:39eric_engestrom has joined #asahi
09:39cptcobalt has joined #asahi
09:39eichin has joined #asahi
09:39arnd_ has joined #asahi
09:39nkaretnikov has joined #asahi
09:39sjg1 has joined #asahi
09:40austriancoder has joined #asahi
09:40ovf has joined #asahi
09:40mpsmarcan: I tried with simpledrm but got blank screen on boot, will test it on other arm64 first and then try again on m1
09:40jabashque has joined #asahi
09:40NekomimiScience has joined #asahi
09:40mpsoh btw, what RTC driver should be enabled in kernel. date year is 1970
09:41esden has joined #asahi
09:41marcanI don't think we have one yet
09:41ZLSA has joined #asahi
09:41kendfinger has joined #asahi
09:41guan has joined #asahi
09:41marcanI think that was in the PMU which needs SPMI?
09:41rann has joined #asahi
09:42mpsnot that I know. I thought EFI rtc could work
09:42marcanthere is no EFI
09:42marcancertainly no EFI runtime services involving hardware :)
09:42mpsyes, noticed this after looking on dmesg and /sys
09:43marcanu-boot will provide EFI but nothing terribly useful for runtime services, since we don't have a variable store
09:44_jannau_reboot was working on the macbook pro, I didn't test the mac mini
09:44mpsI tested u-boot but usb keyboard doesn't work
09:44svenworks on a t8103 mini for me
09:45mpsnot on macbook pro
09:45mpssay something that usb must be started, and keyboard on machine also doesn't work
09:46marcanu-boot does not support the built-in keyboard yet
09:47mpsif u-boot works it will be a lot easier for me to test kernels with different drivers/options
09:47marcantethered boot is still a lot faster and easier for testing kernels :p
09:47svenu-boot should also allow network boot
09:48kettenisnot all usb keyboards work in u-boot
09:48kettenisbut my apple keyboard works fine with the 13" macbook pro
09:51mpsI have only one gaming usb keyboard
09:51marcangaming keyboards tend to be problematic if they have fancy features
09:52mpsit works with kernel but not with u-boot
09:52marcanthat's common
09:52marcanthose keyboards tend to cause issues with the boot protocol but work fine with full HID stacks
09:54mpsthat is my observation also
10:02chamomile has joined #asahi
10:02ChainsawSometimes there is a hotkey that allows you to put the gaming keyboard into "simple mode" or "BIOS mode".
10:10chamomile has quit [Ping timeout: 480 seconds]
10:31FireFox317marcan, can we find the latest cpufreq driver somewhere?
10:33kov has joined #asahi
10:34marcanthere isn't one, it needs a rewrite since the last submission
10:34marcanpart of that was the memory controller poking I did earlier, to figure out how that changed
10:34cth451_desktop has joined #asahi
10:36FireFox317ah my bad, i wasnt sure if it needed a rewrite or not
10:42kettenisSPMI is fairly simple, and so is the RTC component of Apple's SPMI PMU
10:44kettenisThose are the OpenBSD drivers I wrote based on my understanding of how the hardware works
10:45kettenisShouldn't be too hard to write a clean Linux driver based on that
10:47kettenisthe t6000 seems to have a different SPMI PMU, but I think the RTC component works in the same way
10:49kettenisI'm not really planning to add support for the RTC to u-boot since it would only work at boot time
10:53kettenisI've been told netbooting already works in u-boot if you use a supported usb dongle
11:05gabuscus has quit [Ping timeout: 480 seconds]
11:25gabuscus has joined #asahi
11:34X-Scale has joined #asahi
11:39X-Scale` has quit [Ping timeout: 480 seconds]
11:43gabuscus has quit [Ping timeout: 480 seconds]
11:55mpskettenis: can u-boot detect internal drive boot partition
11:59gabuscus has joined #asahi
12:07aleasto has joined #asahi
12:08mpskettenis: nice. how the boot partition should be formated? ext4? and does it need boot flag set
12:24as400 has joined #asahi
12:25as400mps: it depends. Is distro boot enabled ?
12:27kettenisthe way this is intended to work is that you have an EFI System Partition (ESP) with an EFI bootloader on it
12:27kettenisof course in Linux-land there several ways to do this
12:28kettenisand u-boot will still allow "legacy" distroboot, where it looks for a config file
12:30as400BTW - is keyboard and touchpad working on macbooks ? Or it's not the time yet ?
12:31j_eyas400: with patches
12:34as400j_ey: thx. Are those patches included in janau's tree --> https://github.com/jannau/linux/tree/apple-m1-exp_v5.16-rc2 ?
12:39mpskettenis: iiuc I can put grub-efi in boot partition?
12:39mpsor I can put extlinux.conf file
12:44kettenis(I don't do Linux and I am baffled by the infinity ways to boot Linux)
12:45kettenisapparently cool kids use systemd now to boot linux
12:45mpsI usually have to mark boot partition for arm SBCs with boot-able flag for u-boot to find them
12:46* mpsswithed from debian to alpine linux because of systemd 'hell'
12:47mpsswitched*
12:55sailorek1234 has quit []
12:56sailorek1234 has joined #asahi
13:32V has quit [Remote host closed the connection]
13:35V has joined #asahi
13:58Dcow_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
14:31jbowen has joined #asahi
14:37sailorek1234 has quit []
14:39yuyichao_ has quit [Ping timeout: 480 seconds]
14:49dottedmag has joined #asahi
15:01as400 has left #asahi [#asahi]
15:01yuyichao_ has joined #asahi
15:02darkapex2 has joined #asahi
15:04darkapex1 has quit [Ping timeout: 480 seconds]
15:06darkapex3 has joined #asahi
15:07gladiac is now known as Guest6521
15:07gladiac has joined #asahi
15:09method_ has joined #asahi
15:10darkapex2 has quit [Ping timeout: 480 seconds]
15:13Guest6521 has quit [Ping timeout: 480 seconds]
15:14Method has quit [Ping timeout: 480 seconds]
15:24the_lanetly_052 has joined #asahi
15:24the_lanetly_052 has quit []
15:24the_lanetly_052 has joined #asahi
15:44jbowen has quit [Ping timeout: 480 seconds]
15:44yuyichao has joined #asahi
15:47yuyichao_ has quit [Ping timeout: 480 seconds]
15:48yuyichao_ has joined #asahi
15:49gladiac is now known as Guest6527
15:49gladiac has joined #asahi
15:52yuyichao has quit [Ping timeout: 480 seconds]
15:55Guest6527 has quit [Ping timeout: 480 seconds]
16:03jbowen has joined #asahi
16:04mpssimpledrm works, typing right now in terminal on it
16:04mpstouchpad is 'dead'
16:05the_lanetly_052 has quit [Remote host closed the connection]
16:07mpsif I have sound I don't need to boot macos anymore
16:59povikmps: working on it
17:00mpspovik: thanks. in evtest it shows moves and touch buttons but doesn't show anything in xev
17:01poviki meant sound, not touchpad :)
17:02mpsah, that is also good news
17:08j_eythat sounds like a configuration problem then (touchpad)
17:11mpsj_ey: hm, let me remove config and test
17:13j_eyI havent tried the touchpad yet, but if it's getting stuff in evtest, doesnt sound like a driver issue
17:13mpsj_ey: no, even without config file it doesn't work
17:13mpsI'm using xf86-input-libinput driver
17:16_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
17:18mpsxinput -list-props show this https://tpaste.us/0wOz
17:19_jannau_forget that. if it were a missing power-domain issue spi woudn't work at all
17:22mpsok, anyway I'm excited how well all works.
17:23mpsmost programs works fine, except firefox which starts without any error but don't displays its window
17:24mpsmany thanks to you all who works on porting linux (and BSD) on these machine
17:24j_eyprobably a distro/build issue, ff is working for others
17:25mpsj_ey: ff works fine on my other two arm64 and one armv7 chromebooks
17:26kovff works for me on the macbook air
17:26chamomile has joined #asahi
17:27mpskov: with simpledrm?
17:27kovmps, yeah
17:27kovdebian 11
17:28mpsmaybe missing sound card blocks it?
17:28kovthere is no sound driver on my air either, so I'd doubt it
17:29mpshmm, have to look more what can be cause
17:29kovthough maybe if it is trying to use alsa directly? or you got pulseaudio?
17:29mpsno, alsa directly
17:30kovyeah, that sounds more likely then, strace should be able to tell you
17:31as400 has joined #asahi
17:31as400mps: did you try chromium ?
17:32jbowen has quit [Ping timeout: 480 seconds]
17:32mpskov: could be, mpv also starts but it is stuck on audio
17:33mpsah, yes, strace shows that it is polling something
17:34unrelentingtechi 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
17:35mpsas400: no, I can't install chromiun because of dependencies conflict
17:36unrelentingtechhttps://github.com/WayfireWM/wayfire/issues/775 some of the things apps can be waiting on (at least for a finite amount of time) heh
17:36as400 has left #asahi [#asahi]
17:37kovyeah 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
17:37kovbut I agree the media backend of the web engine itself should not be blocking the ui at startup
17:38unrelentingtechfailing to open should be an instant ENOENT
17:38mpsand it is EAGAIN as I see in strace
17:38kovmps, on what?
17:39mpsstracing ff
17:39kovmps, I mean on what syscall you are getting EAGAIN?
17:39kovis it an open()? if so of what path? =)
17:40mpsread and write
17:41kovthe first paramter should be the file descriptor, you can use lsof to figure out what path the fd refers to, if any
17:41mpswrite(26, "\372", 1)
17:42kovmps, yeah, lsof should tell you what 26 refers to
17:42mpsrecvmsg(4, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
17:44mpskov: 'lsof | grep "\<26>"' ?
17:46chamomile has quit [Ping timeout: 480 seconds]
17:47mpsthanks all for help, I must go now, will continue testing tomorrow
17:51jbowen has joined #asahi
18:04chamomile has joined #asahi
18:19HardWall has joined #asahi
18:23RealityVoid has quit [Ping timeout: 480 seconds]
19:04jbowen has quit [Ping timeout: 480 seconds]
19:28SmileyKeith has joined #asahi
20:21jmr2 has joined #asahi
20:26jmr2jannau: 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 ?
20:57Dcow has joined #asahi
20:58Dcow has quit []
21:00Dcow has joined #asahi
21:44jannaujmr2: I'm not sure. it is certainly intended for public use but I'm unsure which standard to use for including patches
21:45X-Scale` has joined #asahi
21:49aleasto has quit [Quit: Konversation terminated!]
21:51X-Scale has quit [Ping timeout: 480 seconds]
22:03tertu2 has joined #asahi
22:04tertu has quit [Ping timeout: 480 seconds]
22:05_chamomile has joined #asahi
22:10chamomile has quit [Ping timeout: 480 seconds]
22:34jmr2jannau: 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.
22:36j_eyjmr2: share it anyway!
22:40jmr2j_ey: Glad to see the interest, but it's really too messy at this time. Soon.
22:42jmr2(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)
22:42j_eyjmr2: fair :)
22:44jmr2sven: since you're here: what's the correct source for your latest NVME patches?
22:44svenThere’s no correct source yet
22:44jmr2I've seen two versions where an ID was changing... let me try to recall what it was.
22:45jmr2Well... latest draft, let's say?
22:45j_eygenctr?
22:45sveni actually understand the nvme subsystem at this point and am working on a version locally right now
22:45svenbut so far it can only bring up the admin queue and crash then
22:46svenuntil that’s ready it probably doesn’t matter what version you use. the two that are around should be very similar
22:46j_eyjmr2: i would say look at asahi t6000/bringup-work
22:47jmr2OK. I'll probably just keep nvme out, as it is currently. I'm still ooting from USB2.
22:47j_eysven: so youre going for a complete rewrite?
22:47jmr2*booting
22:47svenj_ey: yes. that was the only way for me to understand how the driver actually works
22:48svenit should also recover correctly from timeouts etc. now that I can actually reset the co-processor
22:49j_eysven: cool, i look foward to the branch!
22:49svenIt also looks simpler now. (Except for that fact that it just crashes right now, but that’s details :D)
22:52svenand I can explain what all those custom Apple register so now :-)
22:52svenalready much happier than I was with the previous one so far
22:54j_eysven: how many LOC so far? (not a great measure, but still..)
22:57sven1200 or so
22:59j_eysven: 'it crashes' was ANS, or linux?
22:59svenlinux
22:59svenlikely something dumb, just need to find some time to debug it
23:00j_ey🙏 good luck1
23:02Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
23:07Dcow has joined #asahi
23:56yuyichao_ has quit [Ping timeout: 480 seconds]
…