#
…

2021-11-09

01:01Dcow has joined #asahi
01:18Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
01:33nobodynada has quit [Ping timeout: 480 seconds]
01:34nobodynada has joined #asahi
01:43nobodynada has quit [Ping timeout: 480 seconds]
01:52nobodynada has joined #asahi
02:08bgb__ has joined #asahi
02:20bgb has joined #asahi
02:21bgb_ has joined #asahi
02:21bgb___ has joined #asahi
02:22bgb_____ has joined #asahi
02:25bgb__ has quit [Ping timeout: 480 seconds]
02:28bgb has quit [Ping timeout: 480 seconds]
02:29bgb_ has quit [Ping timeout: 480 seconds]
02:29bgb___ has quit [Ping timeout: 480 seconds]
02:30bgb_____ has quit [Ping timeout: 480 seconds]
02:33riker77_ has joined #asahi
02:35riker77 has quit [Ping timeout: 480 seconds]
02:35riker77_ is now known as riker77
02:36bgb has joined #asahi
02:36bgb_ has joined #asahi
02:37bgb__ has joined #asahi
02:37bgb___ has joined #asahi
02:38bgb____ has joined #asahi
02:44bgb has quit [Ping timeout: 480 seconds]
02:44bgb_ has quit [Ping timeout: 480 seconds]
02:45bgb_____ has joined #asahi
02:45bgb__ has quit [Ping timeout: 480 seconds]
02:45bgb___ has quit [Ping timeout: 480 seconds]
02:46bgb____ has quit [Ping timeout: 480 seconds]
02:47bgb has joined #asahi
02:53bgb_____ has quit [Ping timeout: 480 seconds]
02:55bgb has quit [Ping timeout: 480 seconds]
02:56bgb_ has joined #asahi
02:57bgb has joined #asahi
02:59nobodynada has quit [Ping timeout: 480 seconds]
03:04bgb_ has quit [Ping timeout: 480 seconds]
03:05bgb_ has joined #asahi
03:06bgb has quit [Ping timeout: 480 seconds]
03:06bgb has joined #asahi
03:06nobodynada has joined #asahi
03:13bgb_ has quit [Ping timeout: 480 seconds]
03:14bgb has quit [Ping timeout: 480 seconds]
03:16nobodynada has quit [Ping timeout: 480 seconds]
03:19bgb__ has joined #asahi
03:19bgb has joined #asahi
03:20bgb_ has joined #asahi
03:23bgb___ has joined #asahi
03:23bgb____ has joined #asahi
03:24nobodynada has joined #asahi
03:27bgb__ has quit [Ping timeout: 480 seconds]
03:27bgb has quit [Ping timeout: 480 seconds]
03:27bgb_____ has joined #asahi
03:28bgb_ has quit [Ping timeout: 480 seconds]
03:29dsrt^ has joined #asahi
03:30pwn has joined #asahi
03:31bgb___ has quit [Ping timeout: 480 seconds]
03:31bgb____ has quit [Ping timeout: 480 seconds]
03:35bgb_____ has quit [Ping timeout: 480 seconds]
03:53phiologe has joined #asahi
03:56PhilippvK has quit [Ping timeout: 480 seconds]
04:28dsrt^ has quit [Ping timeout: 480 seconds]
04:38dsrt^ has joined #asahi
04:40skipwich has joined #asahi
04:56marvin24 has joined #asahi
05:00marvin24_ has quit [Ping timeout: 480 seconds]
05:33pwnblanks has joined #asahi
05:40pwn has quit [Ping timeout: 480 seconds]
05:42linearcannon has quit [Read error: Connection reset by peer]
05:45DarkShadow44 has quit [Quit: ZNC - https://znc.in]
05:45linearcannon has joined #asahi
05:46DarkShadow44 has joined #asahi
05:47DarkShadow44 has quit []
05:47DarkShadow44 has joined #asahi
06:10linearcannon has quit [Remote host closed the connection]
06:19c10l has quit [Quit: The Lounge - https://thelounge.chat]
06:19c10l has joined #asahi
06:35marcangoing to poke at PCIe some more on stream in a few mins (at #asahi-stream)
06:41bgb_____ has joined #asahi
06:51bgb has joined #asahi
06:52bgb_ has joined #asahi
06:53bgb__ has joined #asahi
06:53bgb_____ has quit [Ping timeout: 480 seconds]
06:53bgb___ has joined #asahi
06:59bgb has quit [Ping timeout: 480 seconds]
07:00dsrt^ has quit [Ping timeout: 480 seconds]
07:00dsrt^ has joined #asahi
07:00bgb_ has quit [Ping timeout: 480 seconds]
07:01bgb__ has quit [Ping timeout: 480 seconds]
07:01bgb___ has quit [Ping timeout: 480 seconds]
07:08pwnblanks has quit [Ping timeout: 480 seconds]
07:10chadmed has quit [Remote host closed the connection]
07:11chadmed has joined #asahi
07:27nobodynada has quit [Quit: Lost terminal]
07:27hspak5 has joined #asahi
07:33hspak has quit [Ping timeout: 480 seconds]
07:33hspak5 is now known as hspak
07:52jelly has quit [Read error: Connection reset by peer]
07:54jelly-hme has joined #asahi
07:54bgb_ has joined #asahi
07:57pwn has joined #asahi
07:58bgb_marcan: I just changed another A-C cable, and it just worked for all my host A ports.
07:58marcantold you.
07:58marcanglad it works :)
08:09bgb_yeah, regret not changing the A-C cable earlier, thanks anyway :)
08:10bgb_before that, I wasing considering a hub with dwc controller
08:21jelly-hme is now known as jelly
08:36sailorek1234 has joined #asahi
08:38bgb has joined #asahi
08:42bgb_ has quit [Ping timeout: 480 seconds]
08:45aleasto has joined #asahi
09:05pwn has quit [Ping timeout: 480 seconds]
09:31dsrt^ has quit [Ping timeout: 480 seconds]
09:33Dcow has joined #asahi
09:33Dcow has quit []
09:36psykose has quit [Remote host closed the connection]
09:37pwn has joined #asahi
09:38Dcow has joined #asahi
09:52Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
09:53Dcow has joined #asahi
09:59psykose has joined #asahi
10:04psykose has quit [Remote host closed the connection]
10:05psykose has joined #asahi
10:06kettenis has quit [Quit: Lost terminal]
10:10kettenis has joined #asahi
10:25Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
10:37fridtjof[m]maybe time to update https://github.com/AsahiLinux/docs/wiki/Tasks, or the last progress report with all the drivers merged for 5.16 now?
10:38fridtjof[m](I'd make a PR for the blog post, but not sure what the best way to go about it is, just changing the post without any semblance of history feels wrong
10:40Dcow has joined #asahi
10:41j_eyfridtjof[m]: I ticked off PCIe, since that's in 5.16
10:42pwnblanks has joined #asahi
10:42j_eyand USB2 and Ethernet
10:45sventype c is also "done" for usb2/3 but will need more work for thunderbolt/displayport
10:45j_eysven: yeah, i wasnt sure about those sub-points on that list
10:46sventhe first two are essentially automatic. for the third we won't use extcon but the typec / usb-role-switch infrastructure
10:46mazI need to find a moment to tackle the PCIe hot-plug stuff.
10:46svenand plug detect works for usb2/3 host/device mode but i think the driver needs additional work to also identify thunderbolt/displayport iirc
10:47mazsomehow, the PMU was more fun.
10:47sveni'm still not looking forward to the mess that will be thunderbolt
10:47mazindeed. I started reading the USB4 spec, and it's not fun.
10:47j_eyoh, hot plug doesnt work on the PCIe stuff either?
10:48mazj_ey: well, we take an interrupt, and do nothing except on the first probe.
10:48pwn has quit [Ping timeout: 480 seconds]
10:48mazwhich is fine for USB and Ethernet, less so for wifi, and definitely bad for TB.
10:50pwnblanks has quit [Remote host closed the connection]
10:50pwnblanks has joined #asahi
10:51sventhunderbolt will at least require us to pass through tunables from the ADT to the atc-phy driver because different ones need to be applied whenever USB3 or TBT is enabled, add support for a co-processor, turn the NIH driver to a platform device and somehow tie all that together with pcie and the usb pd chip
11:02sailorek1234 has quit [Quit: sailorek1234]
11:11bgb has quit [Ping timeout: 480 seconds]
11:12bgb has joined #asahi
11:26pwnblanks has quit [Ping timeout: 480 seconds]
11:46marcansven: oh, USB3 works now?
11:47marcanmaz: fwiw on the new machines PCIe devices need to be enabled via SMC
11:47marcanso that's either a driver dep problem (should SMC be a power domain provider?) or a hotplug problem
11:48sven“works”
11:48svenI have some disgusting hack to make it work which is essentially just put the write32s from a hv trace in there
11:49svenbut iirc it needed some tunables from sysconf
11:49bgb_ has joined #asahi
11:49mazmarcan: depends on what events the PCIe RC gets. if we can react to an interrupt and talk to SMC, that's fine. otherwise, we need to prod it before enabling the link...
11:49svenor maybe that was just for display port :/
11:50marcanmaz: the SMC controls power to the devices; without power the devices are dead and there is no link
11:50marcanso the question is how would PM be handled for this
11:50sventhat sounds very similar to how WiFi is enabled
11:50marcanyes, WiFi is the same
11:50marcanfor some things like USB ports and the SD card reader I don't think we can ever truly power them down, since you need to react to external hotplugs
11:50marcanfor WiFi you could power it down when it's off
11:51bgb has quit [Ping timeout: 480 seconds]
11:51mazOK, so this needs to be modelled as a power gate, or something along those lines, I guess.
11:51marcanbut I don't think macOS ever turns these things off either
11:52marcanso e.g. if hotplug works we could just have SMC itself have some init list to turn them on and that's that
11:53pwn has joined #asahi
11:54dsrt^ has joined #asahi
11:57bgb has joined #asahi
11:59bgb_ has quit [Ping timeout: 480 seconds]
12:29Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
12:39pwn has quit [Ping timeout: 480 seconds]
12:40Dcow has joined #asahi
12:41sailorek1234 has joined #asahi
13:09pwn has joined #asahi
13:22kettenismaz: my approach so far has been to add a "pwren-gpios" property, which is what is used in sifive,fu740-pcie.yaml
13:25Dcow has quit [Ping timeout: 480 seconds]
13:27bgb_ has joined #asahi
13:32bgb has quit [Ping timeout: 480 seconds]
13:46mazkettenis: if the SMC access can be modelled as such, I'm good with it.
14:24sailorek1234 has quit []
14:35marcanit's a gpio behind smc, so yes, we can make it a gpio controller
14:42gpanders[m]1 is now known as gpanders
14:42gpanders has quit [Quit: Reconnecting]
14:42gpanders has joined #asahi
14:42gpanders has quit []
14:42gpanders has joined #asahi
14:56dsrt^ has quit [Remote host closed the connection]
14:58bgb has joined #asahi
15:01yuyichao has quit [Ping timeout: 480 seconds]
15:04bgb_ has quit [Ping timeout: 480 seconds]
15:07pwn has quit [Ping timeout: 480 seconds]
15:12yuyichao has joined #asahi
15:41pitust[m]How far does linux get on m1 (non-pro/max)?
15:42j_eypitust[m]: depends
15:43pitust[m]hmm, okay. what does it depend on?
15:43j_eywhat branches/patches you use, what m1 machine you have
15:43pitust[m]ah okay, i understand
15:44j_eyif you need usb3 or usb2, thunderbolt etc
15:45_jannau_with t6000/bringup and the right dtb framebuffer, smp, and pinctrl/usb-pd/usb2 works
15:45waagrr has quit [Read error: Connection reset by peer]
15:45waagrr has joined #asahi
15:45_jannau_should work on all hardware, tested so for only on 14" M1 Pro and Max
15:45j_eynon-pro/max, the older m1s
15:49_jannau_ah, comment still holds except that the code is already in Linus' master branch and working PCI (usb-a and ethernet on the mac mini)
15:50pitust[m]no wifi, i assume?
15:50j_eywifi works
15:50j_ey(with patches)
15:54nsklmarcan said in his last stream (toward the end) that there are a few loose ends, that are mostly done, but still need some work. he cites wifi among them. there are also keyboard, touchpad, and installer too need to become a bit more user friendly and figure a way to automaticaly import all the needed firmwares
15:56nskli've seen report saying that wifi, keyboard and touchpad too, all can be made to work, but they are in separate trees, requires patching or some special steps to have them. a consolidation effort is needed to tie all these little pieces together, to have them included, checked and done.
15:59nskl(not to mention sound support, which is still at POC status, last time i've heard about it).
16:00X-Scale` has joined #asahi
16:06X-Scale has quit [Ping timeout: 480 seconds]
16:24marcanwifi is at the PoC stage in the sense that the way it's currently done is not upstreamable, and the standard for the project is upstreamability
16:24marcanthat's basically why I don't run those patches; it means IO
16:24marcanThere is one further overarching practical issue with RMS: regardless of what anyone thinks of any particular issue, he just can't shut up. His entire personal website full of political opinions just serves to generate division, if he is considered a leader of the movement. It is just not possible to be an effective leader of a global movement while having an unfiltered firehose of political takes, ...
16:24marcan... because by definion he will clash with almost everyone on some subset of issues. While it is important that we throw our weight behind specific social topics we consider important (e.g. the way I have defended trans rights and promoted trans people on Twitter), a never-ending ticker of hot takes just
16:24marcanI was not intending to paste that
16:25marcanwho invented shift-insert as paste anyway? ...
16:25* marcanwishes he could just disable that, he *never* wants it
16:25j_eyyesterday I pasted a 1000line trace from m1n1 into bash
16:25marcan(yes I'm talking about RMS again... someone emailed me about this... at least it's not on twitter now :p)
16:25j_eyctrl-b ] instead of ctrl-b [ in tmux zz
16:26brentr123[m]Zsh is better then bash
16:26marcannskl: I was going to say it means I'm motivated to clean this stuff up if nobody else does it first
16:26j_eymarcan: the patches are definitely good enough for tinkering with!
16:26marcantinkering yes :)
16:32* sorearimagines you can do something in xkb
16:39danielsyou could indeed make insert two-level and make the second level map to NoSymbol
16:39danielsp sure that's in /usr/share/X11/xkb/symbols/pc
17:02___nick___ has joined #asahi
17:03___nick___ has quit []
17:04___nick___ has joined #asahi
17:10jannauwe need to think about adding the dtb model check for linux.py, see https://github.com/AsahiLinux/m1n1/issues/120
17:20aleasto has quit [Quit: Konversation terminated!]
17:20aleasto has joined #asahi
17:43X-Scale has joined #asahi
17:48X-Scale` has quit [Ping timeout: 480 seconds]
18:18c10lIs it possible to boot up Linux on the M1 from an external drive? Is there a guide somewhere if I want to try it out?
18:19mazit is possible, but still requires at least m1n1 on the internal storage.
18:31aleasto has quit [Ping timeout: 480 seconds]
18:32aleasto has joined #asahi
18:54bdju has quit [Ping timeout: 480 seconds]
18:58bdju has joined #asahi
19:11mkf727 has joined #asahi
19:41squags has joined #asahi
20:00squags has quit [Ping timeout: 480 seconds]
20:01___nick___ has quit []
20:03___nick___ has joined #asahi
20:04dsrt^ has joined #asahi
20:08squags has joined #asahi
20:11jacoxon has joined #asahi
20:16squags has quit [Ping timeout: 480 seconds]
20:23squags has joined #asahi
20:43mkf727 has quit [Ping timeout: 480 seconds]
21:04mkf727 has joined #asahi
21:07Fruit has quit [Remote host closed the connection]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:08squags has quit [Remote host closed the connection]
21:26squags has joined #asahi
21:32Fruit has joined #asahi
21:38c10lCool, cheers. I'll read up on it to see if I'm up to that. :)
22:03bgb_ has joined #asahi
22:09bgb has quit [Ping timeout: 480 seconds]
22:14jacoxon has quit []
22:30aleasto has quit [Quit: Konversation terminated!]
23:19darkapex1 has joined #asahi
23:25squags has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
23:25darkapex has quit [Ping timeout: 480 seconds]
23:43squags has joined #asahi
23:56egavinc has quit [Quit: Leaving]
…