All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/6] drm/i915: get mode clock when reading the pipe config v5
Date: Thu, 23 May 2013 09:10:36 -0700	[thread overview]
Message-ID: <20130523091036.27e75ade@jbarnes-desktop> (raw)
In-Reply-To: <20130523153006.GC15743@phenom.ffwll.local>

On Thu, 23 May 2013 17:30:06 +0200
Daniel Vetter <daniel@ffwll.ch> wrote:

> On Tue, May 14, 2013 at 05:08:27PM -0700, Jesse Barnes wrote:
> > We need this for comparing modes between configuration changes.
> > 
> > v2: try harder to calulate non-simple pixel clocks (Daniel)
> >     call get_clock after getting the encoder config, needed for pixel multiply
> >     (Jesse)
> > v3: drop get_clock now that the pixel_multiply has been moved into
> >     get_pipe_config
> > v4: re-add get_clock; we need to get the pixel multiplier in the
> >     encoder, so need to calculate the clock value after the encoder's
> >     get_config is called
> > v5: drop hsw clock_get, still needs to be written
> > 
> > Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> 
> Two things:
> - the pixel_multiplier should be a separate patch, and I think we should
>   add pipe_config check support for it. Maybe if we pick a default value
>   of 1 (both for the get_config hw state readout and the compute config
>   stuff in the modeset code) that should also simplify a bit since only
>   SDVO uses it atm. We still need to implement pixel multiplier stuff for
>   native hdmi ports ...

Yeah, I'm ambivalent about it.  I like it called out in the encoder
funcs just because the setting belongs there, but since only SDVO uses
it, it does seem wasteful.  Maybe I'm just being hopeful about the HDMI
side of things landing soon. :)

> - For the clock readout code I think we should be able to have pipe config
>   compare support (with adjusted_mode->clock), with a bit of fuzz at
>   least. Not on current dinq, but with my cleanup to give
>   adjusted_mode->clock saner semantics:
> 
>   http://permalink.gmane.org/gmane.comp.freedesktop.xorg.drivers.intel/21750

So far I haven't needed the fuzz, but I'm not opposed to adding it as
needed.

> - There's no reason imo for the new ->get_clock vfunc, it splits exactly
>   the same as the existing ->get_pipe_config. So could simply be included
>   there.

Except that it depends on the results of the encoder->get_config
callback... that's the only reason I split it.  If you have ideas about
how to merge it back that's ok with me.

> With those three adjustements I think this is ready to go. For the
> follow-up patches though I think we should guard them with a fastboot
> module option.

Yeah, the main one there is the compute_config.  We can hide that
behind "boot_me_faster" or some such.

-- 
Jesse Barnes, Intel Open Source Technology Center

  reply	other threads:[~2013-05-23 16:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15  0:08 Fastboot in 6 patches Jesse Barnes
2013-05-15  0:08 ` [PATCH 1/6] drm/i915: add encoder get_config function v5 Jesse Barnes
2013-05-15 21:45   ` Paulo Zanoni
2013-05-21  7:51     ` Daniel Vetter
2013-05-21  7:55     ` Daniel Vetter
2013-05-15  0:08 ` [PATCH 2/6] drm/i915: get mode clock when reading the pipe config v5 Jesse Barnes
2013-05-23 15:30   ` Daniel Vetter
2013-05-23 16:10     ` Jesse Barnes [this message]
2013-05-23 18:53       ` Daniel Vetter
2013-05-15  0:08 ` [PATCH 3/6] drm/i915: copy fetched mode state into crtc at setup_hw time v2 Jesse Barnes
2013-05-15  0:08 ` [PATCH 4/6] drm/i915: fetch PCH PLL state at init time v3 Jesse Barnes
2013-05-15  0:08 ` [PATCH 5/6] HACK: drm/i915: turn off panel fitting at flip time if needed Jesse Barnes
2013-05-15  0:08 ` [PATCH 6/6] drm/i915: flip on a no fb -> fb transition if crtc is active v2 Jesse Barnes
2013-05-23 21:23   ` [PATCH] drm/i915: flip on a no fb -> fb transition if crtc is active v3 Jesse Barnes

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=20130523091036.27e75ade@jbarnes-desktop \
    --to=jbarnes@virtuousgeek.org \
    --cc=daniel@ffwll.ch \
    --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 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.