Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2901059pxb; Tue, 24 Aug 2021 10:11:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmm33inbIw6Q6ntVB17vdSbYTmLaopTRSAYRyCg6X2I4OzN2HJeKmbAi7ijban08h9nzmO X-Received: by 2002:a5d:8d0d:: with SMTP id p13mr31876959ioj.129.1629825101956; Tue, 24 Aug 2021 10:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825101; cv=none; d=google.com; s=arc-20160816; b=JKQqRvP7dk7GnjwcXXD1+Apeppc5xRiRADpzM0Qkl0ghLcxDj2YaZQpjR7W/FuXBck /xgFQoR49d+MQuqDNo6AL/9Ni21NJnvYnLBsn0TZCMuSMwCILnRV5EE3PduZzZjJwFHY 4eMA+MzfLu7883g3hf5vgNJiq+j4EOp4z31Fqqas+Hp27ct3urfA1+zRbi7nKjuM2Y0o HhKq9FSFokX3SYPdM1hN7VN6QBhE+xZnCer/8XUwnRZLNK6FtredEGEdR04BteJAVUqm 5rqhclG/vuiaS+VqIWxPBNn2/7/pvJ8LluQ1oKdKGkz9HZlaK5MCohV1OnAZhYCTICzR 2BXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=agCGE0/j6N0n47yIlHlxocdqjK8SHYyczzTvfFiypaI=; b=m0E1BXhWSxwMC54+fQMq0PlbiuaXGsQsbRH1cU90B2lD0x3UYtDD2XV45EQ8np4M4H ti2YFEBh7gruXbixLz5IBPbfA9s6xPMnvO4ntPZhwzIzKSTljG6bTuvtIhWNLzXqrddX nzp1USMA5JvNkJfcTQ6e/taItSZTSeOu6DSbFRdTLM3+Ycrsxa+g/cx2zsUCSWfnH5F8 cXwNfxWhA+N+lwQaXvJubz2Eu0bADyPtVsmGaK8nSdxq/Vr98UvK+HSdHI5PEn//akdC KUK7DwtGiDr2Pdcn+L0dtkNhgfH6pynxhvOGDYDNoQ0y5CpKCEK9x1jeGegsb8q48NLg LDlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eCUO9cuy; 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 y9si583720ilc.12.2021.08.24.10.11.30; Tue, 24 Aug 2021 10:11:41 -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=eCUO9cuy; 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 S239715AbhHXRJR (ORCPT + 99 others); Tue, 24 Aug 2021 13:09:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:46492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234352AbhHXRHC (ORCPT ); Tue, 24 Aug 2021 13:07:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1211C61A02; Tue, 24 Aug 2021 16:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824396; bh=KxKT5dg6jfAVKH7PBjCP38BgyrrJrz8xojPAJsd30fg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eCUO9cuy+vB+JZ1JSourWB2gXzE6rhg/euNympZKNR3L3Y7NZRuGB590u1Fb83mYG o3q8w7tk4FYRJH2sVAVAhv5zWTBxLCSZXVF466dwjGDOQfSxmDWxGwZhmPLFNtFVbp uuuDAALEuYjl+ks041r2c/lqq1YCbB5UN/YIVr44Y9w0T80ucWArTmrm62Z6znaEJj hWDSBohOXdh9xL4mIRhxqOv/OmOH0QW0qyOXLDB863AAPHTlJmJiaw9opODVpT7fcw yLYinl+/0IO1AAfNBXNPAa6yn8x0kedNSjSlXNLjFPV4P0K6F453aA7Jc5pP0lsefc Xb6vJBE2etv0g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "jason-jh.lin" , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.10 47/98] drm/mediatek: Add AAL output size configuration Date: Tue, 24 Aug 2021 12:58:17 -0400 Message-Id: <20210824165908.709932-48-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165908.709932-1-sashal@kernel.org> References: <20210824165908.709932-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.61-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.10.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.10.61-rc1 X-KernelTest-Deadline: 2021-08-26T16:58+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "jason-jh.lin" [ Upstream commit 71ac6f390f6a3017f58d05d677b961bb1f851338 ] To avoid the output width and height is incorrect, AAL_OUTPUT_SIZE configuration should be set. Fixes: 0664d1392c26 ("drm/mediatek: Add AAL engine basic function") Signed-off-by: jason-jh.lin Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- 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/drm/mediatek/mtk_drm_ddp_comp.c index fe58edcf57b5..e747ff7ba3dc 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_CCORR_EN 0x0000 #define CCORR_EN BIT(0) @@ -181,6 +182,7 @@ static void mtk_aal_config(struct mtk_ddp_comp *comp, unsigned int w, unsigned int bpc, struct cmdq_pkt *cmdq_pkt) { mtk_ddp_write(cmdq_pkt, w << 16 | h, comp, DISP_AAL_SIZE); + mtk_ddp_write(cmdq_pkt, w << 16 | h, comp, DISP_AAL_OUTPUT_SIZE); } static void mtk_aal_start(struct mtk_ddp_comp *comp) -- 2.30.2