All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 5/7] drm/i915/icl: Disable video turbo mode for rp control
Date: Wed, 10 Apr 2019 11:05:59 +0300	[thread overview]
Message-ID: <875zrm474o.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <155482754594.26510.9103564516216802141@skylake-alporthouse-com>

Chris Wilson <chris@chris-wilson.co.uk> writes:

> Quoting Mika Kuoppala (2019-04-09 17:13:08)
>> There is no video turbo mode for gen11, so don't set it.
>> 
>> Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
>> ---
>>  drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
>>  1 file changed, 4 insertions(+), 1 deletion(-)
>> 
>> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
>> index 47f98e064de5..d6abba5c0b32 100644
>> --- a/drivers/gpu/drm/i915/intel_pm.c
>> +++ b/drivers/gpu/drm/i915/intel_pm.c
>> @@ -6548,6 +6548,7 @@ static void rps_set_power(struct drm_i915_private *dev_priv, int new_power)
>>         struct intel_rps *rps = &dev_priv->gt_pm.rps;
>>         u32 threshold_up = 0, threshold_down = 0; /* in % */
>>         u32 ei_up = 0, ei_down = 0;
>> +       u32 media_turbo;
>>  
>>         lockdep_assert_held(&rps->power.mutex);
>>  
>> @@ -6605,8 +6606,10 @@ static void rps_set_power(struct drm_i915_private *dev_priv, int new_power)
>>                    GT_INTERVAL_FROM_US(dev_priv,
>>                                        ei_down * threshold_down / 100));
>>  
>> +       media_turbo = INTEL_GEN(dev_priv) > 9 ? 0 : GEN6_RP_MEDIA_TURBO;
>> +
>>         I915_WRITE(GEN6_RP_CONTROL,
>> -                  GEN6_RP_MEDIA_TURBO |
>> +                  media_turbo |
>
> Looks short enough to fit inline?

It was inline at first. Then I thought that it was ugly and
gets pointed out in review and changed it. My heuristics
failed.

Well, inline coming up!
-mika
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-04-10  8:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-09 16:13 [PATCH 1/7] drm/i915: Use dedicated rc6 enabling sequence for gen11 Mika Kuoppala
2019-04-09 16:13 ` [PATCH 2/7] drm/i915/icl: Apply a recommended rc6 threshold Mika Kuoppala
2019-04-09 16:51   ` Michal Wajdeczko
2019-04-09 16:13 ` [PATCH 3/7] drm/i915/icl: Apply recommended rc6 idle hysteresis Mika Kuoppala
2019-04-09 16:16   ` Chris Wilson
2019-04-10  8:04     ` Mika Kuoppala
2019-04-09 16:13 ` [PATCH 4/7] drm/i915/icl: Enable media sampler powergate Mika Kuoppala
2019-04-09 16:34   ` Chris Wilson
2019-04-09 16:13 ` [PATCH 5/7] drm/i915/icl: Disable video turbo mode for rp control Mika Kuoppala
2019-04-09 16:32   ` Chris Wilson
2019-04-10  8:05     ` Mika Kuoppala [this message]
2019-04-09 16:13 ` [PATCH 6/7] drm/i915/icl: Handle rps interrupts without irq lock Mika Kuoppala
2019-04-09 16:21   ` Chris Wilson
2019-04-10  8:09     ` Mika Kuoppala
2019-04-09 16:13 ` [PATCH 7/7] drm/i915: Use Engine1 instance for gen11 pm interrupts Mika Kuoppala
2019-04-09 16:26   ` Chris Wilson
2019-04-10  8:20     ` Mika Kuoppala
2019-04-09 16:28 ` [PATCH 1/7] drm/i915: Use dedicated rc6 enabling sequence for gen11 Chris Wilson
2019-04-09 16:57 ` Michal Wajdeczko
2019-04-09 17:04   ` Chris Wilson
2019-04-09 17:16 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/7] " Patchwork
2019-04-09 17:42 ` ✓ Fi.CI.BAT: success " Patchwork
2019-04-10  5:59 ` ✗ Fi.CI.IGT: failure " Patchwork
2019-04-10  9:04   ` 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=875zrm474o.fsf@gaia.fi.intel.com \
    --to=mika.kuoppala@linux.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.