Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1042491lqm; Thu, 2 May 2024 03:40:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbew+l+GqtbWyttWWElF7fvoBv6DqSIoRFvaCW9AtJ5dYVFQrdKTJF8xr5DN8qUz+/REfb20SvEe2/2HWoz5gNwUSSjSq0hmt7lzhAtQ== X-Google-Smtp-Source: AGHT+IGUIFqIiFen07E/VcTQ5QsZlIQu42OrHBSuDyldm5tPcbh+XMbFuMY2uzYA01AeIWghd4Qu X-Received: by 2002:a05:6870:4713:b0:23c:2d6e:96c0 with SMTP id b19-20020a056870471300b0023c2d6e96c0mr6051437oaq.39.1714646438536; Thu, 02 May 2024 03:40:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714646438; cv=pass; d=google.com; s=arc-20160816; b=RhQKu8Y5pryGsbJRvkCv4pzwAUacBoZxazwEkyxWuVF0D08OqK5QxYrgHoTMsbls9B z6XyPhkmxj7mbyCOZBd8a3H6XukdwXPGNonYlUtzsrG6uPnE+TYGrYGGYZVTU8e13Z1N +lNBIudhNlW50GY51T1ZnPAt7UfeEKw/wqJUsTY1bdcEyni1aAunXN62GdZery6M9/Bi bDqubWWAk+9CA4toL79k+BV4gNWGkk/F5jSsNNy1Y+lnn/fl2+SzbRH9Pnw5mbK9LueG lBZQ1WDBedOm28Fwq9nSbezRoylHW6u//TunvIJfwFCyIBlB3QYRcvWUHrpzWZw6i/XO JyzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YAkA0qWm0WibdgBc9DJ/ka2v14fCDYp1Wudifm+WvOw=; fh=cqg78MBO8cP6SLb/TWVgj1yGZGMGc3K34EILqL+DU6g=; b=ySJxY2XyamiPqKhn/va5hAgaBsNSBxwU7ZHI0LU5CPIcIhTNT85qmZJ9RSm0D+SN6X qS+A8QXn4FWDLqKvTrPhCUWlbX1sDi75l8nOJ2bgLcL1gl4pMQJ5pwF2hmeeB1y+t0Ay Zh4+cb4J4h5I6LPXaRhmN1cdGwD4VpukYypd5CF4STJi5kioebNQN0g4V4iOvJCZx1mU xF0AIpcTvCeamR5FZU8/tOzpknvvL3JM3Pvlpw85J9kccSauUoGaf8Yzd+9gIIgC3cWO TyxbgRl57hmOr5fEt4Gzg8ddwErULCS0Hjz363Lt51YyH9DdPDjRaNeJo4y3eGbiZdxV vBxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="qZlky/Um"; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-166321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q5-20020a056a00088500b006f3e7df2294si805059pfj.250.2024.05.02.03.40.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="qZlky/Um"; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-166321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D78A286402 for ; Thu, 2 May 2024 10:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82E6075802; Thu, 2 May 2024 10:39:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="qZlky/Um" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 742665FB87 for ; Thu, 2 May 2024 10:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714646346; cv=none; b=HmpE5srrAG7jqoy2gvaDBBEERV4KToXx9RujucOAVCA9aCUIBkTVO+3f6yfhF22+kobDsqjCO4hWuxZOln9vBBcUjAqtg225sitrGoZ1PPSECCvBNta7RwHDFJVBNnFpTiaabDOQ+kR+kCeXa44t4vzxor9ikZYckRdtfmX9XKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714646346; c=relaxed/simple; bh=NyNULaQ8YNkFDeu7M3Cfqdjji7QCIrLjFHEIIg3zczE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DNT/QfNHaF281H1M23y58h9J59A6RVXc3HfMAwaIJMFGIlRpYDEiGzYD0oHtQFU+I7hOLsLQo0cpuqFOW0FMh6yfETCd25NV5BmGlkqooPI48vFdQKkiKvMluyn23YJkeua+jrRh7MS/Tav+U+oh+bXBwHHJ7EGlXguB1lMDV2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=qZlky/Um; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 2e5f293a087011efb92737409a0e9459-20240502 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=YAkA0qWm0WibdgBc9DJ/ka2v14fCDYp1Wudifm+WvOw=; b=qZlky/UmGTC6es2ji4N29DVakenDy7fawYlVaSyU/mAfjyw+EyjkBKdPlBroTSZzghSd7Ad/k6+yQ4YgsabHwrBGLblC6fxsSCtHgVnic/vOgW68ea8CDAYI1rXvN8KnwI7PAe8K9Dj9Gvz14U2ipYLbuV/QlTZ46Mq8/J9Ccx0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.38,REQID:83577235-ae2d-4c3f-91d3-a32aeed2fb9e,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:82c5f88,CLOUDID:055a4592-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 2e5f293a087011efb92737409a0e9459-20240502 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1282271608; Thu, 02 May 2024 18:38:57 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 2 May 2024 18:38:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 2 May 2024 18:38:55 +0800 From: Shawn Sung To: Chun-Kuang Hu , AngeloGioacchino Del Regno CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , Bibby Hsieh , CK Hu , "Nancy . Lin" , Fei Shao , Sean Paul , Jason Chen , , , , , "Hsiao Chien Sung" Subject: [PATCH v7 01/18] soc: mediatek: Disable 9-bit alpha in ETHDR Date: Thu, 2 May 2024 18:38:31 +0800 Message-ID: <20240502103848.5845-2-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240502103848.5845-1-shawn.sung@mediatek.com> References: <20240502103848.5845-1-shawn.sung@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--4.084300-8.000000 X-TMASE-MatchedRID: gZQz39yqSjfX3tqA7xZNmyUCPpH7ESXaU+A7YkpDJ1ixUZq4R85n73pt C95MCcU3LYexjI/F2s7xHXxxAO/d2W5/NyTKlG694bl1FkKDELcoteqd/zXaI/ufvd3T2+v3dHv iJhofy1Hi8zVgXoAltsIJ+4gwXrEtwrbXMGDYqV+I3adjBtsMrMef3+4C/LmVSE4BVPJrmZoN9O zskhu7YlTJ6WXCIFydbfQZ3/6XbQ2HAdRETzvQbPCPl0YRUAlX0YcmHuIGC6bFuF1j/kyoEHZrU bEZipAEiWT09mQz7szw9kH8zAy44aOuVLnx3A74 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--4.084300-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 6FF9FC384157442A4EC319D965ED540AA9D1CAC02F3C36341F940B4D09B8EEB62000:8 X-MTK: N From: Hsiao Chien Sung ETHDR 9-bit alpha should be disabled by default, otherwise alpha blending will not work. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Hsiao Chien Sung --- drivers/soc/mediatek/mtk-mmsys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c index f370f4ec4b888..938240714e54c 100644 --- a/drivers/soc/mediatek/mtk-mmsys.c +++ b/drivers/soc/mediatek/mtk-mmsys.c @@ -236,6 +236,7 @@ void mtk_mmsys_mixer_in_config(struct device *dev, int idx, bool alpha_sel, u16 mtk_mmsys_update_bits(mmsys, MT8195_VDO1_MIXER_IN1_ALPHA + (idx - 1) * 4, ~0, alpha << 16 | alpha, cmdq_pkt); + mtk_mmsys_update_bits(mmsys, MT8195_VDO1_HDR_TOP_CFG, BIT(15 + idx), 0, cmdq_pkt); mtk_mmsys_update_bits(mmsys, MT8195_VDO1_HDR_TOP_CFG, BIT(19 + idx), alpha_sel << (19 + idx), cmdq_pkt); mtk_mmsys_update_bits(mmsys, MT8195_VDO1_MIXER_IN1_PAD + (idx - 1) * 4, -- 2.18.0