Commit c3f81563 authored by Jani Nikula's avatar Jani Nikula

drm/i915/bw: use struct drm_device based logging

Convert all the DRM_* logging macros to the struct drm_device based
macros to provide device specific logging.

No functional changes.

Cc: Wambui Karuga <wambui.karugax@gmail.com>
Reviewed-by: default avatarWambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200402114819.17232-7-jani.nikula@intel.com
parent 59cbc8ec
...@@ -338,16 +338,17 @@ void intel_bw_crtc_update(struct intel_bw_state *bw_state, ...@@ -338,16 +338,17 @@ void intel_bw_crtc_update(struct intel_bw_state *bw_state,
const struct intel_crtc_state *crtc_state) const struct intel_crtc_state *crtc_state)
{ {
struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
struct drm_i915_private *i915 = to_i915(crtc->base.dev);
bw_state->data_rate[crtc->pipe] = bw_state->data_rate[crtc->pipe] =
intel_bw_crtc_data_rate(crtc_state); intel_bw_crtc_data_rate(crtc_state);
bw_state->num_active_planes[crtc->pipe] = bw_state->num_active_planes[crtc->pipe] =
intel_bw_crtc_num_active_planes(crtc_state); intel_bw_crtc_num_active_planes(crtc_state);
DRM_DEBUG_KMS("pipe %c data rate %u num active planes %u\n", drm_dbg_kms(&i915->drm, "pipe %c data rate %u num active planes %u\n",
pipe_name(crtc->pipe), pipe_name(crtc->pipe),
bw_state->data_rate[crtc->pipe], bw_state->data_rate[crtc->pipe],
bw_state->num_active_planes[crtc->pipe]); bw_state->num_active_planes[crtc->pipe]);
} }
static unsigned int intel_bw_num_active_planes(struct drm_i915_private *dev_priv, static unsigned int intel_bw_num_active_planes(struct drm_i915_private *dev_priv,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment