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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA9D5C433FE for ; Wed, 29 Dec 2021 19:31:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbhL2TbD (ORCPT ); Wed, 29 Dec 2021 14:31:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbhL2TbC (ORCPT ); Wed, 29 Dec 2021 14:31:02 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81738C061574 for ; Wed, 29 Dec 2021 11:31:01 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id g26so49920870lfv.11 for ; Wed, 29 Dec 2021 11:31:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1kHntLzhFY+6b33xnFFNKov/UMw0bRniYoNkFNeokK0=; b=VSjxFJl0ahNzSM4KdKAVBXj5nnx2ycIMd7oLJm/8VxX+Pq6pIoD8+pfYySEqs9u56K LZHUP6bC5wDh2ncQuNiEtxqdC3D9djsXFIsf4IhA3WH/TflZOAhhv+/u3u0/rkJcYAYK scuGR2/og7UWys1KX+BarneWj1b5qHACUAEIQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1kHntLzhFY+6b33xnFFNKov/UMw0bRniYoNkFNeokK0=; b=SM5dSZVePE/ocPP/fNPuZ5urdOqUv3eEFMsjQvr+spwSf/OUj3dFnq8kPOUY+xSIMM UXE3Md1EoZSR8pSBRAOE6RPmAT+yTpSEdeXM5sFKofqjSBKPhPmsRzm+k9eEh0A4jian 3eg0RH1DdESIMG1cO0kxVi6qHE6fo6QC/XWNhRhilu4nSLU+NpnyDEriClPICI1f/sIS veQjm0Kcn3bbTUX4D7thk0AmBPVRX7QNcoFf+X1BlEbdvDHtY56fmqFPQtfV+qkvp6je nzKc5Sgs/rvak1zxqk5ZhGEzrfaRC3HPlpfKlaIVQdOC2sxp07itNwxk1b+4cfUvew7y 0RRg== X-Gm-Message-State: AOAM53323XiTlMReuahUMSy4wP6GGxyh6RU4CVr421U2G9Uc+3gavHmy tbsbcaVXwntSo09M3eHE0Rfqvc6jBuFF66l4gLO6oQ== X-Google-Smtp-Source: ABdhPJzwWydnD66E+ihuzo5xAOnXhWkKsM56kOjwps/BnPwXqQ5sutKmn1B8gZog1GVGDZslne50Xc8xO2HM/LSJsoU= X-Received: by 2002:ac2:4c54:: with SMTP id o20mr25563858lfk.369.1640806259586; Wed, 29 Dec 2021 11:30:59 -0800 (PST) MIME-Version: 1.0 References: <20211027162806.2014022-1-markyacoub@chromium.org> <20211213160742.744333-1-markyacoub@chromium.org> In-Reply-To: From: Mark Yacoub Date: Wed, 29 Dec 2021 14:30:48 -0500 Message-ID: Subject: Re: [PATCH v2] drm/mediatek: Set the default value of rotation to DRM_MODE_ROTATE_0 To: Chun-Kuang Hu Cc: "moderated list:ARM/Mediatek SoC support" , Sean Paul , Philipp Zabel , Matthias Brugger , Jason-JH Lin , tzungbi@google.com, David Airlie , Daniel Vetter , DRI Development , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hey - uploaded v2 that takes care of the panel: https://patchwork.kernel.org/project/linux-mediatek/patch/20211229184420.79= 3234-1-markyacoub@chromium.org/ Thanks! On Tue, Dec 14, 2021 at 10:26 AM Mark Yacoub wrot= e: > > Thank you so much! > > On Mon, Dec 13, 2021 at 6:27 PM Chun-Kuang Hu w= rote: > > > > Hi, Mark: > > > > Mark Yacoub =E6=96=BC 2021=E5=B9=B412=E6=9C= =8814=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8A=E5=8D=8812:08=E5=AF=AB=E9=81=93= =EF=BC=9A > > > > > > At the reset hook, call __drm_atomic_helper_plane_reset which is > > > called at the initialization of the plane and sets the default value = of > > > rotation on all planes to DRM_MODE_ROTATE_0 which is equal to 1. > > > > Applied to mediatek-drm-next [1], thanks. > > > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.= git/log/?h=3Dmediatek-drm-next > > > > Regards, > > Chun-Kuang. > > > > > > > > Tested on Jacuzzi (MTK). > > > Resolves IGT@kms_properties@plane-properties-{legacy,atomic} > > > > > > Signed-off-by: Mark Yacoub > > > --- > > > drivers/gpu/drm/mediatek/mtk_drm_plane.c | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/d= rm/mediatek/mtk_drm_plane.c > > > index e6dcb34d30522..accd26481b9fb 100644 > > > --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c > > > +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c > > > @@ -44,9 +44,10 @@ static void mtk_plane_reset(struct drm_plane *plan= e) > > > state =3D kzalloc(sizeof(*state), GFP_KERNEL); > > > if (!state) > > > return; > > > - plane->state =3D &state->base; > > > } > > > > > > + __drm_atomic_helper_plane_reset(plane, &state->base); > > > + > > > state->base.plane =3D plane; > > > state->pending.format =3D DRM_FORMAT_RGB565; > > > } > > > -- > > > 2.34.1.173.g76aa8bc2d0-goog > > >