#asahi-dev · 2022-12-15 11:21
ChaosPrincessif process.name == 'fex': enable_tso() :P#asahi-dev · 2022-12-12 08:25
ChaosPrincessmarcan: mind cherry-picking c5895db and 3e14469 from https://github.com/WhatAmISupposedToPutHere/linux/commits/spi-nor ? Those add the binding for the nvram, so you can have a linux equivalent of `bless`#asahi-dev · 2022-12-08 13:26
ChaosPrincessmade a nvram reader/writer and a linux version of the bless utility (boot switcher): https://github.com/WhatAmISupposedToPutHere/asahi-nvram . needs this dtb patch to work: https://github.com/AsahiLinux/linux/pull/62/ will work (tested) on m1, m1pro/max.#asahi-dev · 2022-12-06 09:35
ChaosPrincessi think that most devs use the m1n1 virtual serial port#asahi-dev · 2022-12-05 14:03
ChaosPrincessTy#asahi-dev · 2022-12-05 13:56
ChaosPrincessIs there a list somewhere of everything that can he hardware en/decoded on m1 series? Googling results in conflicting info#asahi-dev · 2022-12-02 22:09
ChaosPrincessSo, the reason im asking is that i am getting a new m1 machine soon, and can test complete nor destruction. (If i can"t recover it myself, ill just take it back to the store and claim it was doa)#asahi-dev · 2022-12-02 08:13
ChaosPrincessI have already "tested" corrupting nvram, just interested in what happens if the rest of the nor is corrupted#asahi-dev · 2022-12-02 07:32
ChaosPrincessDid someone end up testing a restore from complete destruction of all data in nor flash?#asahi-dev · 2022-12-01 10:57
ChaosPrincessif there is support for f-keys and maybe 1 alternative layer with the fn+f-keys, i'd be happy#asahi-dev · 2022-12-01 10:52
ChaosPrincessyea, i want to just hook it up in a sane way, just maybe hide it from the compositor#asahi-dev · 2022-12-01 10:49
ChaosPrincesspmuch that#asahi-dev · 2022-12-01 10:49
ChaosPrincesschadmed: yea, but they are behind a usb attached controller that actually draws the screen, while m1 seems to have it in software#asahi-dev · 2022-12-01 10:48
ChaosPrincessis there even a t2 touchbar driver that exposes full features and not just f-keys for linux? i only know of a winders one#asahi-dev · 2022-12-01 10:45
ChaosPrincessfighter pilot helmet? :P#asahi-dev · 2022-12-01 10:43
ChaosPrincessyea, i looked at that, but i think it does swaps, no?#asahi-dev · 2022-12-01 10:41
ChaosPrincess_jannau_: how does that work?#asahi-dev · 2022-12-01 10:04
ChaosPrincessyea, something like that#asahi-dev · 2022-12-01 09:33
ChaosPrincessnot on m1 touchbar, t2 had it, but you could also send framebuffers there#asahi-dev · 2022-12-01 09:33
ChaosPrincessand while i haven't looked too close at the screen part, it looks like there is just a framebuffer there#asahi-dev · 2022-12-01 09:32
ChaosPrincessthose screens tend to be connected to a microcontroller that actually drivers the screen, and communications are done over usb.#asahi-dev · 2022-12-01 09:31
ChaosPrincessi do not want users to be able to drag a normal window there :P#asahi-dev · 2022-12-01 09:30
ChaosPrincessi guess i can try doing it as a regular touchscreen, but its likely to confuse userland#asahi-dev · 2022-12-01 09:29
ChaosPrincessthe problem is that it is not _quite_ a touchscreen#asahi-dev · 2022-12-01 09:28
ChaosPrincessSo, kind of a RFC: how to represent the touchbar for consumption by linux kernel. I have reversed most of the digitizer protocol, but idk how to hook it up properly.#asahi-dev · 2022-11-30 19:34
ChaosPrincesswinders support#asahi-dev · 2022-11-30 18:51
ChaosPrincessi also was interested in maybe making those systems acpi compatible, and when i reached the interrupt controllers enum, i stopped reading, so there may be more problems#asahi-dev · 2022-11-30 18:35
ChaosPrincessThe main problem with acpi is aic, acpi standard has a enum of possible interrupt controllers and aic isnt one. #asahi-dev · 2022-11-28 18:23
ChaosPrincessWasnt there some people who tried to put asahi on checkrainable ipads?#asahi-dev · 2022-11-28 15:41
ChaosPrincessbut that made kernel folks unhappy#asahi-dev · 2022-11-28 15:41
ChaosPrincessi thought until somewhat recently, the approach for this kind of stuff was to just dump it in char/misc, an do all the fancy stuff in userspace.#asahi-dev · 2022-11-28 15:37
ChaosPrincessmaybe look at how the google tpus are hooked up on linux#asahi-dev · 2022-11-28 15:37
ChaosPrincessisnt ane mostly for inference, not training?#asahi-dev · 2022-11-28 13:11
ChaosPrincessmarcan: if you are merging stuff, can you also cherry-pick this one? https://github.com/WhatAmISupposedToPutHere/linux/commit/b22e6b2e2fe834c73feaf334ce7170190dcf1f71 #asahi-dev · 2022-11-27 21:48
ChaosPrincessnow to parse yet-another-apple's-hid-wrapper#asahi-dev · 2022-11-27 21:48
ChaosPrincessaye#asahi-dev · 2022-11-27 21:44
ChaosPrincesspovik: did you know that you are amazing? cause if you didnt - you should know that you are.#asahi-dev · 2022-11-27 21:22
ChaosPrincessty, ill try handling that one 'correctly' and seeing what will happen#asahi-dev · 2022-11-27 21:20
ChaosPrincessyou think that might be important?#asahi-dev · 2022-11-27 21:20
ChaosPrincessgp.PIN[0x8b].val = 0x76a03 # - this line is enabling something that looks like an and gate on chip select, macos pulls it on an off with every packet#asahi-dev · 2022-11-27 21:18
ChaosPrincessoh#asahi-dev · 2022-11-27 21:17
ChaosPrincessand it does send and receive correct data during firmware upload phase#asahi-dev · 2022-11-27 21:17
ChaosPrincessthat spi naturally comes out of reset with cs auto-enable on#asahi-dev · 2022-11-27 21:16
ChaosPrincessm1 mbp, j293#asahi-dev · 2022-11-27 21:15
ChaosPrincesswell, the digitizer part, it is connected to spi0#asahi-dev · 2022-11-27 21:15
ChaosPrincesstouchbar#asahi-dev · 2022-11-27 21:09
ChaosPrincessthe init code: https://pst.klgrth.io/paste/jgxye#asahi-dev · 2022-11-27 21:08
ChaosPrincessim trying to boot up the touchbar via m1n1, and the firmware upload seems to be working, but once it is done, trying to read reports does not work, and it seems to still speak the firmware upload protocol. Anyone have ideas as to what part of the initialization i might be missing? the spi data stream is the same as from macos.#asahi-dev · 2022-11-26 22:23
ChaosPrincesstyvm#asahi-dev · 2022-11-26 21:29
ChaosPrincessjannau: if you have a kb trace, mind throwing it my way?