#
✕ nick:pipcet[m]
#asahi · 2021-08-10 12:38
pipcet[m]i wish
#asahi · 2021-08-10 12:37
pipcet[m]amw: the MBP doesn't have physical function keys, just the touchbar, so I had to add those.
#asahi · 2021-08-10 12:36
pipcet[m]amw: ooh, any chance you could test whether the keyboard backlight works the same on MBA as it does on MBP?
#asahi · 2021-08-10 12:25
pipcet[m](function-key challenged MBP user here)
#asahi · 2021-08-10 12:25
pipcet[m]first things first, let's add fn+esc as sysrq and fn+1234 as F1, F2, F3, F4 to the hardcoded translation table ;-)
#asahi · 2021-08-10 12:24
pipcet[m]amw: so what's the next step? replacing all the corellium code one driver at a time? :-)
#asahi · 2021-08-10 09:51
pipcet[m]I'm confused-are you trying to poll the keyboard or get interrupts to work?
#asahi · 2021-08-10 09:06
pipcet[m]amw: ignored as in removed or ignored as in left it alone?
#asahi · 2021-08-10 09:01
pipcet[m]amw: I had polling working at some point, but I don't remember which of the seventeen branches it's in :(
#asahi · 2021-08-10 08:57
pipcet[m]i.e. is CONFIG_CMDLINE_FROM_BOOTLOADER or CMDLINE_FORCE enabled?
#asahi · 2021-08-10 08:56
pipcet[m]does the m1n1 command line override the built-in one or add to it?
#asahi · 2021-08-10 08:50
pipcet[m]it shouldn't get there if you're passing clk_ignore_unused, should it?
#asahi · 2021-08-10 08:34
pipcet[m]you don't have a clk driver, is that correct?
#asahi · 2021-08-10 08:19
pipcet[m]amw: got a link to your DT somewhere?
#asahi · 2021-08-10 07:53
pipcet[m]I'd follow the streams, but no audio on the M1 yet ;-) (seriously, haven't seen them but I think it's a great idea!)
#asahi · 2021-08-09 19:42
pipcet[m](I'm running pearl right now and it works, but then I booted through the .macho and the first thing that does is (try and fail to) enable all the clocks :-) )
#asahi · 2021-08-09 19:40
pipcet[m](in the kernel command line .. this is where we all give marcan a hand for wanting to look at the clk stuff :-) )
#asahi · 2021-08-09 19:39
pipcet[m]oh, sorry. not really asahi, but you need to pass clk_ignore_unused I think
#asahi · 2021-08-09 19:38
pipcet[m]using which branch? Probably some clock that's not enabled...
#asahi · 2021-08-09 19:11
pipcet[m]alyssa: https://gist.github.com/pipcet/0a12820ebf59e23ec430e9da72d976b3 is what I use.
#asahi · 2021-08-09 18:27
pipcet[m]oh, you meant the linux framebuffer, sorry. For the kernel just compile in a large font and you'll be fine, it's what my .config does.
#asahi · 2021-08-09 18:26
pipcet[m]j_ey: the retina font is nice and large, should be easy enough to use that :-)
#asahi · 2021-08-09 18:20
pipcet[m]marcan: I started writing pseudocode and stopped when I ended up with a working brightness backlight driver, but it's, uhm, prototype quality code at best and totally faked its way around the dcp dart.
#asahi · 2021-08-09 18:17
pipcet[m]I'm happy any way, just let me know what you decide on
#asahi · 2021-08-09 18:13
pipcet[m]sven: speaking of mailboxes (not dumb ones though) and queue depth, how many PRs does it make sense to keep open on asahi/devel at once? I'm not planning to open more unless you explicitly request it
#asahi · 2021-08-09 18:11
pipcet[m]marcan: good night, then, and thank you. I think you've actually convinced me with the rtkit library stuff :-)
#asahi · 2021-08-09 18:09
pipcet[m]because the endpoint map comes in over endpoint 0?
#asahi · 2021-08-09 18:08
pipcet[m]no, mailbox just queues stuff
#asahi · 2021-08-09 18:08
pipcet[m]you need to have an endpoint to know how many endpoints there are, though :-)
#asahi · 2021-08-09 17:59
pipcet[m]and for debugging and performance analysis, we need to know when a message has arrived at the ASC end...
#asahi · 2021-08-09 17:58
pipcet[m]the main point for me is not to hide in the DT the fact that communication uses a piece of hardware clearly identified as a mailbox, which behaves like a mailbox. The secondary aspect is that the mailbox abstraction might evolve to actually be useful, by including debug facilities.
#asahi · 2021-08-09 17:52
pipcet[m]marcan: well, what I did, but you're going to hate it and I haven't decided whether I do, is have a funnelling driver that provides one mailbox per endpoint and consumes the single-channel mailbox (with its two different implementations), providing infallible FIFO'd mailboxes to the endpoint drivers.
#asahi · 2021-08-09 17:50
pipcet[m](I'm also hoping for some debug features to make their way into the mailbox framework.)
#asahi · 2021-08-09 17:48
pipcet[m]yes.
#asahi · 2021-08-09 17:47
pipcet[m]more than, sorry.
#asahi · 2021-08-09 17:47
pipcet[m]>16 endpoints?
#asahi · 2021-08-09 17:47
pipcet[m]marcan: endpoint startup
#asahi · 2021-08-09 17:47
pipcet[m]they should, yes. this just takes away the tiny part that we have a good abstraction for, but it's a clear fit
#asahi · 2021-08-09 17:44
pipcet[m]which we need to know because some messages have no response.
#asahi · 2021-08-09 17:43
pipcet[m]only to tell us transmission is done
#asahi · 2021-08-09 17:03
pipcet[m]so then the FIFO becomes useful because it makes writing the library easier, as long as MBOX_TX_QUEUE_LENGTH is greater than the number of endpoints used in parallel.
#asahi · 2021-08-09 17:01
pipcet[m]my driver only queues one message at a time at the hw level, I'm not sure it's worth it to do something more complicated.
#asahi · 2021-08-09 16:59
pipcet[m]it'll expose a single channel for the library to use.
#asahi · 2021-08-09 16:59
pipcet[m]sven: no, the mailbox driver would not know anything about endpoints.
#asahi · 2021-08-09 16:56
pipcet[m]I think a basic (tiny) mailbox driver exposing the dumb 128-bit mailbox still makes sense, marcan's library or whatever can talk to that.
#asahi · 2021-08-09 16:05
pipcet[m](I think it requires just the panic EP, but that's bad enough)
#asahi · 2021-08-09 13:26
pipcet[m]alyssa: FWIW, with the asahi/devel branch I have both a usb gadget console and a usb keyboard now, simultaneously. was it just eem that was broken?
#asahi · 2021-08-09 12:34
pipcet[m]not for the keyboard, no.
#asahi · 2021-08-09 12:22
pipcet[m]sven: if the SMC knows...
#asahi · 2021-08-09 10:07
pipcet[m]sven: did you look at the locked page table workaround that we need yet?

plus ›