#
✕ nick:marcan
#asahi-dev · 2023-03-11 11:31
marcanack
#asahi-dev · 2023-03-11 11:25
marcanI did pull that (probably not pushed yet)
#asahi-dev · 2023-03-11 11:24
marcanwe've accumulated too much stuff for 6.2, let's get it out the door and then we can think about all the M2 stuff
#asahi-dev · 2023-03-11 11:23
marcanyeah, not yet
#asahi-dev · 2023-03-11 11:22
marcanjannau: nothing in that branch for 6.2, right?
#asahi-dev · 2023-03-11 11:21
marcanack
#asahi-dev · 2023-03-11 11:20
marcanjannau: that pull is just 4 commits right? (GH is being silly)
#asahi-dev · 2023-03-11 11:02
marcandone, thanks
#asahi-dev · 2023-03-11 10:53
marcanI'm going to throw on some stuff for the 6.2 branch and cut a release, if that works we might as well go straight to 6.3-rc1
#asahi-dev · 2023-03-08 09:59
marcanwell it works on laptops so there is *some* way to do it
#asahi-dev · 2023-03-08 02:46
marcanbut if we know for a fact M2 is different and not just missing more init code, that might not be useful
#asahi-dev · 2023-03-08 02:46
marcanI ask because I *do* know iBoot talks to EPIC endpoints other than the iboot one AFAIK, and we have binaries for iBoot on M1, so I can throw it in ghidra if you think it might be useful.
#asahi-dev · 2023-03-08 02:45
marcanjannau: do you think there's a chance the DISP0 routing stuff was always there on M1 too, and it's just that iBoot always initialized it for us since it used to have HDMI out support back in the day?
#asahi-dev · 2023-03-08 02:44
marcanamada95: three separate subsystems. speakers are on the way and we don't need any extra hands right now. povik is working on mics, that involves AOP/LEAP. webcam is completely unrelated and involves reverse engineering the ISP firmware command interface first, then implementing all that.
#asahi-dev · 2023-03-07 04:35
marcankettenis_: I remember you offered to write the LKML/etc email about the PSCI mess at one point... I think I'll take you up on that if you're up for it, too much stuff on my plate right now and we really should get that ball rolling
#asahi-dev · 2023-03-05 15:47
marcanI think that whole thing needs a rewrite because getting the get/put stuff and callbacks properly nested is way too subtle
#asahi-dev · 2023-03-05 15:32
marcanjannau: I managed to get the DCP sleep thing to bork too, but I can't repro it now after adding debug. let's drop the runtime PM stuff for now.
#asahi-dev · 2023-03-05 03:23
marcanpixel data would connect directly from the display pipe to the DSI core and should mostly just be enabled/configured, then it happens automatically
#asahi-dev · 2023-03-05 03:23
marcanyou'd only really expect stuff like that as far as commands go
#asahi-dev · 2023-03-04 18:31
marcanbut apparently those conditionals may not be sufficient to be strictly correct
#asahi-dev · 2023-03-04 18:31
marcanto change certain behavior in the driver
#asahi-dev · 2023-03-04 18:31
marcanit is a threshold
#asahi-dev · 2023-03-04 18:31
marcanthat HWVER is not an expected HWVER
#asahi-dev · 2023-03-04 18:30
marcanyou may want to do some patch archaeology and see what never got upstreamed
#asahi-dev · 2023-03-04 18:30
marcanFWIW, I've seen a patch on the rockchip list that generalizes basically every register and specializes it per hwver because apparently that driver might just be quite broken depending on the version :p
#asahi-dev · 2023-03-04 18:29
marcannice :)
#asahi-dev · 2023-03-04 15:53
marcanat least some register offsets match (though some names differ)
#asahi-dev · 2023-03-04 15:53
marcanactual datasheet for one instance of that synopsys thing
#asahi-dev · 2023-03-04 15:52
marcanChaosPrincess: https://www.st.com/resource/en/reference_manual/rm0410-stm32f76xxx-and-stm32f77xxx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf
#asahi-dev · 2023-03-04 15:46
marcansee also rockchip/dw-mipi-dsi-rockchip.c which is where that came from apparently
#asahi-dev · 2023-03-04 15:46
marcanand then put the apple pipe stuff in front
#asahi-dev · 2023-03-04 15:45
marcanso I guess if you're lucky you can use that driver mostly as-is for the MIPI stuff, described in the device tree as a bridge
#asahi-dev · 2023-03-04 15:44
marcanstatus0/status1 I assume, IRQ flags
#asahi-dev · 2023-03-04 15:43
marcanapple strings: "ST0" "ST1" "DSIM_CORE_PHY_STATUS" from that file: "DSI_INT_ST0" "DSI_INT_ST1" "DSI_PHY_STATUS"
#asahi-dev · 2023-03-04 15:43
marcanand yeah okay that matches even better
#asahi-dev · 2023-03-04 15:42
marcanoh also lol drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c is a thing.
#asahi-dev · 2023-03-04 15:39
marcanthere's also this "slow adaptive clocking" thing which might be an apple thing
#asahi-dev · 2023-03-04 15:38
marcanmaybe start there
#asahi-dev · 2023-03-04 15:38
marcanChaosPrincess: I have a suspicion drm/msm/dsi/dsi_phy_7nm.xml.h and nearby files are related to that synopsys core, going by a few apple strings (there aren't many to go by though)
#asahi-dev · 2023-03-04 15:27
marcan:D
#asahi-dev · 2023-03-04 15:21
marcanwell the good thing about synopsys junk is there's a good chance one of the other MIPI drivers in the kernel is secretly the same core
#asahi-dev · 2023-03-04 15:21
marcanso H13DFR is the display pipe, the synopsys driver is the MIPI host, and SummitLCD is the panel driver
#asahi-dev · 2023-03-04 15:21
marcanyeah, just saw that one too
#asahi-dev · 2023-03-04 15:21
marcanwell now you know it's more synopsys junk
#asahi-dev · 2023-03-04 15:21
marcanoh wait, yeah, separate driver. lovely...
#asahi-dev · 2023-03-04 15:19
marcanI also don't see any mipi strings which is weird...
#asahi-dev · 2023-03-04 15:18
marcanat least I don't see any cortex-m3 references so that's good for you :p
#asahi-dev · 2023-03-04 15:15
marcanit definitely has scaling and layers, but also probably 80% of that functionality is never used for the touch bar
#asahi-dev · 2023-03-04 15:13
marcanokay so it's a copy pasted *A8* display controller then
#asahi-dev · 2023-03-04 15:12
marcanAppleH7DisplayPipe.cpp

plus ›