ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630)
atka[m] has joined #aarch64-laptops
Lucanis has quit [Quit: Leaving]
Lucanis has joined #aarch64-laptops
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
iivanov has joined #aarch64-laptops
jhovold has joined #aarch64-laptops
flowriser has quit [Remote host closed the connection]
SallyAhaj has quit [Read error: Connection reset by peer]
SallyAhaj has joined #aarch64-laptops
alyssa has joined #aarch64-laptops
* alyssa
trying to write dtbindings
<macc24>
can anyone test if scarlet boots up on 5.16?
<macc24>
5.17*
<macc24>
with display
<alyssa>
is there an elseif?
<broonie>
alyssa: Looks like people are writing it out with else: \n if: but I could be missing something.
<alyssa>
broonie: alright, thanks. that's going to get messy.
<broonie>
robher: ^^^ is the expert though.
<alyssa>
Why does MediaTek have to vary the number of power domains every time they make a new chip? who knows
<alyssa>
because they like making kernel developers suffer, I guess
<broonie>
s/suffer/stay employed/
<macc24>
alyssa: A wise man once said "Write good code and they'll only need you once, write garbage unreadable code and they'll need you forever"
<alyssa>
macc24: being able to retire someday sounds nice
<macc24>
alyssa: 2 weeks notices are a thing
<robher>
Maybe because power domains (bindings) are widely abused beyond just power gating islands.
<macc24>
or just inexplicably disappear
<alyssa>
robher: yeah, guess so
<alyssa>
this binding file is going to get messy if we keep adding mediatek malis.
<macc24>
alyssa: LETS BOMB MTK HQ
<broonie>
Power gating is also the sort of thing that gets tweaked a lot in the hardware.
<alyssa>
on the other hand the power-domain-names are completely boring (core%d)
<broonie>
Lots of tradeoffs to play with.
<robher>
alyssa: no elseif or elif in json-schema
<alyssa>
so maybe the binding shouldn't be validating th enumber of power domains?
<alyssa>
ack
<alyssa>
(It just will end up with a lot of copypaste)
<alyssa>
we don't validate # of clocks, maybe we shouldn't bother with pm domains for mtk
<robher>
how many if/then schemas is judgement call or a sign to split the schema file.
<alyssa>
I don't have a strong preference except for whatever will get merged so I can get back to userland ;)
<robher>
err, we usually do validate # of clocks
<alyssa>
maybe that was missed when mt8183
<robher>
this is bifrost binding?
<alyssa>
(possibly because only a single clock is described in mainline, but 4 clocks are described downstream... I once made the mistake of asking about the clock topology and quickly regretted that decision)
<alyssa>
yeah
<alyssa>
(I heard there's yet another mt81xx SoC coming with Bifrost and yet another different # of pm domains)
<robher>
I think tried to figure out from the TRM what's the correct number and split for power domains, but it wasn't all that clear.
<robher>
The boundaries should be fixed in the design by Arm.
<robher>
Just as how many clocks there are should be. The problem on clocks is bus clocks get added in.
* alyssa
nods slowly
<alyssa>
/home/alyssa/.src/src/arch/arm64/boot/dts/mediatek/mt8192-evb.dtb: gpu@13000000: 'power-domain-names' does not match any of the regexes: 'pinctrl-[0-9]+'
<alyssa>
*blinks*
<alyssa>
where did pinctrl come from?!
* alyssa
guesses it doesn't like my else: if
<broonie>
robher: Do the power domain bindings cope nicely with two power domains mapped onto a single user?
<broonie>
(ie, the IP can have domains A and B switched separately but the integration has implemented them as a single domain)
<robher>
alyssa: magic. pinctrl is allowed on any node, so it is automatically added.
<alyssa>
right, ok
<robher>
broonie: Not sure, but I would think so. From a DT perspective that's just like 2 clock inputs have the same clock source.
* broonie
would have expected so too.
<broonie>
But I'd expect a lot of things that turn out not to work :(
<robher>
broonie: And we'd have the same problem of some vendors defining just 1 domain for their variant.
<alyssa>
Oh... dtbs_check was failing before any of my changes... delightful....
<javierm>
alyssa: probably you know this already, but when doing DT binding changes I just usually do:
<javierm>
make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
<javierm>
instead of doing a full make dtbs_check
<alyssa>
Yeah, that's what I'm trying
<javierm>
alyssa: cool
<alyssa>
It doesn't seem to pass on whatever linux-next this tree is based on
<alyssa>
Honestly I don't know what I'm doing here
<javierm>
alyssa: ah, yeah I usually don't run that since I only care about the DT binding schema I'm working on, rather than all the DTS out there
<robclark>
alyssa: most (all?) of the modern adreno's have two (nested) power domains, gx and cx.. iirc from binding standpoint we handle it as a single power domain and gdsc code is aware of the dependency (according to my understanding of how it works, CosmicPenguin might remember the details better)
<CosmicPenguin>
Yeah, its goofy. The CPU is expected to manage the CX domain and the the built in GMU handles the GX domain
<CosmicPenguin>
But sometimes the GMU loses its mind, and in order to get everything working again, the CPU has to step in and turn off the GX domain on its behalf, so there has to be some knowledge about the GX domain from the CPU side for that one corner case
<robclark>
heh, the naming CX and GX suddenly became apparent
systwi_ has joined #aarch64-laptops
systwi has quit [Ping timeout: 480 seconds]
flowriser has joined #aarch64-laptops
jhovold has quit [Ping timeout: 480 seconds]
systwi has joined #aarch64-laptops
systwi_ has quit [Ping timeout: 480 seconds]
SallyAhaj has quit [Remote host closed the connection]