#
#asahi-dev · 2023-04-28 15:34
marcanthe linux driver doesn't have to do anything :)
#asahi-dev · 2023-04-28 15:34
kettenisyou're going to change the linux driver to do that?
#asahi-dev · 2023-04-28 15:33
marcanthere's plenty of space at the end of SRAM so it's perfectly fine to steal some space for oslog there IMO
#asahi-dev · 2023-04-28 15:33
kettenisthat makes more sense
#asahi-dev · 2023-04-28 15:33
marcan(not 4k pages)
#asahi-dev · 2023-04-28 15:32
marcansize is in bytes
#asahi-dev · 2023-04-28 15:32
marcanalso the size field extends down 12 more bits in the message, the DVA isn't as large as we thought
#asahi-dev · 2023-04-28 15:32
marcansince that sticks in linux, and forwarding RAM mappings is a major PITA
#asahi-dev · 2023-04-28 15:32
marcaninstead of RAM
#asahi-dev · 2023-04-28 15:32
_jannau_but yes, 1-2 weeks is not enough time to test it on other systems and fix issues
#asahi-dev · 2023-04-28 15:32
marcanstill need to fix oslog but if you're bored: for MTP, we need to allocate oslog out of the end of the sram region in the DT
#asahi-dev · 2023-04-28 15:31
kettenisI should have some time to get u-boot in releasable shape next week
#asahi-dev · 2023-04-28 15:31
_jannau_not sure, it seems to work fine ignoring type-c/atc-phy. I'm currently down to tipd behaves differently on every other connect but at least consistently
#asahi-dev · 2023-04-28 15:26
marcanI don't expect dcpext to be done by then :p
#asahi-dev · 2023-04-28 15:26
marcanwhat I mean is that we'll probably release in O(1-2 weeks) for M2 Pro/Max only
#asahi-dev · 2023-04-28 15:26
marcan_jannau_: dcpext would be a very good reason to call it useful
#asahi-dev · 2023-04-28 15:25
marcanlina: see https://lore.kernel.org/linux-arm-kernel/20220726145430.bfwidmw6xmeppbfb@bogus/ , looks like it's known broken upstream (turn off CONFIG_PROVE_RAW_LOCK_NESTING to shut it up)
#asahi-dev · 2023-04-28 15:25
_jannau_there goes my plan to support dcpext only on 13.3 or later (more out of annoyance than difficulty to support both)
#asahi-dev · 2023-04-28 15:24
ChaosPrincessidk for sure yet, but seems to be
#asahi-dev · 2023-04-28 15:23
ChaosPrincessim sorta maybe looking at another ip block that may end up being firmware dependent
#asahi-dev · 2023-04-28 15:23
marcaninitially only the new machines will get 13.3
#asahi-dev · 2023-04-28 15:23
marcanonce it's useful, yes
#asahi-dev · 2023-04-28 15:17
ChaosPrincesswill we have a path to update 12.3 machines to newer versions?
#asahi-dev · 2023-04-28 15:14
marcanI'll take a look
#asahi-dev · 2023-04-28 15:14
marcanlina: argh :(
#asahi-dev · 2023-04-28 15:14
ChaosPrincesscool
#asahi-dev · 2023-04-28 15:14
marcancorrect
#asahi-dev · 2023-04-28 15:14
ChaosPrincessright, and we are about to support 13.3 firmwares soon(tm)?
#asahi-dev · 2023-04-28 15:13
marcanand some stuff in the ADT bindings but only m1n1 cares about that
#asahi-dev · 2023-04-28 15:13
marcanand GPU
#asahi-dev · 2023-04-28 15:12
ChaosPrincessis dcp the only thing rn that is firmware version dependent?
#asahi-dev · 2023-04-28 12:15
povikyeah
#asahi-dev · 2023-04-28 12:15
jannauapple_dart_probe_device() is called from the driver core before the consumer's probe callback
#asahi-dev · 2023-04-28 12:14
povikbut maybe it does work as we need
#asahi-dev · 2023-04-28 12:14
poviklink is added from the consumer's ``->probe`` callback:'
#asahi-dev · 2023-04-28 12:13
povikthe qualifier before that makes me a little uneasy though: 'Two other flags are specifically targeted at use cases where the device
#asahi-dev · 2023-04-28 12:10
povikwhich wasn't as clear
#asahi-dev · 2023-04-28 12:10
poviki only read the text above device_link_add
#asahi-dev · 2023-04-28 12:10
povikaha.
#asahi-dev · 2023-04-28 12:10
jannau"DL_FLAG_RPM_ACTIVE can be specified to runtime resume the supplier and prevent it from suspending before the consumer is runtime suspended."
#asahi-dev · 2023-04-28 12:10
poviki am surprised it doesn't work as is, that the device link to a consumer not supporting runtime PM doesn't prevent the DART from suspending implicitly
#asahi-dev · 2023-04-28 12:08
povikthat would fix it, but my understanding is DL_FLAG_RPM_ACTIVE would keep the DART up even for devices that do support runtime PM and are suspended
#asahi-dev · 2023-04-28 12:07
jannauafter checking Documentation/driver-api/device_link.rst
#asahi-dev · 2023-04-28 12:07
jannauwe might want DL_FLAG_RPM_ACTIVE for every device. I suppose that fixes sio
#asahi-dev · 2023-04-28 11:51
povikand the same DART will get resumed because of ADMAC, which shares it
#asahi-dev · 2023-04-28 11:51
jannauthat's not the problem for pcie though
#asahi-dev · 2023-04-28 11:51
povikhttps://github.com/AsahiLinux/linux/blob/2fb9510f953092b1cc94e0cb26713f2f152754f8/drivers/iommu/apple-dart.c#L1341
#asahi-dev · 2023-04-28 11:51
povikit does because of this reset
#asahi-dev · 2023-04-28 11:50
jannauare dart-sio and dart in different power-domains? I don't think runtime-pm state of dart-sio matters as long as the pd is on
#asahi-dev · 2023-04-28 11:47
povik* so PM core doesn't keep DART up while SIO is up

plus ›