Message ID | 20240224150604.3855534-1-megi@xff.cz |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-79714-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1188370dyb; Sat, 24 Feb 2024 07:06:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWM1N20EqeZa4QnJF0JEp+dEHSaH4veYupJPKWFD/RwkFFI0Mu2w7Bcgl5kopu9VXkKpZ38dY01zkwoCSSnRDHD5PhyuQ== X-Google-Smtp-Source: AGHT+IFfyde7W8I6IhzniJlytWTaJQAu5QA8KYTxjQetnrMtNHRCKqWL3PLQXCBrPlb9x37LaWN0 X-Received: by 2002:a92:c530:0:b0:365:7614:dc78 with SMTP id m16-20020a92c530000000b003657614dc78mr3255627ili.10.1708787210756; Sat, 24 Feb 2024 07:06:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708787210; cv=pass; d=google.com; s=arc-20160816; b=s7uGHF9cLghm4SjBWkxHqFfdPr6MabK4BfiQjCbja9FxZi4ixEn+nXbdvC28pGDXAB 4ZVP93QDeregCNC62AP6VrS4BJ8hOpvS8aQ53zRrfiqkgNC5CvJ9tbrqz394184oEl4H si66302bxbA1sALlfIsuxp+0GaBKautF2SaylIfkBRKbY56glSufQHgxxMERiUjV1N4S O2BrcN0B2DtQP2rUMJy8/K2ACYFE0Jqj6S5Blz9NISLRxylGcCO2y7rxTSyli/7M0Ed6 le/zqIauITTzho+Bii62eLIIMyBItgS/itHOdbZdh8vrmaP7AXdPsx9q7/g83bhX4YVa +dqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=EUfSSH6WwyeuBGu4yWWkRK40Q2es8Zl3ZCQKWCxsPSc=; fh=unULrk3HLskrF1j1J92Hyho+sCeXl6rNrRZMNuoyCm0=; b=jHTVBIGfPfg0PqxLg13+O4Hy9GRyOy5dxBKEFFSBIkEl62ST1W3gzz4aIrtgdSxktU P911qdj9RIAuGgYi9FIVZHHc80NRndjk6TN+m5Mq03buBJEdJtowDZMv25HdtVK+o5v8 kpOYrdwy9jtsLu245EaUAhzp5ijB9nMvCknQeuYdeocRZwwp82Z/W7u2SrGFMGtg+fHd Kg/WPs4Dy5On0aFcYh2eNmSkw/5NQgKcRbxnJZdau0++4YKRlkZUZb/OkPfLv00H4lEy 7v7Ny6GeSybspIIoj0Xac66F6786UCK/TrFta6kL3qOGnQy5yexKlvGWeyIxHHFaHBik peNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=L9I4meje; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-79714-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79714-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v19-20020a63f853000000b005dcbb6b4bffsi1016571pgj.335.2024.02.24.07.06.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 07:06:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79714-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=L9I4meje; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-79714-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79714-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8A99F282555 for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 15:06:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C3FB4879B; Sat, 24 Feb 2024 15:06:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="L9I4meje" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A0091E894 for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 15:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708787174; cv=none; b=p1BwMjqmPRVgge2k1OpuvGn6B5BolgAyht6/UqCyfqrgcYgwJ+BbfKMS7Uh5IysipZ079XKUfiDWJ/ZUScOuXYNAorRtvyH6dtsv8/9VPG8bMuuI3YDmV4OdA2NxZK1LEax2qcGlLMtoM2bHYXkjt62JKa/nc6Ac9lk5Nma5+J0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708787174; c=relaxed/simple; bh=Uryo3XdwAekEHSVjuMlMntBb6I1zHeuqUQ7N7xRLv/U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qkNCdSsiUgRRf1iW+ydq2WMHtzCZRE7wozxAwtaNaBddtO58Y8/hB0ILOB+mDarYW7DIH0QUJtcs5Fp0pF/ntKodGVbO7mTaQ27BnwF+ufni7iesmSqJ2Ee3UF6ndPPXuN2mzUazo0Cfovopw0tLKspes//84Td7OzRKKbjhNbE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=L9I4meje; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1708787167; bh=Uryo3XdwAekEHSVjuMlMntBb6I1zHeuqUQ7N7xRLv/U=; h=From:To:Cc:Subject:Date:From; b=L9I4meje818PMKLYF5UA9Z980dPtZPCvuEHAL7MwqojCWJPc7xFfL2iAoX8mXD2fI DeaNRvSzDJnxkEngB9cioOYKej5HrJ/2mEcDFCTHdkyh6ddvPadR/JinhQSd0GZPyh yZe5GBB4MjEO5Qhzgsisj4VGB/McpYIn3o4yjQ+8= From: =?utf-8?q?Ond=C5=99ej_Jirman?= <megi@xff.cz> To: linux-kernel@vger.kernel.org, Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org> Cc: Ondrej Jirman <megi@xff.cz>, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 0/3] Move blender setup from individual planes to crtc commit in sun4i-drm Date: Sat, 24 Feb 2024 16:05:57 +0100 Message-ID: <20240224150604.3855534-1-megi@xff.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791793257788876622 X-GMAIL-MSGID: 1791793257788876622 |
Series |
Move blender setup from individual planes to crtc commit in sun4i-drm
|
|
Message
Ondřej Jirman
Feb. 24, 2024, 3:05 p.m. UTC
From: Ondrej Jirman <megi@xff.cz>
This series refactors blender setup from individual planes to a common
place where it can be performed at once and is easier to reason about.
In the process this fixes a few bugs that allowed blender pipes to be
disabled while corresponding DRM planes were requested to be enabled.
Please take a look. :)
v2:
- use regmap_write where possible
- add review tags
Thank you very much,
Ondřej Jirman
Ondrej Jirman (3):
drm/sun4i: Unify sun8i_*_layer structs
drm/sun4i: Add more parameters to sunxi_engine commit callback
drm/sun4i: Fix layer zpos change/atomic modesetting
drivers/gpu/drm/sun4i/sun4i_backend.c | 4 +-
drivers/gpu/drm/sun4i/sun4i_crtc.c | 2 +-
drivers/gpu/drm/sun4i/sun8i_mixer.c | 70 ++++++++++++++++++++-
drivers/gpu/drm/sun4i/sun8i_mixer.h | 20 ++++++
drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 85 +++----------------------
drivers/gpu/drm/sun4i/sun8i_ui_layer.h | 20 ++----
drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 86 +++-----------------------
drivers/gpu/drm/sun4i/sun8i_vi_layer.h | 20 ++----
drivers/gpu/drm/sun4i/sunxi_engine.h | 13 +++-
9 files changed, 125 insertions(+), 195 deletions(-)