mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: "dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"a-bhatia1@ti.com" <a-bhatia1@ti.com>,
	"Laurent.pinchart@ideasonboard.com" 
	<Laurent.pinchart@ideasonboard.com>,
	"andrzej.hajda@intel.com" <andrzej.hajda@intel.com>,
	"neil.armstrong@linaro.org" <neil.armstrong@linaro.org>,
	"peter.ujfalusi@gmail.com" <peter.ujfalusi@gmail.com>,
	"rfoss@kernel.org" <rfoss@kernel.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"francesco@dolcini.it" <francesco@dolcini.it>,
	"jonas@kwiboo.se" <jonas@kwiboo.se>,
	"jernej.skrabec@gmail.com" <jernej.skrabec@gmail.com>,
	"daniel@ffwll.ch" <daniel@ffwll.ch>,
	"maxim.schwalm@gmail.com" <maxim.schwalm@gmail.com>
Subject: Re: [PATCH v3 12/12] drm/bridge: tc358768: Attempt to fix DSI horizontal timings
Date: Tue, 5 Sep 2023 10:28:53 +0300	[thread overview]
Message-ID: <139ce49f-43b4-928d-b11d-460917bf08bb@ideasonboard.com> (raw)
In-Reply-To: <303db6b68b5cb4bc73cd0b8c190e3e92498caab3.camel@toradex.com>

On 04/09/2023 21:46, Marcel Ziswiler wrote:
> Hi Tomi
> 
> Looks good. Thanks! Tested both on Verdin AM62 as well as on Verdin iMX8M Mini.
> 
> Just a minor nit-pick in your code comment further below.
> 
> On Tue, 2023-08-22 at 19:19 +0300, Tomi Valkeinen wrote:
>> The DSI horizontal timing calculations done by the driver seem to often
>> lead to underflows or overflows, depending on the videomode.
>>
>> There are two main things the current driver doesn't seem to get right:
>> DSI HSW and HFP, and VSDly. However, even following Toshiba's
>> documentation it seems we don't always get a working display.
>>
>> This patch attempts to fix the horizontal timings for DSI event mode, and
>> on a system with a DSI->HDMI encoder, a lot of standard HDMI modes now
>> seem to work. The work relies on Toshiba's documentation, but also quite
>> a bit on empirical testing.
>>
>> This also adds timing related debug prints to make it easier to improve
>> on this later.
>>
>> The DSI pulse mode has only been tested with a fixed-resolution panel,
>> which limits the testing of different modes on DSI pulse mode. However,
>> as the VSDly calculation also affects pulse mode, so this might cause a
>> regression.
>>
>> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
> 
> For the whole series:
> 
> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>

Thanks! I have fixed the typo in the comment.

  Tomi


  reply	other threads:[~2023-09-05 16:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22 16:19 [PATCH v3 00/12] drm/bridge: tc358768: Fixes and timings improvements Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 01/12] drm/tegra: rgb: Parameterize V- and H-sync polarities Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 02/12] drm/bridge: tc358768: Fix use of uninitialized variable Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 03/12] drm/bridge: tc358768: Default to positive h/v syncs Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 04/12] drm/bridge: tc358768: Fix bit updates Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 05/12] drm/bridge: tc358768: Cleanup PLL calculations Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 06/12] drm/bridge: tc358768: Use struct videomode Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 07/12] drm/bridge: tc358768: Print logical values, not raw register values Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 08/12] drm/bridge: tc358768: Use dev for dbg prints, not priv->dev Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 09/12] drm/bridge: tc358768: Rename dsibclk to hsbyteclk Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 10/12] drm/bridge: tc358768: Clean up clock period code Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 11/12] drm/bridge: tc358768: Fix tc358768_ns_to_cnt() Tomi Valkeinen
2023-08-22 16:19 ` [PATCH v3 12/12] drm/bridge: tc358768: Attempt to fix DSI horizontal timings Tomi Valkeinen
2023-09-04 18:46   ` Marcel Ziswiler
2023-09-05  7:28     ` Tomi Valkeinen [this message]
2023-08-29  6:27 ` [PATCH v3 00/12] drm/bridge: tc358768: Fixes and timings improvements Tomi Valkeinen
2023-08-30 20:41   ` Maxim Schwalm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=139ce49f-43b4-928d-b11d-460917bf08bb@ideasonboard.com \
    --to=tomi.valkeinen@ideasonboard.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a-bhatia1@ti.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=francesco@dolcini.it \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel.ziswiler@toradex.com \
    --cc=maxim.schwalm@gmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=peter.ujfalusi@gmail.com \
    --cc=rfoss@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®