Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2900279pxb; Tue, 24 Aug 2021 10:10:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw//9oNT0kQL1e2gC34T7D8DGz0PDx4yG89y2tupdG136kXFQ/oNgH0klWPD8Q4Vok8e4SD X-Received: by 2002:a02:a98c:: with SMTP id q12mr19193635jam.59.1629825040919; Tue, 24 Aug 2021 10:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825040; cv=none; d=google.com; s=arc-20160816; b=sCb25k/3OFJXDTYd3obXXOyrengsRPytIn7gEJd/z9lj03JSvEfxxGPZEBNXI70DVp MSD5fxr4NHFnMb0ByAn+MBpeq3Vn4tQDQsEMEpT2X1IZuRA/TCGDwK1/MHy21i7cgsgg YntLPBnzv5vDO30DWVZaiot8xnJvZew0Xe97Ktx6rvArwLirNbxPHdmRfoMz/djnGdKd /NcNq2hlch5c5uFsb+65FH2ln/prrlWX0pfocQRA2ObpYnFeLgZv9M9eHtW+lfasKc0S r4BNpL2g0Pczo/yNlnuE3RBdarlHrXdgbICJ5sAlNrMKKs/yhszj4Id39b5svu3fq6WN fhrw== 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=OLRsov4jBQ8AGcVb0zWCv8/US4d3ewhdjuy+ZxER6pc=; b=kL6SxQOhc5ZFfBZzvtveWMUWNRpdwKfdgKaGZ3/q0KKbT2zcloNoFjT8ZQ3lldCnyA Nt2ugVU2xIfOs9y7vbweUAByiDaC2Z0TbqWWd68Xq/OlC0ceLHQJK17sRiWDbysqX3nN MbVEMRpkROS6OVz7T5mPuRQbHslB4h0lLtFvCLSXp8KOT0pvO3K0sMbuzvxCONgTbv2t HmcwpwllJG6d5j+nI/b7w/obKfJyeqzKVAQvt8F01/kotgGt95Z7YToIvZmIQ+H0WA+k 1KvPllKx+RFeDZHGl0n/P3amjt9DU0PBUPsgLA4FyJrb56Hl2MRAUnuJJ8LCRyKjUUdv 5TRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TM2Fd2NJ; 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 o13si17773816jat.13.2021.08.24.10.10.28; Tue, 24 Aug 2021 10:10:40 -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=TM2Fd2NJ; 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 S239871AbhHXRJl (ORCPT + 99 others); Tue, 24 Aug 2021 13:09:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:46438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239423AbhHXRHC (ORCPT ); Tue, 24 Aug 2021 13:07:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3060F619F5; 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=1629824395; bh=pLs82OelJL9LUH8RveNb15o+L75oXkJrFfpT6ggYLLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TM2Fd2NJF3fxRknH2ij/r98wYtT+6mzWRJBp692sTHmcIEJK0tkJZTlUGgvTUEFTW PZ8SXd/Al6yRkvG1JFylDLEr5d1Mw+r3jGpNQDYV4p30Y9yCYhXWdthJoWrD2LjbMU NUL0nwyqMf0VOz0ajsOWhPZKK6qBjP6RFimP/O3drYRgnIC0x6RIWxG7pSoyi/kDdU 6+6P8Lez4YFP73jF/zI98ZntaW15LRH8rxQgAqkJvx6m926RNjO26a3yXJymL9Y85K sInTw6uikkC/ukpJ4jzifYb8xEs3xVUaJWGvKpNNQTjIn+C0jGTJP6NcAuCSzM6lON f3J/ze66/V5ZQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yongqiang Niu , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.10 46/98] drm/mediatek: Fix aal size config Date: Tue, 24 Aug 2021 12:58:16 -0400 Message-Id: <20210824165908.709932-47-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: Yongqiang Niu [ Upstream commit 71dcadba34203d8dd35152e368720f977e9cdb81 ] The orginal setting is not correct, fix it to follow hardware data sheet. If keep this error setting, mt8173/mt8183 display ok but mt8192 display abnormal. Fixes: 0664d1392c26 ("drm/mediatek: Add AAL engine basic function") Signed-off-by: Yongqiang Niu Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index 3064eac1a750..fe58edcf57b5 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c @@ -180,7 +180,7 @@ static void mtk_aal_config(struct mtk_ddp_comp *comp, unsigned int w, unsigned int h, unsigned int vrefresh, unsigned int bpc, struct cmdq_pkt *cmdq_pkt) { - mtk_ddp_write(cmdq_pkt, h << 16 | w, comp, DISP_AAL_SIZE); + mtk_ddp_write(cmdq_pkt, w << 16 | h, comp, DISP_AAL_SIZE); } static void mtk_aal_start(struct mtk_ddp_comp *comp) -- 2.30.2