#
…

2022-11-01

00:02thelounge7571340 has joined #asahi-dev
00:02thelounge7571340 has quit [Remote host closed the connection]
00:15Etrien__ has joined #asahi-dev
00:19Etrien has quit [Ping timeout: 480 seconds]
00:54Core1050 has joined #asahi-dev
00:58DarkShadow4444 has quit [Remote host closed the connection]
01:01Core9066 has quit [Ping timeout: 480 seconds]
01:04thelounge7571340 has joined #asahi-dev
01:05thelounge7571340 has quit [Remote host closed the connection]
01:46marcanrmk: thank you :)
01:54nicolas17I wonder why compiling a kernel for 6 minutes gets my M2 fans to go fast, but running a bunch of xdelta3 instances for hours doesn't heat up that much, on Intel I'd say "it makes more memory accesses, so it's using less CPU because it's stalled waiting for memory" but apple silicon has such high memory bandwidth that I'm skeptical of that being the only reason
01:55chadmedaiui we dont yet put the memory controller into the higher pstate, so that could still be the case
01:55nicolas17are there any performance counters I can access from Linux?
01:56Dcow_ has quit [Remote host closed the connection]
01:56nicolas17chadmed: that would explain why ffmpeg on macOS also manages to cause more heat, apples and oranges but still
01:56chadmedyeah theres a PMU driver, accessible through the normal sysfs mechanism i think
01:56nicolas17(I didn't test ffmpeg on Linux)
02:07thelounge7571340 has joined #asahi-dev
02:07thelounge7571340 has quit [Remote host closed the connection]
02:10Dcow has joined #asahi-dev
02:19Dcow has quit [Ping timeout: 480 seconds]
02:39riker77 has quit [Ping timeout: 480 seconds]
02:39riker77 has joined #asahi-dev
02:57nicolas17chadmed: kernel "make -j8 vmlinux" gets 1.91 instructions per cycle, 8 simultaneous xdelta instances (with a 256MB "source window" which makes it use about 1.3GB RAM) gets 0.68 insn per cycle
03:00tpw_rulesjust out of curiosity, what do you do with lots of xdelta'ing?
03:01nicolas17tpw_rules: I was investigating a way to store tons of .ipsw files using little storage :)
03:02tpw_rulesprecomp + dwarfs
03:04tpw_rulesif you ditch precomp and set dwarfs up with a giant lookback value, you'll get instant access too (though it will probably be slow to create)
03:04nicolas17can't even find dwarfs
03:04tpw_ruleshttps://github.com/mhx/dwarfs it's a new program and quite nice but it's a common word
03:05nicolas17I got some impressive results running bsdiff between two dyld_shared_caches btw
03:05nicolas17but it needs a ton of RAM
03:06tpw_rulesactually now that i think about it, idk if anyone's tried to hook it up to macfuse before. might not be great if you want to create or mount on macos. but i'd be interested to try it. how did you create your corpus
03:07nicolas17and then I started having RAM problems on my desktop PC, I identified the bad DIMM, and went from 16GB to 8GB, which made bsdiff impractical
03:20thelounge7571340 has joined #asahi-dev
03:21thelounge7571340 has quit [Remote host closed the connection]
03:43ccs1 has joined #asahi-dev
04:28thelounge7571340 has joined #asahi-dev
04:28thelounge7571340 has quit [Remote host closed the connection]
04:44marcannicolas17: compiling does not benefit from memory bandwidth, everyone confuses bandwidth and latency :)
04:44marcanadding more bandwidth isn't going to help memory accesses go quicker
04:44marcanit only helps you do more of them in parallel, which compiling doesn't
04:45marcanbecause compiling doesn't parallelize at that level
04:47nicolas17marcan: compiling is fast and warms up the CPU to the point it brings up the fans, I'm sure it has enough memory bandwidth/latency; *other* workloads, despite putting all cores at 100% usage, aren't causing that much heat and *those* may be stalling for memory
05:14SSJ_GZ has joined #asahi-dev
05:30Method_ has quit [Remote host closed the connection]
05:30Method has joined #asahi-dev
05:34thelounge7571340 has joined #asahi-dev
05:35thelounge7571340 has quit [Remote host closed the connection]
05:46marcannicolas17: could be :)
05:47marcanit could be there is something particularly sub-optimal about whatever xdelta is doing
05:47marcanlike enough memory-memory dependencies that the speculation can't do anything about it
05:57hippo2012 has joined #asahi-dev
05:57hippo2012 has left #asahi-dev [#asahi-dev]
05:59hippo2012 has joined #asahi-dev
06:03hippo2012 has quit [Quit: Leaving.]
06:04hippo2012 has joined #asahi-dev
06:09hippo2012 has quit [Quit: Leaving.]
06:19nicolas17 has quit [Quit: Konversation terminated!]
06:21chadmed has quit [Quit: Konversation terminated!]
06:28chadmed has joined #asahi-dev
06:34marcanso I just tried to do an Asahi install to an external disk because why not (it might work, though locked to one machine) and:
06:34marcan$ diskutil addPartition disk7 apfs 'Asahi External' 2499805184
06:34marcanThe new partition to be added will be of a filesystem personality of APFS apfs APFS 7C3457EF-0000-11AA-AA11-00306543ECAC
06:34marcanError finding last partition on map (there must pre-exist at least one partition): Invalid request (-69886)
06:35marcan... why is Apple tooling so broken
06:40thelounge7571340 has joined #asahi-dev
06:41thelounge7571340 has quit [Remote host closed the connection]
06:52VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
07:30Etrien__ has quit [Read error: Connection reset by peer]
07:30Etrien has joined #asahi-dev
07:41marcanaand nope, fuOS on USB doesn't work.
07:41marcanthere's at least two problems, #1 kmutil doesn't read the adminuser file from the right place
07:42marcan#2 I'm not sure yet, it's bootlooping
07:43marcanI wonder if any of this is fixed in newer macOS versions...
07:47thelounge7571340 has joined #asahi-dev
07:47thelounge7571340 has quit [Remote host closed the connection]
07:49marcanoh... I think I screwed this up, lol
07:50amarioguy2 has joined #asahi-dev
07:53marcan... how did I end up with a 0-byte m1n1.bin?
08:32marcanok, so it actually works! we can do stage1 installs directly to USB
08:32marcanonly problem is m1n1 now needs an xHCI+USBMS stack written in Rust ;)
08:33marcanbut I'm going to commit the required installer shenanigans as expert-only and only allow the m1n1/tethered install option, so people can play around with it
08:33marcanI haven't tested it yet, but I think it should be possible to make such an external drive bootable on another Mac by re-running the installer in the "fix my boot policy" mode
08:36svenusbms is simple enough, xhci will be a pain though :D
08:38marcanxHCI isn't that bad, but then you also need to do the whole USB stack thing (hubs, etc.)
08:38marcanthat's the worst part IMO
08:38marcanparsing descriptors and all that "fun" stuff
08:38marcan(hence, Rust)
08:41jannauwe could just embed u-boot once the upstream devicetree has enough features
08:44lamlam has joined #asahi-dev
08:45marcanyeah, I thought of that, though it's not ideal
08:46jannauit's certainly not a good idea right now
08:49thelounge7571340 has joined #asahi-dev
08:49thelounge7571340 has quit [Remote host closed the connection]
08:49lamlam has quit [Remote host closed the connection]
08:55codingkoopa9 has quit []
08:55mrkajetanp has quit [Remote host closed the connection]
08:55codingkoopa9 has joined #asahi-dev
09:46Dcow has joined #asahi-dev
09:47svenjannau: have you already thought about how to represent multiple drm connectors in the dt?
09:48svenI finally can’t procrastinate looking at the typec subsystem anymore
09:48chengsun has joined #asahi-dev
09:51thelounge7571340 has joined #asahi-dev
09:52thelounge7571340 has quit [Remote host closed the connection]
09:54Dcow has quit [Ping timeout: 480 seconds]
09:54jannauI looked at the existing bindings in Documentation/devicetree/bindings/display/{bridge,connector,panel} which are no good fits since they expect directly driveable hardware behind it. the connectors not so much but no usb-c connector
09:55jannauthe dp connector is cleary written with pure dp connectors in mind
09:56chengsun has quit [Ping timeout: 480 seconds]
09:56amarioguy2 has quit [Ping timeout: 480 seconds]
09:56ccs1 has quit [Ping timeout: 480 seconds]
10:01duban6 has quit []
10:02duban6 has joined #asahi-dev
10:05chengsun has joined #asahi-dev
10:06ccs1 has joined #asahi-dev
10:07amarioguy2 has joined #asahi-dev
10:13chengsun has quit [Ping timeout: 480 seconds]
10:15amarioguy2 has quit [Remote host closed the connection]
10:18chengsun has joined #asahi-dev
10:26Dcow has joined #asahi-dev
10:34Dcow has quit [Ping timeout: 480 seconds]
10:36kettenisjannau: did you see marex's post on the u-boot usb stuff?
10:41jannauyes, I haven't tested it yet but based on that random delays fixed it for previously I don't doubt that it works
10:49jannausigh, apple's DCP split is annoying. I have the impression someone looked at all functions and decided based on some criteria which ones need to be executed on the co-processor. after that was done both parts were stitched together to make it work
10:52jannaufor display brightness control I write what appears to be DAC register but DCP reports back the birghtness in nits
10:54ketteniswould be good if you replied to the message
10:55kettenisI'll do the same; hopefully it'll make the 2023.01 release
10:55thelounge7571340 has joined #asahi-dev
10:55ccs1 has quit [Ping timeout: 480 seconds]
10:55thelounge7571340 has quit [Remote host closed the connection]
11:04marcanjannau: re tipd on M2, any particular devices/charger you use?
11:04marcan(just want to get it 100% identical)
11:04marcan(I remember stuff like that mattering in the past)
11:15jannaumarcan: I don't think it depends on the device/charger. I see it with original apple charger and anker and aukey usb-pd chargers. device was in most cases a yubikey 5 usb-c
11:21svenjannau: hrm, i'm a bit confused by that switch stuff. there's already that typec connector binding, the typec mux mess and pretty much all that's missing is some property for the atcphy node that indicates it can mux dp-altmode,tbt, etc.
11:21svenand a graph connection to the DRM connector and then we can just use that oob_hotplug mechanism that already exists
11:22svenoh.. maybe I should read the entire thread and not just the original patch
11:28jannauhmm, not even sure if that was the relevant thread remembered
11:29sveni think the last mails are pretty much "just use the type c connector" + they seem to introduce that mode-switch property
11:30sventhe typec_mux stuff is a bit weird and i'm still confused by it. last time I looked at it it looked like there was a different mux for each mode or something
11:30sventhat's why I just hacked it in atcphy-wip but now i'm at a point where that won't work nicely any longer :D
11:30svenI actually need the hotplug callback for dcp now and soon also for thunderbolt
11:35marcanjannau: So one charger and one device?
11:51grange_c has joined #asahi-dev
11:58jannaumarcan: yes, that's the usual start config. charger in the back port
12:00jannauI just tried to reproduce it on j314 but it seems to be stable there
12:00Core9066 has joined #asahi-dev
12:01thelounge7571340 has joined #asahi-dev
12:02thelounge7571340 has quit [Remote host closed the connection]
12:05svenlooks like 144a96f7f96e412c3367f51cf2c57f52e3f1110d fixes my confusion. so essentially atcphy just needs "mode-switch" to support all altmodes
12:06jannaumarcan: reproducible with the charger alone in the back port on the m2. front port appears to be fine until the issue is triggered on the back port
12:07Core1050 has quit [Ping timeout: 480 seconds]
12:08Dcow has joined #asahi-dev
12:08Dcow has quit [Remote host closed the connection]
12:08Dcow has joined #asahi-dev
12:12jannauhappens on the front port as well, just hit a stretch over 5 reconnections without hit
12:25systwi has quit [Read error: Connection reset by peer]
12:25systwi has joined #asahi-dev
12:44marcanfixed the installer issues when there is a pending macOS upgrade (I think)
12:44marcanI think that ticks off all the longtime installer snags people have been running into
12:58jannaugreat, I guess that means another round of installer testing
12:58gladiac has joined #asahi-dev
13:01balrog has quit [Ping timeout: 480 seconds]
13:04jannauis there another interpration for nits2mAmps0thOrderCoef = 1245
13:05jannaunits2mAmps1stOrderCoef and nits2mAmps2ndOrderCoef which is not a quadratic polynomial?
13:06thelounge7571340 has joined #asahi-dev
13:07thelounge7571340 has quit [Remote host closed the connection]
13:08balrog has joined #asahi-dev
13:08jannauthe coeficients don't make much sense to in that context: 4928 + 870292 * x + 41164 * x**2
13:11jannauthe 1st degree coefficient is only 20 times larger than the 2nd degree coefficient while the expected range of x is [0,525]
13:12povikwhat if x plugged into the polynomial is [0.0,1.0] ?
13:12chengsun has quit [Ping timeout: 480 seconds]
13:13poviknot that ~870 amps is sensible either :D
13:14jannaucoefficients are most likely 16.16 fixed point
13:14jannauand the adt has "calibratedMaxCurrent = 904383"
13:14chengsun has joined #asahi-dev
13:14amarioguysven: regarding my previous patch, wolfram asked if a v4 was coming - given we already integrated the "final" version into the asahi tree, would it be best to send v4 through mailing lists directly or do we want to wait until the project begins sending the currently bundle of changes upstream?
13:14amarioguyespecially since i'm not sure if that tps issue was resolved yet...
13:15amarioguys/currently/current*
13:15j`eyamarioguy: there's no such thing as 'the project beings sending the currently bundle of changes upstream'
13:16amarioguystill, should probably ask about the TPS issue before we send a v4
13:16povikjannau: you get roughly that maximum at x=1.0, as you probably noticed
13:19amarioguy has quit [Quit: Leaving]
13:19jannaunot sure by which value I should norm the brightness. all devices have the same coefficients and conversion tables
13:20svenamarioguy: imho the tps thing is a bug in the tps driver, I’d send out a v4
13:22jannauamarioguy: also seems to show only on (my) m2 macbook pro. marcan wants to see if it is reproducible for him
13:22jannaualthough I think I saw it on another device
13:23svenyeah, I can’t reproduce it here on the mini either
13:30lamlam has joined #asahi-dev
13:38Gaelan has quit [Quit: ZNC 1.8.2 - https://znc.in]
13:39Gaelan has joined #asahi-dev
13:39lamlami just kicked read dma in the ane for the first time
13:40lamlamexcept i don't know how to configure *write dma* yet so i can't verify the computation ha
13:40lamlamalso sorta cheating because i wrote some config registers myself (technically coprocessor's job)
13:40lamlambuttt im finally getting progress
13:43tired has quit [Quit: /]
13:44tired has joined #asahi-dev
13:44j`eylamlam: are you jamie?
13:46lamlamno, i rarely talked here before
13:47lamlamis anyone else working on it? i can share notes (messy though)
13:50j`eyoh ANE, jamie/R were looking at AVE
13:56chadmed_ has joined #asahi-dev
14:05ccs1 has joined #asahi-dev
14:08thelounge7571340 has joined #asahi-dev
14:08thelounge7571340 has quit [Remote host closed the connection]
14:17jannaucute: "[DCP:BrightnessLCD.cpp:743] [AFK]nitsToDBV: iDAC out of range" when setting maximum brightness in macos
14:19kloenk has quit [Remote host closed the connection]
14:20kloenk has joined #asahi-dev
14:22yrlf has quit [Quit: The Lounge - https://thelounge.chat]
14:23yrlf has joined #asahi-dev
14:34svenjannau: we’ll also need some way to encode which connector maps to which atcphy
14:35svenand a way to encode that connectors on die 0 can only be routed to dcpext on die 0
14:36sventhe first part is probably easy if the connectors are just sub nodes. we could just give them a phys=<atcphyX> property
14:37marcanjannau: ok, reproduced
14:38marcanlet me see if I can pull off some hardware i2c logging...
14:38svenalso, can I volunteer you to make this work on t600x with more than one dcpext once I get it in a reasonable shape on t8013? :>
14:43jannausven: which part of the connector are we speaking about? the usb or the drm one?
14:44jannauI'll look at t600x
14:48svenusb will remain more or less like it’s in that old atc wip branch
14:49svenit’ll just get another graph connection to the drm connector
14:49jannauwouldn't that need multiple phys to work? and if that works it should also solve the die issue
14:51svenso each type-c port has its own atcphy (and probably will get another phy for dpin0/1)
14:51sveneach type-c port also has its own display crossbar mux but we can just ignore that for now
14:51jannauin my model dcpext have a connector subnode
14:51jannauthich can be routed to every usb-c port on the same die
14:52svenoh, i was thinking about having the connector subnode on the display-subsystem
14:52svenbecause that thing has to decide the muxing
14:52svenbut maybe having it as a dcpext subnode makes more sense
14:53bluetail has joined #asahi-dev
14:53jannaudrm has a concept of possible connectors for each crtc (== dcpext)
14:53svenI think we'll also need three connectors (dpphy, dpin0/1) for each type-c port
14:53Gaspare has joined #asahi-dev
14:54svenwe'll have to be able to describe tiled displays which will use dpin0/1 at the same time
14:54svenhrm, or maybe fake the tiled displays into a single connector
14:56jannaushouldn't tiled displays just work with dcpextX,0/dcpextX,1? ut cases like thunderbolt hubs with a connected thunderbolt display and dp alt mode will require 3 connectors
14:56Method is now known as Method_
14:58svenso in my head I still have a drm connector connected to a single phy and a crossbar mux. in that case we'd need two drm connectors for the dcpextX,0/dcpextX,1 case since both muxes have to be configured
14:58sven(and I suspect that dpin0/1 will become another phy)
14:59ccs1 has quit [Ping timeout: 480 seconds]
14:59svenhrm, what happens to the oob hotplug notification if you have a single type c port connected to multiple drm connectors?
15:00sven(drm_connector_oob_hotplug_event)
15:01jannauno idea but that sounds like a problem which has to have already a solution for DP MST over thunderbolt/usb-c
15:02svennot really :(
15:02svenDP MST over thunderbolt/usb-c on intel machine happens by magic afaict
15:02sveni.e. there's no OOB event required
15:04svenand wouldn't DP MST use two connectors anyway?
15:06jannauit wouldn't. I expect it to use 2 CRTCs though
15:10thelounge7571340 has joined #asahi-dev
15:10thelounge7571340 has quit [Remote host closed the connection]
15:12lamlam has quit [Remote host closed the connection]
15:22marcanok, for starters there's a bug in the IRQ handler. if the event read fails, event is uninitialized, but then it decides whether to return IRQF_HANDLED or not based on that.
15:22marcanI don't know that that's the problem yet but that's broken
15:23svenjannau: not totally sure yet, but afaict mst creates a new connector on the fly
15:23Core8788 has joined #asahi-dev
15:23svenmarcan: huh, even on the latest rc? I vaguely remember a patch that fixed that issue
15:23sveni guess that one never got merged then :/
15:24svenguess there was never a follow up
15:28Core9066 has quit [Ping timeout: 480 seconds]
15:31Core8788 has quit [Ping timeout: 480 seconds]
15:37marcanlovely...
15:40marcanoh wait uhhh
15:40marcanI know what this is
15:40marcanthe i2c timeout is hardcoded at 10ms
15:40marcanwho decided that was a good idea? I'm seeing clock stretching from this thing of... exactly 10ms
15:40nicolas17 has joined #asahi-dev
15:41svenin the pasemi thing?
15:41marcanthe timeout in m1n1 is 50ms, for the record
15:41marcanwhich seems a lot saner
15:41sventhose boards had like two chips on the i2c bus
15:41marcanyeah but we kept it with the irq support :p
15:42svencause it worked so far
15:42marcanI wonder if it's configurable somewhere
15:42marcanthis ought to be platform-specific
15:43marcanlol, like every driver has a random hardcoded timeout
15:43marcanbut the i2c core has an actual timeout field too
15:44chadmed_ has quit [Quit: Page closed]
15:44marcanah, but that's for arbitration loss
15:44marcananyway, looking at other drivers, 100ms-1s seems to be common
15:44marcan10ms is ridiculous
15:46marcanand the irq path does *not* actually check whether the timeout expired
15:46marcanthis is broken
15:47marcanvery very broken
15:47cylm has joined #asahi-dev
15:48sventhe irq path rereads status, doesn’t it?
15:51svenoh, but then there’s no follow up check if XEN was actually set
15:51marcanit instead checks the timeout counter which is not touched
15:51marcanI'll send a fix
15:51svenirq isn’t even upstream yet
15:52marcanah, easier then
15:52svenamarioguy can just fix it in v4 I guess
15:52jannaunot reproducible with 20 ms irq timeout (just for testing)
15:59marcan... why is cpufreq crashing on me now?
15:59svenlooks like everything’s broken today!
15:59duban6 has quit []
16:00svenI’m hunting down yet another udelay that’s missing somewhere i atcphy.c. every now and then altmode doesn’t come up
16:00svenwhich is also very annoying to test :(
16:01marcanah, because I'm dumb
16:03marcanand then the next problem is that when i2c *does* time out, it breaks forever and cannot recover
16:05svenhuh, that sounds broken. I thought there’s a reset on timeout
16:06bluetail has quit [Ping timeout: 480 seconds]
16:12marcanno, it doesn't reset
16:12marcanalso, the datasheet says the *hardware* timeout is 25ms (!)
16:12marcanso that's... borderline for us, lol
16:12marcanunless Apple extended it or made it configurable (they probably did?)
16:12Gaspare has quit [Quit: Gaspare]
16:13bluetail has joined #asahi-dev
16:17thelounge7571340 has joined #asahi-dev
16:17thelounge7571340 has quit [Remote host closed the connection]
16:40zjstraus has joined #asahi-dev
16:42VinDuv has joined #asahi-dev
17:06Gaspare has joined #asahi-dev
17:13Graypup_ has quit [Quit: meow]
17:16Graypup_ has joined #asahi-dev
17:27thelounge7571340 has joined #asahi-dev
17:27thelounge7571340 has quit [Remote host closed the connection]
17:29daniels has quit [Ping timeout: 480 seconds]
17:30nathanchance has quit [Ping timeout: 480 seconds]
17:30khilman has quit [Ping timeout: 480 seconds]
17:30khilman has joined #asahi-dev
17:31jbowen has quit [Ping timeout: 480 seconds]
17:31Puto has quit [Ping timeout: 480 seconds]
17:31jkkm has quit [Ping timeout: 480 seconds]
17:31_alice has quit [Ping timeout: 480 seconds]
17:31austriancoder has quit [Ping timeout: 480 seconds]
17:31mmarchini____ has quit [Ping timeout: 480 seconds]
17:31Gaspare has quit [Quit: Gaspare]
17:32daniels has joined #asahi-dev
17:32nathanchance has joined #asahi-dev
17:32Manouchehri has quit [Ping timeout: 480 seconds]
17:32NekomimiScience has quit [Ping timeout: 480 seconds]
17:33eric_engestrom has quit [Ping timeout: 480 seconds]
17:33austriancoder has joined #asahi-dev
17:33_alice has joined #asahi-dev
17:33jbowen has joined #asahi-dev
17:33marcanjannau: going to do a kernel build, do you have any DCP updates?
17:33jkkm has joined #asahi-dev
17:34Puto has joined #asahi-dev
17:34NekomimiScience has joined #asahi-dev
17:34mmarchini____ has joined #asahi-dev
17:34Manouchehri has joined #asahi-dev
17:34marcanin the meantime, it's pushed to asahi-wip with improved pasemi-i2c error recovery
17:34marcanI tested it setting the timeout to 2ms, it fails as you would expect but doesn't go into a spiral of doom
17:35ChaosPrincessmarcan: mind looking at pwm v-idk-which?
17:35eric_engestrom has joined #asahi-dev
17:35marcaneither way, I think that's *finally* release material soon
17:35jannaubrightness control is not yet ready but there might be something which can be merged
17:36marcanChaosPrincess: I would but I'm kind of running behind on progress report / kernel update so I'm going to punt that one to next time, sorry. hopefully it won't be as long as this one though.
17:36marcandon't want to add any more variables
17:37ChaosPrincessCome on, its a tiny driver. :P
17:37marcanyes, I know, but it's always "one more tiny thing" :)
17:37marcanI need to draw the line somewhere
17:37jannaumarcan: please cherry-pick 4094df685fed5ae15feea676270611b1f483d1c0 and f9ac4113b0e9206d097df607f75c75b314a87d45 from https://github.com/jannau/linux/commits/dcp-backlight-wip
17:38Gaspare has joined #asahi-dev
17:38marcanI'm going to tag and release to asahi-wip, let's see how that goes.
17:39marcanI also removed the mkinitcpio package override there
17:39marcan*asahi-dev
17:40marcanI should probably also kick off some OS builds soon...
17:44jannaudid you update the images with dockchannel hid support in u-boot after the release?
17:50nicolas17ChaosPrincess: lmk if you need more m2 testing
17:50povikmost of it on way upstream already, pertains to speakers so low priority
17:52marcanI just finished making a kernel build lol
17:52poviklike i said, not important for the release
17:53marcancherry picked anyway, but I'll push this build for now
17:57marcanpushed to asahi-dev
17:57marcanI should sleep :)
17:58marcan(please test etc)
18:01jannaui2c/tps6598x issue is fixed
18:05millenialhacker has joined #asahi-dev
18:13balrog has quit [Quit: Bye]
18:21balrog has joined #asahi-dev
18:21balrog is now known as Guest175
18:26mpsmhm, I'm using pwm patch for about three week, works fine
18:28millenialhackerpwm is one for keyboard backlight, right mps?
18:28millenialhackerI'd like to try that one
18:28millenialhackerI really hate to have not backlight in the keyboard since I most use my M1 at bed at night
18:30thelounge7571340 has joined #asahi-dev
18:30millenialhackerCould you point me to patch file, would like to apply it to latest asahi-wip branch updated by marcan
18:31mpsmillenialhacker: yes
18:31thelounge7571340 has quit [Remote host closed the connection]
18:32j`eymillenialhacker: see link ^
18:32mpsand here is one ugly hacked daemon to control backlight https://www.arvanta.net/2x3d1kfg/kbd-bklght.c
18:32Gaspare has quit [Quit: Gaspare]
18:34mpsmillenialhacker: to download it as one patch `wget -O 57.patch https://github.com/AsahiLinux/linux/pull/57.patch`
18:35mpsuh no, this is wrong
18:36mpswrong wget params
18:36millenialhackerI think it includes other changes beside pwm
18:37ChaosPrincessyou need all of it
18:37j`eyyeah you probably want to cherry pick some of the commits
18:37mpsyes, I wanted just pwm patch
18:37Gaspare has joined #asahi-dev
18:37millenialhackerI mean there are five commits, related to pwm, but a bunch of others commits
18:37ChaosPrincesswell, maybe not bindings documentation and MAINTAINERS, but you do need the driver and the device tree patches
18:37millenialhackerfrom jannau, marcan, lina
18:37millenialhackerI think those ones, are actually already merged into asahi-wip
18:38* mpsis not in love with github
18:38ChaosPrincesslet me just rebase that
18:38millenialhackerThanks ChaosPrincess, that will make everything easier
18:42mpsChaosPrincess: nice, now wget above works fine
18:46millenialhackeryeah, it works nice.
18:54Gaspare has quit [Quit: Gaspare]
19:00millenialhackerreboot time, time to see the light
19:00Gaspare has joined #asahi-dev
19:00millenialhacker has quit [Quit: Konversation terminated!]
19:01millenialhacker has joined #asahi-dev
19:02millenialhackerok, no keyboard backlight, do I need to do something else?
19:02mpsmillenialhacker: did you enabled it in kernel config
19:02millenialhackernevermind, kernel name just changed
19:02millenialhackeryes, I enabled as built-in module
19:03millenialhackerbut kernel name changed from rc2 to rc3, so need to update my grub.cfg
19:03mpscat /sys/class/leds/kbd_backlight/max_brightness
19:03* millenialhackerI can hear chadmed telling me to use his overlay for everything xD
19:07* millenialhackercp grub.cfg grub.cfg.bak && sed -i 's/rc2/rc3/g' grub.cfg
19:07millenialhacker has quit [Quit: Konversation terminated!]
19:08ChaosPrincessalso make sure you updated the dtbs and such
19:08millenialhacker has joined #asahi-dev
19:09millenialhackerok, still no backlight
19:09millenialhackerI'm using right kernel
19:10millenialhackerChaosPrincess what do you mean by update dtbs?
19:10j`eyyou need new device trees
19:10ChaosPrincessyou need to inject new dtbs into m1n1
19:10millenialhackerahh, need to recompile m1n1 then
19:10millenialhackerjust stage2 right
19:10ChaosPrincessyou dont need to recompile, just cat m1n1, all dtbs and u-boot
19:13millenialhackerm1 is t8103-j293.dtb right?
19:14j`eymillenialhacker: m1 mbp?
19:15j`eythen yeah 293
19:15svenbah.. I just can't find the last udelay that's missing to make altmode work every single time :/
19:16qyousef has quit [Ping timeout: 480 seconds]
19:16millenialhacker has quit [Quit: Konversation terminated!]
19:16Puto has quit [Ping timeout: 480 seconds]
19:16jonmasters_ has quit [Ping timeout: 480 seconds]
19:16cptcobalt has quit [Ping timeout: 480 seconds]
19:17snek has quit [Ping timeout: 480 seconds]
19:17liszt_ has quit [Ping timeout: 480 seconds]
19:17msteffen has quit [Ping timeout: 480 seconds]
19:17esden has quit [Ping timeout: 480 seconds]
19:17sjg1 has quit [Ping timeout: 480 seconds]
19:17tardyp has quit [Ping timeout: 480 seconds]
19:17azenla has quit [Ping timeout: 480 seconds]
19:17jesse-s has quit [Ping timeout: 480 seconds]
19:17robher has quit [Ping timeout: 480 seconds]
19:17skmp__ has quit [Ping timeout: 480 seconds]
19:18jonmasters_ has joined #asahi-dev
19:18jbowen has quit [Ping timeout: 480 seconds]
19:18cptcobalt has joined #asahi-dev
19:18Puto has joined #asahi-dev
19:19qyousef has joined #asahi-dev
19:20jesse-s has joined #asahi-dev
19:20msteffen has joined #asahi-dev
19:20liszt_ has joined #asahi-dev
19:20tardyp has joined #asahi-dev
19:20snek has joined #asahi-dev
19:20jbowen has joined #asahi-dev
19:20azenla has joined #asahi-dev
19:21skmp__ has joined #asahi-dev
19:21sjg1 has joined #asahi-dev
19:21esden has joined #asahi-dev
19:21robher has joined #asahi-dev
19:22millenialhacker has joined #asahi-dev
19:24millenialhackerOk, tried rebooting after concatenating new dtb to my current m1n1 stage2 but lost wifi and pwm driver load failed, forgot to copy the error but it said error finding something defaulting to off
19:24millenialhackerbut lack of wifi was surprising...
19:26ashi has joined #asahi-dev
19:31millenialhacker has quit [Quit: Konversation terminated!]
19:32millenialhacker has joined #asahi-dev
19:32millenialhackerupdate-m1n1 script did the trick
19:32millenialhackerbut I see this error:
19:32millenialhacker[ 1.957813] leds_pwm pwmleds: failed to read period for kbd_backlight, default to off
19:33millenialhackercat /sys/class/leds/kbd_backlight/max_brightness returns 255
19:33j`eyyou can: echo 100 > /sys/class/leds/kbd_backlight/brightness
19:33j`ey(might need: echo 100 | sudo tee /sys/class/leds/kbd_backlight/brightness)
19:34millenialhacker I tried echoing 255 to brightness file but didn't work
19:34millenialhackerlet me try with 100
19:34millenialhackercool, 100 works
19:35millenialhackerany reason why max_brightness returns 255 but actual max value is 100?
19:36millenialhackernevermind, after echo 100, now echo 255 works
19:36millenialhackerweird behavior,
19:38thelounge7571340 has joined #asahi-dev
19:38thelounge7571340 has quit [Remote host closed the connection]
19:40millenialhacker has quit [Quit: Konversation terminated!]
19:40millenialhacker has joined #asahi-dev
19:41millenialhackerIt persist after restart, nice!!
19:41millenialhackergreat job ChaosPrincess
19:43ashiSounds great, I will test on an M2 Air now
19:46millenialhackerdump question sven, whats altmode?
19:46millenialhacker s/dump/dumb/g
19:46svendisplay port via type-c ports
19:46millenialhackerOh, I haven't tried it yet. Is HDMI over USB-C supported btw?
19:47svenit's only supported in my local tree for now
19:47* millenialhackerfeels envy of sven
19:48svenand it's not reliable yet
19:48svenwell, unless I add a usleep(10); after every single register poke :p
19:48bluetail has quit [Ping timeout: 480 seconds]
19:49jannauI'm not sure if envy is the right word
19:49millenialhackernot sure how it works, but I remember when inspecting ISP stuff, that MacOS write to some registers, wait some nanoseconds, and the poke back the register to see if there an ACK value.
19:49sventhat too
19:49sventhe mmio reads/writes look exactly the same as XNU's. it's a delay somewhere that I can't easily see in the mmio trace
19:49millenialhackerI wouldn't be surprise of something similar in Linux world
19:50millenialhackerHave you tried going one by one?
19:51millenialhackeror it is a too naive approach?
19:51millenialhackerI have zero context, just trying to be rubber duck here
19:51svenwell, every single test requires me too boot ~20 times to be sure it works
19:51sveni'll probably have to disassemble xnu and find its iodelays :(
19:52millenialhackeror you can add a custom parameter to your kernel driver, I mean 1 delay in some part, 2 delay in another part, 3 and so on.
19:52millenialhackeryou can test without recompile at least
19:52sventhe recompile really isn't the issue
19:52millenialhacker20 boots because it's not 100% repro I guess
19:53svenyeah, it's just unstable
19:53svenit works, I dunno, 9/10 times without any issue
19:53svenand usually 20 retries are enough to catch it
19:54millenialhackerdoes it requires reboot to properly work after it fails ? or it auto-recovers plugging and unplugging?
19:54sventhere's no hotplug support yet :D
19:54svenI could probably hack some bind/unbind thing but since reboots itself are fast enough it doesn't matter
19:55millenialhackerYou will have fun looking IOKit stuff
19:56svendo you still feel envy? :P
19:56millenialhackerhahaha at least is fun, isn't it?
19:57millenialhackerIf you set async tracer in HV, is not possible to measure register time access without incurring in too much overhead?
19:57millenialhackerI mean just listening the write not actually running python code to do something when the registers are read/write
19:57millenialhackerI thought Hector mentioned there was some kind of low overhead tracing API in m1n1 hv
19:58svenhuh, maybe I can just set a breakpoint on iodelay
19:58millenialhackerthat's another good idea
19:59millenialhackerI didn't know that can be done
19:59svenmaybe. I assume xnu uses iodelay all over the place
19:59svenmight get too spammy, but let's see
20:01millenialhackerI set a hv breakpoint close to when I needed to test something regarding mmio regs
20:01millenialhackernot sure of you iodelay brk works, is it SW or HW brkp ?
20:01sveniodelay is literally a XNU function that's not inline for some reason iirc
20:01sven*inlined
20:01millenialhackercould be possible to only set it up after your first hit hv breakpoint to close to when you actually plug the thing into the laptop?
20:02svensure, my plan is to trigger the breakpoint on the first atcphy register write that I care about
20:04millenialhackermakes sense, sometimes I feel at high level I have a clear idea what needs to be done to RE those things
20:04millenialhackerbut then when I actually try to do it I suffer from paralysis
20:04millenialhackerI wonder if this happens to anyone else too
20:04svenyeah, and then I get bored with $work or something again and continue :-P
20:05millenialhackerglad to know is somekind of normal thing then
20:10millenialhacker has quit [Quit: Konversation terminated!]
20:11millenialhacker has joined #asahi-dev
20:11millenialhacker has quit [Remote host closed the connection]
20:12millenialhacker has joined #asahi-dev
20:25Etrien__ has joined #asahi-dev
20:29Etrien has quit [Ping timeout: 480 seconds]
20:29ashiChaosPrincess: I can confirm that the pwm PR (#57) works fine on an M2 Air, all values I tried, 255 being the brightest.
20:36Etrien has joined #asahi-dev
20:37millenialhackerOMG, keyboard backlight works automatically with KDE, that's fantastic!
20:39chengsun has quit [Ping timeout: 480 seconds]
20:42ashi has quit [Ping timeout: 480 seconds]
20:44Etrien__ has quit [Ping timeout: 480 seconds]
20:46millenialhacker has quit [Quit: Konversation terminated!]
20:46jluthra has quit [Remote host closed the connection]
20:47jluthra has joined #asahi-dev
20:51Etrien__ has joined #asahi-dev
20:54amarioguy has joined #asahi-dev
20:58Etrien has quit [Ping timeout: 480 seconds]
20:58thelounge7571340 has joined #asahi-dev
20:59thelounge7571340 has quit [Remote host closed the connection]
21:22cylm has quit [Quit: WeeChat 3.7.1]
21:35amarioguysaw/responded to the emails, v4 should be on the mailing lists by tomorrow or thursday, schedule's opened up a lot :)
21:55Dcow has quit [Remote host closed the connection]
21:56Dcow has joined #asahi-dev
22:04svenlooks like it’s stable now :)
22:04svennext up is hotplug support then I guess
22:06thelounge7571340 has joined #asahi-dev
22:06thelounge7571340 has quit [Remote host closed the connection]
22:10amarioguy has quit [Ping timeout: 480 seconds]
22:13Dcow has quit [Ping timeout: 480 seconds]
22:19ashi has joined #asahi-dev
22:19winter has quit [Quit: The Lounge - https://thelounge.chat]
22:26ashi has quit [Quit: Leaving]
22:32Dcow has joined #asahi-dev
22:33IcaroDextris has joined #asahi-dev
22:40Dcow has quit [Ping timeout: 480 seconds]
22:43thelounge7571340 has joined #asahi-dev
22:44thelounge7571340 has quit [Remote host closed the connection]
22:58Etrien__ has quit [Ping timeout: 480 seconds]
23:02nsklaus_ has joined #asahi-dev
23:06Dcow has joined #asahi-dev
23:07nsklaus has quit [Ping timeout: 480 seconds]
23:12SSJ_GZ has quit [Read error: Connection reset by peer]
23:12amarioguy has joined #asahi-dev
23:12SSJ_GZ has joined #asahi-dev
23:14Dcow has quit [Ping timeout: 480 seconds]
23:31SSJ_GZ has quit [Ping timeout: 480 seconds]
23:31Gaspare has quit [Quit: Gaspare]
23:45amarioguy has quit [Ping timeout: 480 seconds]
23:53thelounge7571340 has joined #asahi-dev
23:53thelounge7571340 has quit [Remote host closed the connection]
…