#
#asahi-dev · 2023-11-24 20:25
ChaosPrincessthere is also another one in omap description where they give two contradicting sentences about about what exact data is stored in it
#asahi-dev · 2023-11-24 20:25
ChaosPrincessyep
#asahi-dev · 2023-11-24 20:23
nicolas17it seems om_tree_oid is a *physical* object ID
#asahi-dev · 2023-11-24 20:23
nicolas17if om_tree_oid is a virtual OID then I need to look it up in the object map, but to look something up in the object map I need to get the btree that om_tree_oid points at, how can that possibly work?
#asahi-dev · 2023-11-24 20:22
nicolas17"om_tree_oid: The virtual object identifier of the tree being used for object mappings."
#asahi-dev · 2023-11-24 20:22
nicolas17"To access a virtual object using the object map, perform the following operations: [...] Locate the B-tree for the object map by reading the om_tree_oid field of omap_phys_t"
#asahi-dev · 2023-11-24 20:22
nicolas17"Virtual objects are stored on disk at a block address that you look up using an object map"
#asahi-dev · 2023-11-24 20:20
ChaosPrincesswhich one? :P
#asahi-dev · 2023-11-24 20:17
nicolas17AAAAAAAAAA I found a mistake in Apple's APFS documentation >_<
#asahi-dev · 2023-11-24 20:01
ydaltoneiln: t8112's avd seems to be codenamed dahlia
#asahi-dev · 2023-11-24 18:58
eilnoh wait no if there are multiple processors we can definitely make use of them as long as their output doesn't get overwritten. but I haven't seen any evidence of macOS threading these. their firmware IPCs are interrupts and the command for executing VP vs. PP (which there's only one of) is handled inside a single IPC decode command. ig that's one thing we can do better
#asahi-dev · 2023-11-24 18:49
eilnat least on mine it's not schedulable i.e. vp9 instruction stream has to go into the vp9 fifo, etc
#asahi-dev · 2023-11-24 18:47
eilnmy understanding is that each fifo is the entrypoint to a separate processor. actually I don't think there's any other way because you can see it processing each step with each word written
#asahi-dev · 2023-11-24 18:41
ArcaneNibblelilyD fills in [0-8] depending on which fifo is used
#asahi-dev · 2023-11-24 18:41
ArcaneNibbleV?Dn isn't a version number
#asahi-dev · 2023-11-24 18:38
eilnif the other ones have multiple fifos (why?) it's possible it's hevc fifo#2 but I recall I couldn't get it to work with hevc. also the version number jump was suspicious
#asahi-dev · 2023-11-24 18:36
eilnit's not
#asahi-dev · 2023-11-24 18:36
ellyq(sorry for butting in, just curious)
#asahi-dev · 2023-11-24 18:36
eilnyeah it's probably just some prototype design
#asahi-dev · 2023-11-24 18:36
ellyqI wonder if it might be AV1?
#asahi-dev · 2023-11-24 18:33
krbtgtit's possible it was also removed a long time ago and you're just seeing the holes where it used to be too
#asahi-dev · 2023-11-24 18:31
krbtgtor one of the other VC "family" codecs
#asahi-dev · 2023-11-24 18:31
krbtgtit is used on blu-ray, it's from around the late 2000s
#asahi-dev · 2023-11-24 18:30
krbtgtwrt the Mystery Codec, i wonder of it's VC1
#asahi-dev · 2023-11-24 18:28
ArcaneNibbleenjoy
#asahi-dev · 2023-11-24 18:26
eilnaah I'm gonna snooze off, we'll definitely investigate this ;)
#asahi-dev · 2023-11-24 18:20
ArcaneNibblefunctions that poke it log HvpD/AvpD/LvpD so pretty sure
#asahi-dev · 2023-11-24 18:18
eilnis it 264/5 for sure? I can't imagine parsing macroblocks is a threaded task. maybe vp9 for threadframes but that's the only non-one
#asahi-dev · 2023-11-24 18:17
ArcaneNibblethe opcodes that go into the fifos look the same / very similar between lilyD and viola
#asahi-dev · 2023-11-24 18:16
ArcaneNibble(also, didn't care much and figured "we can do it our own way anyways, doesn't matter what apple's firmware actually does")
#asahi-dev · 2023-11-24 18:16
ArcaneNibbledidn't manage to poke hard enough to figure that out
#asahi-dev · 2023-11-24 18:15
ArcaneNibblenot sure
#asahi-dev · 2023-11-24 18:15
eilnit has four FIFOs? how are they scheduled?
#asahi-dev · 2023-11-24 18:14
nicolas17AVD_VP_INSN_FIFO_VP9 0x1104010
#asahi-dev · 2023-11-24 18:14
nicolas17AVD_VP_INSN_FIFO_264 0x110400c
#asahi-dev · 2023-11-24 18:14
nicolas17AVD_VP_INSN_FIFO_??? 0x1104008 /* mystery codec */
#asahi-dev · 2023-11-24 18:14
nicolas17AVD_VP_INSN_FIFO_265 0x1104004
#asahi-dev · 2023-11-24 18:14
nicolas17from eiln's blog:
#asahi-dev · 2023-11-24 18:13
ArcaneNibbleit has 4 h.265, 4 h.264, and 1 vp9
#asahi-dev · 2023-11-24 18:13
ArcaneNibblelilyD has multiple
#asahi-dev · 2023-11-24 18:13
ArcaneNibbleoh wait, does viola only have three VP fifos?
#asahi-dev · 2023-11-24 18:12
ArcaneNibbleat least, from static analysis
#asahi-dev · 2023-11-24 18:12
ArcaneNibblelike, after VP9
#asahi-dev · 2023-11-24 18:11
ArcaneNibblethere's instead a mysterious thing *after* it
#asahi-dev · 2023-11-24 18:11
nicolas17huh!
#asahi-dev · 2023-11-24 18:11
ArcaneNibblebtw, there's no gap between 265/264 on lilyD
#asahi-dev · 2023-11-24 18:07
nicolas17eiln: kind of like https://github.com/robre/ioreg-archive
#asahi-dev · 2023-11-24 18:06
ArcaneNibblethe lilyD firmware doesn't look like that
#asahi-dev · 2023-11-24 18:06
ArcaneNibblebut yeah, we can see the status register polling you mentioned
#asahi-dev · 2023-11-24 18:04
eilnwe could crowdsource 'log show'

plus ›