Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4919467ybl; Tue, 14 Jan 2020 00:00:25 -0800 (PST) X-Google-Smtp-Source: APXvYqx+92trlwcc1wubbE4bO3KIG9vtojZtrbnVS/6oqykC/dHL9GTwGemBuSWS9NI6Mri81Bkd X-Received: by 2002:aca:c692:: with SMTP id w140mr16642384oif.139.1578988825516; Tue, 14 Jan 2020 00:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578988825; cv=none; d=google.com; s=arc-20160816; b=Kh+hXeHVkMwrByM9CNWJR8qK/lhHh0Ou5KVgB/cgS2bsQ5ahWtQL7nLasSVx1zO2OH EtOG3ZQm/CrtEoxpZrn6k2qbqSgr432R5qpEO9Qb66Mn0RsZPyDLr4ZeH/D5bpRPgcdo dGqgLsNotBHShYZEg3vmu7HXH8soyV3HP+NHIHGR80tHhnK85wu7u/oNmf5BUfHGuKrr YQeKj6xbiqN4cFj1UgUIMhYOi4XS3j3Y6HStT3mIbCIeTlfT0asPuhQkvf6urKaVlu5y AFe1ZNCn9p5JdzJy/5wfAMR15hJC7KrSJNr7dBR7hnYnfbt2R/vZkH8U72EZJ1N5Vt9k g9cA== 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=rbig32eOr50Fg3Pl+aEs/mNBrNThyFSHZWhVDQMxVUU=; b=Mwlkq3FTconqcmjwm4kJFljPZBi5IatgpQFvM4Gw2evy4+WAZtJbMsYn7sA4ZsEG5L e/58w2yv0oIGw3j+AaYvgBqepch3HSJmDpOh2hDp0jJKWTwkkLOGb/YIJEwKOLq8hD2A Sde+u7OnmtcXKY3p/E3+iHBOIMIgFjBhZpNtfKMKakZA0DpMOoCUP/4mrm3a06nMmeBc itO+HXyJG/yO8PvxcN5fnRA23bfm79jZ4YFBTG1cTopznZbDtKH9mRCKuzqiEZjmOjyv R+pPyJqOk4vOU3rFIJ93q4Ku2oBjLidTFka5RKwvtRihAKaakWTYomgXBoLB2U5DY65/ n5Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CF/xuhzm"; 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 v12si8514403otn.193.2020.01.14.00.00.13; Tue, 14 Jan 2020 00:00:25 -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="CF/xuhzm"; 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 S1729288AbgANH6R (ORCPT + 99 others); Tue, 14 Jan 2020 02:58:17 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36864 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729160AbgANH6Q (ORCPT ); Tue, 14 Jan 2020 02:58:16 -0500 Received: by mail-wr1-f68.google.com with SMTP id w15so11145738wru.4 for ; Mon, 13 Jan 2020 23:58:14 -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=rbig32eOr50Fg3Pl+aEs/mNBrNThyFSHZWhVDQMxVUU=; b=CF/xuhzmVCRthuwJH06L18yseaKb7oIXNzM152sOtUAKNQ+YGt8p0UuH0t5KvJop+7 CF1e3iJdULcUGDZl+0D+R3UUWIZ3Ytb96EOBDCtkCxq1Yrrnv03SE9t8QoKd8uO5nTDq Tn87CN+c/Yv35vPFg/vlEho5bsYjXmX9QVrcPEEbIAPEuH9IAHc2xbYZ6LG9PizvQy2N xfDC8GCUotkzreEMrT3nZQ0Fd5CiK+pimz6fND0la5j38JuOEbRZ12LeztGSLZId+zjv Ic2HeH7zK+Q3eiYOFQzW6exqSs+6bPVE4dHg7gBMPyCmM1qiv2lex2qajD7Ddqu9H5n9 kv+A== 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=rbig32eOr50Fg3Pl+aEs/mNBrNThyFSHZWhVDQMxVUU=; b=blDXDwDpYpgCtPdalyWxbKCTI+oTga/5sWQl7eNupixouO6WTJLmc8NrwEBnpPRamR 8GMesFetLeuA/JiKuqAn/8nPhdDRxt19d9Q5FflGcSi7JvoVlCaKlfEqB7KSaOHNunFO Tf+pEGo+NwHyd9yHxxZofo+P1TBXuwdbhuVMPgNl/XlSfCfmtdG28ajHea5FZb0+gU28 72JkgKYHHkotmPyIIEcB/obzMfxuPHexz9qd+qXBL1UoMo+tDwrXg9Wt7oq5I5i6rlIk GMB2BR3iuqiCF6vANr+w7zIAehLViOA5NQGB6zmwL6FHLZDL1dhY0Na2LSmLuPttkRII uSuQ== X-Gm-Message-State: APjAAAUuIoRsCXCo47BPztY2+2ityAqOmcFm5we7E0z1o4N29/QYLrkq cA37ycZ8jTFByDwrNiZbLrvz+aFYi9k= X-Received: by 2002:a5d:6ac3:: with SMTP id u3mr24104295wrw.25.1578988694185; Mon, 13 Jan 2020 23:58:14 -0800 (PST) Received: from wambui.local ([154.70.37.104]) by smtp.googlemail.com with ESMTPSA id t131sm17972758wmb.13.2020.01.13.23.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 23:58:13 -0800 (PST) From: Wambui Karuga X-Google-Original-From: Wambui Karuga Date: Tue, 14 Jan 2020 10:58:03 +0300 (EAT) To: Chris Wilson cc: airlied@linux.ie, daniel@ffwll.ch, jani.nikula@linux.intel.com, 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: <157891427231.27314.12398974277241668021@skylake-alporthouse-com> Message-ID: References: <20200113111025.2048-1-wambui.karugax@gmail.com> <157891427231.27314.12398974277241668021@skylake-alporthouse-com> User-Agent: Alpine 2.21.99999 (LNX 375 2019-10-29) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed 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. > > 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. Hey Chris, could you please elaborate on the debugs that should be removed? These patches are for just converting the current debug instances, so removing them might need separate patches. Thanks, -wambui > >> 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. > -Chris >