From mboxrd@z Thu Jan 1 00:00:00 1970 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 33359C433F5 for ; Mon, 7 Feb 2022 16:35:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5DC0C10E200; Mon, 7 Feb 2022 16:35:23 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0175110E200 for ; Mon, 7 Feb 2022 16:35:22 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 81C035C0107; Mon, 7 Feb 2022 11:35:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 07 Feb 2022 11:35:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; bh=K+eWok33+6aDUpvJY9s2JM+QsuzqfznNKdyOgp sBtE0=; b=TxkRDiLz4fqYpmmWjRtnTeWUrhTGA+Fj7juEXNbD+xG9vbABTAie1V eRn0+zQGW5qpyTjbvPLsE7mJbFfoRAb4hxk/Um6j0eKZWu5wUooWSiGIu9MKETjt FyfkGE5SoThlFsDY8tSGAhMHHIGpRWKPz3U3USwc31NS92M6di4jmpLbSCEann7Q 7oDDb7mdpU905frPcH6lln9pjR6eFtTUbzeXrbdr6C0sQK3neqonIGo9DZ03ZbPW ZHHgDa8f7XrhSRHUlCZ5YHcJdpJ/5n6TQPoFFuty4tPHe5qcpQCssRUS03sbNck0 AWbxysr173hrazEmpKANY2roKsc9+LzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=K+eWok 33+6aDUpvJY9s2JM+QsuzqfznNKdyOgpsBtE0=; b=RsV22A7xP6tJP2RAxWLgqc vQT89ZI1vO+VfeCpiQoENxOPXZtLIs/v9jDLFcoYzGoE00eb4+oJ6ZZH7IZvx0VM V+DgTd8eBH0d0EoHNfUxbu9DOiVZ33S8L0YpgHY/2LYVVUl7gcg1osFqBWHE/ddd dl7SDj67sur+MMpIJxadum5iFm3Rs4nKfJz1csxdhpnat7nVUjKKRB/dTqFIYuvC sJ3a9t0WqSONsvXF89WbN6eM623zEVCStyB5tb+hPSn2tdt2Q2T0aUyiGz5PY2B4 8yWrXRubEVzJhddho9mIKhAcbxMxDvnwPuRcx/i8g3AHEfjDl3M+5Lr3Bo7SIy5w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheehgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofggtgfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepiedtkedulefhffdtueeljeeijefhkeeiuedvhfetfedtledthffhteelvdejudev necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Feb 2022 11:35:18 -0500 (EST) From: Maxime Ripard To: Daniel Vetter , David Airlie Subject: [PATCH 00/23] drm: Fill in default values for plane properties Date: Mon, 7 Feb 2022 17:34:52 +0100 Message-Id: <20220207163515.1038648-1-maxime@cerno.tech> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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: Dom Cobley , Tim Gover , Dave Stevenson , dri-devel@lists.freedesktop.org, Maxime Ripard , Thomas Zimmermann , Phil Elwell Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi,=0D =0D We have a bunch of functions that create planes properties that will take a= =0D default value, but it isn't actually enforced in the plane state.=0D =0D This leads to drivers having multiple strategies to work around that issue,= =0D most of them being a variation of forcing a value at plane state reset time= .=0D Others work fine by luck, or have entirely ignored the issue.=0D =0D This series aims at making sure the default value set by the call to the=0D function isn't ignored, and then making sure all drivers behave consistentl= y.=0D =0D Let me know what you think,=0D Maxime=0D =0D Dave Stevenson (3):=0D drm/object: Add drm_object_property_get_default_value() function=0D drm/object: Add default zpos value at reset=0D drm/object: Add default color encoding and range value at reset=0D =0D Maxime Ripard (20):=0D drm/komeda: plane: switch to plane reset helper=0D drm/tegra: plane: switch to plane reset helper=0D drm/tegra: hub: Fix zpos initial value mismatch=0D drm/msm/mdp5: Fix zpos initial value mismatch=0D drm/amd/display: Fix color encoding mismatch=0D drm/tegra: plane: Remove redundant zpos initialisation=0D drm/komeda: plane: Remove redundant zpos initialisation=0D drm/exynos: plane: Remove redundant zpos initialisation=0D drm/imx: ipuv3-plane: Remove redundant zpos initialisation=0D drm/msm/mdp5: Remove redundant zpos initialisation=0D drm/nouveau/kms: Remove redundant zpos initialisation=0D drm/omap: plane: Fix zpos initial value mismatch=0D drm/omap: plane: Remove redundant zpos initialisation=0D drm/rcar: plane: Remove redundant zpos initialisation=0D drm/sti: plane: Remove redundant zpos initialisation=0D drm/sun4i: layer: Remove redundant zpos initialisation=0D drm/komeda: plane: Remove redundant color encoding and range=0D initialisation=0D drm/armada: overlay: Remove redundant color encoding and range=0D initialisation=0D drm/imx: ipuv3-plane: Remove redundant color encoding and range=0D initialisation=0D drm/omap: plane: Remove redundant color encoding and range=0D initialisation=0D =0D .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-=0D .../gpu/drm/arm/display/komeda/komeda_plane.c | 13 +----=0D drivers/gpu/drm/armada/armada_overlay.c | 2 -=0D drivers/gpu/drm/drm_atomic_state_helper.c | 25 +++++++++=0D drivers/gpu/drm/drm_mode_object.c | 53 +++++++++++++++----=0D drivers/gpu/drm/exynos/exynos_drm_plane.c | 5 +-=0D drivers/gpu/drm/imx/ipuv3-plane.c | 8 +--=0D drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 16 +++---=0D drivers/gpu/drm/nouveau/dispnv50/wndw.c | 2 -=0D drivers/gpu/drm/omapdrm/omap_plane.c | 22 ++++----=0D drivers/gpu/drm/rcar-du/rcar_du_plane.c | 1 -=0D drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 1 -=0D drivers/gpu/drm/sti/sti_cursor.c | 2 +-=0D drivers/gpu/drm/sti/sti_gdp.c | 2 +-=0D drivers/gpu/drm/sti/sti_hqvdp.c | 2 +-=0D drivers/gpu/drm/sti/sti_plane.c | 6 ---=0D drivers/gpu/drm/sti/sti_plane.h | 1 -=0D drivers/gpu/drm/sun4i/sun4i_layer.c | 16 +++---=0D drivers/gpu/drm/tegra/hub.c | 2 +-=0D drivers/gpu/drm/tegra/plane.c | 6 +--=0D include/drm/drm_mode_object.h | 7 +++=0D 21 files changed, 111 insertions(+), 83 deletions(-)=0D =0D -- =0D 2.34.1=0D =0D