All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: move LVDS support check to output setup
Date: Tue, 12 Feb 2013 19:37:08 +0200	[thread overview]
Message-ID: <877gmdwi0r.fsf@intel.com> (raw)
In-Reply-To: <20130212171749.GB17406@cantiga.alporthouse.com>

On Tue, 12 Feb 2013, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> On Tue, Feb 12, 2013 at 07:06:59PM +0200, Jani Nikula wrote:
>> Keep all the platform output selection in intel_output_setup(), and don't
>> scatter it around.
>
> I see this as doing the opposite. You are littering an already over
> complicated routine with LVDS specific information.

I think it's fairly straightforward to follow what's happening there,
and with all the platform dependent stuff in the same place you don't
have to dig down from that complicated routine to look for *other*
places where there are platform dependent ifs and checks. Especially if
we need to add *more* of those deep down.

>> As a useful side effect, do not try to enable LVDS on
>> HSW or VLV.
>
> But you wouldn't with the old arrangement either.

On HSW it would depend on I915_READ(PCH_LVDS) & LVDS_DETECTED, which I
believe it shouldn't, and VBT. On mobile VLV it depends on VBT only. And
I think we know better than the VBT. Unless I'm missing something and
you have to spell it out for me... :/

>> Some checks are done in a slightly different order than before, and on some
>> platforms VGA is now initialized before LVDS.
>
> Is that significant?

I don't think so, but I thought I'd write it down as a note just in case
it turns out to be significant.

> You have not sold me on the benefits of this change.

The main motivation was:
http://mid.gmane.org/CAKMK7uGxFYUZckSbdKqqF15Lgcp9VQgKwCU1-hhTQ0VmrzvY2Q@mail.gmail.com


BR,
Jani.

  reply	other threads:[~2013-02-12 17:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12 17:06 [PATCH] drm/i915: move LVDS support check to output setup Jani Nikula
2013-02-12 17:17 ` Chris Wilson
2013-02-12 17:37   ` Jani Nikula [this message]
2013-02-12 17:50     ` Chris Wilson

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=877gmdwi0r.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --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.