Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2 1/1] drm/mediatek: Filter modes according to hardware capability
@ 2024-11-27 14:28 Michał Kopeć
  2024-11-29  6:17 ` CK Hu (胡俊光)
  0 siblings, 1 reply; 8+ messages in thread
From: Michał Kopeć @ 2024-11-27 14:28 UTC (permalink / raw)
  To: Shawn.Sung; +Cc: linux-mediatek

(Re-sending because Shawn's @google email is inactive)

Hi Shawn,

I'm a new owner of the Chromebook Ciri (MT8188) and have run into an 
issue which I believe is related to this patch.

I'm attempting to use a 3440x1440 144Hz monitor over DisplayPort, but 
the available resolutions are limited to 2560x1440@120Hz. I found this 
patch, then I confirmed with the monitor's EDID that i am indeed 
reaching data rates above 8250 (though minimally) in higher resolution 
modes.

I wanted to ask about this comment:

 > The proposed formula is only one way to estimate whether our SoC
 > supports the mode setting. The basic idea behind it is just to check
 > if the data rate requirement is too high (directly proportional to
 > pixel clock, inversely proportional to vbp). Please adjust the
 > function if it doesn't fit your situation in the future.

- Can you confirm if the reference number 8250 is the hard limit of the 
hardware?
- Could you suggest other formulae that could work for my use case? I'd 
be happy to implement and test on my end but as I don't have access to 
MTK documentation, I don't know the actual limits of the hardware and 
how to deal with them

Regards,
Michał Kopeć





^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] drm/mediatek: Filter modes according to hardware capability
@ 2024-11-27 14:24 Michał Kopeć
  0 siblings, 0 replies; 8+ messages in thread
From: Michał Kopeć @ 2024-11-27 14:24 UTC (permalink / raw)
  To: shawn.sung; +Cc: linux-mediatek

Hi Shawn,

I'm a new owner of the Chromebook Ciri (MT8188) and have run into an 
issue which I believe is caused by this patch.

I'm attempting to use a 3440x1440 144Hz monitor over DisplayPort, but 
the available resolutions are limited to 2560x1440@120Hz. I found this 
patch, then I confirmed with the monitor's EDID that i am indeed 
reaching data rates above 8250 (though minimally) in higher resolution 
modes.

I wanted to ask about this comment:

 > The proposed formula is only one way to estimate whether our SoC
 > supports the mode setting. The basic idea behind it is just to check
 > if the data rate requirement is too high (directly proportional to
 > pixel clock, inversely proportional to vbp). Please adjust the
 > function if it doesn't fit your situation in the future.

- Can you confirm if the reference number 8250 is the hard limit of the 
hardware?
- Could you suggest other formulae that could work for my use case? I'd 
be happy to implement and test on my end but as I don't have access to 
MTK documentation, I don't know the actual limits of the hardware and 
how to deal with them

Regards,
Michał Kopeć




^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2 0/1] Filter modes according to hardware capability
@ 2024-02-07  2:15 Hsiao Chien Sung
  2024-02-07  2:15 ` [PATCH v2 1/1] drm/mediatek: " Hsiao Chien Sung
  0 siblings, 1 reply; 8+ messages in thread
From: Hsiao Chien Sung @ 2024-02-07  2:15 UTC (permalink / raw)
  To: Chun-Kuang Hu
  Cc: Philipp Zabel, David Airlie, Daniel Vetter, Matthias Brugger,
	dri-devel, linux-mediatek, linux-arm-kernel, linux-kernel,
	Hsiao Chien Sung

From: Hsiao Chien Sung <shawn.sung@mediatek.corp-partner.google.com>

This series is based on mediatek-drm-next branch of
kernel/git/chunkuang.hu/linux.git.

Changes in v2:
- Refined the filtering formula
- Add the .mode_valid hook to the hardware that causes the limitation

Hsiao Chien Sung (1):
  drm/mediatek: Filter modes according to hardware capability

 drivers/gpu/drm/mediatek/mtk_disp_drv.h       |  4 ++
 drivers/gpu/drm/mediatek/mtk_disp_merge.c     | 56 +++++++++++++++++++
 .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c   | 17 ++++++
 drivers/gpu/drm/mediatek/mtk_drm_crtc.c       | 17 ++++++
 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c   |  1 +
 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h   | 12 ++++
 6 files changed, 107 insertions(+)

--
2.18.0



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

end of thread, other threads:[~2024-12-03  8:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <7QZPNS.0SWJEBP013RP1@nozomi.space>
2024-12-02  2:19 ` [PATCH v2 1/1] drm/mediatek: Filter modes according to hardware capability Shawn Sung (宋孝謙)
2024-12-03  8:16   ` 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 (宋孝謙)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox