All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
	<intel-xe@lists.freedesktop.org>,
	 <intel-gfx@lists.freedesktop.org>
Cc: <jani.nikula@intel.com>
Subject: Re: [PATCH v5 1/3] drm/i915/vbt: Add eDP Data rate overrride field in VBT
Date: Tue, 19 Aug 2025 14:46:38 +0530	[thread overview]
Message-ID: <c74588f3-027a-4afa-bdf4-3c000c599bd7@intel.com> (raw)
In-Reply-To: <20250819080602.84826-2-suraj.kandpal@intel.com>


On 8/19/2025 1:36 PM, Suraj Kandpal wrote:
> Add edp_data_rate_override field VBT which gives us a mask
> of rates which needs to be skipped in favour of
> subsequent higher rate.
>
> --v2
> -Rename vbt field [Jani]
> -Fix comment to 263+ [Jani]
> -Use BIT_U32 [Jani]
> -Fix the bits assignment in vbt [Jani]
>
> Bspec: 20124
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>


> ---
>   drivers/gpu/drm/i915/display/intel_bios.c     |  4 +++-
>   drivers/gpu/drm/i915/display/intel_vbt_defs.h | 17 +++++++++++++++++
>   2 files changed, 20 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
> index 9c268bed091d..8337ebe0f2c8 100644
> --- a/drivers/gpu/drm/i915/display/intel_bios.c
> +++ b/drivers/gpu/drm/i915/display/intel_bios.c
> @@ -2747,8 +2747,10 @@ static int child_device_expected_size(u16 version)
>   {
>   	BUILD_BUG_ON(sizeof(struct child_device_config) < 40);
>   
> -	if (version > 256)
> +	if (version > 263)
>   		return -ENOENT;
> +	else if (version >= 263)
> +		return 44;
>   	else if (version >= 256)
>   		return 40;
>   	else if (version >= 216)
> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> index 92c04811aa28..d4d89d5573db 100644
> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> @@ -437,6 +437,21 @@ enum vbt_gmbus_ddi {
>   #define BDB_230_VBT_DP_MAX_LINK_RATE_UHBR13P5	6
>   #define BDB_230_VBT_DP_MAX_LINK_RATE_UHBR20	7
>   
> +/* EDP link rate 263+ */
> +#define BDB_263_VBT_EDP_LINK_RATE_1_62		BIT_U32(0)
> +#define BDB_263_VBT_EDP_LINK_RATE_2_16		BIT_U32(1)
> +#define BDB_263_VBT_EDP_LINK_RATE_2_43		BIT_U32(2)
> +#define BDB_263_VBT_EDP_LINK_RATE_2_7		BIT_U32(3)
> +#define BDB_263_VBT_EDP_LINK_RATE_3_24		BIT_U32(4)
> +#define BDB_263_VBT_EDP_LINK_RATE_4_32		BIT_U32(5)
> +#define BDB_263_VBT_EDP_LINK_RATE_5_4		BIT_U32(6)
> +#define BDB_263_VBT_EDP_LINK_RATE_6_75		BIT_U32(7)
> +#define BDB_263_VBT_EDP_LINK_RATE_8_1		BIT_U32(8)
> +#define BDB_263_VBT_EDP_LINK_RATE_10		BIT_U32(9)
> +#define BDB_263_VBT_EDP_LINK_RATE_13_5		BIT_U32(10)
> +#define BDB_263_VBT_EDP_LINK_RATE_20		BIT_U32(11)
> +#define BDB_263_VBT_EDP_NUM_RATES		12
> +
>   /*
>    * The child device config, aka the display device data structure, provides a
>    * description of a port and its configuration on the platform.
> @@ -547,6 +562,8 @@ struct child_device_config {
>   	u8 dp_max_link_rate:3;					/* 216+ */
>   	u8 dp_max_link_rate_reserved:5;				/* 216+ */
>   	u8 efp_index;						/* 256+ */
> +	u32 edp_data_rate_override:12;				/* 263+ */
> +	u32 edp_data_rate_override_reserved:20;			/* 263+ */
>   } __packed;
>   
>   struct bdb_general_definitions {

  reply	other threads:[~2025-08-19  9:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-19  8:05 [PATCH v5 0/3] eDP Data Override Suraj Kandpal
2025-08-19  8:06 ` [PATCH v5 1/3] drm/i915/vbt: Add eDP Data rate overrride field in VBT Suraj Kandpal
2025-08-19  9:16   ` Nautiyal, Ankit K [this message]
2025-08-19  8:06 ` [PATCH v5 2/3] drm/i915/bios: Add function to check if edp data override is needed Suraj Kandpal
2025-08-19  8:06 ` [PATCH v5 3/3] drm/i915/edp: eDP Data Overrride Suraj Kandpal
2025-08-19  9:30   ` Nautiyal, Ankit K
2025-08-19  9:41   ` Jani Nikula
2025-08-19 12:03     ` Kandpal, Suraj
2025-08-19 12:20       ` Jani Nikula
2025-08-20  8:07       ` Nautiyal, Ankit K
2025-08-19 11:13 ` ✓ i915.CI.BAT: success for eDP Data Override (rev6) Patchwork
2025-08-19 11:31 ` ✓ CI.KUnit: " Patchwork
2025-08-19 12:59 ` ✓ Xe.CI.BAT: " Patchwork
2025-08-19 14:57 ` ✗ i915.CI.Full: failure " Patchwork
2025-08-20  6:33 ` ✓ Xe.CI.Full: success " Patchwork

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=c74588f3-027a-4afa-bdf4-3c000c599bd7@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.