Received: by 10.213.65.68 with SMTP id h4csp2867054imn; Mon, 2 Apr 2018 15:52:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+y3z5H8p1e4ZPMVcO18F0pbpvYZdy3pWfRY3k/345ToluRgX46HnthjFI6tmQxJB3pBGND X-Received: by 2002:a17:902:96a:: with SMTP id 97-v6mr2518081plm.266.1522709565814; Mon, 02 Apr 2018 15:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522709565; cv=none; d=google.com; s=arc-20160816; b=kTEEDWeFcb69zLcQnvNwlgsu72wJO54XyAtc4X0rtcy0udlDr0oVENsQtjvp51aT9p T2BB9R7mFjLtQAhmDyacZMWx5qj3U3KWzRZqdfvLc1pSkbp26a4Gg/w/d6hRme76ktrQ QGPs0bZqKuiId3PDTFlk7RivNGyqihYy1twUAM6Ic/ZPQnchv7HVu7EajRD2JbHK5eU4 06ZCRBUuxnPvpX0eogV87qyYNGv1sX6y+Jx82+2I7KBWE4AjIRhcvYqOkvBCkUUGtk9z JHWvMO/flhKFkJ11te6c4MH16hFiAZh2F9xhkTosqzFN5hUswvGFy5rHq1jgU/R8dGdQ muKQ== 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=laCOUQweqLwqsZ8WKaT4g4tcBYcto628nGAW4f6zWPT+aU1MJEYT3sEFhdvpbz97yI ElAKn9XPlTrZf2tmiwSRpFcAMoHqLkRZ/RvnUpRiqBDm5AK+M89rwLhJmPD3beCv7+oi 14khBZ95Ad+BiZ3fG22iPIbPetfXjTZCGPVIEMT5N1xguH6uSjOGZBn7LWZcxb1KUkj7 P+hSetAxwgkgMHtpass81e0gpu0EVb5IX2H9wmzwBVmIdZQ3IP+q31iG4A1In9M8wYT6 coWzvQV7Z/fHkKOxWGO9m99GmIqmtZ0UURoJTM3Z0k+TJH0j3AxOXiOnzo+VuTr4Ctvi kOjQ== 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 m63-v6si1333574pld.52.2018.04.02.15.52.32; Mon, 02 Apr 2018 15:52:45 -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 S1754630AbeDBWsQ (ORCPT + 99 others); Mon, 2 Apr 2018 18:48:16 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53954 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754540AbeDBWsO (ORCPT ); Mon, 2 Apr 2018 18:48:14 -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 1353B81638F0; Mon, 2 Apr 2018 22:48:14 +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 B9B3310FFE72; Mon, 2 Apr 2018 22:48:13 +0000 (UTC) From: Lyude Paul To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Manasi Navare , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , linux-kernel@vger.kernel.org Subject: [PATCH v5 01/10] drm/atomic: Print debug message on atomic check failure Date: Mon, 2 Apr 2018 18:47:37 -0400 Message-Id: <20180402224800.16080-2-lyude@redhat.com> In-Reply-To: <20180402224800.16080-1-lyude@redhat.com> References: <20180402224800.16080-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.8]); Mon, 02 Apr 2018 22:48:14 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 02 Apr 2018 22:48:14 +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