Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Shawn Sung (宋孝謙)" <Shawn.Sung@mediatek.com>
To: "2025e0ddff85a3bfa1f8894587b5e26ba3cfd65b.camel@mediatek.com"
	<2025e0ddff85a3bfa1f8894587b5e26ba3cfd65b.camel@mediatek.com>
Cc: "linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"Singo Chang (張興國)" <Singo.Chang@mediatek.com>,
	"Jason-JH Lin (林睿祥)" <Jason-JH.Lin@mediatek.com>,
	"Shih-che Lin (林士哲)" <Shih-che.Lin@mediatek.com>,
	"Nancy Lin (林欣螢)" <Nancy.Lin@mediatek.com>,
	"CK Hu (胡俊光)" <ck.hu@mediatek.com>,
	"2025e0ddff85a3bfa1f8894587b5e26ba3cfd65b.camel@mediatek.com"
	<2025e0ddff85a3bfa1f8894587b5e26ba3cfd65b.camel@mediatek.com>,
	"Jamie Chang (張博皓)" <Jamie.Chang@mediatek.com>,
	"David-YH Chiu (邱鈺翔)" <David-YH.Chiu@mediatek.com>
Subject: Re: [PATCH v2 1/1] drm/mediatek: Filter modes according to hardware capability
Date: Mon, 2 Dec 2024 02:19:09 +0000	[thread overview]
Message-ID: <b38ade853c9fa01369fe8e400c693d20e8b2256a.camel@mediatek.com> (raw)
In-Reply-To: <7QZPNS.0SWJEBP013RP1@nozomi.space>

Hi Michał,

On Fri, 2024-11-29 at 17:13 +0100, Michał Kopeć wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> Hi Shawn, thanks for replying!

Thank you for bringing this issue to our attention.

Since every email from outside of the company is first moved to an
isolation folder, I replied your mail before moving it out and noticed
that there is a "[SPAM]" tag in the subject line.
I apologize for what happened and have fixed it this time.

> 
>  > As the reference number 8250 = 594000 / 72:
>  > 594000 is KHz of the clock rate in mode setting
>  > 72 is lines during VBP (Vertical Back Porch)
>  > Can you share your reference number or the EDID in 3440x1440@144
> with
>  > us?
> 
> Sure, here's the mode defined in the EDID:
> 
> DTD: 3440x1440 143.922761 Hz 0:0 217.323 kHz 799.750000 MHz (aspect
> undefined, no 3D stereo, preferred)
>            Hfront 48 Hsync 32 Hback 160 Hpol P
>            Vfront 3 Vsync 10 Vback 57 Vpol N
> 
> 799750/57 is 14030 so definitely much higher than supported
> according to the code.
> 
> There's also other modes:
> 
> DTD: 3440x1440 119.999642 Hz 0:0 182.999 kHz 670.510000 MHz (aspect
> undefined, no 3D stereo)
>            Hfront 144 Hsync 32 Hback 48 Hpol P
>            Vfront 3 Vsync 4 Vback 78 Vpol N
> 
> DTD 2: 3440x1440 99.981604 Hz 43:18 150.972 kHz 543.500000 MHz (800
> mm
> x 335 mm)
>              Hfront 48 Hsync 32 Hback 80 Hpol P
>              Vfront 3 Vsync 4 Vback 63 Vpol N
> 
> 670510/78 = 8596
> 543500/63 = 8626
> 
> So the 120Hz and 100Hz modes look like they might almost work :) The
> manufacturer neglected to add a 60Hz mode which I suspect might have
> worked without issue.

Yes, these two numbers seems to work as they are just less than 5%
above the spec.

> 
>  > The reference number 8250 is established based on our hardware
>  > specifications. Numbers higher than that may function, but could
> be
>  > unstable. For example, the monitor may seem to work properly at
> first,
>  > but you could encounter black screens or glitching from time to
> time.
> 
> Understood. I was just wondering if it might be dependent on other
> factors than Vbp and pixel clock.
> 
>  > May I confirm if you are going to implement the patch just for
> local
>  > testing or for upstream? As 8250 is calculated based on the
>  > specifications and was verified through a series of procedures.
> Any
>  > changes to it may require thorough verifications before being
> accepted.
> 
> I was going to initially try to implement something for personal use
> but
> I wanted to eventually try to upstream it. However, from what I
> understand,
> it might not be easy or possible.
> 
> If I develop a patch that works reliably at least for me, would you
> be
> open to me adding a kernel module parameter to allow unverified data
> rates, with clear description that it may cause unstable behavior?

As I also have a high refresh rate monitor, I can completely understand
how you feel. Could you please change 8250 to `8250 * 1.05` and see if
it works in your situation?

Since the official configuration usually prefer a more stable setting,
we have initiated an internal discussion about this request.

> 
>  > Regards,
>  > Shawn
> 
> Regards,
> Michał
> 

Regards,
Shawn


       reply	other threads:[~2024-12-02  2:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7QZPNS.0SWJEBP013RP1@nozomi.space>
2024-12-02  2:19 ` Shawn Sung (宋孝謙) [this message]
2024-12-03  8:16   ` [PATCH v2 1/1] drm/mediatek: Filter modes according to hardware capability Jason-JH Lin (林睿祥)
2024-11-27 14:28 Michał Kopeć
2024-11-29  6:17 ` CK Hu (胡俊光)
  -- strict thread matches above, loose matches on Subject: below --
2024-11-27 14:24 Michał Kopeć
2024-02-07  2:15 [PATCH v2 0/1] " Hsiao Chien Sung
2024-02-07  2:15 ` [PATCH v2 1/1] drm/mediatek: " Hsiao Chien Sung
2024-02-16  9:38   ` CK Hu (胡俊光)
2024-02-20  9:06     ` Shawn Sung (宋孝謙)

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=b38ade853c9fa01369fe8e400c693d20e8b2256a.camel@mediatek.com \
    --to=shawn.sung@mediatek.com \
    --cc=2025e0ddff85a3bfa1f8894587b5e26ba3cfd65b.camel@mediatek.com \
    --cc=David-YH.Chiu@mediatek.com \
    --cc=Jamie.Chang@mediatek.com \
    --cc=Jason-JH.Lin@mediatek.com \
    --cc=Nancy.Lin@mediatek.com \
    --cc=Shih-che.Lin@mediatek.com \
    --cc=Singo.Chang@mediatek.com \
    --cc=ck.hu@mediatek.com \
    --cc=linux-mediatek@lists.infradead.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