ChanServ changed the topic of #linux-msm to:
telent has quit [Ping timeout: 480 seconds]
telent has joined #linux-msm
marvin24 has joined #linux-msm
marvin24_ has quit [Ping timeout: 480 seconds]
anholt has joined #linux-msm
<strongtz[m]> found something with UFS on -next, I only get ~300MB/s read speed. But with ice disabled, I can get ~2.2GB/s
jhovold has joined #linux-msm
dliviu has quit []
dliviu has joined #linux-msm
pespin has joined #linux-msm
<strongtz[m]> why is the unprepare() function in my panel driver called after the DSI controller is powered off :(
<strongtz[m]> I already have prepare_prev_first set
<konradybcio> there's .unprepare and .poweroff or something.. and IIRC it was very messy
<konradybcio> maybe narmstrong can help you
<Marijn[m]> strongtz: yeah iirc there was a patch/documentation stating that prepare_prev_first should affect the disable path
<Marijn[m]> That's what my almost-1-year-old panel series is blocking on: I don't want to unbalance the DSI calls between prepare() and unprepare() (by moving them to disable())
<strongtz[m]> yeah seems like renaming .unprepare to .disable works at least, but it doesn't look very nice
<z3ntu1> anyone tried linux-next lately? Getting [ 25.570158] dsi_link_clk_set_rate_6g: Failed to set rate pixel clk, -22 and display doesn't work
<strongtz[m]> my simple non-DSC video mode 1080p panel works on next-20240102
<z3ntu1> I'll test a bit more what could cause this, anyways I'm on 20240105
<aka_[m]> it probably boils down to clk_core_set_rate_nolock and all einvals i see is
<aka_[m]> top = clk_calc_new_rates(core, req_rate);
<aka_[m]> try logging what kind of rate it wants to set
<konradybcio> Luca Weiss: bisect time?
<z3ntu1> I went down to determine_rate or something returning -EINVAL also
<z3ntu1> bisect is annoying because display is not upstream yet.. but just sent a patch so in the future it should be easier
<z3ntu1> and git diff didn't show me anything obviously wrong somewhere, most of clk hasn't really changed to -next
<konradybcio> you can use a .dtb while bisecting the kernel binary
<z3ntu1> but also panel driver 🤷
<z3ntu1> need to finish some other stuff first though
mripard has quit [Remote host closed the connection]
novaandromeda has left #linux-msm [#linux-msm]
asriel has quit [Quit: Don't drink the water. They put something in it to make you forget.]
Danct12 has quit [Quit: ZNC 1.8.2 - https://znc.in]
Danct12 has joined #linux-msm
telent has quit [Read error: Network is unreachable]
telent has joined #linux-msm
asriel has joined #linux-msm
telent has quit [Read error: Connection reset by peer]
telent has joined #linux-msm
anholt has quit [Quit: Leaving]
anholt has joined #linux-msm
f_ has quit [Remote host closed the connection]
f_ has joined #linux-msm
<Adrian[m]> So, the Xiaomi 12 has a panel with bpp=30 and bpc=10 according to the downstream DTS (https://github.com/xiaomi-sm8450-kernel/android_vendor_qcom_proprietary_display-devicetree/blob/lineage-20/display/dsi-panel-l3-42-02-0a-dsc-cmd.dtsi). However, that isn't supported by mainline yet it seems. When using bpc=10, I am seeing the following... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/mqIERTVNQrgeWqxdcezGoYQM>)
<Marijn[m]> Quite neat to have a true 10bit panel instead of the 8+2 frc
<Adrian[m]> s///, s/contcontains/contains/
<Marijn[m]> But there's zero support for 8 bit as you've found... Maybe someone will need to write some dpu code for that
<Adrian[m]> For reference this is the file from the UEFI
<Marijn[m]> Adrian: it could be a panel-specific command, but most likely is a special marker for the UEFI firmware, I think to encode a timeout in milliseconds
<Marijn[m]> That almost matches the commands shown in DT. E.g. a 50ms after exiting sleep mode (05 11), etc
<Adrian[m]> Marijn[m]: Oh yeah that would make sense, sleeping for 80ms would seem logical here. I wonder what else in the UEFI panel description is supposed to make it initialize in 24 bpp then? The other init sequence parts match downstream :/
<Marijn[m]> * That almost matches the commands shown in DT. E.g. a 50ms after exiting sleep mode (05 11), a 14ms sleep after display off (05 28), etc
<Marijn[m]> * That almost matches the commands shown in DT. E.g. a 0x50ms after exiting sleep mode (05 11), a 0x14ms sleep after display off (05 28), etc
anholt_ has joined #linux-msm
<Marijn[m]> Adrian: one thing that confuses me in your driver is a bpp of 8. It probably changes how the DSC stream is encoded and interpreted, but the amount of DSI data should remain the same (that might throw the existing clock math off _even further_). It would also/however affect how the DSC block interprets/treats an incoming plane, but there's no upstream support for `DSI_FMT_RGB101010`.
anholt has quit [Read error: Connection reset by peer]
<Adrian[m]> The downstream code for DSI_FMT_RGB101010 mentions that it compresses down to 8bpp as far as I remember when I last looked at it
<Marijn[m]> Adrian: if you only set `bpc` to 8, the "not supported" error should be gone, and you're only left with timeouts right? I'm not sure if DSC merge concatenates vertical blocks, and have so far only seen panels with a slice width of half the panel. The current kernel is hardcoded to a 2:2:2 merge topology, but you might need a singular 1:1:1 topology
<Marijn[m]> s/android_vendor_qcom_proprietary_display/android\_vendor\_qcom\_proprietary\_display/, s/topolog/topology/
<Marijn[m]> Let me hook up a patch
<Marijn[m]> s/arnd/Adrian/
<Adrian[m]> Marijn[m]: so just to get this right: that should work with RGB888 and bpc=8 or will I have to make further adjustments?
<Marijn[m]> Yeah mostly
<Marijn[m]> I remember there might be a DSCMerge flag that isn't turned off by this, there are more patches on my branches
<Marijn[m]> There's quite a bit on https://github.com/SoMainline/linux/commits/marijn/panel-exclusives and the same patches are used successfully for the fp5; they just have to be refactored before being sent upstream
<Marijn[m]> Unfortunately I have to go now, will catch up later
<Adrian[m]> Awesome, I'll give it a try in an hour or so :) Thanks again for the help!
<luka177[m]> Marijn[m]: By the way did those dual dsi with dsc patches work on cmd mode panel?
<Marijn[m]> luka177: I'm still waiting for abhinav__/ jessica_24 to check the devcoredump for any obvious mistakes
<luka177[m]> <Marijn[m]> "luka177: I'm still waiting for..." <- Ok thanks. If it makes sens i can add mine as well, but its video mode
svarbanov_ has joined #linux-msm
svarbanov has quit [Ping timeout: 480 seconds]
<Adrian[m]> <Marijn[m]> "https://github.com/SoMainline/..."; <- So with this commit the errors I'm seeing at the beginning slightly change to this:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/qLoCrLFEyzNieihFjWzgMiPr>)
<Marijn[m]> Adrian: someone else shared this as well, maybe the rate is wrong or too high?
<Marijn[m]> <z3ntu1> "anyone tried linux-next lately..." <- This
<Adrian[m]> Oh, I totally didn't overlook that. Will try the rc instead of next then :)
pespin_ has joined #linux-msm
pespin has quit [Ping timeout: 480 seconds]
jhovold has quit [Ping timeout: 480 seconds]
<lumag> I'm geting a very strange crash on sdm660 in loop execution. Are there any fixes for that platform for L2 / CCI / cpufreq / etc ?
<lumag> fixes, hacks, etc.
pespin_ has quit [Remote host closed the connection]
<lumag> konradybcio, ^^
<lumag> (well other than CPR. maybe I should try that series first).