#
…

2021-12-24

00:22Namidairo has quit [Quit: ZNC - https://znc.in]
00:22Namidairo has joined #asahi
01:01aleasto has quit [Quit: Konversation terminated!]
01:08tpw_rulesthis diff: https://pastebin.com/NzJEQJDW combined with the command line flags '--in-process-gpu --no-sandbox --no-zygote' produces a chromium that works with 16k pages. someone who cares more about google should probably file a bug report
01:17yuyichao has joined #asahi
02:19darkapex1 has joined #asahi
02:19nobodynada has joined #asahi
02:23darkapex has quit [Ping timeout: 480 seconds]
02:27nobodynada has quit [Ping timeout: 480 seconds]
02:29caef^ has quit [Ping timeout: 480 seconds]
02:29caef^ has joined #asahi
03:11skipwich has quit [Ping timeout: 480 seconds]
03:11marcantpw_rules: should be 64K tbh
03:14tpw_rulesyeah it should
03:15tpw_rulesthat might fix those flags too, that loongson thing is the only thing in there with 16k pages and who knows how maintained it is. but i tried just to try, i'm not actually a chrome user
03:50phiologe has joined #asahi
04:20skipwich has joined #asahi
04:22marvin24_ has joined #asahi
04:26marvin24 has quit [Ping timeout: 480 seconds]
04:31nobodynada has joined #asahi
04:47nobodynada has quit [Ping timeout: 480 seconds]
04:48Dcow_ has joined #asahi
05:11Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:13nobodynada has joined #asahi
05:20Dcow_ has joined #asahi
05:21nobodynada has quit [Ping timeout: 480 seconds]
05:24Dcow has quit [Ping timeout: 480 seconds]
05:24amwFWIW wifi take 3 works perfectly on my mba M1 2020 : nvme rootfs + wifi + touchpad + keyboard all working
05:26amwMakes for a really nice fast light untethered laptop - although I am slightly paranoid about power as there is no way (I know of) to read the battery level...
05:56GlanzmannIt will soom with smc marcan told a few days ago. You can also use it for an hour and check in macos for now.
05:56Glanzmannamw: Which Distribution are you running/
06:00amwGlanzmann: Bullseye
06:01amwFor now I just plug into the charger when I'm not using it, haven't run MacOS for 3 days or so
06:02Glanzmannamw: Nice. Can you upload your .config and xorg tweaks for the touchpad and paket list soemwhere?
06:02amwGlanzmann: Sure
06:04GlanzmannBtw I've written a howto to install Debian bullseye faster: https://tg.st/u/asahi-debian-bullseye-quickstart.txt
06:04GlanzmannBasically you create the partition from macos and dd the image using the tpw_rules 'tar as gzcat' trick.
06:05GlanzmannThan you can resize2fs to fill the partition from the booted system.
06:06amwok - sounds nice. I'm too scared to move off my 11.4 macOS at the moment - after seeing your struggles ...
06:06amwHope it's working for you again
06:07Glanzmannamw: For the notebooks it is fine. The mini is the problem.
06:08amwThat's good to hear.
06:09GlanzmannI tried to reinstall on the mini in order to do a bullseye quickstart installation video using a hdmi grabber ...
06:09GlanzmannBut to be honest I hope that one of the best, maybe marcan, initializes the hdmi in m1n1 maybe also make it possible to set a resolution and than mini is usable again.
06:09par0 has joined #asahi
06:10Glanzmanns/best/devs/
06:10par0 has quit []
06:12Glanzmannamw: Because it happened to me once, do not close the lid when Linux is running, it gets warm under there since we have no ability to disable the screen at the moment.
06:12amwok I did that - it didn't seem too hot, a little warm under the hinge area but fine otherwise
06:14marcanpushed wifi/take4 which unbreaks t6000 machines (which broke due to the T2 changes)
06:14Glanzmannamw: I left it sitting like that for several hours. When I cam back the metal besides the touchpad was very warm. I never felt it that warm, but it cooled down in a minute or so.
06:14Glanzmannmarcan: Will try it and report back.
06:20Glanzmannamw: Thanks a lot might be helpful if wifi still does not work out of the box for me, thanks a lot.
06:20Glanzmannamw: Did you do anything special for the touchpad? Are you using xorg or wayland?
06:37MajorBiscuit has joined #asahi
06:38amwGlanzmann: Sorry I was busy - I believe I am just running X11 : /usr/lib/xorg/Xorg fluxbox, firefox runs very well (no sound of course)
06:40amwThe only problem I had was with the touchpad was fixed when I removed the xserver-xorg-input-synaptics and installed the xserver-xorg-input-libinput
06:40amwI also have the xserver-xorg-input-mtrack installed - not sure if it is needed
06:48Dcow has joined #asahi
06:49Dcow__ has joined #asahi
06:52Dcow_ has quit [Ping timeout: 480 seconds]
06:53arahael3 has quit [Quit: WeeChat 3.1]
07:12Dcow_ has joined #asahi
07:14nobodynada has joined #asahi
07:15Dcow has quit [Ping timeout: 480 seconds]
07:15Dcow__ has quit [Ping timeout: 480 seconds]
07:40Major_Biscuit has joined #asahi
07:42MajorBiscuit has quit [Ping timeout: 480 seconds]
07:49ChaosPrincess has quit [Quit: WeeChat 3.3]
07:49ChaosPrincess has joined #asahi
08:09pg12_ has joined #asahi
08:11pg12 has quit [Ping timeout: 480 seconds]
08:15mpsamw: for me keyboard/touchpad works with both, synaptics and libinput driver, just had to configure which one to use
09:03landscape15[m]Is it possible to install Linux on a FAT32 partition?
09:03landscape15[m]I created it in macOS
09:08mpslandscape15[m]: maybe but it will not work correctly because FAT can't preserve file names and rights
09:09VinDuvit may work but probably not very well
09:13Redecorating[m]also no symlinks
09:13VinDuvnon-journaled case-sensitive HFS+ may work though
09:16landscape15[m]VinDuv: why? Is there a driver?
09:17mpsmarcan: just tested with wifi/take4 branch on MBP (j293) and wifi still doesn't work, same error in dmesg out: brcmfmac 0000:01:00.0: brcmf_pcie_init_ringbuffers: Allocating ring buffers failed
09:18mpsI know latest changes are to something else but wanted to inform you
09:20landscape15[m]mps: btw i will format the partition directly in Linux, booted from USB (and then `cp` to the new partition).
09:22mpslandscape15[m]: linux distros usually have a lot of symlinks but FAT doesn't supports that
09:23mpsyou are free to do whatever you want but advice is: don't waste time
09:26landscape15[m]I mean I will format the partition in ext4 (not FAT) from Linux
09:28mpslandscape15[m]: ah, ok
09:29mpsuse 'cp -a ....' to preserve attributes and time on files
09:38amwmps: Didn
09:38amwmps: Didn't mess with the config for synaptics - don't really follow all of the features
09:40amwlandscape15[m]: Definitely agree unless you are looking for adventure stick with ext4 as I had wierd errors like ping for normal users doesn't work because I was missing the ext4 attributes feature missing
09:40chadmed has joined #asahi
09:40mpsamw: https://tpaste.us/ZjOo this is simple config which uses synaptics for touchpad and libinput for keyboard
09:42amwmps: I'll try it and see if makes a difference
09:51as400[m]tpw_rules: sandboxing is not working in chromium due to missing kernel bits
09:56as400[m]tpw_rules: CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=y and CONFIG_SECURITY_YAMA=y. First one just to stay on the safe side - I'm not sure it's needed.
10:18aleasto has joined #asahi
10:22amwmps: Yep - I install the debian bullseye synaptics package and touch screen didn't work - but mouse did - with this config https://paste.debian.net/1224616/
10:23amwI switched it for your configuration and the touchpad worked but my USB mouse didn't...
10:23mpsamw: touch screen? maybe you mean touchpad?
10:25marcanmps: can you enable all the debug options and paste a full dmesg of at least the brcmfmac range? CONFIG_BRCM_TRACING=y CONFIG_BRCMDBG=y
10:25mpsamw: you have to add section for mouse if you use it, or any other device
10:25marcanthough I probably won't work on this until after xmas :p
10:25amwSorry - yep touchpad (mba) - this one in xserver-xorg-input-libinput allows both mouse and touchpad for me - Sorry I mixed them up - this is https://paste.debian.net/1224617 is the synaptics config
10:25mpsmarcan: yes I can, is these two enough to enable
10:26j`eymarcan: no xmas stream? :( :P
10:27marcanunless you want to see me eating cheese fondue with a friend and opening presents :p
10:27marcanmps: yes
10:27j`eymarcan: that sounds great, enjoy!
10:30nobodynada has quit [Ping timeout: 480 seconds]
10:33mpshm, not enough just these two, have to enable more codedump and some other. ok will build complete new kernel and reboot
10:45Major_Biscuit has quit [Ping timeout: 480 seconds]
10:54mpsmarcan: here is dmesg out https://tpaste.us/lyea
10:55mpsnot much and no hint for me
10:56mpswhat are debug levels for brcmfmac, anyone knows
11:00mpshttps://tpaste.us/dPDj this have little more infos
11:05martinstewart has joined #asahi
11:09amwmps: Not sure it's any use but https://paste.debian.net/1224622/ is my dmesg from marcan/wifi/take3 and inbuilt wifi
11:13martinstewart has quit [Ping timeout: 480 seconds]
11:14mpsamw: your machine is Air? problem is on pro model
11:16mpsRedecorating[m]: thanks, now have to calculate which one to use
11:21amwYep - it's Air - lucky me I guess
11:28mpsmarcan: https://tpaste.us/41Jq these have more data
11:35mpshttps://tpaste.us/Mzg5 this is a more extensive, ringbuffer is there
11:42jannaumps: not sure if the debug message is wrong or if it loads indeed firmware brcm/brcmfmac4378b1-pcie.bin instead of brcm/brcmfmac4378b1-pcie.apple,honshu.bin
11:43mpsjannau: there is no brcmfmac4378b1-pcie.bin in /lib/firmware/brcm
11:52mpswould someone who extracted firmware with latest installer post tarball to me. maybe my extraction isn't proper
11:56jannaumps: please load brcmfmac with 'debug=0x00080006'
11:57Glanzmannamw: Thanks for the clarification
11:58mpsjannau: https://tpaste.us/EMqO this is result
11:58Glanzmannmps: Does your wifi work yet?
11:58mpsGlanzmann: no, not yet
12:03jannaumps: most obvious difference to j274/j314c is "brcmf_pcie_init_ringbuffers Using host memory indices"
12:04jannauthat's the else part of your 'brcmf_pcie_init_ringbuffers Using TCM indices'
12:06jannauI'd say it's doubtful that the macbook pro 13 should use a different method
12:06___nick___ has joined #asahi
12:06___nick___ has quit []
12:08___nick___ has joined #asahi
12:08mpsmy C skill faded away to hack this
12:10mpsI see code but don't understand it
12:11jannauare you running a kernel with 4k or 16k page size?
12:15jannauI think the pcie dart don't suppport bypass and don't work currently with 4k kernel page size
12:15jannauplease try with a 16k kernel
12:15mpsjannau: oh
12:16mpsand f2fs works only with 4K
12:16mpsok will test
12:18jannauI think the dma_alloc_coherent in brcmf_pcie_init_ringbuffers() fails and the driver tries to use "TCM indices" instead. no idea why the latter fails or if it is supposed to work
12:20mpsiirc on one other intel machine brcmfmac works with 4K pages, but have to check to be sure
12:23nobodynada has joined #asahi
12:25jannauthis is unrelated to brcmfmac. the iommu for the pcie ports works currently just with 16k kernel page size
12:26chadmed has quit [Remote host closed the connection]
12:27mpsfinished build, now will reboot and see
12:31mpsjannau: it works with 16K pages
12:36mpsnow I have to convert my disks from f2fs to something else, ufff
12:37mpsjannau: thanks for helping find cause of problem
12:39mpsonly left 'apple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)' this to not have usb dongle attached all day
12:54nobodynada has quit [Ping timeout: 480 seconds]
13:25Major_Biscuit has joined #asahi
14:43yuyichao has quit [Ping timeout: 480 seconds]
14:45Major_Biscuit has quit [Ping timeout: 480 seconds]
14:47nobodynada has joined #asahi
14:53caef^ has quit [Ping timeout: 480 seconds]
14:56Glanzmannmps: I did not know that you run a 4 kB kernel, otherwise I could have told you as well. :-( I heard had I think sven wanted to make the dart work 4k soon ...
14:56Glanzmannmps: Otherwise ext4fs give me good results. :-)
14:56Glanzmannjannau: Good catch with mps wifi.
14:59mpsGlanzmann: also I remember that sven told something about dart on 4K
14:59mpsGlanzmann: ext4 on flash devices is slow with journal and not safe without journal
15:00mpsbut for now will switch to it
15:01mps(better slow than not working)
15:03jochum_ has joined #asahi
15:05jochum has quit [Ping timeout: 480 seconds]
15:05nobodynada has quit [Ping timeout: 480 seconds]
15:10yuyichao has joined #asahi
15:18tpw_rulesas400[m]: just curious, did you actually try to build and run it on a 16k kernel? the symptoms i saw were that it crashed instantly on startup without those flags
15:18tpw_ruleswith a whole bunch of log messages that didn't really make sense
15:19tpw_rules(mostly seemed to be the crash reporting process crashing)
15:25Glanzmannmps: I have ext4 on a lot of flash devices, but had never any issues. Journaling is on by default, isn't it?
15:26GlanzmannFor the m1, I often prefix apt and kernel builds with 'eatmydata' to delay sync.
15:31GlanzmannMarry chistmas to everyone.
15:32mpsGlanzmann: yes, journaling is on if you don't disable it
15:32mpsand it 'lead' to wearing flash devices
15:32mpsf2fs is specifically made for flash devices
15:33mpsalso, Marry Christmas to all
15:34mpsGlanzmann: iwd works nice with wifi now
15:35mpsdon't know if debian have iwgtk packaged, simple gui for iwd
15:36mpsand iwd can work in STA, AP and Ad-Hoc mode
15:42Glanzmannmps: To be honest, I do it the following with debain. I have this giant wpa_supplicant.conf with all the wifi access points I used in the past, all over the world. And than I have this twoliner: https://pbot.rmdir.de/X2A0alscskfEEp4uCHK_ow and the rest normally happens automatically ...
15:45mpswell, I use wpa_s only with dongles which have wext interface. iwd is lot faster on net setup because it has FILS implemented
15:46Glanzmannmps: I see. I had no issues with failing flash devices the last 10 years until this year. This year 15 Samsung SSDs (EVO, QVO, NVMe Pro) failed with less than 10 TB written. With EVO and QVO there is a report about them failing with ncq trim enabled, so I disabled it, and another one failed. So for now I'm going with Intel DC edition and Micron DC edition SSDs. It also seems that the enterprise version
15:46Glanzmannof samsung nvmes is also working properly.
15:47Glanzmannmps: I see, never heard of iwd, need to try it out. And honestly these days I'm only using a single ssid and when I travel I get a sim card and use wifi tethering with the very same ssid ...
15:48Glanzmannmps: I use autologin on my Linux systems, and when I'm logged in, wifi is also there even with wpa_supplicant.
15:52mpsGlanzmann: I had to add delay to iwd on boot because it was too fast on two chromebooks :)
16:33the_lanetly_052 has joined #asahi
16:58nobodynada has joined #asahi
17:00amw has quit [Remote host closed the connection]
17:01amw has joined #asahi
17:06skoobasteeve_ has joined #asahi
17:09skoobasteeve has quit [Ping timeout: 480 seconds]
17:21as400[m]tpw_rules: I didn't build chromium with your patch. But I have seen chromium not starting without kernel options I mentioned. So, to make things clear, options mentioned are required to start the browser with sandbox mode.
17:22nobodynada has quit [Ping timeout: 480 seconds]
17:44ey3ball[m]Had some issues with my rootfs getting trashed ... looks like MacOS can corrupt partitions if it think it knows the partition type set on the GPT
17:48ey3ball[m]s/Had some issues with my rootfs getting trashed ... looks like MacOS can corrupt partitions if it think it knows the partition type set on the GPT/Had some issues with my rootfs getting trashed ... looks like MacOS can corrupt partitions if it thinks it knows the partition type set on the GPT .../
17:52tpw_rulesey3ball[m]: that's a little worrying. were they set as FAT?
17:56marcanmps: wait, is this a 4K kernel or a 16K kernel?
17:56marcan4K kernels are not supported and will not work for PCIe devices yet, until the patchset for that gets in shape
17:56ey3ball[m]Yep type was set to 0700, no more issue, after updating the partition type to 8300
17:56marcanthat would explain that kind of error
17:57marcanI don't see how that error can happen other than if DMA allocs are horribly broken, which they would be on a 4K kernel
18:18jannaumarcan: yes, mps was using a 4k kernel. wlan works after recompiling with 16k page size
18:19marcanoh, just saw, heh
18:20mpsmarcan: yes, it was 4K pages kernel
18:21mpsbut lscpi shows even on it devices, only ringbuffer couldn't be allocated
18:23marcanyes, DMA doesn't work
18:23marcanthat is expected
18:23marcandevices will show up but the drivers will all error out
18:24mpsis that hardware limitation
18:24marcanyes, the IOMMUs are 16K only
18:24marcanthese machines are not designed for running with 4K pages in kernelmode
18:24mpslong time passed when I worked directly with low level devices
18:25marcansven came up with some heroic patches to work around this and allow Linux to use 16K pages for IOMMUs while using 4K pages for the CPU, but they aren't ready yet
18:25mpsah, now understand
18:26mps(my first serious IT job was to design industrial computer 30 years ago)
18:27marcanI don't think IOMMUs existed back then :p
18:27mpsright, but MMU existed
18:29mpsbut about 20 years ago I had to switch to work on financial and DB field, and previous knowledge faded away mostly
18:29kettenismarcan: the sun4m architecture included an IOMMU!
18:30marcanokay, okay, 33 years ago, you win :p
18:31mpsI'm not sure if the Z8000 family had IOMMU in some of devices
18:31mpsbut PMMU was there for sure
18:34mpsanyway pmgr issue I reported is not iommu related I guess :)
18:48daniel0611[m] has joined #asahi
18:50caef^ has joined #asahi
18:54marcanpmgr issue is just due to a hack in the MCA driver
18:54marcanor rather missing feature
18:58mpsaha, so iiuc then povik 'have' to fix it
19:12mpswhat about pcie enable device python script, should it be added in m1n1 or kernel
19:12mps(to get rid of the cables and another machine on the desk)
19:14nobodynada has joined #asahi
19:19martinstewart has joined #asahi
19:20martinstewarthows everyones days
19:22nobodynada has quit [Ping timeout: 480 seconds]
19:24martinstewartnow i tihnk of it i should probaly be in asahi offtopic to say hi to everyone eh im shure marcan wont mind
19:25martinstewartim shure i would of been toled off by now if it wasent allowed
19:28mpsmartinstewart: hi, saying hello is not problem imo, but I'm not OP of channel
19:30Gaspare has joined #asahi
19:43jnmartinstewart: saying hi is ok, but people might not respond to it
19:49martinstewart has quit [Ping timeout: 480 seconds]
19:50Major_Biscuit has joined #asahi
19:54Major_Biscuit has quit []
19:54joske has joined #asahi
19:55MajorBiscuit has joined #asahi
19:57j`eymps: thats being added to the kernel
19:58martinstewart has joined #asahi
20:13nobodynada has joined #asahi
20:13mpsj`ey: which branch
20:13j`eymps: n/a yet
20:14mpsj`ey: ok, will wait new asahi branch
20:23Glanzmannmps: About the pci expereiments features, if I understood correctly, than we get SMC support soon and than that will enable the pci devices.
20:26yuyichao has quit [Ping timeout: 480 seconds]
20:33mpsGlanzmann: I think it is System Management Controler and not sure enabling PCI depends on it, but that is my guess only
20:34tpw_rulesbecause the SMC has to turn on the power to the wifi card
20:35NightRaven[m]any news on getting wifi dongle working on the macbook pro ?
20:35nobodynada has quit [Ping timeout: 480 seconds]
20:35mps CONFIG_ARM_SCMI_PROTOCOL
20:36tpw_rulesnot sure that's relevant
20:36tpw_rulesapple has always had their own SMC
20:37NightRaven[m]* on getting a wifi dongle
20:38mpstpw_rules: yes, but iirc CONFIG_ARM_SCMI_PROTOCOL is top one and other specific for SOC are 'down' of it
20:40mpsNightRaven[m]: soon will be asahi branch refreshed with internal wifi working, I hope
20:40NightRaven[m]mps: oh ok can't wait : )
20:41mpsNightRaven[m]: also I ;)
20:42mpsNightRaven[m]: if you have another machine you run it right now by building kernel from wifi/take4 branch
20:42mpsyou can*
20:42NightRaven[m]mps: sadly i don't have another machine : (
20:43mpsNightRaven[m]: sorry to hear this :-(
20:44NightRaven[m]i just asked my friend if i can borrow his laptop
20:44NightRaven[m]and he said yesss
20:44NightRaven[m]but it has windows
20:45mpsuh, I wouldn't try this
20:45tpw_rulesyeah that's not a good idea
20:45NightRaven[m]i can boot linux from a usn
20:45NightRaven[m]and try from their
20:45NightRaven[m]tpw_rules: but why ?
20:46tpw_rulesbecause you won't even be able to boot it without using their computer
20:46mpsyou will have to install m1n1 from github and a lot of other pkgs
20:46tpw_rulesand building a kernel is not exactly a quick 5 minute thing, in most cases
20:46NightRaven[m]oh so i need another macbook pro
20:46mpsNightRaven[m]: no
20:46tpw_rulesno, you just need a computer you own that runs linux with an x86_64 or so cpu
20:47NightRaven[m]i can install linux alongside windows
20:47mpsany linux/bsd computer with good usb is enough
20:47NightRaven[m]but i have to ask permission
20:47NightRaven[m]i already have a linux mint usb stick
20:47mpsand you need proper usb-c cable
20:48NightRaven[m]mps: i have that too
20:48mpsnot all usb-c cables work
20:49mpsI have two which are problematic
20:49NightRaven[m]like i have an apple usb cable
20:49NightRaven[m]but i have a usb c to usb 3 adapter
20:49mpsand, what's worse, with bad cables interfaces could be damaged
20:50NightRaven[m]but can i still try it ?
20:50NightRaven[m]since i have 2
20:50mpsNightRaven[m]: ofc you can and I don't want to 'block' you
20:51mpsNightRaven[m]: Glanzmann wrote this guide to follow if you want https://tg.st/u/asahi.txt
20:51NightRaven[m]it gives a 404
20:52mpsworks for me
20:52joskeNightRaven[m], add /u/.config
20:52mpsah, I didn't looked .config
20:53NightRaven[m]oh ok thx well i try this tomorrow
20:55c10l2 has joined #asahi
21:02c10l has quit [Ping timeout: 480 seconds]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:21NightRaven[m]question do i always need to have the second computer to use wifi or can i enable it once and that is it i can have wifi when i reboot
21:24j`eyNightRaven[m]: alwaya
21:25j`eyNightRaven[m]: which is why I suggested to wait
21:27j`ey*always
21:39joske has quit [Ping timeout: 480 seconds]
21:43Gaspare has quit [Quit: Gaspare]
22:28nobodynada has joined #asahi
22:32Techcable has quit [Quit: ZNC - https://znc.in]
22:33Techcable has joined #asahi
23:02martinstewart has quit [Ping timeout: 480 seconds]
23:03nobodynada has quit [Ping timeout: 480 seconds]
23:50MajorBiscuit has quit [Quit: WeeChat 3.3]
…