Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp352998ybl; Tue, 7 Jan 2020 07:15:17 -0800 (PST) X-Google-Smtp-Source: APXvYqx1O/7aJpwV69vdZ2zCT5b6OeNsqMsK/n2mK8PbVSZ6MpLseVfCIYaLNhg7grly7Bdeu+VI X-Received: by 2002:a9d:65cb:: with SMTP id z11mr220635oth.348.1578410117166; Tue, 07 Jan 2020 07:15:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578410117; cv=none; d=google.com; s=arc-20160816; b=Q5DxWhxttZePo0NO5TUfpDijT7NDE/bp/LyD/xzPGOoCPFAH+KqvIuuHSe6s5iBLG6 9b3tPkRIFzW4hmi6vN7T/k3jGyejTUmkrn0K8oaD+rPxLnRbTXrfpRjee6beOaJYSZcj wuQQE7ldzX2zwDiLG9ur9wMdl5Im0Dr5PLWZEGU8ltUH4kxUrINeGgHb9Y+Om2k+662X Ly8lo7eFpTBIZCM5ssqWoId2+x1FNY5a3mAd03gTO70J9A2N7LTED5DBQNAKZYNYeeF3 uS+fxY3RokkC0kVnrmg+rK4AMaZm7jRvLbruhznbgAdjx05rpNaZtDDrF+aSYzESgk6d 1/Rg== 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=Obgi+vCF9pVe8CuCXB1svKkTLEs23TqkO84K9EA0/yU=; b=RLHuXJgtqQ+tN5WUoMeL2g7nWqLfXQk9xB4QnkTkv5NTLIpvkSJOiqv1eQBSPvCnMG PRzp8rmFAG/sVVztIZcvamz0XCwnGWyzsWn+1vQoQeVdz795931oOIymmJbpM1OLEjGo u0u4bCQ643/3QohBfo7KRlx+RVNsVjean2yOTRPAkRYuuaH6eWt4ozpQyCc77+OEbAMk SIxVZL0lVMKnH4/HVGpa+g40ZM7w3DD9ZvbYbq1riRRrtcaxzppd69yQRcsKNiqcOvhl 68FHuiXy//3VqtW5g8DR9YO0q1szyh55ULL4bnw6kyA1k51Vvvuc4EHMuS1BKEHilM6d lYjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MAPHBKMf; 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 l20si38265522otd.292.2020.01.07.07.15.03; Tue, 07 Jan 2020 07:15:17 -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=MAPHBKMf; 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 S1728368AbgAGPN5 (ORCPT + 99 others); Tue, 7 Jan 2020 10:13:57 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34327 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727559AbgAGPNz (ORCPT ); Tue, 7 Jan 2020 10:13:55 -0500 Received: by mail-wr1-f67.google.com with SMTP id t2so54356067wrr.1 for ; Tue, 07 Jan 2020 07:13:53 -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=Obgi+vCF9pVe8CuCXB1svKkTLEs23TqkO84K9EA0/yU=; b=MAPHBKMf0l/6lU3qY7rRYUfyprgVU/WTvLEC44WSQ7ESU1bz2EKtEdyEzzY3fON8Wl HF+b3Z30x+uLjBFqzyjc4QL8hgvdjjxNJ27eCtZN7OxKlVv9TKb/ixRtJ0Pn8pEm/IhN nhsi9U8+nAclmAd0VvjmV/WfeikvlnNAaiucvNZuXe6SXP7gGYJaSiqBAif7s88//+mY tIdTaw6y1sAwocJDDsaOGaF2Iia3lh9FJoypKqBP/1rsFmrdEViNO/cpm9wMiKhjFPce Ix9Ls9liLZu4ByPa0WieLhf/SC+777W3L9UdIwagUJZeumt+9pt9BQ+4VVBc6DPdeMwo eBFw== 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=Obgi+vCF9pVe8CuCXB1svKkTLEs23TqkO84K9EA0/yU=; b=rWMMm3u+5vM4NDYw2p6w1n/X1Wv+smYpRGrmqAkc0kxm/UHeF6/WH3u6py1J+d47gq L9vcOfKsKWPLGUD50Qr0GIK19g6gko8IrOg07LG4pOR+CbB5BCv2XuSNT+McxoNnlhfp ZE6HGelmjaypNnpEO+AfmO1+21cmy/IEKcSLUbT4+kpU7Oh9mrbyj0NBrJwobCMqssVO xyqp+3HvVmVYs50jSPRr0F6sfT+IQcfkeB6sppyMad+3+XGv+oWJDBoh3B9NP1UEP4jj XlplJLcWW1A4NDVi3xv4I3DgsfzH0kdb3TXQnQ5npmxIW0WW0EUcP3S9Kif9Z0bwccrW SjUg== X-Gm-Message-State: APjAAAV8U0aPsVMx361sn6fdBD7WA6brbcqMqEVu1TUK2lHLkUrlUTQw +nnl4nqMkO+xGj8WUr1avAk= X-Received: by 2002:a5d:6886:: with SMTP id h6mr96763900wru.154.1578410033098; Tue, 07 Jan 2020 07:13:53 -0800 (PST) Received: from wambui.zuku.co.ke ([197.237.61.225]) by smtp.googlemail.com with ESMTPSA id c4sm27076664wml.7.2020.01.07.07.13.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 07:13:52 -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: seanpaul@chromium.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] drm/i915: use new struct drm_device based macros. Date: Tue, 7 Jan 2020 18:13:33 +0300 Message-Id: <7142083e727ab400797c8a90a2196ee37a22c201.1578409433.git.wambui.karugax@gmail.com> 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 Convert to the use of new struct drm_device based logging macros to replace the use of the printk based macros in i915/intel_uncore.c Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/intel_uncore.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c index 94a97bf8c021..5f2cf6f43b8b 100644 --- a/drivers/gpu/drm/i915/intel_uncore.c +++ b/drivers/gpu/drm/i915/intel_uncore.c @@ -359,7 +359,8 @@ static void __gen6_gt_wait_for_fifo(struct intel_uncore *uncore) if (wait_for_atomic((n = fifo_free_entries(uncore)) > GT_FIFO_NUM_RESERVED_ENTRIES, GT_FIFO_TIMEOUT_MS)) { - DRM_DEBUG("GT_FIFO timeout, entries: %u\n", n); + drm_dbg(&uncore->i915->drm, + "GT_FIFO timeout, entries: %u\n", n); return; } } @@ -432,7 +433,7 @@ intel_uncore_forcewake_reset(struct intel_uncore *uncore) break; if (--retry_count == 0) { - DRM_ERROR("Timed out waiting for forcewake timers to finish\n"); + drm_err(&uncore->i915->drm, "Timed out waiting for forcewake timers to finish\n"); break; } @@ -490,7 +491,7 @@ gen6_check_for_fifo_debug(struct intel_uncore *uncore) fifodbg = __raw_uncore_read32(uncore, GTFIFODBG); if (unlikely(fifodbg)) { - DRM_DEBUG_DRIVER("GTFIFODBG = 0x08%x\n", fifodbg); + drm_dbg(&uncore->i915->drm, "GTFIFODBG = 0x08%x\n", fifodbg); __raw_uncore_write32(uncore, GTFIFODBG, fifodbg); } @@ -562,7 +563,7 @@ void intel_uncore_resume_early(struct intel_uncore *uncore) unsigned int restore_forcewake; if (intel_uncore_unclaimed_mmio(uncore)) - DRM_DEBUG("unclaimed mmio detected on resume, clearing\n"); + drm_dbg(&uncore->i915->drm, "unclaimed mmio detected on resume, clearing\n"); if (!intel_uncore_has_forcewake(uncore)) return; @@ -1595,8 +1596,8 @@ static int intel_uncore_fw_domains_init(struct intel_uncore *uncore) spin_unlock_irq(&uncore->lock); if (!(ecobus & FORCEWAKE_MT_ENABLE)) { - DRM_INFO("No MT forcewake available on Ivybridge, this can result in issues\n"); - DRM_INFO("when using vblank-synced partial screen updates.\n"); + drm_info(&i915->drm, "No MT forcewake available on Ivybridge, this can result in issues\n"); + drm_info(&i915->drm, "when using vblank-synced partial screen updates.\n"); fw_domain_fini(uncore, FW_DOMAIN_ID_RENDER); fw_domain_init(uncore, FW_DOMAIN_ID_RENDER, FORCEWAKE, FORCEWAKE_ACK); @@ -1683,8 +1684,7 @@ static int uncore_mmio_setup(struct intel_uncore *uncore) mmio_size = 2 * 1024 * 1024; uncore->regs = pci_iomap(pdev, mmio_bar, mmio_size); if (uncore->regs == NULL) { - DRM_ERROR("failed to map registers\n"); - + drm_err(&i915->drm, "failed to map registers\n"); return -EIO; } @@ -1807,7 +1807,7 @@ int intel_uncore_init_mmio(struct intel_uncore *uncore) /* clear out unclaimed reg detection bit */ if (intel_uncore_unclaimed_mmio(uncore)) - DRM_DEBUG("unclaimed mmio detected on uncore init, clearing\n"); + drm_dbg(&i915->drm, "unclaimed mmio detected on uncore init, clearing\n"); return 0; @@ -2072,9 +2072,10 @@ intel_uncore_arm_unclaimed_mmio_detection(struct intel_uncore *uncore) if (unlikely(check_for_unclaimed_mmio(uncore))) { if (!i915_modparams.mmio_debug) { - DRM_DEBUG("Unclaimed register detected, " - "enabling oneshot unclaimed register reporting. " - "Please use i915.mmio_debug=N for more information.\n"); + drm_dbg(&uncore->i915->drm, + "Unclaimed register detected, " + "enabling oneshot unclaimed register reporting. " + "Please use i915.mmio_debug=N for more information.\n"); i915_modparams.mmio_debug++; } uncore->debug->unclaimed_mmio_check--; -- 2.24.1