All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sharma, Shashank" <shashank.sharma@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	"Ander Conselvan De Oliveira" <conselvan2@gmail.com>
Cc: jose.abreu@synopsys.com, daniel.vetter@intel.com,
	intel-gfx@lists.freedesktop.org, treding@nvidia.com,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v4 5/6] drm/i915: enable scrambling
Date: Thu, 23 Feb 2017 20:46:05 +0530	[thread overview]
Message-ID: <a0ece8f3-96e6-e85e-cbdc-322fe7ae79f6@intel.com> (raw)
In-Reply-To: <20170223132135.GV31595@intel.com>


[-- Attachment #1.1: Type: text/plain, Size: 2985 bytes --]


>> Think about two situations where:-
>> - Monitor supports scrambling and scdc, but we will not enable it, as
>> the current mode is 1080P@148 MHz
>> - Monitor supports scrambling and scdc, and we will enable it, as the
>> current mode is 4k@596 Mhz
>>
>> To differentiate between these two, we have:
>> config->hdmi_scrambling which shows scrambling enabled on monitor by source
>> display_info->hdmi.scdc->scrambling which indicates monitor supports
>> scrambling
>>
>> Does it make sense ? Or you prefer some changes here ?
> Is there any harm in disabling scrambling twice? If not I'd say just disable it
> on every modeset if it is not needed. Then there's no need to know the previous
> state at the moment we actually enable/disable it.

> Agreed. Just explicitly set the state to what we want every time.

- Cool, so I would load the crtc_state only once (in compute_config), and then disable it every time during ddi_disable.
Thanks for this clarification guys, I will send a follow up patch series addressing all the comments soon.

Regards
Shashank

On 2/23/2017 6:51 PM, Ville Syrjälä wrote:
>>> > >Actually design is slightly different. The state's hdmi_scrambling/clock
>>> > >bool's indicate that the sink's
>>> > >scrambling/high_clock_ratio is enabled/set by source (and needs to be
>>> > >disabled), whereas connecotr's->display_info->scdc.scrambling
>>> > >is to indicate monitor's capability to support scrambling and scdc
>> >
>> >The crtc_state shouldn't be changed to represent changes in the hardware state.
>> >It is computed during the atomic check phase, and after that it should represent
>> >the state that needs to be commited. Perhaps the code in hdmi_compute_config()
>> >just needs to take the previous state into account?
> The previous state is irrelevant. We just need to compute these things
> based on what we're going to do next. And this stuff doesn't really
> track the state of the sink, rather it tracks the state of the source.
> The sink state just follows along to match. So in the readout path we
> just want to read out the state of the source.
>
>> >
>>> > >
>>> > >Think about two situations where:-
>>> > >- Monitor supports scrambling and scdc, but we will not enable it, as
>>> > >the current mode is 1080P@148 MHz
>>> > >- Monitor supports scrambling and scdc, and we will enable it, as the
>>> > >current mode is 4k@596 Mhz
>>> > >
>>> > >To differentiate between these two, we have:
>>> > >config->hdmi_scrambling which shows scrambling enabled on monitor by source
>>> > >display_info->hdmi.scdc->scrambling which indicates monitor supports
>>> > >scrambling
>>> > >
>>> > >Does it make sense ? Or you prefer some changes here ?
>> >
>> >Is there any harm in disabling scrambling twice? If not I'd say just disable it
>> >on every modeset if it is not needed. Then there's no need to know the previous
>> >state at the moment we actually enable/disable it.
> Agreed. Just explicitly set the state to what we want every time.


[-- Attachment #1.2: Type: text/html, Size: 5155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2017-02-23 15:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-22 13:18 [PATCH v4 0/6] HDMI 2.0: Scrambling in DRM layer Shashank Sharma
2017-02-22 13:18 ` [PATCH v4 1/6] drm: Add SCDC helpers Shashank Sharma
2017-02-22 17:09   ` Ville Syrjälä
2017-02-23  3:21     ` Sharma, Shashank
2017-02-23 11:41       ` Ville Syrjälä
2017-02-23 12:09         ` Sharma, Shashank
2017-02-22 13:18 ` [PATCH v4 2/6] drm/edid: check for HF-VSDB block Shashank Sharma
2017-02-22 13:18 ` [PATCH v4 3/6] drm/edid: detect SCDC support in HF-VSDB Shashank Sharma
2017-02-22 13:18 ` [PATCH v4 4/6] drm: scrambling support in drm layer Shashank Sharma
2017-02-22 17:24   ` Ville Syrjälä
2017-02-23  3:35     ` Sharma, Shashank
2017-02-23 11:45       ` Ville Syrjälä
2017-02-23 12:13         ` Sharma, Shashank
2017-02-22 13:18 ` [PATCH v4 5/6] drm/i915: enable scrambling Shashank Sharma
2017-02-22 17:29   ` Ville Syrjälä
2017-02-23  4:31     ` Sharma, Shashank
2017-02-23  8:03       ` Ander Conselvan De Oliveira
2017-02-23 11:03         ` Sharma, Shashank
2017-02-23 13:07           ` Ander Conselvan De Oliveira
2017-02-23 13:21             ` Ville Syrjälä
2017-02-23 15:16               ` Sharma, Shashank [this message]
2017-02-22 13:18 ` [PATCH v4 6/6] drm/i915: allow HDMI 2.0 clock rates Shashank Sharma
2017-02-22 17:22 ` ✓ Fi.CI.BAT: success for HDMI 2.0: Scrambling in DRM layer (rev4) 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=a0ece8f3-96e6-e85e-cbdc-322fe7ae79f6@intel.com \
    --to=shashank.sharma@intel.com \
    --cc=conselvan2@gmail.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jose.abreu@synopsys.com \
    --cc=treding@nvidia.com \
    --cc=ville.syrjala@linux.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.