dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* Re: Question about MSM Driver
       [not found] <CAAaE5fP+Znp1O4t=M7bwor8FH=f-z9CL0wQ9NTjtLSwjFb0LoQ@mail.gmail.com>
@ 2019-12-11 17:52 ` Rob Clark
  2019-12-11 18:56   ` ggermanres
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Clark @ 2019-12-11 17:52 UTC (permalink / raw)
  To: ggermanres; +Cc: Jeffrey Hugo, linux-arm-msm, dri-devel

On Wed, Dec 11, 2019 at 6:22 AM ggermanres <ggermanres@gmail.com> wrote:
>
> Hello.
>
> I have question about MSM Driver.
>
> I using Dragonboard 410 with ili9881 display. This is hobby project. This display from xiaomi redmi 3x/4x. I made PCB board for connect them. I changed dts, created panel driver (this all on buildroot with my config). All ok. Run platform. I saw linux console. Freedreno (opengl test app) is working fine. But I saw flickering like on old monitor I saw from phone. I tried changing timings, but this helped a little bit (I used it from dtsi from xiaomi repository).
>
> I think this is with vsync problem. Your driver support DSI_VSYNC input? In panel driver I sent command for vblank, on oscilloscope I saw pulse on this pin 60Hz. I tried find path in your driver code, added some debug output in code with sync. I saw MDSS_DSI_0_TRIG_CTRL configured with support TE. But Its not helped for me.
>
> If you know something, tell me. Or how change driver to support DSI_VSYNC input.
>

I guess this is a command mode panel?  So you'd be caring about the TE
signal?  As far as I understand (from, iirc, jhugo) this was handled
by the hardware and not exposed to the driver on older devices.

If it is a video mode panel, the problem could be different (userspace
not waiting for pageflip event?)

BR,
-R
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question about MSM Driver
  2019-12-11 17:52 ` Question about MSM Driver Rob Clark
@ 2019-12-11 18:56   ` ggermanres
  0 siblings, 0 replies; 2+ messages in thread
From: ggermanres @ 2019-12-11 18:56 UTC (permalink / raw)
  To: Rob Clark; +Cc: Jeffrey Hugo, linux-arm-msm, dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1998 bytes --]

Yes. This is DSI command to panel.

I saw same problem in 96boards.org discuss. On Android its all ok, but on
Linux flickering.

Yes, panel in video mode. Where is pageflip event in driver? Or where add
sleep/delay between update buffer? I think buffer copy by DMA (module) to
panel. But for this needed some request event (or irq). In this case I want
to try catch problem by adding software delay. And make decision about this
problem, it with display, hardware or with something else.

ср, 11 дек. 2019 г. в 19:52, Rob Clark <robdclark@gmail.com>:

> On Wed, Dec 11, 2019 at 6:22 AM ggermanres <ggermanres@gmail.com> wrote:
> >
> > Hello.
> >
> > I have question about MSM Driver.
> >
> > I using Dragonboard 410 with ili9881 display. This is hobby project.
> This display from xiaomi redmi 3x/4x. I made PCB board for connect them. I
> changed dts, created panel driver (this all on buildroot with my config).
> All ok. Run platform. I saw linux console. Freedreno (opengl test app) is
> working fine. But I saw flickering like on old monitor I saw from phone. I
> tried changing timings, but this helped a little bit (I used it from dtsi
> from xiaomi repository).
> >
> > I think this is with vsync problem. Your driver support DSI_VSYNC input?
> In panel driver I sent command for vblank, on oscilloscope I saw pulse on
> this pin 60Hz. I tried find path in your driver code, added some debug
> output in code with sync. I saw MDSS_DSI_0_TRIG_CTRL configured with
> support TE. But Its not helped for me.
> >
> > If you know something, tell me. Or how change driver to support
> DSI_VSYNC input.
> >
>
> I guess this is a command mode panel?  So you'd be caring about the TE
> signal?  As far as I understand (from, iirc, jhugo) this was handled
> by the hardware and not exposed to the driver on older devices.
>
> If it is a video mode panel, the problem could be different (userspace
> not waiting for pageflip event?)
>
> BR,
> -R
>

[-- Attachment #1.2: Type: text/html, Size: 2516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-12  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAAaE5fP+Znp1O4t=M7bwor8FH=f-z9CL0wQ9NTjtLSwjFb0LoQ@mail.gmail.com>
2019-12-11 17:52 ` Question about MSM Driver Rob Clark
2019-12-11 18:56   ` ggermanres

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).