Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp564637ybz; Wed, 15 Apr 2020 14:07:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJhekPwWIuYxwiwAGDeBtqXJqFGN9uMXAJAJsB54J3I8ZE8TwZ8WcF4MMD8RXyR2J1VyBju X-Received: by 2002:a50:cf05:: with SMTP id c5mr21089845edk.330.1586984858431; Wed, 15 Apr 2020 14:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586984858; cv=none; d=google.com; s=arc-20160816; b=sCWCok2tgHYJ9ELxr4JhUOa2n272Bof81m7LkLeWkKGXKx+cYQqFOhScZsUxORz+/5 sSPHAWatb3M/1ZfvtrVYq+FMCb4ExrDpGPRBHlQxxmrNqwBIDFIKOpUR2hFPRdj0n54N 9g74E3VnkfTNktPj/7KojkgU40p26rRckgMbUi7NthfKUD386xqDIa6yw5ZQKZu0wapS rJwbTikCENQAMb5WyGrjA8mjKH2tWwdHVRfjaMqEe+ZwkYoiXb9YezSlTsxAPYy23qCf 3WUYlfVNEQl5fRL4Bi1wqxdkdx229kaf1alrLHL4nDATKKXleLKw/SryZNghavl+zcgH p8fg== 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:ironport-sdr :ironport-sdr; bh=YgY5NhaEcTR3maU0wemyGE0BgT+rLhd7RlAmqj5zMHc=; b=qNh0/fUnBaV/7xIKyV6kCINiD7yNxMuYAXzdesZ5psCfTH+E+ExIxGLY04siALrbyA zjZQDOhCrqAdKv1uw9kXnniUC9XDJo3+kRHL9X7OMbgC8fezcps9lapKfxSDhv1qvxad du7WcMJkz6oBWmqMPn0taknYl/ekVX8ywpLiISok3X6BU65hLDB9x9CucSzfWvcJBoxe 7Y6lfW7IPhDy5L224EgP8KbDqvBhvif5oSgvVJYZiIG8aaxm6uyh0ezdfAobe8TafzFX YpHXOSzlu7ubtSxUXw7KOMNA5xOt3APS6kkmgaCXcgxxqrJfGBiKF8ywVq3FRxPrjUi+ LA/A== 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 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id e1si6882781edr.192.2020.04.15.14.07.14; Wed, 15 Apr 2020 14:07:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2438888AbgDNLEP (ORCPT + 99 others); Tue, 14 Apr 2020 07:04:15 -0400 Received: from mga03.intel.com ([134.134.136.65]:9916 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438877AbgDNLEB (ORCPT ); Tue, 14 Apr 2020 07:04:01 -0400 IronPort-SDR: G87AT8iLcfYbBdzAQwiatCEFDe2HKn61HykUIbJmMTY7JbhckbMoIyMUi8lP1r+NUIjkscWGko qr4O7WRcKQcQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 04:03:59 -0700 IronPort-SDR: xN6M04+6XoH3Nl0a+kETp45TvlkFOiB8Z1PLiDQ1H2p9QOt7JBpVVKHg2GSDLdNi1UnytuVl2H rE2ACbZErW7Q== X-IronPort-AV: E=Sophos;i="5.72,382,1580803200"; d="scan'208";a="427024859" Received: from mdoerbec-mobl.ger.corp.intel.com (HELO localhost) ([10.252.38.76]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 04:03:56 -0700 From: Jani Nikula To: Aurabindo Pillai , maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@linux.ie, daniel@ffwll.ch Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm: dpcd: Print more useful information during error In-Reply-To: <20200409195200.5483-1-mail@aurabindo.in> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200409195200.5483-1-mail@aurabindo.in> Date: Tue, 14 Apr 2020 14:03:53 +0300 Message-ID: <87o8rumiqu.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 Thu, 09 Apr 2020, Aurabindo Pillai wrote: > When DPCD access errors occur, knowing the register and request > associated with the error helps debugging, so print the > details in the debug message. > > Signed-off-by: Aurabindo Pillai > --- > drivers/gpu/drm/drm_dp_helper.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c > index a5364b519..545606aac 100644 > --- a/drivers/gpu/drm/drm_dp_helper.c > +++ b/drivers/gpu/drm/drm_dp_helper.c > @@ -257,7 +257,9 @@ static int drm_dp_dpcd_access(struct drm_dp_aux *aux, u8 request, > err = ret; > } > > - DRM_DEBUG_KMS("Too many retries, giving up. First error: %d\n", err); > + DRM_DEBUG_KMS("dpcd: Too many retries, giving up. First error: %d\t" > + "address: %x\trequest: %x\t size:%zu\n", > + err, msg.address, msg.request, msg.size); Nitpicks, please don't add tabs, maybe use commas instead, and please add 0x in front of hex. BR, Jani. > ret = err; > > unlock: -- Jani Nikula, Intel Open Source Graphics Center