#
…

2022-01-16

00:00alyssajannau: DCP fixes 👀
00:02alyssa" drm/apple: Mark the mode with highest store as preferred "
00:02alyssaah yes that is 100% reasonabe
00:02alyssaReviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
00:03alyssaI should really build your branch huh
00:11alyssanot sure why the DCP is crashing for you when unplugging HDMI
00:11alyssathat works ok for me (on 11.x firmware, I'm scared to upgrade :-p)
00:20alyssathen again, having both 11.x and 12.x coexist for a bit might be a good idea to check that I didn't screw up the versioning
00:54jannaualyssa: it's possible that I broke something or hotplug has to be handled differently with macos 12
00:58jannauwith the installer it's at least somewhat reasonable to add a 11.x install before updating to macos 12.1. it needs 2.5G and a copy of the 11.x kmutil
01:02alyssajannau: both are possible, yes
01:03jannauI was considering if I should keep the 11.4 to 11.6 support for testing. I postponed that for now
01:03alyssanot that I documented it, but the idea with the dcpep tables is that each version gets a table
01:03alyssaand then the apple_dcp struct has a pointer to a table
01:03alyssathat pair of pointers gets set based on firmware version at probe time
01:04alyssaand then any dcp call/back goes through the table pointed to
01:04alyssaon one hand that means two layers of indirection for every call/back
01:04alyssaon the other that means overhead is constant regardless of how many firmware versions we support
01:05alyssa(and this makes it easy to handle cases where semantics stay the same but the numbering is shuffled)
01:05jannauyes, the pointer tables are reasonable, the struct changes are more annoying
01:05user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:05alyssadon't have a good sol'n there
01:07jannauI fear there is none, make the structs version dependent and use unions if they are embedded
01:07alyssaunions don't help if the sizes change..
01:08alyssain userspace we do crazy metaprogramming to do this stuff with 0 overhead
01:08alyssathat won't fly in the kernel, and also doesn't matter :-p
01:12jannauthey help a little with embedding struct dcp_swap_submit_req_11_4 and dcp_swap_submit_req_12_0 in struct apple_dcp
01:12alyssaah, sure
01:14alyssai don't know
01:14alyssai really don't have cycles to work on dcp / m1 kernel stuff right now
01:21jannauno problem, I'll spend some time to improve it
01:21alyssadon't feel obligated
01:21Jamie[m]1waiting for apple to release a superscalar alyssa
01:22alyssaAlyssa is a SIMT architecture with a very large warp size
01:22alyssaExcellent throughput but branching destroys performance.
01:45user982492 has joined #asahi-dev
03:30phiologe has joined #asahi-dev
03:34PhilippvK has quit [Ping timeout: 480 seconds]
03:36user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:49kov has quit [Quit: Coyote finally caught me]
03:49kov has joined #asahi-dev
04:03user982492 has joined #asahi-dev
04:10Dcow has joined #asahi-dev
04:22Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:26marcanok, modesetting works (I think)
04:26marcannow I just need to swap...
04:40Dcow has joined #asahi-dev
04:43Dcow has quit []
05:44akemin_dayo has quit [Ping timeout: 480 seconds]
06:27opticron has quit [Ping timeout: 480 seconds]
06:38opticron has joined #asahi-dev
06:54marcanso you know how iBoot initializes a fake framebuffer at iPhone 5 resolution when there is no display, or now always on >12 on the Mini?
06:54marcanhttps://marcan.st/transf/m1n1_iphone.png this is apparently what ends up on the screen when that happens :-)
06:55marcan(yes, I got it to work)
07:01marcanI think I can reuse the existing framebuffer allocation/IOMMU mapping, if I can find the IOVA... I'll probably have to walk the DART page tables for that
07:01marcanI think it's oversized enough to handle 1080p
07:42user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:23user982492 has joined #asahi-dev
09:27j`eymarcan: yay! gg
10:05user982492_ has joined #asahi-dev
10:09user982492 has quit [Ping timeout: 480 seconds]
10:15jeffmiw has joined #asahi-dev
10:39aleasto has joined #asahi-dev
10:47user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:42kgarrington has joined #asahi-dev
13:43kgarrington has quit [Remote host closed the connection]
13:44alyssamarcan: why would iBoot make a framebuffer allocation if it doesn't mode set anymore?
13:44marcanalyssa: dummy fb
13:45marcanwhat I don't know is why it's larger than the actual dimensions in the bootargs *shrug*
13:46alyssaparsing boot args is so much work /s
13:47alyssamarcan: my next question is why the iBoot interface supports YUV
13:48alyssaand.. ooh.. AGX tiling..
13:48alyssa(or AGX compression I guess)
13:51marcanalyssa: *shrug*
13:52marcanalyssa: it also supports getting and setting properties, brightness, color matrix
13:52marcanit's... surprisingly complete
13:52marcanbut has gaps, like the mode structure sucks and is missing lots of details
13:58alyssamarcan: now that you've looked through EPIC stuff
13:58alyssaany idea how hard e.g HDMI audio is?
13:59marcanalyssa: EPIC isn't that hard, but it's just completely different from the existing DCP stuff
13:59marcanI'm streaming a m1n1 EPIC implementation right now...
13:59marcannot sure what backs the audio though
13:59marcanthe infoframe stuff is EPIC
13:59marcanactual audio streaming is some other story
14:00marcan(different hardware)
14:03alyssahmmmmm do I work on the GPU driver or do literally anything else...
14:05Jamie[m]1you gotta stop asking such a biased audience
14:05Jamie[m]1which is to say: gpu driver :3
14:08alyssahmmmmMmmm
14:09* alyssakinda just wants to lay down
14:18Jamie[m]1hmmm that is also appealing
15:37akemin_dayo has joined #asahi-dev
16:24MajorBiscuit has joined #asahi-dev
17:28aleasto has quit [Quit: Konversation terminated!]
17:32aleasto has joined #asahi-dev
17:38MajorBiscuit has quit [Quit: WeeChat 3.3]
17:39aleasto has quit [Remote host closed the connection]
17:39aleasto has joined #asahi-dev
17:40aleasto has quit [Remote host closed the connection]
17:42aleasto has joined #asahi-dev
18:20aleasto has quit [Quit: Konversation terminated!]
18:20aleasto has joined #asahi-dev
18:21aleasto has quit []
18:21aleasto has joined #asahi-dev
18:21aleasto has quit []
18:26aleasto has joined #asahi-dev
20:00alyssamarcan: the COMPAREs for timing mode, i think the <= / >= is flipped for the 60Hz and 1920 pixel checks?
20:01marcanit's not
20:01marcanit's excluding >60Hz and >1080p
20:01marcanor rather demoting
20:01alyssa...why is that beneficial?
20:02marcanbecause I can't test larger :p
20:02alyssa~sounds like a you problem~ :-p
20:02marcanat least on my crappy capture card it brings up virtual 4K modes and there is no indication that they're virtual in this interface
20:03marcanfeel free to test 4K, but whatever you do needs to not do that on my card :p
20:03j`eydo we need 4k for grub? :P
20:04alyssaj`ey: yes! :p
20:04marcanconsidering m1n1 is memcpying the framebuffer around for every log, we probably don't
20:07jannaumight be beneficial to shrink the fb and configure 2x upscaling for high DPI displays
20:08marcaneh, could be, but is the DCP upscaling going to be that much better than the display's for a bootloader?
20:08j`eyI'd like that, Im finding the m1 air screen too small
20:09jannauthe imac announces just the native mode with almost a 12M pixel display
20:11alyssadcp scaling sounds like your friend there yes
20:14aleasto has quit [Quit: Konversation terminated!]
21:02King_InuYasha has joined #asahi-dev
22:37jannautrying to select 1920x1080@60 seems to be the least bad option with the limited information provided
22:38jannaufor both monitors I tried knowing the native resolution is the only method I see to select the correct mode
22:41jannaubut it manages to display something on an old dell 4:3 display and list the native mode 1600x1200@60. macos 11 iboot didn't initialize that display
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:11alyssayeah even on 11.x, iboot fb was a crapshoot
23:12alyssadid not work on $RANDOM_HOTEL_TV i tried
23:12alyssa("Why did you try--" "leave me alone!")
23:15jannauthe av endpoint reports parsed EDID information but no timing information
23:18alyssadoes it work with macOS?
23:19yrlf has joined #asahi-dev
23:32jannauyes, the display works, I was looking if any of the other endpoints reports the EDID data
…