Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1638856pxa; Thu, 20 Aug 2020 17:01:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUckIRUYn6xmCpGUD4Bqiflu7jCYpMa75ELlQizAVf+4OYJlHoM9/uM581hGoXGDau0Cr9 X-Received: by 2002:a17:906:9512:: with SMTP id u18mr342780ejx.207.1597968115268; Thu, 20 Aug 2020 17:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597968115; cv=none; d=google.com; s=arc-20160816; b=jq0RiXY6towH26GAgJylJoM5731YlL31W5XgXc2Cgk1Qwnk17FZ6T83jNR3Qbtd/0a itFOoQIp5QQVFmAIE9/extFPR8RXk1Bjg9TBb3TZhrFOGVZruh65G/gcDE7okCEpEXQX aWENSYk6Vf0/AcZ9LZi0p8PcvHe62NWG8z0A/7z7/vkrpl5tFysZ0qM6jrbn/oMvbuM9 7xLM95PYCTFxOfek59H6kttWV3N0ZNf91GOUGyUX+A3n75lLKzIAPI0gbJJwXqGuCaUL qhgBUj+rgF6sHY+QUMq2O3b7q+Qbk2Jdvn2BAijksvmbR0fMT/6vig9FBwK6LZb+GCoX PLvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=I/Qp6lADrb0lOq85CeonQR43VehUdIbOgtlG2gcjkbc=; b=fFvnYJ7+haMQvlrumn5tMUQSRfua9MXqD3cbpLx3RC3GTDbSFmPfoYzvRdP791w7VL DQ4Y6lwgous8FJT93dGoHr26xH/+khbfwcXsG4HbqHSgNOr0ubL6OvNCBqb5VMx15oYj Kk58/nIuKgq29wY2uTZWHBSS0THaJSPM9oqs/Vz7HCTYOFngqj+m52IF9f42VxZfYLW2 jMUawgKON5wTCFMaTJkbavwtRx+t9yl2LSUwScsrQioEe9Xzfhig5UJvtFkGAH1qnm2A zjW+/VoWcT3aBqgAaHc4iV/I/RgH4HHm5HmzG417XTlrvle5FPjH6Sjpo7pa+c6nRusN Oj/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Zh7RPShu; 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 i7si24265ejo.230.2020.08.20.17.01.32; Thu, 20 Aug 2020 17:01:55 -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=default header.b=Zh7RPShu; 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 S1728919AbgHTXnx (ORCPT + 99 others); Thu, 20 Aug 2020 19:43:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:56040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728498AbgHTXnv (ORCPT ); Thu, 20 Aug 2020 19:43:51 -0400 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6683321775; Thu, 20 Aug 2020 23:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597967030; bh=12Z/1F9ynfQG7TePTBeyr3mih++Uy7SZRp4TeFeFs00=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Zh7RPShu8RDbXHSq/oO4RIrP7wWBy3WN/odPT+2RPzaYmOP++iCWgSxuDuz7TTrd3 u/rZq9S0bOYAjczwn4IXAUllxtXntn5divU1ss+SS2VPiDDLGc4BJDg+kWq9wRyLDd upGN6rew7AYY0LKvqeSxDvRU14iudWvSn7Kglwvw= Received: by mail-ej1-f41.google.com with SMTP id jp10so268087ejb.0; Thu, 20 Aug 2020 16:43:50 -0700 (PDT) X-Gm-Message-State: AOAM533FUdPUqyXbftGwAgsZAE9Qo45VS7wLhBtjoBhmgnSJih3YBYZA 2clSOWRaoJznpiBflTkmFB/NNNoQqzsYWnE40Q== X-Received: by 2002:a17:906:7492:: with SMTP id e18mr178889ejl.375.1597967028984; Thu, 20 Aug 2020 16:43:48 -0700 (PDT) MIME-Version: 1.0 References: <1597903458-8055-1-git-send-email-yongqiang.niu@mediatek.com> <1597903458-8055-8-git-send-email-yongqiang.niu@mediatek.com> In-Reply-To: <1597903458-8055-8-git-send-email-yongqiang.niu@mediatek.com> From: Chun-Kuang Hu Date: Fri, 21 Aug 2020 07:43:36 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 07/21] drm/mediatek: enable OVL_LAYER_SMI_ID_EN for multi-layer usecase To: Yongqiang Niu Cc: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger , Mark Rutland , devicetree@vger.kernel.org, David Airlie , linux-kernel , DRI Development , "moderated list:ARM/Mediatek SoC support" , Daniel Vetter , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI, Yongqiang: Yongqiang Niu =E6=96=BC 2020=E5=B9=B48=E6=9C= =8820=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=882:06=E5=AF=AB=E9=81=93= =EF=BC=9A > > enable OVL_LAYER_SMI_ID_EN for multi-layer usecase > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/me= diatek/mtk_disp_ovl.c > index 8cf9f3b..427fe7f 100644 > --- a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c > +++ b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c > @@ -23,6 +23,7 @@ > #define DISP_REG_OVL_RST 0x0014 > #define DISP_REG_OVL_ROI_SIZE 0x0020 > #define DISP_REG_OVL_DATAPATH_CON 0x0024 > +#define OVL_LAYER_SMI_ID_EN BIT(0) > #define OVL_BGCLR_SEL_IN BIT(2) > #define DISP_REG_OVL_ROI_BGCLR 0x0028 > #define DISP_REG_OVL_SRC_CON 0x002c > @@ -116,6 +117,8 @@ static void mtk_ovl_disable_vblank(struct mtk_ddp_com= p *comp) > static void mtk_ovl_start(struct mtk_ddp_comp *comp) > { > writel_relaxed(0x1, comp->regs + DISP_REG_OVL_EN); > + mtk_ddp_write_mask(NULL, OVL_LAYER_SMI_ID_EN, comp, writel_relaxed instead of mtk_ddp_write_mask. > + DISP_REG_OVL_DATAPATH_CON, OVL_LAYER_SMI_ID_EN= ); If this only should set in mt8192, add a private data to distinguish this. Regards, Chun-Kuang. > } > > static void mtk_ovl_stop(struct mtk_ddp_comp *comp) > -- > 1.8.1.1.dirty > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek