Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp542376rdb; Thu, 22 Feb 2024 11:18:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXUVlIBlDdFNGuw+RzKJk6N/x7FM7ZdR8SIG8mxIpxX8AciUW54LNQZP8s8FyFszMTTqvTzsmvTMrYLFhPnnV63MXkuxs4DN7A8nz/wWg== X-Google-Smtp-Source: AGHT+IHi+4Fp9k5R7KzkC3eq+Bf8mLYGyQpsdIC7DkH+zOJPW/tT5nY/RJWWo1UBIyQOiSoT76Lb X-Received: by 2002:a17:906:f9da:b0:a3e:b62d:568b with SMTP id lj26-20020a170906f9da00b00a3eb62d568bmr9034385ejb.69.1708629531696; Thu, 22 Feb 2024 11:18:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708629531; cv=pass; d=google.com; s=arc-20160816; b=TKGrmk/4mu1B4OFQcpUw+Y/fIf/ggVOtVLjBkVI3xMsx2A6+1M6CEauCR/MYx3i+nn GF9fXCFCy5rVOtDIcD/164kNeZKTea1zAmIsLKF9zHj1AuAs8lvCWqDGNf1Jt84xpnVJ uZy6HptshSZMr2z76NgISsiR4Ceq2t3CaTfXBs5piqakkFiDWqRVFs0nvxan12Wko9+P PAlhiFvGQXs2lM16c3IHtABM3xR1CiVeV6I/uoAsb2Z8B4dDb4rwiB4QrbSr7ogm+Ruy cVFy342fcqwH6hxjNfWj7CM76YXbK6nFvhv52rfR5pcEsV+chn7Fz0vrdYXZtKdStOtb KTcA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aKmv8VA9qwrVjGnHU1RMltzYyr4GiBIOxbbvEQt4SA4=; fh=w/HNf7CCzkBxgfP4oFgPN6chWHR1Bln0tShq0cAKZzI=; b=u3+qITOPJ5yd6aa7rbwBEzM6icqsLVpaabaisl2f9xbE+vA0JG25KKEoJAMLyiTrXl 9RhlXntK6yJo9DL+NpirKbRCBUIuG763wRDp4m/6reOzarqAAdh2uZmpo7Cdq4QQP8cd 6CRV8zE0VfywTaVfxhUEZKKJfuDvj9T4vljy+hXD6v4Do/kgvuYCBEnEob5bAPmUXXbe WEyg9Cvp1XVpHY+OdsQTlyWPNhLnsglLF8vz5G/lP0dkw32Z23tCxwL7iXJckzZby6Ve GeqCYPJ5sQ3/UKrYwUkDJXwzRDQ7nzqBAfDpO/RJOLcV50fckm5VwgvJq4ncRCxxjopd 6n6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gh5roxf1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id sd16-20020a170906ce3000b00a3e9fec0245si3995445ejb.431.2024.02.22.11.18.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 11:18:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gh5roxf1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4A1021F25B37 for ; Thu, 22 Feb 2024 19:18:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6482154912; Thu, 22 Feb 2024 19:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gh5roxf1" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 B246F14B82B for ; Thu, 22 Feb 2024 19:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708629498; cv=none; b=fGauyE4wfI2E69dELPES5+59DmNz6VCK6TCZr30UXoxIdu4SI17w7tpozGtgKJsVCeVQwcDB1R7sKWb1iAKoqJnbcxzSQJqcfNqBzJkXT2E7+yBgDUwxmrtiaz1Q5HkTY6yKCVcy5ftnDRVBH0xI+qjGF/pql03YJXQEjMjpAeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708629498; c=relaxed/simple; bh=ipRg99dKoCexGU0mT0wMiy7MuLoK0LzRc3yx/o9w7ng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lpCN/6QW4FY7miafjMy5j5XaxIlFqRsNM4v3BllWAZ7S2jgXmk6a3PAWkH0kU6eyXvN2q3+GnZVuvB/8Pax03Wn/8TJSOrpp+FF042RQ676JO2WXl8dM2XbB5lQC2IeSBhocMuE+2OUqmgjrfgthoWJ/nZqLrYwWXmgqf3ueTGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gh5roxf1; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a3e7f7b3d95so7429066b.3 for ; Thu, 22 Feb 2024 11:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708629495; x=1709234295; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aKmv8VA9qwrVjGnHU1RMltzYyr4GiBIOxbbvEQt4SA4=; b=gh5roxf1SfFK6hI5zJdOkjMdDzFFNGAaf4SG2gf1cZ+Tp6541pkE5BcPi/93csXX5K W0Q0zK+LjeiTwmud5ojM9U91txQqZAE19gHw3LQCaU2RAwZgCxU9eKzm3y+8RubCvlZq K/PP6KRDbSwgqWIiXmTnPg6Yw3TwUere0k3FIaOnUy5qeyv/Rjr044C2vzU5gDMQgVsV uwDrZPDz+lqhcJlL4YKmOUNCgx679J8FmVlZWqo1GtW9NGl4mqkmX3dTanOdz1MQ0xz0 +U6L/LQRfreZisLrQJlq4I/RxruHUjavualesdZwtEvLXL3jXQTcwXzpl61kQX1i+J6N raSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708629495; x=1709234295; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aKmv8VA9qwrVjGnHU1RMltzYyr4GiBIOxbbvEQt4SA4=; b=sVOzsAb3jR1OcHsmsYFiKoXqfe44ORSzFg2Uvnd/+q/qqcD+ZkEqlV5TCPp3ToqotM 6oZsDpXtZiuBpK8uV+n8zs0PlIGrdqJjudlw06DWU4tqtmjyKK9WkQHesZv7UjOlxFTK TfIZ6HItW4OWkwEAPkk4TvuCOlhgkqLUSeL9JEO0l52NP8sxVFQPs6A9MLvQKwITj1Mv oHhVof4/lUFr0MvkrRdDlpwYV+qTboXHYP2sKivjRTkJfn/izo9DrAfoaXrQyeUTFZTR relhz00pt1IeAbBTba4+vS1r9J1taegqGU4EEjrx7M6BkLr3K4YAWYoJqL5AEXEBWZYJ jJGQ== X-Forwarded-Encrypted: i=1; AJvYcCV1ty9ZnxACdgxK0+2qOStO99kFkfGn3YMp0a4Mp/znJpF+5qA+mTxsI6Z7SiHvbXvn/lyzcF08muTnijTJGPArjn8TMGETP8t5MemZ X-Gm-Message-State: AOJu0YwCCWBzQUdbazjiVxg5NRYxhtbc1690NzNg2M9J8g4PCbRv1LTb tGy+NR3VRH9/+AUstspU4chZNYoz+SIvvhFmB8OSejdK5LJ5LQk3 X-Received: by 2002:a17:906:1854:b0:a3e:73c8:d383 with SMTP id w20-20020a170906185400b00a3e73c8d383mr10308795eje.49.1708629494886; Thu, 22 Feb 2024 11:18:14 -0800 (PST) Received: from jernej-laptop.localnet (86-58-6-171.dynamic.telemach.net. [86.58.6.171]) by smtp.gmail.com with ESMTPSA id vu2-20020a170907a64200b00a3fa275de38sm425296ejc.162.2024.02.22.11.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 11:18:14 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Chen-Yu Tsai , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Samuel Holland , =?utf-8?B?T25kxZllag==?= Jirman Cc: Ondrej Jirman , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] drm/sun4i: Add more parameters to sunxi_engine commit callback Date: Thu, 22 Feb 2024 20:18:13 +0100 Message-ID: <9236885.CDJkKcVGEf@jernej-laptop> In-Reply-To: <20240216190430.1374132-3-megi@xff.cz> References: <20240216190430.1374132-1-megi@xff.cz> <20240216190430.1374132-3-megi@xff.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Dne petek, 16. februar 2024 ob 20:04:25 CET je Ond=C5=99ej Jirman napisal(a= ): > From: Ondrej Jirman >=20 > These will be needed later on when we move layer configuration to > crtc update. >=20 > Signed-off-by: Ondrej Jirman Reviewed-by: Jernej Skrabec Best regards, Jernej > --- > drivers/gpu/drm/sun4i/sun4i_backend.c | 4 +++- > drivers/gpu/drm/sun4i/sun4i_crtc.c | 2 +- > drivers/gpu/drm/sun4i/sun8i_mixer.c | 5 ++++- > drivers/gpu/drm/sun4i/sunxi_engine.h | 13 ++++++++++--- > 4 files changed, 18 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.c b/drivers/gpu/drm/sun4= i/sun4i_backend.c > index 335fd0edb904..e89eb96d3131 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_backend.c > +++ b/drivers/gpu/drm/sun4i/sun4i_backend.c > @@ -69,7 +69,9 @@ static void sun4i_backend_disable_color_correction(stru= ct sunxi_engine *engine) > SUN4I_BACKEND_OCCTL_ENABLE, 0); > } > =20 > -static void sun4i_backend_commit(struct sunxi_engine *engine) > +static void sun4i_backend_commit(struct sunxi_engine *engine, > + struct drm_crtc *crtc, > + struct drm_atomic_state *state) > { > DRM_DEBUG_DRIVER("Committing changes\n"); > =20 > diff --git a/drivers/gpu/drm/sun4i/sun4i_crtc.c b/drivers/gpu/drm/sun4i/s= un4i_crtc.c > index c06d7cd45388..18e74047b0f5 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_crtc.c > +++ b/drivers/gpu/drm/sun4i/sun4i_crtc.c > @@ -91,7 +91,7 @@ static void sun4i_crtc_atomic_flush(struct drm_crtc *cr= tc, > =20 > DRM_DEBUG_DRIVER("Committing plane changes\n"); > =20 > - sunxi_engine_commit(scrtc->engine); > + sunxi_engine_commit(scrtc->engine, crtc, state); > =20 > if (event) { > crtc->state->event =3D NULL; > diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/= sun8i_mixer.c > index 1e681314e379..bdeb9b80e038 100644 > --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c > +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c > @@ -16,6 +16,7 @@ > #include > #include > =20 > +#include > #include > #include > #include > @@ -249,7 +250,9 @@ int sun8i_mixer_drm_format_to_hw(u32 format, u32 *hw_= format) > return -EINVAL; > } > =20 > -static void sun8i_mixer_commit(struct sunxi_engine *engine) > +static void sun8i_mixer_commit(struct sunxi_engine *engine, > + struct drm_crtc *crtc, > + struct drm_atomic_state *state) > { > DRM_DEBUG_DRIVER("Committing changes\n"); > =20 > diff --git a/drivers/gpu/drm/sun4i/sunxi_engine.h b/drivers/gpu/drm/sun4i= /sunxi_engine.h > index ec8cf9b2bda4..ec0c4932f15c 100644 > --- a/drivers/gpu/drm/sun4i/sunxi_engine.h > +++ b/drivers/gpu/drm/sun4i/sunxi_engine.h > @@ -7,6 +7,7 @@ > #define _SUNXI_ENGINE_H_ > =20 > struct drm_plane; > +struct drm_crtc; > struct drm_device; > struct drm_crtc_state; > struct drm_display_mode; > @@ -59,7 +60,9 @@ struct sunxi_engine_ops { > * > * This function is optional. > */ > - void (*commit)(struct sunxi_engine *engine); > + void (*commit)(struct sunxi_engine *engine, > + struct drm_crtc *crtc, > + struct drm_atomic_state *state); > =20 > /** > * @layers_init: > @@ -144,12 +147,16 @@ struct sunxi_engine { > /** > * sunxi_engine_commit() - commit all changes of the engine > * @engine: pointer to the engine > + * @crtc: pointer to crtc the engine is associated with > + * @state: atomic state > */ > static inline void > -sunxi_engine_commit(struct sunxi_engine *engine) > +sunxi_engine_commit(struct sunxi_engine *engine, > + struct drm_crtc *crtc, > + struct drm_atomic_state *state) > { > if (engine->ops && engine->ops->commit) > - engine->ops->commit(engine); > + engine->ops->commit(engine, crtc, state); > } > =20 > /** >=20