2021-11-26
02:44jevinskie[m]Is this an accidental mix of 64 and 128 bit copying? I can’t grok it otherwise. https://github.com/AsahiLinux/m1n1/blob/95ef45fd11dbc3d9da2781ac691136873b910c25/proxyclient/tools/chainload.py#L94
03:07method_ has quit [Ping timeout: 480 seconds]
03:15phiologe has quit [Ping timeout: 480 seconds]
03:56Method has joined #asahi-dev
03:57kov has quit [Quit: Coyote finally caught me]
05:53the_lanetly_052__ has joined #asahi-dev
06:08marcanrobher_: to revisit the "tunables" issue, what are your thoughts on blobs in the DT? Apple puts a pile of register pokes in the DT to configure the USB3/Thunderbolt/DP PHYs... and in this case AIUI they have to be applied at runtime depending on what's connected
06:08marcanI checked and they do indeed differ between different devices using the same SoC, though only slightly (not sure if they differ between different units of the same device)
06:09marcanI think this has come up a few times before in vendor trees, but I don't know if any mainlined driver does this kind of thing?
06:10marcanlol, soc/fsl/cpm_qe/qe.txt apparently puts an entire *firmware* blob in the devicetree? :D
06:15marcanI see there's some precedent in stuff like qcom,ath10k-pre-calibration-data, but those are opaque blobs
06:36the_lanetly_052__ has quit [Ping timeout: 480 seconds]
07:23jannauis the difference between devices in the written values or are there differences in the registers or the order of writes?
07:24jannauif only values differ it can be easily transformed into a blob. The only disadvantage is that forward compatibility might not be possible
07:25jannaumarcan: don't we need to wait for Rob's ack on the iMac addition in the bindings change as well
07:27marcanjannau: usually the written values, but sometimes there's an extra reg or a whole tunable is missing/empty
07:29marcanin fact, given what Apple did with t6000 in the memory controller, if this kind of thing is acceptable I'm tempted to use it for the mcc OPP table too, since t8103 needs two pokes and t6000 only one (to a different place) for the performance switching, but they're otherwise identical in high-level construction (number of channels differs but that was a variable already)
07:29marcanI figure if we're putting magic reg values in the DT at all, we might as well put the reg addresses too and make it forward-compatible
07:29marcanthough right now apple uses the same values for everything in the MCC case, so alternatively this could all be hardcoded in the driver and driven by the SoC compatible
07:36the_lanetly_052__ has joined #asahi-dev
09:18aleasto has joined #asahi-dev
09:43kov has joined #asahi-dev
10:48akemin_dayo has quit [Ping timeout: 480 seconds]
11:33marcanthough I think other parts of MCC are more stable between SoCs, e.g. we should implement error control
11:46kettenisso then you'd need a "generic" compatible and you'd only apply the values if a more specific compatible matches as well
11:49kettenisand Apple will maybe source different RAM modules at some point that need different parameters?
11:50marcanI don't think it changes any characteristics of the interface, it just changes how eagerly it goes into lower power modes (to reduce cache miss latency when the CPUs are busy)
11:50marcanI tried random values, zero, etc, and nothing broke (in fact I got better performance with zero, which presumably turns off all the PM stuff altogether)
12:03povikand also clusters have associated mmio ranges, which cannot be systematically derived from some large range for the whole MCA
12:05povikanother option is having the mmio ranges in reg= of the cluster nodes, and then an extra property for the cluster index
12:12kettenissure; but maybe check the existing bindings to see if there is an established pattern for such things
12:13kettenisand then use the "reg" property in the child nodes to provide offsets within the block of registers
12:20marcanthough there's two ways, if you add a simple-mfd compatible it will probe the child nodes for you; if you don't it won't and the parent will be in charge of requesting that (which makes more sense if you have a common driver)
12:20marcanalso look at other ALSA/ASoC stuff because there's a good chance some other SoC does it similarly
12:27not_a_weeaboo[m] has joined #asahi-dev
12:30akemin_dayo has joined #asahi-dev
15:09akemin_dayo has quit [Ping timeout: 480 seconds]
16:11akemin_dayo has joined #asahi-dev
16:16the_lanetly_052___ has joined #asahi-dev
16:22the_lanetly_052__ has quit [Ping timeout: 480 seconds]
16:46indra has joined #asahi-dev
16:50leah has quit [Quit: WeeChat 3.3]
16:55indra has quit []
17:31slicey has joined #asahi-dev
17:38Gaspare has joined #asahi-dev
17:55yuyichao has quit [Ping timeout: 480 seconds]
18:16yuyichao has joined #asahi-dev
18:21littledust3403[m] has joined #asahi-dev
20:02akemin_dayo has quit [Ping timeout: 480 seconds]
20:03akemin_dayo has joined #asahi-dev
20:04sventhe rtkit protocol seems to have at least the following power states: 0, 1, 2, maybe 3, 0x10, 0x20 and i think you can set an additional flag (0x200) for some of them which does $something while it's ignored for others
20:04sven0 it power off, 0x20 is power on (and so is 0x220 which seems to be the same). 0x10 is some kind of hibernation or sleep mode. no idea yet about 1 or 2 (or maybe 3; need to double check tomorrow) or what that flag means
20:10aleasto has quit [Remote host closed the connection]
21:21Dcow has quit [Read error: Connection reset by peer]
21:21Dcow_ has joined #asahi-dev
21:33Gaspare has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:36Gaspare has joined #asahi-dev
21:59slicey has quit [Quit: zzz]
22:12Gaspare has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:57slicey has joined #asahi-dev
22:57Gaspare has joined #asahi-dev
23:28yuyichao has quit [Ping timeout: 480 seconds]
23:51Gaspare has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:51Gaspare has joined #asahi-dev
23:51X-Scale` has joined #asahi-dev
23:57X-Scale has quit [Ping timeout: 480 seconds]
23:59X-Scale has joined #asahi-dev