All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
To: "Souza, Jose" <jose.souza@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH v2 3/4] drm/i915/display: Nuke has_infoframe
Date: Mon, 7 Jun 2021 15:49:58 +0300	[thread overview]
Message-ID: <ebec559f-734d-70cb-7cea-ee2a2582eac9@intel.com> (raw)
In-Reply-To: <90f9a60870bdedcd89363b45fff97a4fb57980bd.camel@intel.com>



On 5/21/21 10:58 PM, Souza, Jose wrote:
> On Fri, 2021-05-21 at 16:27 +0100, Mun, Gwan-gyeong wrote:
>> On Fri, 2021-05-14 at 16:22 -0700, José Roberto de Souza wrote:
>>> This was only reduntant information has_hdmi_sink can do the same job.
>>> set_infoframes() hooks will call intel_write_infoframe() for the
>>> supported infoframes types and it will only be enabled if given type
>>> is set in crtc_state->infoframes.enable.
>>>
>>> While at it also fixing the style of dig_port->set_infoframes() calls.
>>>
>>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>> Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
>>> ---
>>>   drivers/gpu/drm/i915/display/g4x_hdmi.c       | 22 ++++++-------------
>>>   drivers/gpu/drm/i915/display/intel_ddi.c      | 17 +++++---------
>>>   drivers/gpu/drm/i915/display/intel_display.c  |  6 ++---
>>>   .../drm/i915/display/intel_display_types.h    |  3 ---
>>>   drivers/gpu/drm/i915/display/intel_dp_mst.c   |  4 ++--
>>>   drivers/gpu/drm/i915/display/intel_hdmi.c     | 13 +++++------
>>>   6 files changed, 22 insertions(+), 43 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/i915/display/g4x_hdmi.c
>>> b/drivers/gpu/drm/i915/display/g4x_hdmi.c
>>> index be352e9f0afc..f35db96e6239 100644
>>> --- a/drivers/gpu/drm/i915/display/g4x_hdmi.c
>>> +++ b/drivers/gpu/drm/i915/display/g4x_hdmi.c
>>> @@ -105,9 +105,6 @@ static void intel_hdmi_get_config(struct
>>> intel_encoder *encoder,
>>>          pipe_config->infoframes.enable |=
>>>                  intel_hdmi_infoframes_enabled(encoder, pipe_config);
>>>   
>>> -       if (pipe_config->infoframes.enable)
>>> -               pipe_config->has_infoframe = true;
>>> -
>> "pipe_config->infoframes.enable" is set with information about the
>> infoframes currently active in the hardware through "pipe_config-
>>> infoframes.enable |= intel_hdmi_infoframes_enabled(encoder,
>> pipe_config);".
>>
>> Therefore, when calling set_infoframes() semantically, the
>> has_infoframe information set by "if (pipe_config->infoframes.enable)
>> pipe_config->has_infoframe = true;" is more clear.
> 
> That don't work because the functions that will check if a infoframe is needed and set pipe_config->infoframes.enable depends on pipe_config-
>> has_infoframe/crtc_state->has_hdmi_sink.
> That is probably because DVI ports don't support infoframes but in i915 are handle very similar to HDMI.
> 
>>
DP and HDMI can have infoframes that fit each specification in the 
specification.
And (although not used in this sense here) when dp has hdmi sink, it can 
be thought of using dp to hdmi protocol converter. I think it might be a 
little unclear, but what do you think?
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2021-06-07 12:50 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14 23:22 [Intel-gfx] [PATCH v2 1/4] drm/i915/display: Fix fastsets involving PSR José Roberto de Souza
2021-05-14 23:22 ` [Intel-gfx] [PATCH v2 2/4] drm/i915/display: Allow fastsets when DP_SDP_VSC infoframe do not match with PSR enabled José Roberto de Souza
2021-06-07 11:44   ` Gwan-gyeong Mun
2021-05-14 23:22 ` [Intel-gfx] [PATCH v2 3/4] drm/i915/display: Nuke has_infoframe José Roberto de Souza
2021-05-21 15:27   ` Mun, Gwan-gyeong
2021-05-21 19:58     ` Souza, Jose
2021-06-07 12:49       ` Gwan-gyeong Mun [this message]
2021-06-07 23:16         ` Souza, Jose
2021-05-14 23:22 ` [Intel-gfx] [PATCH v2 4/4] drm/i915/display: Drop FIXME about turn off infoframes José Roberto de Souza
2021-06-01 22:41   ` Sripada, Radhakrishna
2021-06-08  7:26   ` Ville Syrjälä
2021-06-09 19:25     ` Souza, Jose
2021-06-10 12:18       ` Ville Syrjälä
2021-06-10 17:44         ` Souza, Jose
2021-06-11 18:15           ` Ville Syrjälä
2021-05-14 23:41 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/4] drm/i915/display: Fix fastsets involving PSR Patchwork
2021-05-14 23:42 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2021-05-15  0:11 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-05-15  0:38 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/4] drm/i915/display: Fix fastsets involving PSR (rev2) Patchwork
2021-05-15  0:39 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2021-05-15  1:09 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-05-15 13:15 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-06-07 17:51   ` Souza, Jose
2021-06-07 11:19 ` [Intel-gfx] [PATCH v2 1/4] drm/i915/display: Fix fastsets involving PSR Gwan-gyeong Mun

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=ebec559f-734d-70cb-7cea-ee2a2582eac9@intel.com \
    --to=gwan-gyeong.mun@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jose.souza@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.