ChanServ changed the topic of #linux-msm to:
aklimov has quit [Remote host closed the connection]
aklimov has joined #linux-msm
Rayyan has quit [Quit: Ping timeout (120 seconds)]
Rayyan has joined #linux-msm
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #linux-msm
aklimov has quit [Ping timeout: 480 seconds]
marvin24_ has joined #linux-msm
marvin24 has quit [Ping timeout: 480 seconds]
jhovold has joined #linux-msm
ungeskriptet is now known as Guest4052
ungeskriptet has joined #linux-msm
Guest4052 has quit [Ping timeout: 480 seconds]
<aka_[m]> krzk: how do i do it if gpu.yaml no longer contains adreno gpus in it, there is no reason to include adreno-common in it
pespin has joined #linux-msm
<krzk> aka_[m]: first, it does cntain them, please carefully read the steps I suggested... but if the result is to remove adreno from it, then steps would be different
<krzk> neither cover letter nor commit explains what you want to achieve
<aka_[m]> krzk: so:split gpu.yaml into adreno-common and include it, then move each oneof match into separates and at the end convert imageon to standalone schema?
<krzk> aka_[m]: I don't know what you want to achieve, so I will not give advise.
<krzk> Cover letter also did not tell me what is the problem and what you want to achieve
<aka_[m]> 1)Try to document one clock for gpu 2)be told it's new gpu and you should enforce clocks order with -if on compatible, 3)but you know we don't want one file to be full of ifs you should split them, 4)split it into separate schema files 5) be confused because you were told to do things you don't understand and expect to know exactly what you want.
<krzk> aka_[m]: When you send any patch or any patchset, it is important to explain why you are doing it. For a bit more complex work, sometimes it is important to explain also the overall architecture or bigger picture.
<krzk> It seems in this case, neither me nor you know these...
<krzk> So probably lumag, who I think asked you to do this, could help with some explanation.
<aka_[m]> I would say we want to reduce complexity of schema
<krzk> What I am looking is: what are these devices and what do you want to achieve at the end. What is going to be in each schemas you touch?
<lumag> krzk, I think it was you in one of your review letters.
<lumag> more or less so
<krzk> lumag: yeah, but I have no clue about this particular device
<krzk> aka_[m]: also does not know, so who knows?
<lumag> which device are we talking about?
<aka_[m]> We want to: reduce schema complexity(less ifs), and enforce clock orders
<krzk> for example in typical cases my advice from email works. Here it aparently is not valid...
<aka_[m]> lumag: it's gpu.yaml being split into adreno-common and adreno-xyz.yaml
<aka_[m]> Gpu.yaml ends as imageon schema
<lumag> imageon = a2x
<lumag> a2xx
<lumag> See imx51/imx53 devices
<aka_[m]> I described them in examples
<aka_[m]> Its a bit frustrating yaml keeps me away from dts part
<aka_[m]> Ok have to get back to work
<lumag> aka_[m], you might as well rename gpu.yaml to amd,imageon.yaml, if that's the question
<lumag> I think the general krzk's comment was to move things one by one.
<krzk> the schema stayed as msm/gpu.yaml, thus obviouos confusion - how could it be not an Adreno?
<aka_[m]> Naming is confusing
<aka_[m]> Ok I have some idea
<aka_[m]> Will try do it later
ungeskriptet is now known as Guest4059
ungeskriptet has joined #linux-msm
<aka_[m]> So gpu.yaml should also include common or should I also rename it to a200.yaml?
<krzk> aka_[m]: if gpu.yaml is not adreno at the end, then rather do not include
<krzk> And that's one of confusions all this started. Your patchset should explain this.
<aka_[m]> So in theory I should make adreno 2xx which will pick imageon and drop gpu.yaml at the end
<aka_[m]> I will need to mod gpu.yaml each time I move each Gen into separate schema set
Guest4059 has quit [Ping timeout: 480 seconds]
<aka_[m]> Would it hurt to move 2 or 3 schemas per commit?
<aka_[m]> Then I can replace pattern matching in gpu.yaml
<aka_[m]> lumag: what do you think?
<aka_[m]> I might have poc ~6pm
<lumag> aka_[m], there is no hurry :-)
<lumag> krzk, Imageon-2xx = Adreno-2xx. Qualcomm just licensed the IP and then bought it from AMD.
<krzk> aka_[m]: In case I did not link it before, my recommended way of doing is: https://lore.kernel.org/linux-devicetree/20240126-dt-bindings-pci-qcom-split-v3-0-f23cda4d74c0@linaro.org/
<aka_[m]> lumag: tbh I really want to ship all patches I have they are in stale form for year already, Its 3y I'm messing with this platform and we aren't anywhere still on upstream
<lumag> :-)
<lumag> aka_[m], A question from my side would be, do we really need adreno-common.yaml?
<krzk> another way is to include common in original schema, it all depends. Patchset must be readable, reviewable and split into logical chunks.
<aka_[m]> lumag: That was not my idea
<aka_[m]> But i dont mind not having shared
<krzk> lumag: yes, you need single definition of qcom,gmu
<aka_[m]> I will need to love props
<lumag> Hmm, if I was originator for that idea, then feel free to yell on me :-)
<aka_[m]> *move
<krzk> aka_[m]: drop all "Device tree bindings for" from descriptions. Bindings should describe hardware, not bindings.
<lumag> krzk, there will be a single definition, at a6xx
<lumag> We might be more concerned about the zap-shader, which is used by a5xx and a6xx. But literally, I think having it duplicated might be less trouble compared to adreno-common.
<aka_[m]> lumag: a540 no gmu?
<lumag> aka_[m], no.
<lumag> It has built-in GPMU
<lumag> a530 (8996) and a540 (8998) do
<lumag> ... have a built-in GPMU
<krzk> lumag: then common schema might not be needed.
<krzk> Kind of depends whether it saves any code...
<aka_[m]> Ok so I get some general idea now
<aka_[m]> But still describing reasoning is kinda ehh
<aka_[m]> Validating clock order when gpus are already being defined in shared soc dtsi feels odd
<aka_[m]> Unless someone uses this schema to build new dts
<aka_[m]> Or if ip is shared on other socs
<aka_[m]> Like a610 being used on sm6115, 6125,6225
<lumag> krzk, is it possible to reference properties from the earlier schema in the latter generation?
danylo has quit [Quit: Ping timeout (120 seconds)]
<lumag> Or we'd better stay away from that?
danylo has joined #linux-msm
gpiccoli has quit [Remote host closed the connection]
dliviu has quit [Remote host closed the connection]
gpiccoli has joined #linux-msm
<aka_[m]> lumag: if then allof? But that would work with file only
dliviu has joined #linux-msm
<lumag> You don't need allOf in such case
rawoul has quit [Remote host closed the connection]
rawoul has joined #linux-msm
<lumag> aka_[m], I'd say, ignore duplication for now
f_ has quit [Ping timeout: 480 seconds]
f_ has joined #linux-msm
aklimov has joined #linux-msm
svarbanov_ has joined #linux-msm
svarbanov has quit [Ping timeout: 480 seconds]
Caterpillar has joined #linux-msm
<aka_[m]> lumag: is it any better now?
<krzk> lumag: each property should have just one definition (type/description), so if two schemas use a vendor property, then probably some sort of common schema should be used
<krzk> referencing other schema properties could work... I saw such patterns, but I am not sure if it is more readable.
Caterpillar has quit [Remote host closed the connection]
Caterpillar has joined #linux-msm
<lumag> aka_[m], I took a glance at the first few patches.
<lumag> Hope that helps
<aka_[m]> noticed,thanks
<aka_[m]> still probably need different commit msgs and stuff
<aka_[m]> somehow now i got stuck with something else, motorola bootloaders are so big pain to work, anything else in dtbs and it fails to boot lk2nd
<aka_[m]> wish i had confidental bl sauce lol
<konradybcio> what if you change the dtb without changing the size
<konradybcio> e.g. change a character in a string
<aka_[m]> konradybcio: managed to make lk2nd somehow wipe it out
<aka_[m]> it got flash locked
<aka_[m]> how?
<aka_[m]> made two dtbs with different board-id
<aka_[m]> normal image have multiple dtbs
<aka_[m]> and its fine
<aka_[m]> probably have board to replace
<aka_[m]> unless i can restore with unsaved data xD
<aka_[m]> atleast i have imei on tray
<aka_[m]> but just one
<aka_[m]> maybe lk2nd should have cog to not touch moto stuff
<aka_[m]> konradybcio: uff seems like new version of moto recovery allows to enter imei
<aka_[m]> and it downloads firmware
<aka_[m]> wonder if i will get data restored
<aka_[m]> fuck
<aka_[m]> cannot do it
<aka_[m]> shows error
<konradybcio> do motos have non-fastboot flashmodes?
<konradybcio> or is the problem lack of fw?
<aka_[m]> edl
<aka_[m]> but i doubt i can fix cid/imei with it
<aka_[m]> konradybcio: blank flash brought it back to live
<aka_[m]> imei is also back
<aka_[m]> i need to backup shit
<konradybcio> remember to not include userdata in your backup
<konradybcio> unless you wanna compress it :P
<aka_[m]> konradybcio: i was kinda hot when seen it was flash locked
pespin has quit []
marvin24 has joined #linux-msm
jhovold has quit [Ping timeout: 480 seconds]
marvin24_ has quit [Ping timeout: 480 seconds]