]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915/skl+: Use plane size for relative data rate calculation
authorKumar, Mahesh <mahesh1.kumar@intel.com>
Wed, 6 Apr 2016 15:26:39 +0000 (08:26 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 6 Apr 2016 17:49:56 +0000 (10:49 -0700)
commita280f7dd9f1a85eed242d0f62498bfc11520a1a3
treecdbf8399ffd50884d3bc8e28e1e7e9b2b8fd2a5c
parentd252bf68b75792108ae2821c3a6e1cdc58e88cb9
drm/i915/skl+: Use plane size for relative data rate calculation

Use plane size for relative data rate calculation. don't always use
pipe source width & height.
adjust height & width according to rotation.
use plane size for watermark calculations also.

v2: Address Matt's comments.
    Use intel_plane_state->visible to avoid divide-by-zero error.
    Where FB was present but not visible so causing total data rate to
    be zero, hence divide-by-zero.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93917
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94044
Cc: drm-intel-fixes@lists.freedesktop.org
Signed-off-by: Kumar, Mahesh <mahesh1.kumar@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459956399-1296-1-git-send-email-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_pm.c