#
…

2023-09-16

01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
02:00gabuscus has quit []
02:13elros has quit [Ping timeout: 480 seconds]
02:16kallisti has joined #asahi-dev
02:18kallistiWhat's the worst thing that can happen if I add 14" MBP to https://github.com/AsahiLinux/asahi-installer/blob/e4d8bb3524fd004abac7468aac275f33d5c94c56/src/main.py#L49 and it's respective IPSW version, and try to run the installer on 14" MBP in expert mode?
02:18tpw_rulesit erases your hard disk and you have to DFU restore from another machine
02:18tpw_rulesand you lose all your data
02:19kallistiHmm yeah, if I was smart perhaps I could make a backup and then risk it.
02:19tpw_rulesi mean i suspect it just won't work. you'd need a device tree and things
02:20kallistiAhh right, I dumped one of those before, but never made next steps (for a tablet)
02:21kallistiNot sure how one would be created from scratch. That was android.
02:33kallisti has quit [Remote host closed the connection]
02:34gabuscus has joined #asahi-dev
02:36lsep has quit [Ping timeout: 480 seconds]
02:38nicolas17I don't understand, isn't 14" MBP already in that list?
03:12tristan2_ has joined #asahi-dev
03:12cylm_ has joined #asahi-dev
03:13midou has quit [Ping timeout: 480 seconds]
03:14tristan2 has quit [Ping timeout: 480 seconds]
05:13cylm_ has quit [Quit: WeeChat 4.0.4]
05:53crabbedhaloablut has joined #asahi-dev
06:19loki_val has joined #asahi-dev
06:19crabbedhaloablut has quit [Read error: Connection reset by peer]
06:57roxfan has quit [Ping timeout: 480 seconds]
07:07nicolas17 has quit [Quit: Konversation terminated!]
08:04roxfan has joined #asahi-dev
08:41roxfan has quit [Read error: Connection reset by peer]
08:44qyliss has quit [Quit: bye]
08:46qyliss has joined #asahi-dev
08:50qyliss has quit []
08:52qyliss has joined #asahi-dev
09:02zensayyy has joined #asahi-dev
09:46kali_ has joined #asahi-dev
09:46kali_ has quit []
09:56zensayyy has quit [Quit: zensayyy]
10:07jacksonchen666 has quit [Ping timeout: 480 seconds]
10:17ydalton has joined #asahi-dev
10:19hightower2 has quit [Ping timeout: 480 seconds]
10:19ydaltoni assume the only thing you can do regarding linux is to install m1n1, but that's not very useful to an end user
10:25ydalton has left #asahi-dev [ERC 5.4 (IRC client for GNU Emacs 28.2)]
10:32midou has joined #asahi-dev
11:22hightower2 has joined #asahi-dev
11:36eiln has joined #asahi-dev
11:36hightower3 has joined #asahi-dev
11:36hightower2 has quit [Ping timeout: 480 seconds]
11:38eldriitch has joined #asahi-dev
11:40hightower2 has joined #asahi-dev
11:42midou has quit [Ping timeout: 480 seconds]
11:45hightower3 has quit [Ping timeout: 480 seconds]
11:46eiln has quit [Quit: WeeChat 4.0.4]
11:48jacksonchen666 has joined #asahi-dev
11:58SalimTerryLi has quit [Ping timeout: 480 seconds]
12:12chadmedhuh? no those laptops are supported fully afaik
12:13chadmedthe reason the M2* _desktops_ arent is because of the DCP/dptext/dcpext/whatever mess
12:13roxfan has joined #asahi-dev
12:15hightower2 has quit [Ping timeout: 480 seconds]
12:27jannaubcm4388 is not supported, asahi alarm images are too old for 13.5 OS FW or not yet marked as 13.5 compatible, devices are expert mode only. at least on the m2 pro/fedora there's a strange issue with gpu's uat_handoff reserved memory
12:27jannauso the devices work to some extend but are not officially supported
12:33compassion1785 has quit [Quit: lounge quit]
12:33compassion1785 has joined #asahi-dev
12:35compassion1785 has quit []
12:35compassion1785 has joined #asahi-dev
12:48maria has quit [Ping timeout: 480 seconds]
12:48maria has joined #asahi-dev
12:58roxfan has quit [Remote host closed the connection]
13:00CoolStar has quit [Read error: Connection reset by peer]
13:03SalimTerryLi has joined #asahi-dev
13:03roxfan has joined #asahi-dev
13:11roxfan has quit [Read error: Connection reset by peer]
13:14roxfan has joined #asahi-dev
13:16roxfan2 has joined #asahi-dev
13:23roxfan has quit [Ping timeout: 480 seconds]
13:23roxfan has joined #asahi-dev
13:24roxfan2 has quit [Ping timeout: 480 seconds]
13:31roxfan has quit [Ping timeout: 480 seconds]
13:49aleasto- is now known as aleasto
13:53jeisom has quit [Ping timeout: 480 seconds]
14:19roxfan has joined #asahi-dev
14:21nickchan has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
14:25nickchan has joined #asahi-dev
14:35roxfan has quit [Ping timeout: 480 seconds]
15:17jannaumaz: would you take a simple openscad based tray "case" for the cs-hw repo?
15:35c10l has quit [Quit: Bye o/]
15:36c10l has joined #asahi-dev
15:37c10l has quit []
15:38c10l has joined #asahi-dev
15:52hightower2 has joined #asahi-dev
16:41rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
16:41Guest250 has quit [Quit: Bridge terminating on SIGTERM]
16:45Jamie has joined #asahi-dev
16:45Jamie is now known as Guest328
16:46rhysmdnz has joined #asahi-dev
18:12lewurm has quit [Read error: No route to host]
18:13lewurm has joined #asahi-dev
18:30eldriitch has quit [Quit: Page closed]
18:34eldriitch has joined #asahi-dev
18:43ellyq has joined #asahi-dev
19:09eldriitch2 has joined #asahi-dev
19:17eldriitch2 has quit [Ping timeout: 480 seconds]
19:24chadmed has quit [Read error: Connection reset by peer]
19:25chadmed has joined #asahi-dev
19:39nicolas17 has joined #asahi-dev
19:44chadmed has quit [Ping timeout: 480 seconds]
19:50roxfan has joined #asahi-dev
19:54roxfan2 has joined #asahi-dev
19:58roxfan has quit [Ping timeout: 480 seconds]
20:09eldriitch has quit [Remote host closed the connection]
20:14eiln has joined #asahi-dev
20:18eldriitch has joined #asahi-dev
20:27elros has joined #asahi-dev
20:29eiln5am, you know it's something good
20:30eilnnow to RE those ~200 magic registers (they're actually dma'd *to* the registers from iova space).. per codec..
20:34opticroncongrats! great work!
20:40compassion1785 has quit [Quit: lounge quit]
20:45elros has quit [Ping timeout: 480 seconds]
20:45compassion1785 has joined #asahi-dev
21:00qyliss has quit [Quit: bye]
21:02qyliss has joined #asahi-dev
21:02loki_val has quit []
21:02elros has joined #asahi-dev
21:03compassion1785 has quit [Quit: lounge quit]
21:05jeisom has joined #asahi-dev
21:15iaguisawesome!
21:17elros has quit [Ping timeout: 480 seconds]
21:21amarioguybtw what is "rc" supposed to be in the apple devicetrees? is that just a bespoke mechanism of apple's pcie thing or is that actually in the standard?
21:21amarioguy(for the pcie node)
21:22amarioguyand i'm almost scared to ask...but if apple hw is ecam compliant, a bit curious why we needed to roll our own passthrough driver? just DART/MSI stuff ig?
21:22amarioguy(the "pcie-apple" stuff in u-boot/linux)
21:25amarioguyditto the rc question for "port1", etc, does each P2P bridge have it's own ECAM region?
21:35roxfan2region count?
21:35roxfan2(no idea actually)
21:40elros has joined #asahi-dev
21:41compassion1785 has joined #asahi-dev
21:47roxfan2 is now known as roxfan
21:48elros has quit [Ping timeout: 480 seconds]
21:49eilnfyi it cannot be stateless as I'd hoped. we need a basic syntax parser to generate a 4K ish header. so far I've figured out height/width/stride. we also need to un-tile the output, and I'm really not sure if we want to do that in the kernel.
21:50eilnneither bit is in the moronic m3 blob, so we have to do it regardless
21:50elros has joined #asahi-dev
21:50chadmed has joined #asahi-dev
21:51nicolas17eiln: what will be the userland API to access it?
21:54jannaueiln: we can't recreate the header from the stateless structs? what information is in that header
21:54jannaunicolas17: v4l2
21:54nicolas17I suspect Apple accesses it from something with a lot more codec awareness
21:56jannauI don't follow. the v4l2 stateless decoder api requires quite a bit of codec knowledge from the API user
21:59nicolas17hm looks like AppleAVD.kext has H264 parsing (and it has lead to CVE-2022-22675)
22:04eldriitch has quit [Quit: Leaving...]
22:04roxfan has quit [Read error: Connection reset by peer]
22:07eilnjannau: I slightly misunderstood. the headers *are* chained (the second & onward headers do much less than the first), but it might be just an optimization. either way I can only decode one frame right now.
22:08nicolas17so we get hardware-accelerated decoding of HEIF photos? :3
22:08eldriitch2 has joined #asahi-dev
22:10jannaueiln: if you have questions regarding video bitstreams feel free to ask
22:11jannauassuming you're looking at h264, the picture parameter set is usually much smaller than the sequence parameter set
22:12svenamarioguy: it’s ecam plus some config space for each port for irqs, clocks, etc.
22:12svens/config space/apple (or more likely apple+synopsys) MMIO region/
22:13svenand iirc some global MMIO that just needs some tunables applied
22:13sventhere’s also some region for the PHY but I believe m1n1 takes care of that
22:14kallisti has joined #asahi-dev
22:15kallistinicolas17: chadmed : No, the MBP 14" M2 variant is not supported. The installer returns `This device is not supported yet! Please check out the Asahi Linux Blog for updates on device support:` and the device is not in the list...
22:17eldriitch2 has quit [Ping timeout: 480 seconds]
22:17chadmedkallisti: yeah forgot about the wifi chipset and gpu carveout...
22:18feliciss has joined #asahi-dev
22:18eilnjannau: thanks :D
22:18eilnI started with h264 but there was some funny SPS/PPS stuff, like you mentioned. also scaling. I'm doing vp9 rn
22:19eilnI am really not the best person for this
22:20kallistiI could try to get by with a ethwernet adapter but assume that the display doesn't work and I don't follow how an install can happen without the device listed in https://github.com/AsahiLinux/asahi-installer/blob/e4d8bb3524fd004abac7468aac275f33d5c94c56/src/main.py#L49 . Furthermore, someone mentioned there is no device tree
22:23elros has quit [Quit: WeeChat 4.0.4]
22:23elros has joined #asahi-dev
22:23jannaukallisti: it is listed there but this conversation seems off-topic here. support for device is not ready yet
22:24kallistijannau: Sorry about that.
22:25jannaueiln: I would be a good person for avd/ave but I have my hands full with dcp
22:40ydalton has joined #asahi-dev
22:45eilnoh wait no it's something with the reference frame
22:46ydaltoneiln: wow, i did not expect this
22:47ydaltonwhat's up with that 0xb7000 big structure that is referenced by the mailbox messages?
22:47ydaltoni remember i ran R's tracer script and i saw that
22:49svenjannau: just die what alyssa did and find a poor volunteer who takes over :D
22:50svens/die/do/ (wtf iPhone autocorrect)
22:53ydaltoni'd like to help but i know jack about anything :P
22:54ydaltoneiln: did you use your own tracer script?
22:56Guest328that’s one of the indirection layers
22:56Guest328the last one iirc, it contains the pointers to actual video data
22:57feliciss has quit [Quit: Leaving.]
22:58Guest328it’s big because it has some arrays of structs e.g. per-slice within a frame
22:58amarioguysven: ah got it, thanks for the info
22:58ydaltonR called it the frame params
22:59ydaltonboth the mailbox and the frame params contain the frame number of the stream
22:59ydaltoni don't have my notes at hand
23:00ydaltonbut why apple, why the indirection
23:03eilnydalton: in dart stream 1?
23:03eiln"tracer" it just mon.poll()'s periodically
23:04ydaltoni mean like didn't you run the hypervisor and use some kind of tracer script?
23:08elros has quit [Ping timeout: 480 seconds]
23:09ydaltoni'm assuming that avd_dma_tunables_stages0 is that shit the macOS driver spams in MMIO
23:12darkapex3 has quit [Remote host closed the connection]
23:12darkapex3 has joined #asahi-dev
23:14ydaltonGuest328: is this jamie?
23:17ydalton has left #asahi-dev [ERC 5.4 (IRC client for GNU Emacs 28.2)]
23:17ChaosPrincesseiln: w.r.t ave_log.cfg, either that didnt end up working, or i have no idea where exactly to look for output. And im not sure how that even was supposed to work, since the scanf format that they are using is "LOG_ID_%d=%d%c"
23:33elros has joined #asahi-dev
23:35eilnecho "1 2 hello" > /tmp/ave_log.cfg
23:35eiln> VTEncoderXPCService: (AppleVideoEncoder) 4319867810 64 AVE WARN: used log config file is at /tmp/ave_log.cfg 1694906712191446
23:35eiln> VTEncoderXPCService: (AppleVideoEncoder) 4319906591 46 AVE VERB: H264FrameRec: insert slice_size 823 slice_size_fig 819 slice # 0 &p_in[0] 0x1000000
23:35eilnChaosPrincess: spits out the fw struct in 13.5. or were you already getting those?
23:37ChaosPrincessOk, where are you seeing those?
23:37ChaosPrincessi might be missing something stupidly simple
23:38eilngood ol 'log show --last 1m --info --debug --color=always'
23:39ChaosPrincessYea, the --info and --debug are probably what im missing
23:40Guest328ydalton: yeah
23:40ChaosPrincessThanks, that should be easier than visually diffing huge structures at m1n1 level
23:40Guest328(i’m on matrix, idk what i’m showing up as on iirc sorry)
23:41Guest328s/iirc/irc/
23:41elros has quit [Ping timeout: 480 seconds]
23:50nicolas17Guest328: Guest 328
…