From: Jani Nikula <jani.nikula@intel.com>
To: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/2] drm/i915/dsc/mtl: Update the DSC minor version
Date: Mon, 22 Aug 2022 13:02:38 +0300 [thread overview]
Message-ID: <87wnb0mw8x.fsf@intel.com> (raw)
In-Reply-To: <d33e683d-3ce7-b449-6998-1b72b8fa3629@intel.com>
On Mon, 22 Aug 2022, "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com> wrote:
> LGTM.
>
> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Thanks; does this apply to both patches?
BR,
Jani.
>
> On 8/17/2022 6:15 PM, Jani Nikula wrote:
>> From: Vandita Kulkarni <vandita.kulkarni@intel.com>
>>
>> From MTL onwards we support DSC1.2, since there is hardcoding
>> to minor version 1, update it.
>>
>> Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
>> Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> drivers/gpu/drm/i915/display/intel_dp.c | 18 ++++++++++++++----
>> 1 file changed, 14 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
>> index 32292c0be2bd..db5f536bde05 100644
>> --- a/drivers/gpu/drm/i915/display/intel_dp.c
>> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
>> @@ -1377,7 +1377,18 @@ static int intel_dp_dsc_compute_bpp(struct intel_dp *intel_dp, u8 max_req_bpc)
>> return 0;
>> }
>>
>> -#define DSC_SUPPORTED_VERSION_MIN 1
>> +static int intel_dp_source_dsc_version_minor(struct intel_dp *intel_dp)
>> +{
>> + struct drm_i915_private *i915 = dp_to_i915(intel_dp);
>> +
>> + return DISPLAY_VER(i915) >= 14 ? 2 : 1;
>> +}
>> +
>> +static int intel_dp_sink_dsc_version_minor(struct intel_dp *intel_dp)
>> +{
>> + return (intel_dp->dsc_dpcd[DP_DSC_REV - DP_DSC_SUPPORT] & DP_DSC_MINOR_MASK) >>
>> + DP_DSC_MINOR_SHIFT;
>> +}
>>
>> static int intel_dp_dsc_compute_params(struct intel_encoder *encoder,
>> struct intel_crtc_state *crtc_state)
>> @@ -1416,9 +1427,8 @@ static int intel_dp_dsc_compute_params(struct intel_encoder *encoder,
>> (intel_dp->dsc_dpcd[DP_DSC_REV - DP_DSC_SUPPORT] &
>> DP_DSC_MAJOR_MASK) >> DP_DSC_MAJOR_SHIFT;
>> vdsc_cfg->dsc_version_minor =
>> - min(DSC_SUPPORTED_VERSION_MIN,
>> - (intel_dp->dsc_dpcd[DP_DSC_REV - DP_DSC_SUPPORT] &
>> - DP_DSC_MINOR_MASK) >> DP_DSC_MINOR_SHIFT);
>> + min(intel_dp_source_dsc_version_minor(intel_dp),
>> + intel_dp_sink_dsc_version_minor(intel_dp));
>>
>> vdsc_cfg->convert_rgb = intel_dp->dsc_dpcd[DP_DSC_DEC_COLOR_FORMAT_CAP - DP_DSC_SUPPORT] &
>> DP_DSC_RGB;
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2022-08-22 10:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 12:45 [Intel-gfx] [PATCH 1/2] drm/i915/dsc/mtl: Update the DSC minor version Jani Nikula
2022-08-17 12:45 ` [Intel-gfx] [PATCH 2/2] drm/i915/dsc/mtl: Enable alternate ICH method Jani Nikula
2022-08-22 10:23 ` Nautiyal, Ankit K
2022-08-17 13:48 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/dsc/mtl: Update the DSC minor version Patchwork
2022-08-18 13:04 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915/dsc/mtl: Update the DSC minor version (rev2) Patchwork
2022-08-18 13:11 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-08-19 2:43 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-08-22 9:52 ` [Intel-gfx] [PATCH 1/2] drm/i915/dsc/mtl: Update the DSC minor version Nautiyal, Ankit K
2022-08-22 10:02 ` Jani Nikula [this message]
2022-08-22 10:25 ` Nautiyal, Ankit K
2022-08-22 10:40 ` Jani Nikula
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=87wnb0mw8x.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.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