From patchwork Wed Oct 19 14:38:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 13011877 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 B2ABDC433FE for ; Wed, 19 Oct 2022 14:38:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A77D10EAFC; Wed, 19 Oct 2022 14:38:38 +0000 (UTC) Received: from mail-4018.proton.ch (mail-4018.proton.ch [185.70.40.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 62BF110F247 for ; Wed, 19 Oct 2022 14:38:22 +0000 (UTC) Date: Wed, 19 Oct 2022 14:38:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1666190300; x=1666449500; bh=I9tuRnrzizTW31WbnBmd5nJoUIiN4Xr2GQvfI4Kvrzw=; 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=Hmb0S/6b9Z4pJPhktzQpCxG7Plv3Qdsc9X50CnToTmeM+ZE6Qp+31KRsRU11YwTEA rHoQRftUm/I1iq5qNUVNm1mS4wFqs49X2MrGayNhd27B6sZKLlstO44V0OXzagcSmQ TYdj5Q/j9BYjgPAWnygqUDeJ+Zw6QoOVN27f4Grqw1GLepmxhWEVLFMnn8ZkWdj1lC VTmik/ybSVCgyezyWr4/n8x7BZaKqsgK/eB/2T4FsBRibEpmqM8BB2khglxNZyLY7u 9BsUS/2Ioiy4zGwf2hbHt1mxMptjIFaKUmhbznh3jF8uo4yvYuXcB+NkwhEi9nDkBB 644VyaQk/Esgw== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH 5/7] drm/atomic: log on attempt to set legacy DPMS property Message-ID: <20221019143736.267324-5-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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index 5aa2ecd1af3d..3df3f7ba0af3 100644 --- a/drivers/gpu/drm/drm_atomic_uapi.c +++ b/drivers/gpu/drm/drm_atomic_uapi.c @@ -711,6 +711,9 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector, * is done in legacy setprop path for us. Disallow (for * now?) atomic writes to DPMS property: */ + drm_dbg_atomic(dev, + "legacy [PROP:%d:%s] can only be set via legacy uAPI\n", + property->base.id, property->name); return -EINVAL; } else if (property == config->tv_select_subconnector_property) { state->tv.select_subconnector = val;