Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3870267ybl; Mon, 13 Jan 2020 04:09:37 -0800 (PST) X-Google-Smtp-Source: APXvYqw4YI4Hw2LNkN4FeV1z0UoWlXrOMenud2/ltRNKT0/lfcZaxH5sDgDO0TiJ/1vKZMX6AmCf X-Received: by 2002:a05:6808:8e6:: with SMTP id d6mr11936778oic.78.1578917377042; Mon, 13 Jan 2020 04:09:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578917377; cv=none; d=google.com; s=arc-20160816; b=bKDsX0VI5hVZF5eGkmN9mYlattQ5+iJAU8hZyphxeE4d/ExugJJ6adDLy8nNB7gm2Q wtdPFr3hty8P3ArfIkdxcU30XVs9jVhxTKjJqX2cmR8dR5/1nPx6hy7Tefk1EJVjLNhV erveyZn8XU1jy3TZdWdxVVhSAuE/uC7EmSYOVk59F0tYbqTiQEOI0XBMqbmiwQr8/3Y8 pPl57yNkrSbhXvv/CXqBasVRiITUqbDltGROfB2WGLVX6rNn4QzsmWwjClwTV5KVKZff ZYEyKJKf1SZMGT8Si8iiidC8MbN7ab5Jtwi3fOpmc64fwc3iYaLeJ9PdYmCOwLFiT/1u SiWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=pdnaeDa0RHSplpXvQBwrE/oT8QZbQiSEttQ63MgbIMM=; b=hybNiuwyDnWMZfeeHlRhBskG/lD0r/caW2729TtIgLT1MOe2iQXYdN7i4HuX+V2ydx 3t79FLimRTbR+5ESunwPi8YbHe34Zf9kFIZ/ayq3vvc3gnOucnVVSQd4p+iHBXGj+C1e r5hVLZvV5gxzng0LRK2GJ38iusAZwbh5jdFtUpRg2SK3KL/mbSxy7vLC5XFZqu36/7rS DSMCzJBvz/Ykh+OXJ9Eev4nmgwu3m4X0vHmwgnSwJkgtb01RMpvRJbdNCFJw2dAZhmOz AVkc+2Hit9PyxnajBWusiA2h7M8XIRUqwdungXey5Iz8y5OuDvUV0ytnhSXra8ShLVjk vfYA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28si5411644oij.149.2020.01.13.04.09.21; Mon, 13 Jan 2020 04:09:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728757AbgAMMI3 (ORCPT + 99 others); Mon, 13 Jan 2020 07:08:29 -0500 Received: from mga01.intel.com ([192.55.52.88]:53741 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbgAMMI2 (ORCPT ); Mon, 13 Jan 2020 07:08:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jan 2020 04:08:28 -0800 X-IronPort-AV: E=Sophos;i="5.69,428,1571727600"; d="scan'208";a="217387846" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.161]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jan 2020 04:08:25 -0800 From: Jani Nikula To: Chris Wilson , Wambui Karuga , airlied@linux.ie, daniel@ffwll.ch, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com Cc: 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: <157891427231.27314.12398974277241668021@skylake-alporthouse-com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200113111025.2048-1-wambui.karugax@gmail.com> <157891427231.27314.12398974277241668021@skylake-alporthouse-com> Date: Mon, 13 Jan 2020 14:08:22 +0200 Message-ID: <87lfqbmudl.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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