Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1772391ybl; Thu, 9 Jan 2020 01:09:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyuFWfMNLtFV5PFoVytHwviOP5XfwFfC7dJmf9cNS1H2dKr/qDig80fUpWkuM31czil8OKE X-Received: by 2002:aca:220c:: with SMTP id b12mr2280225oic.55.1578560956248; Thu, 09 Jan 2020 01:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578560956; cv=none; d=google.com; s=arc-20160816; b=lEMgrClty0tX5cOzsKOvIpO9cC7xoWCSi1uL5zuF4D4HGGpQv19zEyoN4Tt1/RKOAy fr6r6ZE/kwWSXqMl5q8ZFR/snh0QIndbl+Qfptyffh2/XJ2/OQpSfjaI+qJjBgzqxP3T fGGN8M1yBqVC2JImJ3N2V8vgqzR5dzbSLvzu/pL5bvX6Of1NjWN7AE3iWjklsQC3hL3V /dB3OxqRrUTLPAZCiO96DTPjPZRYUpfLrjKd8NueaDDoyGiNxdyzgv/Kmnrv8mXXeQcG qrEl15OOb+Tme+3hUrvTh7aQQ7N1df+ao+Td4wnmR3sf0Yq/sgWyFcxPVnTbn5KklgEe PyMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g8+nW7WUiZHp/JTJe3ieEHrqcqpq+rbcRaXX3uhxHvs=; b=gLyaXL90jkdhMeYVY/Dh5qNsKzziC0OIgmHQgPo/fdQCEM8xVYhLXawcDP56THMrCh RNxJWy+/vkmiycx6o0Z0pie/mNKQFxzCInhlC2kPiFxl1d0fM63eciuCHvtfXBmYAv/f qbUnmhR2UCcBwBya0xVYXmJSGEMrTvKLsiabhyvQFN4uEowDatCNevXxEokjlghvK0ab 3rOHeKhs923hQ05axSECDK22qdJ3J2hLZji1PyrYCDRjYrWsfF6+1/fArO6c0ztbAEI4 gegXEJBrT5r6AswHmIkYVoE0NZqSCAQo1Mi5GJBES3mI1d+cew5bHbvObdwp3y6sONii YynQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OC+bfD98; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si4124963otn.297.2020.01.09.01.09.04; Thu, 09 Jan 2020 01:09:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OC+bfD98; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729178AbgAIJHD (ORCPT + 99 others); Thu, 9 Jan 2020 04:07:03 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35228 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729130AbgAIJHC (ORCPT ); Thu, 9 Jan 2020 04:07:02 -0500 Received: by mail-wr1-f66.google.com with SMTP id g17so6522229wro.2 for ; Thu, 09 Jan 2020 01:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g8+nW7WUiZHp/JTJe3ieEHrqcqpq+rbcRaXX3uhxHvs=; b=OC+bfD98D0zbY38YLn1j6UUzuvzFCsCffoXx6rd75N/l27A6rInDg3eqrAq7JhZSfe DG5TH/0OgKZMoNsKVCR/F/6ZHsSuZdI8h7T1WnTUa2RarMO3IpiAncNvcQT5KgsrIXWj ThXdo7sidBhOB/wY6g5Dk7DOGKxzxCzzHPz1qfbfghYVMB46sLHofTAzlAxFm403evhO iUHPp/RTMP1zLjtRwtLJT7ZGYZcFaL31inuCWL38jRxnOD+isDXRSYD/HTysAgCHNrsS z8SlhxOv8pI4DC6jGm5x6ju+zg14BuRzJu1vYod4KgYc0QrnolfPoEpGQdoLItjjWRSj HTyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g8+nW7WUiZHp/JTJe3ieEHrqcqpq+rbcRaXX3uhxHvs=; b=H/AWiVxRia6wh4XC6GVteZaOSv4vwqjACjEJadl0RWSGxsLusDwQm5fHdMq89VapIP o5PYPy6wAWKOuVYVdipmkEmkK4GxZOStjDNsX7QGARftNdaNojXwdB1WuzTkDzvvZyZw 3SoKUJhzwXDfnMqX/TWMk5jxBDDrSNKl5FuueKtgGOs4LDe9XavChCyOerlKVGcs6tCj lzn2A2CZH6kz1JOgDBZT6aXjcQXGWydiobXnL3whwr4DhgRInpZsBKn4B/3/Ir0RLUo2 JLuTX8aDg/SztUpfkEcdniGj9NwDWXjH7l782Om2N2n9gn5x1CEGeWOenkKDhiPnW05f kmlg== X-Gm-Message-State: APjAAAWu1eC7uCeMlzi2HdxX1jgX5qii3WV9Z1bZ/I0l2ve2RqU1nfge hpiFJTSPt4F4wtjuHyjPecc= X-Received: by 2002:adf:fa87:: with SMTP id h7mr9357843wrr.172.1578560821062; Thu, 09 Jan 2020 01:07:01 -0800 (PST) Received: from wambui.zuku.co.ke ([197.237.61.225]) by smtp.googlemail.com with ESMTPSA id i8sm8004734wro.47.2020.01.09.01.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 01:07:00 -0800 (PST) From: Wambui Karuga To: jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, daniel@ffwll.ch Cc: sean@poorly.run, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] drm/i915: conversion to new logging macros in i915/intel_device_info.c Date: Thu, 9 Jan 2020 12:06:44 +0300 Message-Id: X-Mailer: git-send-email 2.24.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This replaces the printk and struct device based logging macros with the new struct drm_device style based logging macros i915/intel_device_info.c. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/intel_device_info.c | 25 +++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_device_info.c b/drivers/gpu/drm/i915/intel_device_info.c index 6670a0763be2..fcdacd6d4aa5 100644 --- a/drivers/gpu/drm/i915/intel_device_info.c +++ b/drivers/gpu/drm/i915/intel_device_info.c @@ -974,10 +974,11 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) sfuse_strap & SFUSE_STRAP_DISPLAY_DISABLED || (HAS_PCH_CPT(dev_priv) && !(sfuse_strap & SFUSE_STRAP_FUSE_LOCK))) { - DRM_INFO("Display fused off, disabling\n"); + drm_info(&dev_priv->drm, + "Display fused off, disabling\n"); info->pipe_mask = 0; } else if (fuse_strap & IVB_PIPE_C_DISABLE) { - DRM_INFO("PipeC fused off\n"); + drm_info(&dev_priv->drm, "PipeC fused off\n"); info->pipe_mask &= ~BIT(PIPE_C); } } else if (HAS_DISPLAY(dev_priv) && INTEL_GEN(dev_priv) >= 9) { @@ -1000,8 +1001,9 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) * in the mask. */ if (enabled_mask == 0 || !is_power_of_2(enabled_mask + 1)) - DRM_ERROR("invalid pipe fuse configuration: enabled_mask=0x%x\n", - enabled_mask); + drm_err(&dev_priv->drm, + "invalid pipe fuse configuration: enabled_mask=0x%x\n", + enabled_mask); else info->pipe_mask = enabled_mask; @@ -1036,7 +1038,8 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) gen12_sseu_info_init(dev_priv); if (IS_GEN(dev_priv, 6) && intel_vtd_active()) { - DRM_INFO("Disabling ppGTT for VT-d support\n"); + drm_info(&dev_priv->drm, + "Disabling ppGTT for VT-d support\n"); info->ppgtt_type = INTEL_PPGTT_NONE; } @@ -1084,7 +1087,7 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv) if (!(BIT(i) & vdbox_mask)) { info->engine_mask &= ~BIT(_VCS(i)); - DRM_DEBUG_DRIVER("vcs%u fused off\n", i); + drm_dbg(&dev_priv->drm, "vcs%u fused off\n", i); continue; } @@ -1096,8 +1099,8 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv) if (INTEL_GEN(dev_priv) >= 12 || logical_vdbox++ % 2 == 0) RUNTIME_INFO(dev_priv)->vdbox_sfc_access |= BIT(i); } - DRM_DEBUG_DRIVER("vdbox enable: %04x, instances: %04lx\n", - vdbox_mask, VDBOX_MASK(dev_priv)); + drm_dbg(&dev_priv->drm, "vdbox enable: %04x, instances: %04lx\n", + vdbox_mask, VDBOX_MASK(dev_priv)); GEM_BUG_ON(vdbox_mask != VDBOX_MASK(dev_priv)); for (i = 0; i < I915_MAX_VECS; i++) { @@ -1108,10 +1111,10 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv) if (!(BIT(i) & vebox_mask)) { info->engine_mask &= ~BIT(_VECS(i)); - DRM_DEBUG_DRIVER("vecs%u fused off\n", i); + drm_dbg(&dev_priv->drm, "vecs%u fused off\n", i); } } - DRM_DEBUG_DRIVER("vebox enable: %04x, instances: %04lx\n", - vebox_mask, VEBOX_MASK(dev_priv)); + drm_dbg(&dev_priv->drm, "vebox enable: %04x, instances: %04lx\n", + vebox_mask, VEBOX_MASK(dev_priv)); GEM_BUG_ON(vebox_mask != VEBOX_MASK(dev_priv)); } -- 2.24.1