austriancoder changed the topic of #etnaviv to: #etnaviv - the home of the reverse-engineered Vivante GPU driver - Logs https://freenode.irclog.whitequark.org/etnaviv
pcercuei has quit [Quit: dodo]
JohnnyonFlame has quit [Read error: Connection reset by peer]
lynxeye has joined #etnaviv
pcercuei has joined #etnaviv
berton has joined #etnaviv
berton has quit [Remote host closed the connection]
berton has joined #etnaviv
JohnnyonFlame has joined #etnaviv
<marex> lynxeye: you're still missing the locking in your GPCv2 mx8mm stuff at least
<marex> lynxeye: consider both GPU2D and GPU3D are accessing the PWRHSK register
<marex> austriancoder: did you run glmark2 on mx6dl recently ? seems the RGB10A2 format is picked by default, and then glmark fails
<marex> it is again this 64c7cdcae51 ("etnaviv: add missing formats")
<marex> flto: ^
<marex> its likely the same problem I had with clutter
<lynxeye> marex: I don't see the issue? read-modify-write cycles on registers are locked in the regmap
<marex> lynxeye: and that whole PGC power up/down thing doesn't need to be atomic ?
<lynxeye> marex: at least as far as I understand the GPCv2 you can trigger power sequencing for multiple domains at the same time
<marex> lynxeye: and those shared registers are OK with it ? PWRHSK and I think there is one more ...
<lynxeye> so the only thing you need to take care of is not corrupting the state of shared registers (which regmap does for us)
<lynxeye> and obviously you need to synchronize power up of parent domains, but that is done via the rpm framework
<marex> lynxeye: would that work for the VPU domain too ? if you enable e.g. G1 and G2 , which both need to enable VPUMIX
<marex> lynxeye: I have a feeling you will hit some synchronization issue there
<marex> and with dispmix maybe too
<marex> lynxeye: btw did you try the DSI yet ?
<lynxeye> Nope that's the same thing with multiple devices in a domain
<lynxeye> first one to use the domain triggers the power up, other wait until power up done in the _sync variants of the rpm calls
<marex> lynxeye: well, submit the stuff, CC me and I will possibly complain if I hit some sync issue
<lynxeye> marex: one of my colleagues is working on DSI, but for proper power management we need the same BLKCTRL drivers as with the VPUs
<marex> lynxeye: it sure is a pity NXP didn't upstream things properly
<marex> lynxeye: oh, right ... I noticed that we also dont bring the CPU cores via Linux GPCv2 driver, but via PSCI call, yuck
<lynxeye> i.e. it doesn't suffice to enable the reset clocks in the CCM, but you need to enable them in the BLKCTRL, same with the VPU/DSI resets
<marex> which then does GPCv2 work anyway in TFA
<marex> lynxeye: I didn't get that far with the DSI, so thanks for the heads up
<flto> marex: is that with glmark-drm? if so, freedreno has the same problem (it doesn't try to pick a config that it can actually scanout), its a problem with glmark, you can run with "--visual-config r=8"
<marex> flto: well yes, --visual-config red=8 seems like a workaround, no ?
<flto> but its a problem with glmark-drm, not mesa, it even does the same on my desktop
<marex> flto: shouldn't mesa somehow help glmark to select the right format, e.g. by not offering RGB10A2 if that's what the scanout engine cannot handle ?
<marex> flto: or reduce the priority of RGB10A2 ?
mdp_ has joined #etnaviv
daniels_ has joined #etnaviv
kherbst has joined #etnaviv
mdp has quit [Ping timeout: 272 seconds]
daniels has quit [Ping timeout: 272 seconds]
cyrozap has quit [Ping timeout: 272 seconds]
karolherbst has quit [Ping timeout: 272 seconds]
mdp_ is now known as mdp
daniels_ is now known as daniels
cyrozap has joined #etnaviv
lynxeye has quit [Quit: Leaving.]
berton has quit [Quit: Leaving]