ChanServ changed the topic of #linux-msm to:
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #linux-msm
marvin24 has joined #linux-msm
marvin24_ has quit [Ping timeout: 480 seconds]
jhovold has joined #linux-msm
cxl000 has quit [Quit: Leaving]
pevik has joined #linux-msm
svarbanov has joined #linux-msm
cxl000 has joined #linux-msm
pespin has joined #linux-msm
<Marijn[m]> vkoul: calebccff: can any of you retest the Pixel 3 panel with my DSC patch series? It's now become a requirement before merging :)
<vkoul> Marijn[m]: I no longer have that device :-( maybe calebccff can
<Marijn[m]> vkoul: that's unfortunate, then calebccff is my only hope
<Marijn[m]> vkoul: any other DSC device you might be able to test? Are you still working on DPU?
<Newbyte> Marijn: did you update the DSC patches for sdm845?
<vkoul> Marijn[m]: not right now, sorry!
<Newbyte> I have an sdm845 device with DSC but I could never get anything usable out of the panel (this was before the DSC patches were merged)
<Marijn[m]> Newbyte: this patch series is specifically to resolve dsc on sdm845 :) - do see my comments about updating the dsc configuration in the panel driver though
<Newbyte> Marijn: maybe it's time to re-test then. and, what comments are you referring to?
<Marijn[m]> vkoul: that's unfortunate, anyone else that is? I'm working on DPU on and off and would hate to do overlapping work
<Marijn[m]> Newbyte: what device and panel are you using, can you link me the driver?
<Marijn[m]> Newbyte: The comment I'm referring to is https://lore.kernel.org/linux-arm-msm/20221001214816.6l3yo4bgwmfcy3gr@SoMainline.org/, but you can also use https://github.com/SoMainline/linux/commit/86fa35ff2499f4f2600456caf80139e47b54f4b5#:~:text=dsc as a reference, just make sure to line up everything that says `dsc`
<Marijn[m]> Newbyte: Oof yeah that generator is wrong 😅
<Newbyte> great to hear
<Newbyte> do you have anything better to suggest?
<Marijn[m]> Newbyte: A PR from jenneron and then I add some review comments - or I take over the branch and apply some fixes to it? It's not much, just the hardcoded slice count and `bits_per_pixel` mismatch
<Newbyte> Marijn: jenneron is busy right now (and he's in Ukraine), so I think he'd prefer the latter. I can ask though
<Marijn[m]> Newbyte: Sure! Now that we've got DSC "working" upstream lowering the barrier with panel-driver-generator support is definitely preferable IMO
<Marijn[m]> "working" as in, sdm845. The newer SoCs are still having trouble but rest assured it's being investigated :)
<Newbyte> Marijn: if you fix those things with the panel generator please ping me and I'll be happy to test it on the G7
<Newbyte> if you want any clarification from Jenneron that you're allowed to use his work I can ask
<Marijn[m]> Newbyte: Do you already have a driver that I can look at? It's really only adjusting the `bits_per_pixel` to `8 << 4` and booting with my patches applied of course :)
<Newbyte> I'm not sure … it was like a year ago
<Marijn[m]> Newbyte: Might be nice but I hope jenneron is fine with it if I base on top and maintain (co-)authorship that way
<Newbyte> Marijn: he said "yes of course"
<Newbyte> (with regards to whether he's okay with that)
<Marijn[m]> Newbyte: Perfect, I'll make the changes tonight and let you know!
<Newbyte> Sounds good to me :)
pevik has quit [Ping timeout: 480 seconds]
Guest2847 is now known as frytaped
<calebccff> Marijn[m]: I'll give it a go!
<calebccff> can you drop a link to the series? :)
Danct12 has quit [Remote host closed the connection]
<Marijn[m]> calebccff: it's in the comment for your panel driver as well
<Marijn[m]> Again, follow the comment in your panel driver to make it compatible. I'll push a panel generator fix shortly
<Marijn[m]> calebccff: Newbyte I just pushed my version of the panel generator to https://github.com/MarijnS95/linux-mdss-dsi-panel-driver-generator/tree/dsc
<Marijn[m]> Disclaimer: hacked this together in the train based on a local copy of my LGD Akatsuki driver. No testing of the generator nor its output has been done!
<Newbyte> Marijn: Thanks, I'll try it tomorrow hopefully
Danct12 has joined #linux-msm
<calebccff> Marijn[m]: what kernel base did you use? this doesn't apply cleanly on 6.0
<Marijn[m]> calebccff: -next, with Dmitry's dsc changes
<Marijn[m]> I think rebased on -next from ~4 days ago, though there haven't been changes in the past ~4wks
<calebccff> alrighty, i'll switch to that
<calebccff> Marijn[m]: rebased, applied your patches, re-generated the driver and fixed up the generator, no luck still: https://gitlab.com/sdm845-mainline/linux/-/commits/caleb/pixel3-bringup-next-2022-10-13
<Newbyte> calebccff: how did you have it working eralier then?
<Newbyte> s/eralier/earlier/
<calebccff> Newbyte: was using bootloader configuration
<calebccff> the driver I was using was pretty heavily modified, and was missing a bunch of init stuff. With the re-generated one I just get a black screen if I reset the panel, if I don't reset the panel I get a bunch of dark noise stuff
<Marijn[m]> "No luck still" so it's a bit weird that people on the mailing list are pretending it was properly working before :)
<Marijn[m]> calebccff: Can you comment out the `picture_parameter_set` call for the time being, just to hope that the panel is left in the same state?
<Marijn[m]> calebccff: changes on your branch look good though 😅
<Marijn[m]> I used to compare the logs from that `"DSC params:"` hex print between downstream and mainline, if that's useful
<Marijn[m]> calebccff: In case of a black screen, I almost don't trust the backlight code in that driver - Sam commented on it before too. Are you sure this panel only uses 8-bit? Most ones I have here use at least 10 but sometimes even 12 bits.
pespin has quit [Remote host closed the connection]
pevik has joined #linux-msm
<calebccff> Marijn[m]: well the patches I sent had it working... you just had to skip the reset sequence
<calebccff> will try your suggestion
<calebccff> I messed with the backlight too, including switching back to the backlight code I had before which definitely worked
<calebccff> and disabling backlight altogether
<calebccff> my damn usb-cereal UART adapter has given up on me, so I can't get anything out of the device, will have to toy with usb serial gadget
<Marijn[m]> calebccff: So my patches, with your newer driver, with the reset commented out (which is typically tricky to get right considering multiple command sequences, gpios to poke, and multiple codepaths that result in other commands being sent downstream), make DSC work? With or without sending PPS over DCS to the panel?
<Marijn[m]> calebccff: Curious if you can get backlight working - over the full range of the panel - without the reset too. Pretty easy to bump the maximum value to like 1024 or 4096, and see if the emitted brightness "restarts" every 1/4th of the `brightness` sysfs attribute
<Marijn[m]> These panels are all a bit silly in requiring a big-endian value, and Sam commenting that it "should be handled internally". We've needed it on every panel thus far 😬
<calebccff> Marijn[m]: I couldn't get it working at all with the new driver
<Marijn[m]> calebccff: Feel free to switch to your original driver, insert the `* << 4` and keep the PPS out of it, see if it works. From there on we can start enabling PPS and go from there?
<calebccff> sounds like a plan, will try and take a look tomorrow
jhovold has quit [Ping timeout: 480 seconds]
mal has quit [Ping timeout: 480 seconds]
anholt has quit [Remote host closed the connection]
anholt has joined #linux-msm
mal has joined #linux-msm
alexeymin_ has joined #linux-msm
alexeymin has quit [Read error: Connection reset by peer]
alexeymin has joined #linux-msm
alexeymin_ has quit [Read error: Connection reset by peer]
alexeymin has quit [Read error: Connection reset by peer]
alexeymin has joined #linux-msm
alexeymin has quit [Read error: Connection reset by peer]
alexeymin has joined #linux-msm
alexeymin has quit []
alexeymin has joined #linux-msm
pevik has quit [Ping timeout: 480 seconds]