#
✕ nick:sven
#asahi-dev · 2022-12-05 10:33
sven+d
#asahi-dev · 2022-12-05 10:33
sven(and introduce a new one in the typec mess \o/)
#asahi-dev · 2022-12-05 10:32
sveni think i already fixed the atc ones in my current wip branch
#asahi-dev · 2022-12-05 08:40
svenhmm.. that makes more sense
#asahi-dev · 2022-12-05 07:46
svenI thought that couldn’t happen ::
#asahi-dev · 2022-12-05 07:46
svenhuh, that looks like it tries to call typec_enter twice
#asahi-dev · 2022-12-04 21:12
svenI still need to do that properly
#asahi-dev · 2022-12-04 21:12
svensomething like fwnode_connection_find_match(fwnode, "displayport", NULL, dp_match) with dp_match just returning fwnode if fwnode_property_present(fwnode, id) is true
#asahi-dev · 2022-12-04 21:11
svenaltmode/displayport.c needs to use fwnode_connection_find_match essentially
#asahi-dev · 2022-12-04 21:11
sveniirc the tps node needs to get a displayport = <&display_subsystem>; property or something like that
#asahi-dev · 2022-12-04 21:10
svenyou can also hack it in the dt
#asahi-dev · 2022-12-04 21:10
svenyeah, then the connection to drm won’t work
#asahi-dev · 2022-12-04 21:08
svenI don’t think I pushed that yet
#asahi-dev · 2022-12-04 21:08
svenyou need to replace one function in typec/altmode/DisplayPort.c so that it finds the graph connection to the drm node
#asahi-dev · 2022-12-04 21:07
sventhat might explain the warnings, let me check
#asahi-dev · 2022-12-04 21:06
svenoh, it’s using the old altmode code and not the typec stuff?
#asahi-dev · 2022-12-04 21:06
sventhe warning I mean
#asahi-dev · 2022-12-04 21:05
svenhuh, weird :/
#asahi-dev · 2022-12-03 10:22
svenfeel free to hack on dptx ;)
#asahi-dev · 2022-12-03 10:22
svenbut that’s also typec changes only
#asahi-dev · 2022-12-03 10:22
svenI have some wip commits to also make it work correctly when connected before booting
#asahi-dev · 2022-12-03 10:17
svenhaven’t had much time due to restructuring at $work
#asahi-dev · 2022-12-03 10:16
svenI only have some changes to do the typec subsystem stuff correctly
#asahi-dev · 2022-12-02 19:10
svengrepping code >> random uneducated speculation
#asahi-dev · 2022-12-02 19:10
sventhere's a restore_send_nor in idevicerestore, maybe start looking at that
#asahi-dev · 2022-12-02 19:10
svennicolas17: i'd start with idevicerestore first and if there's nothing there go to AC2 :D
#asahi-dev · 2022-12-02 19:09
sveni mean.. maybe just dump all traffic while running idevicerestore and check if there's NOR calibration data in there
#asahi-dev · 2022-12-02 18:56
sven*sigh*
#asahi-dev · 2022-12-02 18:55
sventhe bt stack needs the keys in plaintext
#asahi-dev · 2022-12-02 18:55
svenamarioguy: I know, it makes no sense at all to use sep for this
#asahi-dev · 2022-12-02 07:54
svenuh, yes?
#asahi-dev · 2022-12-02 07:51
svenI don’t know
#asahi-dev · 2022-12-02 07:49
svenAnd the dfu restore can and does talk to apples servers. It wouldn’t surprise me if it can just download whatever is required from there
#asahi-dev · 2022-12-02 07:47
svenit makes no sense for SEP to “hold that”
#asahi-dev · 2022-12-02 07:47
svenbt pairing data is probably inside nvram
#asahi-dev · 2022-12-02 07:47
svenlol, no
#asahi-dev · 2022-12-02 07:43
svenand dunno what else is stored in there but wouldn’t surprise me if there’s more useful things
#asahi-dev · 2022-12-02 07:43
svenalso if we want to support system firmware updates eventually
#asahi-dev · 2022-12-02 07:42
svenyeah
#asahi-dev · 2022-12-02 07:42
svenand we’ll need access to the SPI since it contains nvram eventually
#asahi-dev · 2022-12-02 07:41
svendon’t think anyone tested it but it should be possible
#asahi-dev · 2022-12-01 17:07
svenok, will take a look later
#asahi-dev · 2022-12-01 10:58
sven_jannau_: +1
#asahi-dev · 2022-12-01 10:53
svenChaosPrincess: yeah, that sounds good
#asahi-dev · 2022-12-01 10:52
svenlet's please not bypass some kernel framework just because compositors are possibly broken
#asahi-dev · 2022-12-01 10:49
sventhe hw interface is likely the same, it's just that apple wrote their own driver running on the T2 and somehow proxies that over a custom usb protocol
#asahi-dev · 2022-12-01 09:23
sveni think so. technically thunderbolt 3 is an alternate mode while usb 4 isn't (lol, usb)
#asahi-dev · 2022-12-01 09:21
svenjannau: thanks! looks like usb4 indeed sets different bits than tbt altmode in that data status register
#asahi-dev · 2022-11-30 22:00
sven-s
#asahi-dev · 2022-11-30 22:00
svenand the estimate for that is already sometimes in 2025 or so

plus ›