public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Daniel Vetter <daniel@ffwll.ch>, Paulo Zanoni <przanoni@gmail.com>
Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH 3/3] drm/i915: add i915.dp_link_train_policy option
Date: Fri, 25 Apr 2014 12:00:34 +0300	[thread overview]
Message-ID: <87y4ytvl59.fsf@intel.com> (raw)
In-Reply-To: <20140425080650.GM26374@phenom.ffwll.local>

On Fri, 25 Apr 2014, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Thu, Apr 24, 2014 at 06:22:59PM -0300, Paulo Zanoni wrote:
>> From: Paulo Zanoni <paulo.r.zanoni@intel.com>
>> 
>> We still have way too many bugs with DP link training. We keep
>> switching between "narrow and fast" and "wide and slow", we recently
>> added 5GHz support, and whenever there's a bug report, we have to ask
>> people to apply patches and test them.
>> 
>> Wouldn't it be so much better if we could just ask them to boot with
>> some specific Kernel boot option instead of applying a patch? This
>> will move the situation from "i915.ko is completely broken!" to
>> "i915.ko's default values are broken, but there's an option I can set
>> to fix it, so I won't need to learn how to compile a Kernel!".
>> 
>> Some useful values:
>>  - i915.dp_link_train_policy=1 for "wide and slow"
>>  - i915.dp_link_train_policy=0x120 for DP_LINK_BW_2_7 and 2 lanes,
>>    which should be able to fit 1920x1080@60Hz and 24bpp
>>  - i915.dp_link_train_policy=0x210 to force DP 5GHz testing on
>>    not-so-huge modes
>> 
>> The default behavior is still the same.
>> 
>> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
>
> Yeah, I like this. I'll sign up Todd to review this all.

I guess we'll go with this then, but I'll step back from this particular
patch for a bit, and share my concerns over module parameters and
quirks.

I am generally opposed to adding module parameters or quirks to
workaround issues in features that should just work. They are an easy
way out for things we should root cause and fix properly.

Do not mistake me for an idealist for thinking this way, as I'm being
pragmatic.

The people who report bugs to us are roughly the same people who are
capable of setting the module parameter. Once they figure that out,
they'll stop responding to our requests for testing and info. We've seen
this happen before. We'd hurt our chances of making things work out of
the box for the average user.

The more we add module parameters, the combinations of them
explode. Debugging *other* problems becomes harder. In the bugs I work
on, the #1 request I have is full dmesg, partially because I want to see
all the wild kernel parameters the user might have set. And all too
often they have. When there are module parameters that fix some bugs,
the blogs and forums get filled with tips about them, and people use
them, whether they strictly have the same bug or not. Search for i915
invert brightness for example.

It's also not easy to drop module parameters after we've added them. You
know the drill. Even after we've fixed everything the module parameter
was supposed to fix, dropping it leads to https://xkcd.com/1172/.


BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center

  parent reply	other threads:[~2014-04-25  9:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-24 21:22 [PATCH 1/3] drm/i915: consider the source max DP lane count too Paulo Zanoni
2014-04-24 21:22 ` [PATCH 2/3] drm/i915: extract intel_dp_compute_link_config Paulo Zanoni
2014-04-24 21:22 ` [PATCH 3/3] drm/i915: add i915.dp_link_train_policy option Paulo Zanoni
2014-04-25  8:06   ` Daniel Vetter
2014-04-25  8:10     ` Daniel Vetter
2014-04-25  9:00     ` Jani Nikula [this message]
2014-04-25  9:18       ` Daniel Vetter
2014-04-25 10:32         ` Jani Nikula
2014-04-25 10:50         ` Barbalho, Rafael
2014-04-25 17:48       ` Paulo Zanoni
2014-04-25 20:02         ` Daniel Vetter
2014-04-25 10:48   ` Barbalho, Rafael
2014-04-25  7:16 ` [PATCH 1/3] drm/i915: consider the source max DP lane count too 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=87y4ytvl59.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=paulo.r.zanoni@intel.com \
    --cc=przanoni@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox