Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3938930ybl; Mon, 13 Jan 2020 05:20:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzDA8AO4CmWBGZmMOve8sGxVJA1lSxF3R15rwKHKcwQpn4T2bkJ780dNzhsiD+zylazEgj+ X-Received: by 2002:a05:6830:114f:: with SMTP id x15mr12502296otq.291.1578921626726; Mon, 13 Jan 2020 05:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578921626; cv=none; d=google.com; s=arc-20160816; b=YPP+fSTqluTPFJL0QXOWqfl25FyJc+IBKsGqDYiWfVsW1ivMLj5kavuVKFbcspwALj ByrOzwb+IPR6WgNTISPNd/TQNXVk5tYRC9d5MxvQQR+WMwf+t//Pd/iH0XyDfPHS2QEH vyeR3URshIO5Py9C/kGMUhti70rSUqpa1sPsgavSVyO8IxzXjPjoqCWZeKoJVHnFbGHe 1wWkGCcQDw5u6gV6oCJqlSSXwghGRYhr/DPoBqceC0HVpPsgGQUcTi1FRd3PJD09Oni3 d4SJ3Fzg43g1NrFTBVryuHauwaQLbSqJPzRrJlBHnFumkgFpK/NEgHVsHp0KNtMBAX/6 3arg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature; bh=tLJdz8uHGTwFRe/HfbeIyswyOes5Ps1w2SyZzjK0TNI=; b=O+at55QPhxKUlWgOiUFOCdQMUTCAwib62dLQVhGaRVDh7QhCz4GDaSDDyu0VnKy6U+ xqqYGxD1SxgLqWQdEz2PK6nqZ2z42Y2dJxSCqhtKYbtQKsNXSVLNd/ZdltX57INMrUCK V+rmeKXApyV+xakwKYX1iYT+0Q2qEOkHUCoR2kI7Fw1UrKzDKzkUzMet0qNywHlphFaY VjUy2egcUh3TVPELjdc6yePURD5iZW7enoje2L2MC2cWRreGCrCUtDJBKlCBRU54/zSr wtL4XGq4Ij5uLlRunPJVRW6VoraoBzcpVD7uas9m4y+lerSAjUpAsYLI52UaMyBhyqmf Xrlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oJ30OfnC; 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 g16si6733724otj.79.2020.01.13.05.20.12; Mon, 13 Jan 2020 05:20:26 -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=oJ30OfnC; 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 S1728783AbgAMNRr (ORCPT + 99 others); Mon, 13 Jan 2020 08:17:47 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39013 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728646AbgAMNRr (ORCPT ); Mon, 13 Jan 2020 08:17:47 -0500 Received: by mail-wr1-f68.google.com with SMTP id y11so8527295wrt.6 for ; Mon, 13 Jan 2020 05:17:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=tLJdz8uHGTwFRe/HfbeIyswyOes5Ps1w2SyZzjK0TNI=; b=oJ30OfnCy02mfkWDYfM6xJM6U4Ab0kvMs5beVhw0Sqr61CvOixDWeh8PqjtINQwt0d A867CVEQp98L5jJ1b2/31cz6mXrjuWnk5GF4jIfjSqYN1cQBkWuRe2RltVQrUwNvdqPB XGf1fUv+QJXpdfnxcNt29RsAgRM3QVOVij+9WBaIxSHOOh+uPGvZxG0Ef9ftujiYJqMW 14sGUu3FksxgHoT0X9xHSxhOGYp/yPH0v4ouRv0yK6hMh2yiysnDuHibM4s94DSDTj+j +v3cGQ5D3qRo3o5NCtX0FDeN15dRuGewPgYuAZB5DvuHtLuN17Nr4fjC/2aDFfMO2W9j wWsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=tLJdz8uHGTwFRe/HfbeIyswyOes5Ps1w2SyZzjK0TNI=; b=LfStC01TL1hcUNX71DSYjAg7Q1N4XXuUL66yBy7cnrBQTddaJ98N/22zzcBbkrcQE/ KsM4kWtrC4Kd8gkwGsteUs2GUcdfCQfNKpVhk4eda9U0Zm/dyZd+qbtKLN0K7Ao2zerj IJAUyH3m+Tf0qPBnFOv8IrnvKCFhvk7jIWpE2H/c+PfaUXYtuhkLlAq9CiPpQjgyuDzh SgkDXCxZlWUicMbVuxO4lZKpfc0Chg5GTCatsET2lWUMl46R7dQgfE9p2glznerJph55 RSc9M3Hm+x1v9U5cKIoXtQLBXygOs4uMhi09IIzAL5khtJmSLnRZJxXpt7flvw7/Qvgt uJCA== X-Gm-Message-State: APjAAAUDNjryFvQxJgi3PXw6PsWTJbXZBzq6p0lnbTf0VimLV5uqvY5Z bf4XvfdcrAcKnlANXEq7kHY= X-Received: by 2002:adf:e74a:: with SMTP id c10mr18004142wrn.386.1578921465172; Mon, 13 Jan 2020 05:17:45 -0800 (PST) Received: from wambui.local ([197.237.61.225]) by smtp.googlemail.com with ESMTPSA id b18sm15054407wru.50.2020.01.13.05.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 05:17:44 -0800 (PST) From: Wambui Karuga X-Google-Original-From: Wambui Karuga Date: Mon, 13 Jan 2020 16:17:11 +0300 (EAT) To: Jani Nikula cc: Chris Wilson , Wambui Karuga , airlied@linux.ie, daniel@ffwll.ch, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, sean@poorly.run, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915: convert to new logging macros based on struct intel_engine_cs. In-Reply-To: <87lfqbmudl.fsf@intel.com> Message-ID: References: <20200113111025.2048-1-wambui.karugax@gmail.com> <157891427231.27314.12398974277241668021@skylake-alporthouse-com> <87lfqbmudl.fsf@intel.com> User-Agent: Alpine 2.21.99999 (LNX 375 2019-10-29) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jan 2020, Jani Nikula wrote: > On Mon, 13 Jan 2020, Chris Wilson wrote: >> Quoting Wambui Karuga (2020-01-13 11:10:25) >>> fn(...) { >>> ... >>> struct intel_engine_cs *E = ...; >>> +struct drm_i915_private *dev_priv = E->i915; >> >> No new dev_priv. > > Wambui, we're gradually converting all dev_priv variable and parameter > names to i915. > Okay, I can change to that - dev_priv seemed more used in the files I changed. Thanks, wambui >> There should be no reason for drm_dbg here, as the rest of the debug is >> behind ENGINE_TRACE and so the vestigial debug should be moved over, or >> deleted as not being useful. >> >> The error messages look unhelpful. > > I don't think you can expect any meaninful improvements on the debug > message contents from Wambui without detailed help at this point. > >> >>> if ((batch_end - cmd) < length) { >>> - DRM_DEBUG("CMD: Command length exceeds batch length: 0x%08X length=%u batchlen=%td\n", >>> - *cmd, >>> - length, >>> - batch_end - cmd); >>> + drm_dbg(&dev_priv->drm, >>> + "CMD: Command length exceeds batch length: 0x%08X length=%u batchlen=%td\n", >> >> No. This is not driver debug. If anything this should be pr_debug, or >> some over user centric channel. > > I'm sorry, I still don't understand your reasoning here. > > BR, > Jani. > > -- > Jani Nikula, Intel Open Source Graphics Center >