Received: by 10.192.165.156 with SMTP id m28csp1306894imm; Wed, 11 Apr 2018 16:47:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+uiuNFcV0oSBkWZzGjcPvb2hLQAr1JeHRta0XrpjVTgEjbyvaix0O4w0MajQPaszAkTrHp X-Received: by 10.98.152.217 with SMTP id d86mr5743991pfk.18.1523490453393; Wed, 11 Apr 2018 16:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523490453; cv=none; d=google.com; s=arc-20160816; b=tX1E7vlhEHPYdff01DOLFCoeggzcTYWoMAg3HWx9eyBjuIaK4Um+XvFe/K5nKSBqVu 2SErOCR67ggS1XSTnqw0o/FSh3g5QoYRLH1aYg10bQ3en/PFzM95NLkafLN7gnqHhGxO 2zs4N6xbFZGG3LftTFYI2tS52pBsJG21EF5N73X9Q6tY7L3hQKwUzUTLqBrJRI4fsO7B pYR2hJyLhEjcTB8v1CG9ZjMJIRLE9XSOUdIVzXu93qT4yX7r52cJ4B9P54a/abRMwt+T SV7bLZEnnHnR9yyiLRig0c5bh5+5ZfhKoPISlYcuyhtI/LPM0EzpG7v8bCsyH0fpA7r7 N6Vg== 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=oHlKaGmZk9wyDqfTZCqzJDv9B7gF8T+HcrtFvrncmF4PIvJKVdk0qsvo0hyLifx9Zq on33dCdkUzW6jr4V40p9FxQ0nwC0Ss6jAhIJ555NYKCEwlyDBlpQ2cglfLy30gCfx8av IuAAfwR2m2yBui1E/yxTdYvXwQwT0cJ5k7jQT7xxmkm1U3SgGGc1wYDTCWL0a0HuaZN/ dVAH9bXIUuIHIYn5jVyC6BtCXnFm+gTzH1dcRmAOSQ0929eqC52fzbpw5vuC/ndisJLM vLq4AUIsa4SsHPsOpdem0MAla7RK/aZXBNJZv0xVyu6KnyjMkobH9KeMEvpI2wmdDcG3 PMZA== 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 n16-v6si2121634pll.66.2018.04.11.16.46.43; Wed, 11 Apr 2018 16:47:33 -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 S1752470AbeDKXnP (ORCPT + 99 others); Wed, 11 Apr 2018 19:43:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50264 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751841AbeDKXnN (ORCPT ); Wed, 11 Apr 2018 19:43:13 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A2BF48DC43; Wed, 11 Apr 2018 23:43:12 +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 54B4410B0F2B; Wed, 11 Apr 2018 23:43:12 +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 v8 01/10] drm/atomic: Print debug message on atomic check failure Date: Wed, 11 Apr 2018 19:42:40 -0400 Message-Id: <20180411234302.2896-2-lyude@redhat.com> In-Reply-To: <20180411234302.2896-1-lyude@redhat.com> References: <20180411234302.2896-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.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 11 Apr 2018 23:43:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 11 Apr 2018 23:43:12 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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