Received: by 10.192.165.148 with SMTP id m20csp5055222imm; Tue, 24 Apr 2018 12:55:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+wgQmlgXfYCqfbUJ9Iy2tb5eLIVuXuUkggokKLSggXcL77ef+yus8zzXc1GB/rmuSrCDYc X-Received: by 2002:a17:902:bf41:: with SMTP id u1-v6mr21939743pls.257.1524599706968; Tue, 24 Apr 2018 12:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524599706; cv=none; d=google.com; s=arc-20160816; b=f1vu1+L5ZewwsRdPt2FO5sgzr8sl7FrjyCFs1Ps79RywMgmoQA0fDoL9sOfFYmGXrt 0gP3/8Y+sAzO2mN9x9QQnfrnB/5KbhmHdU7TsMqw/Bwlq3HIsQeedSTE+ctIv/EGBaL0 HQal2MbSeP8In275e23JTeB8rziD0kc13U1ipc2LnpFIBa2b+Ow+YsCvPViZ7cJSxb85 AfEe+7tU722SCb98UyfzsmHsyYaQKgmyFuJjfoksWsc8T1dZTJwumVf7fGtvy2AYziaT P2yx/AlTEURfqtW/Z8TE3uRMsPg/T1LwSGM1H47Dp/wD2QFNYLsMEl34wqmJG3I5oJL+ qKkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:reply-to:from:subject:message-id :arc-authentication-results; bh=KJaiG8Fw9AcMQnUMpMSELeIbeZrb1/UcgYCuqAIsC0M=; b=J2xJzp6l12H9EH0PcqoB5bzMDILd7aeyC1zeSdwO0dDFETT+oufss6dwHENNkFTsKd nitnrsl7VTO9O9RAkxPDsiL23BIoW+TY98vo0BZWLsy1Nd41wiek53jz4CWXk4J9KVFh GuIVa4KMAL088nY/gBp7sWFyRTlOeH9mQB9mwlF2fy3TkX0pavldaUmD+Dvh6zWDLbJ9 6HTO422YFA0qlciA715hDmeCBXC2mSZ1Mci2+9VFvf9c3UhjYx6oSooKrk2oI/+ARJGO kZjHV1fehOx3pYW2uyjEpCAGa9R8dEciWg2sXp6M+8VXKfMTXUJfletNibQrPsLdlemb rBHw== 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 31-v6si10131866plk.191.2018.04.24.12.54.51; Tue, 24 Apr 2018 12:55:06 -0700 (PDT) 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 S1751384AbeDXTxZ (ORCPT + 99 others); Tue, 24 Apr 2018 15:53:25 -0400 Received: from mga12.intel.com ([192.55.52.136]:27472 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750778AbeDXTxW (ORCPT ); Tue, 24 Apr 2018 15:53:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2018 12:53:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,324,1520924400"; d="scan'208";a="36127019" Received: from dk-h97m-d3h.jf.intel.com (HELO [10.54.75.17]) ([10.54.75.17]) by orsmga008.jf.intel.com with ESMTP; 24 Apr 2018 12:53:21 -0700 Message-ID: <1524601089.24461.28.camel@dk-H97M-D3H> Subject: Re: [Intel-gfx] [PATCH v8 01/10] drm/atomic: Print debug message on atomic check failure From: Dhinakaran Pandiyan Reply-To: dhinakaran.pandiyan@intel.com To: Lyude Paul Cc: intel-gfx@lists.freedesktop.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Date: Tue, 24 Apr 2018 13:18:09 -0700 In-Reply-To: <20180411234302.2896-2-lyude@redhat.com> References: <20180411234302.2896-1-lyude@redhat.com> <20180411234302.2896-2-lyude@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-04-11 at 19:42 -0400, Lyude Paul wrote: > Does what it says on the label, it's a little confusing debugging atomic > check failures otherwise. > > Cc: Manasi Navare > Cc: Ville Syrjälä > Signed-off-by: Lyude Paul > --- > drivers/gpu/drm/drm_atomic.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c > index 7d25c42f22db..972a7e9634ab 100644 > --- a/drivers/gpu/drm/drm_atomic.c > +++ b/drivers/gpu/drm/drm_atomic.c > @@ -1705,8 +1705,11 @@ int drm_atomic_check_only(struct drm_atomic_state *state) > if (config->funcs->atomic_check) > ret = config->funcs->atomic_check(state->dev, state); > > - if (ret) > + if (ret) { > + DRM_DEBUG_ATOMIC("atomic driver check for %p failed: %d\n", > + state, ret); > return ret; > + } > nit: Would have slightly looked better if the 'ret' check was moved inside the branch for funcs->atomic_check. Reviewed-by: Dhinakaran Pandiyan > if (!state->allow_modeset) { > for_each_new_crtc_in_state(state, crtc, crtc_state, i) {