Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp115605pxt; Wed, 11 Aug 2021 16:09:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHH/teHG9DtOCtooehsoAmqlftEXhKjGRg6EAoUzxiutkYAM3uxql8NvQEZNXLesURCz84 X-Received: by 2002:a92:b501:: with SMTP id f1mr625010ile.59.1628723346889; Wed, 11 Aug 2021 16:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628723346; cv=none; d=google.com; s=arc-20160816; b=CBx3v1UoBA0Ch6GLUHoAHgdZEKS/8+HOH6nkE3TlezJcZicbn7O0r+EYAxvdmtrUn3 nK8s+vXSovuU2LHxrTJp2tZ/MqjdSclYMdwrYkzfBVlIWQP5HeLDB7rn7vXhBSRMm4xQ 0Zi1Mve2Qby2hVKxVha5cVL6ipf6J8qbYW08dd24IsLDKqaL/rUIAQGJkW0NqCOU2NjA PUMaqVD7uNCDYdS5SoJuqgCcJzz+5b0+vG0Em7C124JMu7AGI2JizwajKG259NuoeDdC NwmXMckBOi9PlGG8S5h9WrI/vR+MwnxjAbMJisLJrOi9tWUwJA3TRstrgNAZiC0z5d2h o+bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=e9SUYGjo1MvuOEm/xeOaD8Zicu26tdzzd68dJqORz1c=; b=zSUfGXPvfc1t6PzSAXM6TlfH6xsrkQC2/AMK5VI8Km5arsrloysqcut6PERmhDWDXN +2WJAQMMerWbOWT3vLz9gdeClUtFcPkkI9sJd4SyuyhnJ4/3QYxVCwTmxpeaoIPfnOyE eWmPNJ3/xQnzI2Qjgm3UahQ5ZZJ09KRljM2+6SDRp4XhvEw610/W/ugPOYhFvSwAaPoR 8ICuKsjszYZp+5Os1f1WFSXLU+79Dry8iRAGgu0gw5CDMzThxuBncG/23IkXanLnwcui ZwMXvc4wblQy0D+w4rpUXjfxHoVCgheqguxVyIIbVi7oJjZDnj9P3ZTqiHON2lRYJ4bH szcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N7j+EgSa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si875943ilm.90.2021.08.11.16.08.34; Wed, 11 Aug 2021 16:09:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N7j+EgSa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232678AbhHKXGI (ORCPT + 99 others); Wed, 11 Aug 2021 19:06:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:37916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232434AbhHKXGI (ORCPT ); Wed, 11 Aug 2021 19:06:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DAE64610A3; Wed, 11 Aug 2021 23:05:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628723143; bh=LBkFZQCUVSz/Rhx1ZP4O8O+xC4njvVvDFWJMqfhUzZc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=N7j+EgSapAyF+E2AEGflrSJiCZjpXiN2JMJWDRznUA/NrxH+lurInjTi1MtNpy85D xrJ7HqMEM0cEO5JzCgW2Lz0DffXyBVfrtxqKIXiAn6i5bBxbOSn+zcxVG6d6GvMMrK bVWXu4t+swt1Ylq/HkupY0NqVEegG6CVxnygcST8s+n1CW6/WYqUrUQkxfr5m2S/ow pMTVv8JkSs5Lvg++Yqzdkq9L51sUm711vSUAPRNPiIeTBhtJ5goF6+14H2UfZQX2Vu cZcu3ctNnysA4Km0Q2sG4gehaPE1JbwKv5poy95kXoLmCCFE/qu1rkqhn293tb2X4e qMsycz3wt/GRg== Received: by mail-ej1-f47.google.com with SMTP id hs10so7625769ejc.0; Wed, 11 Aug 2021 16:05:43 -0700 (PDT) X-Gm-Message-State: AOAM531q+BuvA+rgO9POSAQk/Z2zf640PYMH1v1bIecnJzjwRlMkLk1T zS/dJfgysQe+dyX7sCL7sh6nqddD8wdA/izkAA== X-Received: by 2002:a17:906:fcd7:: with SMTP id qx23mr818236ejb.267.1628723142314; Wed, 11 Aug 2021 16:05:42 -0700 (PDT) MIME-Version: 1.0 References: <20210810025503.16353-1-jason-jh.lin@mediatek.com> In-Reply-To: <20210810025503.16353-1-jason-jh.lin@mediatek.com> From: Chun-Kuang Hu Date: Thu, 12 Aug 2021 07:05:31 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] drm/mediatek: add AAL output size configuration To: "jason-jh.lin" Cc: Rob Herring , Matthias Brugger , Chun-Kuang Hu , Philipp Zabel , Enric Balletbo i Serra , fshao@chromium.org, David Airlie , Daniel Vetter , Fabien Parent , Hsin-Yi Wang , Yongqiang Niu , Nancy Lin , singo.chang@mediatek.com, DTML , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-kernel , DRI Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jason: jason-jh.lin =E6=96=BC 2021=E5=B9=B48=E6=9C=881= 0=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8A=E5=8D=8810:55=E5=AF=AB=E9=81=93=EF= =BC=9A > > To avoid the output width and height is incorrect, > AAL_OUTPUT_SIZE configuration should be set. Applied to mediatek-drm-fixes [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-fixes Regards, Chun-Kuang. > > Fixes: 0664d1392c26 ("drm/mediatek: Add AAL engine basic function") > Signed-off-by: jason-jh.lin > --- > Change in v2: > - fix to one line > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/dr= m/mediatek/mtk_drm_ddp_comp.c > index 75bc00e17fc4..50d20562e612 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c > @@ -34,6 +34,7 @@ > > #define DISP_AAL_EN 0x0000 > #define DISP_AAL_SIZE 0x0030 > +#define DISP_AAL_OUTPUT_SIZE 0x04d8 > > #define DISP_DITHER_EN 0x0000 > #define DITHER_EN BIT(0) > @@ -197,6 +198,7 @@ static void mtk_aal_config(struct device *dev, unsign= ed int w, > struct mtk_ddp_comp_dev *priv =3D dev_get_drvdata(dev); > > mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs,= DISP_AAL_SIZE); > + mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs,= DISP_AAL_OUTPUT_SIZE); > } > > static void mtk_aal_gamma_set(struct device *dev, struct drm_crtc_state = *state) > -- > 2.18.0 >