diff mbox series

drm/i915/bios: Define eDP pipe joiner feature for VBT

Message ID 20250108143638.1125237-1-dnyaneshwar.bhadane@intel.com (mailing list archive)
State New
Headers show
Series drm/i915/bios: Define eDP pipe joiner feature for VBT | expand

Commit Message

Bhadane, Dnyaneshwar Jan. 8, 2025, 2:36 p.m. UTC
There is new field "edp pipe joiner feature" size of 2 bytes in the
eDP VBT block. Each bit represent panel number to be enable/disable
for this feature.

Default value:
For ARL platform, 0x0000 to keep the feature disabled by default.
Xe3lpd onwards, 0xFFFF to keep the feature enable by default by VBT.

Bspec: 20142
Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
---
 drivers/gpu/drm/i915/display/intel_vbt_defs.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Jani Nikula Jan. 8, 2025, 5 p.m. UTC | #1
On Wed, 08 Jan 2025, Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com> wrote:
> There is new field "edp pipe joiner feature" size of 2 bytes in the
> eDP VBT block. Each bit represent panel number to be enable/disable
> for this feature.
>
> Default value:
> For ARL platform, 0x0000 to keep the feature disabled by default.
> Xe3lpd onwards, 0xFFFF to keep the feature enable by default by VBT.
>
> Bspec: 20142
> Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>

The patch does it ways, so...

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

...but are you going to use the info for something?

BR,
Jani.


> ---
>  drivers/gpu/drm/i915/display/intel_vbt_defs.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> index e9b809568cd4..2fdad5170896 100644
> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> @@ -1090,6 +1090,7 @@ struct bdb_edp {
>  	u16 edp_dsc_disable;					/* 251+ */
>  	u16 t6_delay_support;					/* 260+ */
>  	u16 link_idle_time[16];					/* 260+ */
> +	u16 edp_pipe_joiner_feature;				/* 261+ */
>  } __packed;
>  
>  /*
Ravi Kumar Vodapalli Jan. 8, 2025, 5:16 p.m. UTC | #2
On 1/8/2025 8:06 PM, Dnyaneshwar Bhadane wrote:
> There is new field "edp pipe joiner feature" size of 2 bytes in the
> eDP VBT block. Each bit represent panel number to be enable/disable
> for this feature.
>
> Default value:
> For ARL platform, 0x0000 to keep the feature disabled by default.
> Xe3lpd onwards, 0xFFFF to keep the feature enable by default by VBT.
>
> Bspec: 20142
> Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
> ---
>   drivers/gpu/drm/i915/display/intel_vbt_defs.h | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> index e9b809568cd4..2fdad5170896 100644
> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> @@ -1090,6 +1090,7 @@ struct bdb_edp {
>   	u16 edp_dsc_disable;					/* 251+ */
>   	u16 t6_delay_support;					/* 260+ */
>   	u16 link_idle_time[16];					/* 260+ */
> +	u16 edp_pipe_joiner_feature;				/* 261+ */

Better to add variable when we are actually using it in code.

Regards,
Ravi Kumar V

>   } __packed;
>   
>   /*
Jani Nikula Jan. 9, 2025, 10:01 a.m. UTC | #3
On Wed, 08 Jan 2025, "Vodapalli, Ravi Kumar" <ravi.kumar.vodapalli@intel.com> wrote:
> On 1/8/2025 8:06 PM, Dnyaneshwar Bhadane wrote:
>> There is new field "edp pipe joiner feature" size of 2 bytes in the
>> eDP VBT block. Each bit represent panel number to be enable/disable
>> for this feature.
>>
>> Default value:
>> For ARL platform, 0x0000 to keep the feature disabled by default.
>> Xe3lpd onwards, 0xFFFF to keep the feature enable by default by VBT.
>>
>> Bspec: 20142
>> Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
>> ---
>>   drivers/gpu/drm/i915/display/intel_vbt_defs.h | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
>> index e9b809568cd4..2fdad5170896 100644
>> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
>> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
>> @@ -1090,6 +1090,7 @@ struct bdb_edp {
>>   	u16 edp_dsc_disable;					/* 251+ */
>>   	u16 t6_delay_support;					/* 260+ */
>>   	u16 link_idle_time[16];					/* 260+ */
>> +	u16 edp_pipe_joiner_feature;				/* 261+ */
>
> Better to add variable when we are actually using it in code.

I was asking for usage plans myself, but for VBT definitions I don't
think we've ever been strict about requiring a user.

For one thing, we use the same file for the IGT intel_vbt_decode tool,
and I wouldn't want to block adding the decode there on some kernel
user.

BR,
Jani.


>
> Regards,
> Ravi Kumar V
>
>>   } __packed;
>>   
>>   /*
>
Bhadane, Dnyaneshwar Jan. 9, 2025, 12:04 p.m. UTC | #4
> -----Original Message-----
> From: Jani Nikula <jani.nikula@linux.intel.com>
> Sent: Wednesday, January 8, 2025 10:31 PM
> To: Bhadane, Dnyaneshwar <dnyaneshwar.bhadane@intel.com>; intel-
> gfx@lists.freedesktop.org
> Cc: Bhadane, Dnyaneshwar <dnyaneshwar.bhadane@intel.com>
> Subject: Re: [PATCH] drm/i915/bios: Define eDP pipe joiner feature for VBT
> 
> On Wed, 08 Jan 2025, Dnyaneshwar Bhadane
> <dnyaneshwar.bhadane@intel.com> wrote:
> > There is new field "edp pipe joiner feature" size of 2 bytes in the
> > eDP VBT block. Each bit represent panel number to be enable/disable
> > for this feature.
> >
> > Default value:
> > For ARL platform, 0x0000 to keep the feature disabled by default.
> > Xe3lpd onwards, 0xFFFF to keep the feature enable by default by VBT.
> >
> > Bspec: 20142
> > Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
> 
> The patch does it ways, so...
> 
> Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> 
> ...but are you going to use the info for something?

It was just to note for the future use. Thanks.

Regards, 
Dnyaneshwar
> 
> BR,
> Jani.
> 
> 
> > ---
> >  drivers/gpu/drm/i915/display/intel_vbt_defs.h | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> > b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> > index e9b809568cd4..2fdad5170896 100644
> > --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> > +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> > @@ -1090,6 +1090,7 @@ struct bdb_edp {
> >  	u16 edp_dsc_disable;					/* 251+ */
> >  	u16 t6_delay_support;					/* 260+ */
> >  	u16 link_idle_time[16];					/* 260+ */
> > +	u16 edp_pipe_joiner_feature;				/* 261+ */
> >  } __packed;
> >
> >  /*
> 
> --
> Jani Nikula, Intel
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
index e9b809568cd4..2fdad5170896 100644
--- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
+++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
@@ -1090,6 +1090,7 @@  struct bdb_edp {
 	u16 edp_dsc_disable;					/* 251+ */
 	u16 t6_delay_support;					/* 260+ */
 	u16 link_idle_time[16];					/* 260+ */
+	u16 edp_pipe_joiner_feature;				/* 261+ */
 } __packed;
 
 /*