]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/cnl: Get RC6 working.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 23 Oct 2017 22:46:12 +0000 (15:46 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 24 Oct 2017 17:20:29 +0000 (10:20 -0700)
commit0aab201b4ad10fa530e4d12f8ea30b6f0a0540bd
tree433584d1cfa8a67442e0c118dd9fab590e50ae6d
parent436009b578ab872619350a4c4f2b36c98c7e55a2
drm/i915/cnl: Get RC6 working.

On CNL, individual wake rate limit was added to each engine.

GT can only go to RC6 if both Render and Media engines are
individually qualified. So we need to set their individual
wake rate limit.

+-----------------+---------------+--------------+--------------+
|                 |    GT RC6     |  Render C6   |   Media C6   |
+-----------------+---------------+--------------+--------------+
| Wake rate limit | 0xA09C[31:16] | 0xA09C[15:0] | 0xA0A0[15:0] |
+-----------------+---------------+--------------+--------------+

v2: - Tune Render and Media wake rate values according to some extra
      info I got from HW engineers. Value can be tuned, but for now
      these are the recommended values.
    - Fix typos pointed by James.

Cc: Nathan Ciobanu <nathan.d.ciobanu@intel.com>
Cc: Wayne Boyer <wayne.boyer@intel.com>
Cc: Joe Konno <joe.konno@linux.intel.com>
Cc: David Weinehall <david.weinehall@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: James Ausmus <james.ausmus@intel.com>
Reviewed-by: David Weinehall <david.weinehall@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171023224612.27208-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c