#
…

2022-09-17

01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-gpu
01:32phireWhat you really want there is EDID override
02:29SSJ_GZ has joined #asahi-gpu
03:06SSJ_GZ has quit [Ping timeout: 480 seconds]
03:30tdsdp^ has joined #asahi-gpu
03:51tdsdp^ has quit [Remote host closed the connection]
03:53chadmed_ is now known as chadmed
04:03kov has quit [Quit: Coyote finally caught me]
04:58dviola has quit [Quit: WeeChat 3.6]
05:31bluetailphire is the process of overriding EDID's more involved? I know there are a couple of scripts to make a new EDID - but you also have to enforce it, which probably includes a couple kernel parameters. I know modeline is pretty obsolete at this point but at least in my experience is more integrated in a way that you can change it on the fly to test
05:31bluetailit out. That said, I will look into EDIDs, perhaps there is a benefit of having those versus passing a modeline.
05:44marcanbluetail: just wait until DCP is done and merged and we have a good understanding of the DP control interfaces
05:44marcanunless you're going to help with that, until that happens, you're just wasting everyone's time hypothesizing about EDIDs and modelines
05:49marcanDCP has a SetVirtualEDIDMode method on some EPIC I think, which will might let you set a custom EDID. I do not see anything to add custom modes.
05:49marcanbut this is nowhere near a priority for DCP, so if you're not going to help out yourself, you'll have to wait until we get there
05:50marcanwe don't even support any EPIC calls at all in the current driver and likely won't for a while unless it's necessary for external monitor support
05:59linarobher: I have a question about reg mappings. The GPU driver needs to map a bunch of miscellaneous hardware into the GPU firmware page tables (not just the GPU itself, also random temperature sensors, power management, and interrupt related register ranges)
06:00linaIn terms of data, it's a sparse list of <phys_start, len, readonly> tuples
06:01linaThis is different per SoC. Since I think the driver will need explicit support for each SoC anyway, I'm tempted to just hardcode it in the driver as part of the per-SoC data... but do you think it should be in the device tree instead?
06:01linaThis can also somewhat change between firmware versions, but the driver also needs explicit support for each firmware version so being flexible there also doesn't help
06:02linaAnd since currently we don't mess with the device tree based on firmware in the bootloader, that's probably an argument *not* to include it? Since it would require more complex firmware -> DT mapping in m1n1
06:04linaNote that the driver doesn't use any of those mappings, it only directly uses the firmware coprocessor mailbox/start stuff, and the GPU registers directly in special cases (those would be in the DT as regular reg entries)
06:47jannauthe in progress DCP driver maps 1 "foreign" (iirc pmp) address range for the co-processor. So far it is in regs as that's what apple does in their device tree
06:48jannauthe coprocessor requests the mapping by index (into apple's regs array)
07:23SSJ_GZ has joined #asahi-gpu
07:26linaThat's different from the GPU though. For the GPU, the driver just maps everything ahead of time and tells the firmware what the virtual addresses are.
07:27linaI think for DCP it makes sense to keep that in the DT, since I think the DCP interface is mostly the same for every SoC, at any given firmware version?
07:27linaBut the GPU has a whole bunch of per-SoC parameters, so I don't think it's practical to try to make it generic across SoCs with just DT changes...
07:47jannauyes, I haven't seen firmware updates changing this yet. it's a constant address range per SoC
11:14DarkShadow44 has quit [Quit: ZNC - https://znc.in]
11:14DarkShadow44 has joined #asahi-gpu
12:45selene751[m] has joined #asahi-gpu
13:16aleasto- is now known as aleasto
14:45Race has quit [Ping timeout: 480 seconds]
17:18mini0n has joined #asahi-gpu
17:19mini0n has quit [Remote host closed the connection]
18:14compassion has quit [Ping timeout: 480 seconds]
22:20SSJ_GZ has quit [Ping timeout: 480 seconds]
…