Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp906961ybl; Wed, 8 Jan 2020 07:50:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwsuEFimsei5j7+i5xEsdQFp6nKafEVWJiHu+kdkq1D/VSZ969yiHTc5bglxUc1FhhYlYtb X-Received: by 2002:aca:b187:: with SMTP id a129mr3556459oif.175.1578498651847; Wed, 08 Jan 2020 07:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578498651; cv=none; d=google.com; s=arc-20160816; b=TJ0912SHnKdzUHsSgnVvbfXQYTHakohV+HhV7yWKDtJRIOY1cQ5RGLXBVB1RCAWaGY LL46LUqNj/GLnp8a6JtCZTvqJog4d6fozCm8+WBNcB9BElc058oxFcdZlwIXoK03P7hS LP+0PBkAXQ6DkYW1hVjNscxKwYnjPxhLEya9O+OgqSP1AVkpJkGjdOWb4gP4u7TtzcTn 3eOFDhUEKwpS1MaV3Z0MJAhhhYWsXsMBNdWcy39JXlUp0YTK8HJ7DVg8tlevXG/8F3XF oRuSV/vVBbgVyCPwZh5RN1VhHlVrRgOt2Fmz73toOHn0ws4RT0Rq5H3aXwWVKd0pG5tP v1Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=vOcVe3jjENw7RPLQk7RAoaX2VgARYFYoD4MyQyPhLPw=; b=bNcTM8uheoh1QHSfSBXXbmhR8o0T78EV+P19M3bwOCbpjsq/wtJpk6ohPAoo9SzxfN VCVH8+T6Qw1R77MJGwISRa8+RHAIRfPJj38uxZmVAkfHI0bYG7ZjP2OO4vkwt7CNIGNY FlSIjFe4N1nGF51tVtSPAPi2+kpAWw1AtSBmjUNISZPpUSQlP+diqw8Lg2HjEzi9LZKr raikx47VYpeQpanlnzUYWGkZQHyuo03hZwWZy3N0rjM0sAH6FaQFQtydVHZxD3RWR/Ji ap5UC5vdASSl0F3wLvrF5Vs4xx3WhQ5icqpGu4kmJqOfQmzVt55Z44IsuEZeLfUS/GhW L0Ug== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k21si1881931otr.1.2020.01.08.07.50.38; Wed, 08 Jan 2020 07:50:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728215AbgAHOxV convert rfc822-to-8bit (ORCPT + 99 others); Wed, 8 Jan 2020 09:53:21 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:61246 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727164AbgAHOxV (ORCPT ); Wed, 8 Jan 2020 09:53:21 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 19810076-1500050 for multiple; Wed, 08 Jan 2020 14:53:11 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Jani Nikula , Joonas Lahtinen , Wambui Karuga , airlied@linux.ie, daniel@ffwll.ch, rodrigo.vivi@intel.com From: Chris Wilson In-Reply-To: <87v9pmovmx.fsf@intel.com> Cc: intel-gfx@lists.freedesktop.org, seanpaul@chromium.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <157847199686.4725.87481257304852182@jlahtine-desk.ger.corp.intel.com> <8736cqs2uf.fsf@intel.com> <157848029770.2273.9590955422248556735@skylake-alporthouse-com> <87v9pmovmx.fsf@intel.com> Message-ID: <157849519000.2273.18061101721039254369@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [Intel-gfx] [PATCH 1/5] drm/i915: convert to using the drm_dbg_kms() macro. Date: Wed, 08 Jan 2020 14:53:10 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jani Nikula (2020-01-08 14:44:38) > On Wed, 08 Jan 2020, Chris Wilson wrote: > > Quoting Jani Nikula (2020-01-08 09:40:40) > >> On Wed, 08 Jan 2020, Joonas Lahtinen wrote: > >> > Quoting Wambui Karuga (2020-01-07 17:13:29) > >> >> Convert the use of the DRM_DEBUG_KMS() logging macro to the new struct > >> >> drm_device based drm_dbg_kms() logging macro in i915/intel_pch.c. > >> >> > >> >> Signed-off-by: Wambui Karuga > >> >> --- > >> >> drivers/gpu/drm/i915/intel_pch.c | 46 +++++++++++++++++--------------- > >> >> 1 file changed, 24 insertions(+), 22 deletions(-) > >> >> > >> >> diff --git a/drivers/gpu/drm/i915/intel_pch.c b/drivers/gpu/drm/i915/intel_pch.c > >> >> index 43b68b5fc562..4ed60e1f01db 100644 > >> >> --- a/drivers/gpu/drm/i915/intel_pch.c > >> >> +++ b/drivers/gpu/drm/i915/intel_pch.c > >> >> @@ -12,90 +12,91 @@ intel_pch_type(const struct drm_i915_private *dev_priv, unsigned short id) > >> >> { > >> >> switch (id) { > >> >> case INTEL_PCH_IBX_DEVICE_ID_TYPE: > >> >> - DRM_DEBUG_KMS("Found Ibex Peak PCH\n"); > >> >> + drm_dbg_kms(&dev_priv->drm, "Found Ibex Peak PCH\n"); > >> > > >> > Did we at some point consider i915_dbg_kms alias? That would just take > >> > dev_priv (or i915, as it's called in newer code). It would shorten many > >> > of the statements. > >> > > >> > i915_dbg_kms(dev_priv, ...) or i915_dbg_kms(i915, ...) > >> > >> I'd rather use the common drm logging macros. I thought about adding > >> i915 specific ones only if the drm device specific logging macros > >> weren't going to be merged. > > > > Why do they even exist? Why isn't it enough to do > > #define drm_info(drm, fmt, ...) dev_info(&(drm)->dev, fmt, ##__VA_ARGS) ? > > It *is* enough to do that, and that's essentially what the new macros > do, just with an extra helper macro in between. /o\ Mistook __drm_printk() for the older drm_dev_printk() -Chris