From patchwork Wed Oct 19 14:38:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 13011879 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9907EC4332F for ; Wed, 19 Oct 2022 14:39:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8CE1510EAF9; Wed, 19 Oct 2022 14:39:04 +0000 (UTC) Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1329310EAF9 for ; Wed, 19 Oct 2022 14:38:38 +0000 (UTC) Date: Wed, 19 Oct 2022 14:38:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1666190316; x=1666449516; bh=JPUWG2IfP44W0EAKPYUg/6hM4CLQ9vdjk+OtIUIpV3M=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=JOmAHr0N8VNtieBkYVyZeCrTxusBjJ00q/IYuNzUS1U+zM6DMUyh35hi5Ii95/dUn lYd+S/7AkfDLP0VcIwIzzIqK5tTyyBEofPJYyz9NkhFJTcjgFd+1l/kpZOEJv5Bj0U 7F10M03EWxQobFfensJJYeGeCLYSwD+v6FK+pl5I/qp9faOplixzRAeuqS4AEevTC8 QQZxM8kXx1xgb4FRAC2cmKVmLSEpF1QRwh4E55LYO75K7BNAsKgSp/DSUZqplb18kD 5m73PrIH0vWHvjQhWzKthDy6kQ3N3jA9AtkUGiGxkTiTAq39bRoxviFUXGgLOfQr4E qvqiikkqKOscw== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH 7/7] drm/atomic: log errors in drm_mode_atomic_ioctl() Message-ID: <20221019143736.267324-7-contact@emersion.fr> In-Reply-To: <20221019143736.267324-1-contact@emersion.fr> References: <20221019143736.267324-1-contact@emersion.fr> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jani Nikula , Daniel Vetter Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Jani Nikula --- drivers/gpu/drm/drm_atomic_uapi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index b996351beb57..eb18ab4e6ef8 100644 --- a/drivers/gpu/drm/drm_atomic_uapi.c +++ b/drivers/gpu/drm/drm_atomic_uapi.c @@ -1397,11 +1397,13 @@ int drm_mode_atomic_ioctl(struct drm_device *dev, obj = drm_mode_object_find(dev, file_priv, obj_id, DRM_MODE_OBJECT_ANY); if (!obj) { + drm_dbg_atomic(dev, "cannot find object ID %d", obj_id); ret = -ENOENT; goto out; } if (!obj->properties) { + drm_dbg_atomic(dev, "[OBJECT:%d] has no properties", obj_id); drm_mode_object_put(obj); ret = -ENOENT; goto out; @@ -1428,6 +1430,9 @@ int drm_mode_atomic_ioctl(struct drm_device *dev, prop = drm_mode_obj_find_prop_id(obj, prop_id); if (!prop) { + drm_dbg_atomic(dev, + "[OBJECT:%d] cannot find property ID %d", + obj_id, prop_id); drm_mode_object_put(obj); ret = -ENOENT; goto out;