#asahi-dev · 2021-12-15 08:49
marcanI pushed a bunch of cleanups to the input device config at touchpad/wip#asahi-dev · 2021-12-15 08:48
marcanremoving that fixes everything#asahi-dev · 2021-12-15 08:48
marcanjannau: it's ABS_MT_PRESSURE#asahi-dev · 2021-12-15 08:12
marcanyeah, applespi works fine, and I think it returns reports differently. let's see...#asahi-dev · 2021-12-15 08:10
marcanthe weird thing is it only happens in xorg, but applespi worked fine I think#asahi-dev · 2021-12-15 08:06
marcan[ 285.664] (EE) event1 - MacBook Force Touch trackpad: client bug: event processing lagging behind by 108ms, your system is too slow#asahi-dev · 2021-12-15 08:06
marcan[ 256.040] (EE) event1 - MacBook Force Touch trackpad: client bug: event processing lagging behind by 13ms, your system is too slow#asahi-dev · 2021-12-15 08:06
marcanalso this#asahi-dev · 2021-12-15 08:05
marcan[ 691.453] (EE) event1 - MacBook Force Touch trackpad: WARNING: log rate limit exceeded (5 msgs per 24h). Discarding future messages.#asahi-dev · 2021-12-15 08:05
marcanSee https://wayland.freedesktop.org/libinput/doc/1.19.2/touchpad-jumping-cursors.html for details#asahi-dev · 2021-12-15 08:05
marcan[ 691.453] (EE) event1 - MacBook Force Touch trackpad: kernel bug: Touch jump detected and discarded.#asahi-dev · 2021-12-15 08:05
marcanah heh#asahi-dev · 2021-12-15 08:04
marcanI didn't see anything weird in evtest either#asahi-dev · 2021-12-15 08:03
marcanit's weird#asahi-dev · 2021-12-15 08:03
marcanmtview shows good data from the event device, maybe xorg is somehow confused by something?#asahi-dev · 2021-12-15 07:57
marcanevtest looks reasonable though, not sure why it's glitchy#asahi-dev · 2021-12-15 07:56
marcancaps lock LED also doesn't work, perhaps an issue with output reports?#asahi-dev · 2021-12-15 07:48
marcanor doesn't otherwise work reliably#asahi-dev · 2021-12-15 07:48
marcanit's like the two-finger scroll takes a second to activate#asahi-dev · 2021-12-15 07:47
marcanso it seems there are still some bugs lying around :)#asahi-dev · 2021-12-15 07:47
marcanjannau: something's glitchy about the touchpad; clicking and dragging with one finger does not work (two fingers does), and two-finger scroll is kind of weird#asahi-dev · 2021-12-15 07:44
marcanjannau: you have a minor build glitch with !CONFIG_PM_SLEEP#asahi-dev · 2021-12-15 07:44
marcan 828 | .shutdown = spi_hid_apple_shutdown,#asahi-dev · 2021-12-15 07:44
marcandrivers/hid/spi-hid/spi-hid-apple.c:828:27: error: ‘spi_hid_apple_shutdown’ undeclared here (not in a function); did you mean ‘spi_hid_apple_match’?#asahi-dev · 2021-12-15 07:40
marcan:)#asahi-dev · 2021-12-15 07:11
marcanjannau: the report IDs aren't supposed to be unique anyway; note how magicmouse_emit_touch ends up looking up the PID#asahi-dev · 2021-12-15 07:03
marcanI think we've run out of drivers to even consider saving from them anyway, what's left is either a complete mess or kettenis already worked it out better ;)#asahi-dev · 2021-12-15 07:02
marcanalso re RTC, ehh, I'm not terribly interested in listing everything they have some driver for; I'm only throwing up WiFi because people keep bugging me about it :p#asahi-dev · 2021-12-15 06:59
marcancool :)#asahi-dev · 2021-12-15 06:15
marcanjannau: does it work? I was just adding a "no multitouch" comment, but I can skip that :p#asahi-dev · 2021-12-15 06:12
marcanas in literally there aren't enough implemented irqconfig bits to make that happen#asahi-dev · 2021-12-15 06:11
marcanI'm quite certain there is no explicit, per-IRQ, specific-CPU affinity setting#asahi-dev · 2021-12-15 06:11
marcanmaz: there is a way to control the affinity per-cluster to some extent, and there is a grouping system which may allow CPUs to opt-in to only specific priority levels (unclear)#asahi-dev · 2021-12-14 14:55
marcanyeah...#asahi-dev · 2021-12-14 14:54
marcanhah#asahi-dev · 2021-12-14 14:53
marcanthat should be automatable#asahi-dev · 2021-12-14 14:53
marcanmight be worth extracting just the reg info from the driver (under the premise that register names aren't really copyrightable) and working off of that + HV logs#asahi-dev · 2021-12-14 14:52
marcanOTOH; I can confirm the register addresses are different#asahi-dev · 2021-12-14 14:52
marcansoo at least there's that for understanding this mystery chip#asahi-dev · 2021-12-14 14:52
marcanpovik: the funny thing is the macOS driver has basically verbosely documented all the register reads/writes... it's like they have a macro that stringifies the arguments to write32 mask32 etc and them passes those strings too#asahi-dev · 2021-12-14 14:44
marcanI should put something on a USB drive...#asahi-dev · 2021-12-14 14:44
marcanah, but I don't have a rootfs :-)#asahi-dev · 2021-12-14 14:44
marcanwill leave it aside for now, let me test the headphone jack on the iMac or something#asahi-dev · 2021-12-14 14:44
marcanpovik: so yeah, sounds like there's quite a bit of reversing work here to get this to work properly :/#asahi-dev · 2021-12-14 14:40
marcanit sounds like this thing got quite a bit smarter about adapting to different headphone types#asahi-dev · 2021-12-14 14:39
marcanthere's a thing about boosting the output voltage#asahi-dev · 2021-12-14 14:39
marcan"DC impedance detect" perhaps?#asahi-dev · 2021-12-14 14:39
marcandcid seems to be related to that#asahi-dev · 2021-12-14 14:38
marcanapparently this one can measure headphone impedance#asahi-dev · 2021-12-14 14:38
marcansome of the plug detect stuff is the same as '42; but there are new concepts: "hi cap" mode, "MSM", some sample rate thing, something called "ccm"