ChanServ changed the topic of #linux-msm to:
Daanct12 has joined #linux-msm
nashpa is now known as dliviu
marvin24_ has joined #linux-msm
marvin24 has quit [Ping timeout: 480 seconds]
jhovold has joined #linux-msm
Daanct12 has quit [Quit: WeeChat 4.2.2]
Daanct12 has joined #linux-msm
Daanct12 has quit [Quit: WeeChat 4.2.2]
f_ has joined #linux-msm
pespin has joined #linux-msm
<flamingradian[m]> Is there a chance that socinfo can get a stable userspace API?
<flamingradian[m]> apparently it's needed for sensors on xiaomi devices
<z3ntu> flamingradian You mean as in not being documented in Documentation/ABI/testing/sysfs-devices-soc? So "stable" instead of "testing" directory?
<flamingradian[m]> I mean the hardware_platform_subtype, platform_version, etc. that has been in debugfs
socksinspace has quit [Quit: brb, rebooting]
socksinspace has joined #linux-msm
pespin has quit [Remote host closed the connection]
<aka_[m]> lumag: any idea how QOS SSPP feature work?
<aka_[m]> in case of 8976 i see exposed QOS_CTRL register but if QOS feature is set then it writes lut tables then enable ctrl
<aka_[m]> however there is no lut registers there
<aka_[m]> reading them from running mdp5 ends with zeros
<aka_[m]> guess im doing features of ();
<konradybcio> flamingradian: what exactly do you need?
<flamingradian[m]> The SLPI on xiaomi-beryllium requests the hardware_platform, hardware_platform_subtype, and platform_version socinfo values, and someone wrote an MR on HexagonRPCD to provide it (https://gitlab.com/sdm670-mainline/hexagonrpc/-/merge_requests/1/diffs#2d26bc67c8cc46998e8cf35a289236517c6e8d6c_165_171)
<flamingradian[m]> since it's via debugfs, I would like the locations to be stable so it doesn't break due to a change in the kernel
<konradybcio> flamingradian: do these values actually differ?
<konradybcio> as in, can you hardcode them for beryllium?
<flamingradian[m]> I can't tell, presumably not (but hardware_platform can definitely be hardcoded because it will always be "OEM")
<flamingradian[m]> *presumably no difference between same boards
<lumag> flamingradian[m]. Those are debugfs. Please don't depend on them.
<lumag> It should be safe to disable debugfs completely
<lumag> flamingradian[m], I think /sys/firmware/devicetree/base/compatible is the best call
<lumag> aka_[m], there is no per-pipe LUT on 8x76. See drivers/video/msm/mdss/mdss_mdp.c
<flamingradian[m]> lumag: ok, thanks, we will find an alternative
<lumag> It's there only on 8996/8937/8917/8953. Check for the MDSS_QOS_PER_PIPE_LUT
<lumag> flamingradian[m], wait... Do you need those values to identify the device or to set those values at runtime?
<lumag> If the former, then please use /sys/firmware/devicetree. At least it's closer to the ABI state.
<flamingradian[m]> lumag: we need to pass the values to the DSP fw
<lumag> flamingradian[m], you can hardcode hardware_platform and hardware_platform_subtype, those values won't ever change on an existing device.
<flamingradian[m]> ok, thanks for the info
<lumag> flamingradian[m], hardcode for the platform.
<lumag> other platforms might in theory have different values
<lumag> I'd need to check with pix-3...
jhovold has quit [Ping timeout: 480 seconds]
robertfoss has quit [Ping timeout: 480 seconds]
f_ has quit [Ping timeout: 480 seconds]
robertfoss has joined #linux-msm
Caterpillar has joined #linux-msm