Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: "Almahallawy, Khaled" <khaled.almahallawy@intel.com>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "Kandpal, Suraj" <suraj.kandpal@intel.com>,
	"ddavenport@google.com" <ddavenport@google.com>,
	"jani.nikula@linux.intel.com" <jani.nikula@linux.intel.com>
Subject: Re: [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY
Date: Wed, 22 Jan 2025 14:40:32 +0530	[thread overview]
Message-ID: <5848e8d3-8b0f-4d98-bc19-ba21b13444e5@intel.com> (raw)
In-Reply-To: <444eadb3d664c4624c70d8205770b28e75b2061d.camel@intel.com>


On 1/22/2025 4:15 AM, Almahallawy, Khaled wrote:
> Thank You for the series.
> Tested a modeline that is not pre-computed and able to see pixel clock
> calculation done correctly and the analyzer turns on:
>
> adjusted mode: "3440x1440": 50 265250 3440 3488 3520 3600 1440 1443
> 1453 1474 0x48 0x9
> crtc timings: clock=265250, hd=3440 hb=3440-3600 hs=3488-3520 ht=3600,
> vd=1440 vb=1440-1474 vs=1443-1453 vt=1474, flags=0x9
>
> Tested-by: Khaled Almahallawy <khaled.almahallawy@intel.com>

Thanks Khaled for the testing.

Jani, does the series looks alright to merge?


Regards,

Ankit

>
> On Mon, 2025-01-20 at 09:51 +0530, Ankit Nautiyal wrote:
>> The HDMI PLL programming involves pre-calculated values for specific
>> frequencies and an algorithm to compute values for other frequencies.
>> While the algorithm itself wasn't part of the driver, tables were
>> added based on it for known modes.
>>
>> Some HDMI modes were pruned due to lack of support (for example
>> issues
>> [1],[2], and [3]).
>> This series adds the algorithm for computing HDMI PLLs for
>> SNPS/C10PHY
>> to work with all modes supported by the hardware.
>>
>> The original algorithm uses floating-point math, which has been
>> converted to integers while preserving precision. As a result,
>> the values in the existing computable tables are very close but not
>> exact. Testing with DG2 and MTL on various panels revealed no issues.
>>
>> [1] https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9722
>> [2] https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10654
>> [3] https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10956
>>
>> Rev2:
>> -Change the name of the new file for HDMI PLL algorithm.
>> -Fix styling issues and bit refactoring for readbility.
>> -Fix issues reported by kernel test bot.
>>
>> Rev3:
>> -Modify the names of helper functions to align with filename.
>>
>> Rev4:
>> -Rebase, added Bspec references, and address review comments.
>>
>> Ankit Nautiyal (5):
>>    drm/i915/display: Add support for SNPS PHY HDMI PLL algorithm for
>> DG2
>>    drm/i915/snps_phy: Use HDMI PLL algorithm for DG2
>>    drm/i915/cx0_phy_regs: Add C10 registers bits
>>    drm/i915/intel_snps_hdmi_pll: Compute C10 HDMI PLLs with algorithm
>>    drm/i915/cx0_phy: Use HDMI PLL algorithm for C10 PHY
>>
>>   drivers/gpu/drm/i915/Makefile                 |   1 +
>>   drivers/gpu/drm/i915/display/intel_cx0_phy.c  |  49 +--
>>   drivers/gpu/drm/i915/display/intel_cx0_phy.h  |   1 -
>>   .../gpu/drm/i915/display/intel_cx0_phy_regs.h |  24 ++
>>   drivers/gpu/drm/i915/display/intel_hdmi.c     |  12 -
>>   .../drm/i915/display/intel_snps_hdmi_pll.c    | 364
>> ++++++++++++++++++
>>   .../drm/i915/display/intel_snps_hdmi_pll.h    |  17 +
>>   drivers/gpu/drm/i915/display/intel_snps_phy.c |  37 +-
>>   drivers/gpu/drm/i915/display/intel_snps_phy.h |   1 -
>>   drivers/gpu/drm/xe/Makefile                   |   1 +
>>   10 files changed, 427 insertions(+), 80 deletions(-)
>>   create mode 100644
>> drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
>>   create mode 100644
>> drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.h
>>

  reply	other threads:[~2025-01-22  9:11 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-20  4:21 [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Ankit Nautiyal
2025-01-20  4:21 ` [PATCH 1/5] drm/i915/display: Add support for SNPS PHY HDMI PLL algorithm for DG2 Ankit Nautiyal
2025-01-21  4:37   ` Kandpal, Suraj
2025-01-20  4:21 ` [PATCH 2/5] drm/i915/snps_phy: Use " Ankit Nautiyal
2025-01-20  4:21 ` [PATCH 3/5] drm/i915/cx0_phy_regs: Add C10 registers bits Ankit Nautiyal
2025-01-22 11:10   ` Jani Nikula
2025-01-22 16:28   ` Ankit Nautiyal
2025-01-20  4:21 ` [PATCH 4/5] drm/i915/intel_snps_hdmi_pll: Compute C10 HDMI PLLs with algorithm Ankit Nautiyal
2025-01-20  4:21 ` [PATCH 5/5] drm/i915/cx0_phy: Use HDMI PLL algorithm for C10 PHY Ankit Nautiyal
2025-01-20  6:23 ` ✓ CI.Patch_applied: success for Add HDMI PLL Algorithm for SNPS/C10PHY (rev4) Patchwork
2025-01-20  6:23 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-20  6:24 ` ✓ CI.KUnit: success " Patchwork
2025-01-20  6:42 ` ✓ CI.Build: " Patchwork
2025-01-20  6:44 ` ✓ CI.Hooks: " Patchwork
2025-01-20  6:46 ` ✗ CI.checksparse: warning " Patchwork
2025-01-20  7:13 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-20  9:05 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-20 12:31 ` ✓ CI.Patch_applied: success for Add HDMI PLL Algorithm for SNPS/C10PHY (rev5) Patchwork
2025-01-20 12:31 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-20 12:32 ` ✓ CI.KUnit: success " Patchwork
2025-01-20 12:49 ` ✓ CI.Build: " Patchwork
2025-01-20 12:51 ` ✓ CI.Hooks: " Patchwork
2025-01-20 12:52 ` ✗ CI.checksparse: warning " Patchwork
2025-01-20 13:19 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-20 14:58 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-21 22:45 ` [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Almahallawy, Khaled
2025-01-22  9:10   ` Nautiyal, Ankit K [this message]
2025-01-22 16:52     ` Jani Nikula
2025-01-23  5:26       ` Nautiyal, Ankit K
2025-01-22 17:01 ` ✓ CI.Patch_applied: success for Add HDMI PLL Algorithm for SNPS/C10PHY (rev6) Patchwork
2025-01-22 17:02 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-22 17:03 ` ✓ CI.KUnit: success " Patchwork
2025-01-22 17:19 ` ✓ CI.Build: " Patchwork
2025-01-22 17:22 ` ✓ CI.Hooks: " Patchwork
2025-01-22 17:23 ` ✗ CI.checksparse: warning " Patchwork
2025-01-22 17:50 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-23  6:14 ` ✗ Xe.CI.Full: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2024-08-13  3:19 [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Ankit Nautiyal
2024-08-06 12:58 Ankit Nautiyal
2024-06-26  5:00 Ankit Nautiyal

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=5848e8d3-8b0f-4d98-bc19-ba21b13444e5@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=ddavenport@google.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=khaled.almahallawy@intel.com \
    --cc=suraj.kandpal@intel.com \
    /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