Received: by 10.192.165.156 with SMTP id m28csp1277209imm; Wed, 11 Apr 2018 16:05:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx48H3lY2wTPLFLOVmmQ1stYDXqgNamlE0McKv18oANgORvtEpcFBA5hkLIQ0aXDvK9vfG2X4 X-Received: by 2002:a17:902:8f8c:: with SMTP id z12-v6mr7199126plo.400.1523487910483; Wed, 11 Apr 2018 16:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523487910; cv=none; d=google.com; s=arc-20160816; b=JdnMy9t1E1pkKOQxR8QeIHDnyTBzPsM7BQAvVdtvnnWIXFeFLFMcMsSLgPahsVGzS+ U5kpgZvNHZwSk4RL5OazdjmHNz/ft631Aq82lQ/m4DYN761VnTkt4UTyWykshTorZy3N 5ktzqpa11CjvFSAXoHtpnRNhmWpS1/e+ZRP7YUq9ap/ZxfXJSsBanGsXSfQegOvHp85e tdwyqMQ/WOXVKtSrTvvOE7ertgkhybiz373A+TvpU6e8KFwFjtbfoA19nHoGgifNv0jK Xl7ZiwWrWtCHUaviDZkIVytJeYbWQyGRLpGEWbJZpuBBC5/9rpb/TMD3zEgwPb/oDviO I1hQ== 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:message-id:date:subject:cc:to:from :arc-authentication-results; bh=nEPnrCBxTCUp8zy/EHth0I82PzfvaiWNq6JVJ3ia4oI=; b=gY49dtJsS74uoBPbMYAY6CoybENfy4lLtB2wOon8rVmnEApxfmBszV+azrvXEaIi5Q 1zFyvT3hHcvOIjv/RKWHPc7dADJo+PMlDgr3CBoU887TeczNGBcujywFAblHQ9pqrbY/ o5mFEA0wB2crTLHIVHtFOolkvuJOoQViyIVtjCH1z/fCHlyXiEVAY674TFsQiDJL4QSS igNltN3UOKKutqMFS295pasHOeeNBMivK6JFPsgEKdoqmPXSQDkQ8CCmcIS+ZM50KZnm SJfPosvFV9dlD1VMrtUhK5ktiTYFGGDrMiLshh33pQDftOTaLC2UTMy+5PHEVsE5yy6C ETjg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n29si1288926pgd.778.2018.04.11.16.04.33; Wed, 11 Apr 2018 16:05:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752389AbeDKWzW (ORCPT + 99 others); Wed, 11 Apr 2018 18:55:22 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39906 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751777AbeDKWzT (ORCPT ); Wed, 11 Apr 2018 18:55:19 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3508242EF187; Wed, 11 Apr 2018 22:55:19 +0000 (UTC) Received: from malachite.bss.redhat.com (dhcp-10-20-1-55.bss.redhat.com [10.20.1.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id DAAD92026985; Wed, 11 Apr 2018 22:55:18 +0000 (UTC) From: Lyude Paul To: intel-gfx@lists.freedesktop.org Cc: Manasi Navare , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 01/10] drm/atomic: Print debug message on atomic check failure Date: Wed, 11 Apr 2018 18:54:38 -0400 Message-Id: <20180411225501.26751-2-lyude@redhat.com> In-Reply-To: <20180411225501.26751-1-lyude@redhat.com> References: <20180411225501.26751-1-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 11 Apr 2018 22:55:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 11 Apr 2018 22:55:19 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lyude@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; + } if (!state->allow_modeset) { for_each_new_crtc_in_state(state, crtc, crtc_state, i) { -- 2.14.3